-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
178 lines (156 loc) · 3.43 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
/*
Clearing the margin and padding of the body element.
(The border-gaps inside and outside the whole page)
*/
body {
margin: 0;
padding: 0;
}
/* ---------------------------------------- Style of the Navigation Bar ---------------------------------------- */
/*
We used "flex" display for the alignment of the buttons in the navigation bar.
Aligned everything to the end of the navigation bar horizontally using "justify-content" property.
Aligned everything to the middle vertically using "align-items" property.
*/
.nav {
display: flex;
height: 6vh;
justify-content: flex-end;
align-items: center;
}
/*
We gave 10px of margin to both the right and the left side of the links (Gmail and Images)
"text-decoration: none" means we don't want to underline the text. By default all the "a" tags have underline.
*/
.nav-link {
margin: 0 10px 0 10px;
text-decoration: none;
font-size: 15px;
color: rgba(0, 0, 0, 0.87);
}
/*
We draw an underline when the cursor is hovering over the link
*/
.nav-link:hover {
text-decoration: underline;
}
/*
We gave 10px of margin to both the right and the left side of the grid image.
*/
#grid-icon {
margin: 0 10px 0 10px;
width: 20px;
height: 20px;
cursor: pointer;
}
/*
We gave 30px of margin to the right side and 10px of margin to the left side of the profile picture.
We set the border radius to half of the width and height of the image size in order to make it a perfect circle.
*/
#profile-pic {
margin: 0 30px 0 10px;
width: 35px;
height: 35px;
border-radius: 17.5px;
cursor: pointer;
}
/* ---------------------------------------- Style of the Main Container ---------------------------------------- */
.main {
height: 94vh;
}
.top-half {
display: flex;
height: 50%;
justify-content: center;
align-items: center;
flex-direction: column;
}
#logo {
width: 272px;
height: 92px;
}
#input-container {
margin-top: 30px;
width: 584px;
height: 44px;
border-radius: 22px;
border: 1px solid #dfe1e5;
display: flex;
align-items: center;
}
#input-container:hover {
box-shadow: 0px 2px 3px 1px rgba(0, 0, 0, 0.1);
}
#search-icon {
margin-left: 15px;
width: 15px;
height: 15px;
}
#right-icon {
margin: 0 10px 0 10px;
max-width: 24px;
max-height: 24px;
}
#input {
width: 100%;
height: 90%;
margin: 0 10px 0 10px;
font-size: 15px;
border: none;
}
#input:focus {
outline: none;
}
#button-container {
margin-top: 30px;
}
#button-container button {
cursor: pointer;
margin: 0 3px 0 3px;
padding: 0 15px 0 15px;
height: 40px;
font-size: 12px;
background-color: #f4f4f4;
border: none;
border-radius: 5px;
}
#button-container button:focus {
outline: none;
}
#button-container button:hover {
background-color: #f6f6f6;
border-width: 1px;
border-style: solid;
border-color: rgba(0, 0, 0, 0.2);
}
/* ---------------------------------------- Style of the Footer ---------------------------------------- */
.footer {
position: absolute;
height: 80px;
width: 100%;
bottom: 0;
}
#footer-text {
text-decoration: none;
color: #6f6f6f;
cursor: pointer;
margin: 0 10px 0 10px;
}
.footer span:hover {
text-decoration: underline;
}
.footer-half {
display: flex;
flex-direction: row;
height: 50%;
background-color: #f4f4f4;
border-top: 1px solid #e9e9e9;
border-bottom: 1px solid #e9e9e9;
padding: 0 10px 0 10px;
align-items: center;
font-size: 15px;
color: #6f6f6f;
}
#bottom-footer {
justify-content: space-between;
}