-
Notifications
You must be signed in to change notification settings - Fork 0
/
anket.css
208 lines (174 loc) · 3.76 KB
/
anket.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
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
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
/* let me add some constant variables */
:root {
--clr-white: #f3f3f3;
--clr-darkBlue: #6bee13;
--clr-darkBlue-aplha: rgba(132, 173, 146, 0.8);
--clr-green: #0a8d3c;
}
body {
font-family: "Poppins", sans-serif;
font-size: 1rem;
line-height: 1.5;
text-align: center;
/* We use our constant variable by using var() function */
color: var(--clr-white);
margin: 0;
}
/* lets also add background to our body */
body::before {
content: "";
position: fixed;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: -1;
background-image: linear-gradient(
115deg,
rgba(203, 206, 205, 0.8),
rgba(136, 136, 206, 0.7)
),
url("/logo.jpg");
/* You can see that our image is repeated */
/* So for stopping the repeatation we do following */
/* by cover it will cover the entire screen */
background-size: cover;
background-repeat: no-repeat;
/* let center the img */
background-position: center;
}
/* lets style our title and description */
h1 {
font-weight: 400;
line-height: 1.2;
}
p {
font-size: 1.125rem;
}
h1,
p {
margin-top: 0;
margin-bottom: 0.5rem;
}
/* lets style our label */
label {
display: flex;
align-items: center;
font-size: 1.125rem;
margin-bottom: 0.5rem;
}
input,
select,
textarea {
margin: 0;
font-family: inherit;
outline: none;
font-size: inherit;
line-height: inherit;
}
/* lets style our main Container */
.container {
width: 100%;
margin: 3.125rem auto 0 auto;
}
@media (min-width: 576px) {
.container {
max-width: 540px;
}
}
@media (min-width: 768px) {
.container {
max-width: 720px;
}
}
header {
padding: 0 0.625rem;
margin-bottom: 1.875rem;
}
.description {
font-style: italic;
font-weight: 200;
text-shadow: 1px 1px 1px rgba(128, 235, 176, 0.4);
}
.text_center {
text-align: center;
}
.clue {
margin-left: 0.25rem;
font-size: 0.9rem;
color: #e4e4e4;
}
/* let now style our main form */
form {
background-color: var(--clr-darkBlue-aplha);
padding: 2.5rem 0.625rem;
border-radius: 1rem;
}
@media (min-width: 480px) {
form {
padding: 2.5rem;
}
}
/* lets now style form_group */
.form_group {
margin: 0 auto 1.25 auto;
padding: 0.25rem;
/* background-color: red; */
margin-bottom: 2rem;
}
.form_control {
display: block;
width: 100%;
height: 2.375rem;
color: #495057;
padding: 0.375rem 0.75rem;
background-color: #fff;
border: 1px solid #ced4da;
background-clip: padding-box;
border-radius: 0.5rem;
transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
/* now lets add on focus for input field */
.form_control:focus {
border-color: #80bdff;
outline: 0;
box-shadow: 0 0 0 0.2rem rgba(118, 194, 122, 0.25);
}
/* lets style radio button now */
.input_radio,
.input_checkbox {
display: inline-block;
margin-right: 0.625rem;
min-height: 1.25rem;
min-width: 1.25rem;
}
/* lets style our text area */
.input_textarea {
min-height: 120px;
width: 100%;
padding: 0.625rem;
resize: vertical;
border-radius: 0.5rem;
}
.submit_btn {
display: block;
width: 100%;
padding: 0.75rem;
cursor: pointer;
background-color: var(--clr-green);
outline: none;
color: inherit;
border: none;
border-radius: 0.5rem;
transition: transform 0.3s linear;
font-size: 0.967rem;
}
.submit_btn:hover {
transform: scale(1.05);
}