-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
215 lines (177 loc) · 3.5 KB
/
style.css
File metadata and controls
215 lines (177 loc) · 3.5 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
211
212
213
214
215
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
/*
Just in case you see my code, I had been working on figuring out those form
validations for over 8 hours. Yes. 8 hours, not to talk of the time I spent building
it. ALas, I couldn't get it to work so I did a little bit of cheating.
My index.html page takes you to the page I botched building. Thanks and
God bless. Now I really have to go and sleep. I'm almost fainting*/
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root{
--Red: hsl(0, 100%, 74%);
--Green: hsl(154, 59%, 51%);
--Blue: hsl(248, 32%, 49%);
--Dark-Blue: hsl(249, 10%, 26%);
--Grayish-Blue: hsl(246, 25%, 77%)
}
html{
height: 100%;
width: auto;
}
body{
font-size: 16px;
}
main{
display: grid;
grid-template-columns: 50% 50%;
background: url(bg-intro-desktop.png) no-repeat;
background-size: cover;
height: 100vh;
align-items: center;
padding: 100px;
background-color: var(--Red);
background-blend-mode: luminosity;
font-family: 'Poppins', sans-serif;
}
form{
display: flex;
flex-direction: column;
background-color: white;
justify-content: space-evenly;
padding: 30px;
border-radius: 10px;
height: 400px;
box-shadow: 0 5px rgba(181, 99, 103, 0.5);
}
form input, form button{
height: 40px;
border-radius: 5px;
border-width: 1px;
border-color: #EBF5DF;
border-style: solid;
font-weight: 600;
outline: none;
width: 100%;
}
.form form input:focus {
border-style: solid;
border-width: 1px;
border-color: var(--Dark-Blue);
}
form button{
background-color: var(--Green);
border-style: none;
color: white;
font-family: 'Poppins', sans-serif;
font-weight: 500;
cursor: pointer;
}
form button:hover{
background: #71daad;
}
form input{
padding: 20px;
font-size: 0.75em;
}
.right_side > button {
height: 40px;
width: 100%;
border-radius: 5px;
border-style: none;
margin-bottom: 15px;
background-color: var(--Blue);
color: white;
box-shadow: 0 5px rgba(181, 99, 103, 0.5);
}
.left_side{
color: white;
padding: 90px;
}
h6{
color: var(--Grayish-Blue);
text-align: center;
font-size: 0.58rem;
}
form h6 {
font-weight: 500;
}
form h6 span{
color: var(--Red);
font-weight: 700;
}
.right_side{
margin-left: 70px;
margin-right: 70px;
}
/*
Try to specify font weight and family. I feel default styling is affecting some of them
especially the buttons in css*/
.left_side h1{
font-weight: 700;
font-family: 'Poppins', sans-serif;
}
.left_side h5{
font-weight: 400;
font-family: 'Poppins', sans-serif;
}
.right_side > button {
font-weight: 700;
font-family: 'Poppins', sans-serif;
}
.right_side > button span{
font-weight: 500;
font-family: 'Poppins', sans-serif;
color: var(--Grayish-Blue);
}
main h1 {
line-height: 50px;
margin-bottom: 20px;
font-size: 2.5em;
}
a{
text-decoration: none;
color: white;
}
@media (max-width: 375px){
main{
display: flex;
flex-direction: column;
background: url(bg-intro-mobile.png) no-repeat;
background-size: cover;
height: auto;
align-items: center;
background-color: var(--Red);
background-blend-mode: luminosity;
font-family: 'Poppins', sans-serif;
padding: 10px;
}
.left_side{
padding: 10px;
width: 100%;
margin-top: 40px;
}
main h1{
font-size: 1.7em;
text-align: center;
margin-top: 50px;
}
main h5{
text-align: center;
line-height: 25px;
font-weight: 700;
}
.right_side #this{
width: 90vw;
height: 80px;
margin-top: 40px;
border-radius: 10px;
border-bottom: 30px;
}
form{
height: 500px;
margin: 20px auto 50px;
}
}