-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
210 lines (180 loc) · 4.75 KB
/
styles.css
File metadata and controls
210 lines (180 loc) · 4.75 KB
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
@import url('https://fonts.googleapis.com/css2?family=Nerko+One&family=Permanent+Marker&family=Chewy&display=swap');
@font-face {
font-family: 'Chewy';
src: url('Chewy-Regular.ttf') format('truetype'); /* Adjust the path if necessary */
font-weight: normal;
font-style: normal;
}
body {
position: relative; /* Make sure the body has a position context for the overlay */
background-image: url('bg.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
background-color: #f5cdfd; /* Fallback color */
height: 100vh; /* Ensure it covers full height */
font-family: 'Chewy', cursive;
margin: 0;
padding: 20px;
}
body::before {
content: ''; /* Required for pseudo-element */
position: absolute; /* Position it absolutely within the body */
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(219, 202, 186, 0.5); /* Adjust color and opacity */
z-index: 1; /* Ensure it appears above the background but below the content */
background-size:cover;
height:100%;
}
.container {
position: relative; /* Ensure the container is above the overlay */
background-color: #fff;
border: 4px solid black;
border-radius: 40px;
padding: 20px;
max-width: 70%;
margin: 8% auto;
z-index: 2; /* Make sure the container is above the overlay */
}
.checkbox-item {
display: flex;
align-items: center;
margin: 10px 0;
}
.checkbox {
display: none; /* Hide the default checkbox */
}
.custom-checkbox {
width: 30px;
height: 30px;
border: 2px solid #000;
background-color: #fff; /* White background */
margin-right: 10px;
position: relative;
cursor: pointer;
}
.checkbox:checked + .custom-checkbox {
background-color: #fff; /* Keep background white when checked */
}
.custom-checkbox:after {
content: ''; /* Create a pseudo-element for the tick */
position: absolute;
left: 8px; /* Positioning the tick */
top: 4px; /* Adjust the top position */
width: 8px; /* Width of the tick */
height: 16px; /* Height of the tick */
border: solid black; /* Black tick */
border-width: 0 3px 3px 0; /* Shape the tick */
transform: rotate(45deg); /* Rotate to make a tick */
display: none; /* Initially hide the tick */
}
.checkbox:checked + .custom-checkbox:after {
display: block; /* Show the tick when checked */
}
.item-input {
border: none;
outline: none;
width: 100%;
padding: 5px 0; /* Adjust padding for top/bottom, remove left/right padding */
margin: 0; /* Remove any margin */
border-bottom: 2px solid #000; /* Bottom border to resemble notebook lines */
box-sizing: border-box; /* Ensure padding/border are included in width */
font-family:inherit;
font-size:large;
text-transform:capitalize;
}
.item-input::placeholder {
color: #999; /* Placeholder color */
opacity: 0.7; /* Slightly transparent */
}
.header {
color: #000;
text-align: center;
position: relative; /* Ensure positioning for child elements */
}
.icon {
display: inline-block; /* Allows for individual styling */
}
.icon i {
font-size: 14px; /* Adjust size if needed */
}
.icon:last-child {
animation: pulse 1s infinite;
margin-right: 5px;
}
.icon:first-child {
animation: rotate 3s infinite; /* Apply rotate animation to circle-check icon */
margin-left: 5px;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}
@keyframes rotate {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@media (max-width: 1200px){
.container{
margin:8% auto;
max-width:400px;
}
}
/* Mobile Styles */
@media (max-width: 600px) {
.container{
margin:8% auto;
max-width: 90%;
}
.header {
font-size: 20px; /* Smaller heading size */
}
.custom-checkbox {
width: 25px; /* Smaller checkbox width */
height: 25px; /* Smaller checkbox height */
}
.custom-checkbox:after{
width:4px;
height:8px;
}
.icon i {
font-size: 20px; /* Adjust icon size */
}
.item-input {
padding: 4px 0; /* Slightly reduce padding */
}
}
.info {
display: flex;
align-items: center;
font-size: 14px; /* Adjust font size as needed */
margin-top: 10px; /* Space above the info text */
text-align: center; /* Center align text */
justify-content: center; /* Center align flex items */
flex-direction: row; /* Stack items vertically */
letter-spacing:1px;
word-spacing:1px;
}
kbd{
background:#ddd;
padding:2px 3px;
border-radius:3px;
border:0.5px solid #000;
}
.info .info-icon {
margin-right: 5px; /* Space between icon and text */
}