-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
164 lines (142 loc) · 3.73 KB
/
styles.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
:root {
--body_gradient_left:#7200D0;
--body_gradient_right: #C800C1;
--form_bg: #ffffff;
--input_bg: #E5E5E5;
--input_hover:#eaeaea;
--submit_bg: #1FCC44;
--submit_hover: #40e263;
--icon_color:#6b6b6b;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
#content {
/* make the body full height*/
height: 100vh;
/* set our custom font */
font-family: 'Roboto',
sans-serif;
/* create a linear gradient*/
background-image: linear-gradient(to right, var(--body_gradient_left), var(--body_gradient_right));
display:flex;
}
#form_wrapper {
/*width: 1000px;*/
height: 700px;
/* this will help us center it*/
margin:auto;
background-color: var(--form_bg);
border-radius: 50px;
/* make it a grid container*/
display: grid;
/* with two columns of same width*/
grid-template-columns: 1fr 1fr;
/* with a small gap in between them*/
grid-gap: 5vw;
/* add some padding around */
padding: 5vh 15px;
}
#form_left {
/* center the image */
display: flex;
justify-content: center;
align-items: center;
}
#form_left img {
width: 350px;
height: 350px;
}
#form_right {
display: grid;
/* single column layout */
grid-template-columns: 1fr;
/* have some gap in between elements*/
grid-gap: 20px;
padding: 10% 5%;
}
.input_container {
background-color: var(--input_bg);
/* vertically align icon and text inside the div*/
display: flex;
align-items: center;
padding-left: 20px;
}
.input_container:hover {
background-color: var(--input_hover);
}
.input_container,
#input_submit {
height: 60px;
/* make the borders more round */
border-radius: 30px;
width: 100%;
}
.input_field {
/* customize the input tag with lighter font and some padding*/
color: var(--icon_color);
background-color: inherit;
width: 90%;
border: none;
font-size: 1.3rem;
font-weight: 400;
padding-left: 30px;
}
.input_field:hover,
.input_field:focus {
/* remove the outline */
outline: none;
}
#input_submit {
/* submit button has a different color and different padding */
background-color: var(--submit_bg);
padding-left: 0;
font-weight: bold;
color: white;
text-transform: uppercase;
}
#input_submit:hover {
background-color: var(--submit_hover);
/* simple color transition on hover */
transition: background-color,
1s;
cursor: pointer;
}
h1,
span {
text-align: center;
}
/* shift it a bit lower */
#create_account {
display: block;
position: relative;
top: 30px;
}
a {
/* remove default underline */
text-decoration: none;
color: var(--submit_bg);
font-weight: bold;
}
a:hover {
color: var(--submit_hover);
}
i {
color: var(--icon_color);
}
/* make it responsive */
@media screen and (max-width:768px) {
/* make the layout a single column and add some margin to the wrapper */
#form_wrapper {
grid-template-columns: 1fr;
/*margin-left: 10px;*/
/*margin-right: 10px;*/
margin: auto;
}
/* on small screen we don't display the image */
#form_left {
display: none;
}
}