-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
154 lines (132 loc) · 3.21 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;1,500&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Raleway', sans-serif;
}
body{
/*background-color: #759f9b; */
background: url(./pexels-karolina-grabowska-4397907.jpg);
background-size: cover;
background-position: center;
color: saddlebrown;
}
.container{
width: 50%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.timer{
font-size: 50px;
font-weight: 600;
margin-bottom: 30px;
letter-spacing: 4.5px;
width: 280px;
height: 280px;
display: grid;
place-items: center;
}
.container h1{
font-size: 22px;
margin: 10px 0 30px 0;
}
.buttons{
width: 100%;
max-width: 500px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
}
.buttons button{
font-size: 18px;
font-weight: 700;
padding: 10px 14px;
border-radius: 5px;
border: none;
cursor: pointer;
background-color: var(--clr);
color: #fff;
transition: transform 0.4s ease-in-out;
width: 45%;
margin-bottom: 10px;
}
.buttons button:hover{
transform: scale(1.1);
}
.pomoCountsDisplay{
display: none;
justify-content: center;
align-items: center;
flex-direction: column;
margin-top: 30px;
animation: swipe-up 1s ease-in;
}
.pomoCountsDisplay span{
font-size: 50px;
font-weight: 700;
color: brown;
}
.pomoCountsDisplay p{
font-size: 20px;
font-weight: 600;
}
@keyframes swipe-up{
0%{
opacity: 0;
transform: translateY(50%);
}
100%{
opacity: 1;
transform: translateY(0);
}
}
/* Responsive styles for devices with max-width 520px */
@media screen and (max-width: 520px){
.container{
width: 90%; /* Adjust the width as per your design */
}
.timer{
width: 200px; /* Adjust the width as per your design */
height: 200px; /* Adjust the height as per your design */
font-size: 36px; /* Adjust the font-size as per your design */
}
.buttons{
width: 90%;
}
.buttons button{
width: 90%;
}
}
/* Additional media queries for other screen sizes */
@media screen and (min-width: 521px) and (max-width: 768px){
/* Adjust styles for devices with screen width between 521px and 768px */
.container{
width: 60%; /* Adjust the width as per your design */
}
.buttons button{
width: 45%;
}
}
@media screen and (min-width: 769px) and (max-width: 1024px){
/* Adjust styles for devices with screen width between 769px and 1024px */
.container{
width: 40%; /* Adjust the width as per your design */
}
.buttons button{
width: 30%;
}
}
@media screen and (min-width: 1025px){
/* Adjust styles for devices with screen width larger than 1024px */
.container{
width: 30%; /* Adjust the width as per your design */
}
.buttons button{
width: 20%;
}
}