forked from Gen1a/CS50W-Project0-Google-Search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.scss
168 lines (143 loc) · 3.04 KB
/
styles.scss
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
body{
margin: 0px;
height: 100vh;
font-family: Arial, sans-serif;
}
input {
font-size: 16px;
width: 300px;
padding: 13px 0;
/* Parent selector = & */
&:focus {
outline: none;
}
&[type="text"] {
/* Give input text a lighter color */
color: #464646;
margin: 0 0 0 5px;
}
&[type="submit"] {
font-size: 14px;
width: 185px;
/* Remove border */
border-width: 0px;
border-radius: 15px;
margin: 20px;
&:hover {
/* Add box-shadow when hovering button (border adds space) */
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);
}
}
&.blue-button {
background-color: dodgerblue;
color: white;
font-size: smaller;
max-width: 200px;
border-radius: 0px;
border: 1px solid #156bbd;
float: right;
padding: 10px 2px;
margin: 0;
}
}
.header {
display: flex;
align-items: center;
a {
color: black;
padding: 10px;
text-decoration: none;
}
&-advanced {
@extend .header;
background-color: #f1f1f1;
height: 50px;
}
&-advanced-logo {
@extend .header;
padding: 10px;
img {
height: 30px;
}
}
&-links {
@extend .header;
margin-left: auto;
}
}
.appbar {
margin: 30px 10px;
label {
color: #d93025;
font-size: 20px;
margin: 50px 30px;
}
}
.separator-line {
border-bottom: solid 1px #d6d6d6;
}
.search-container {
$input_field_border_radius: 25px;
display: flex;
flex-direction: column;
/* Align the search container in the center of the viewport */
justify-content: center;
align-items: center;
height: 90%;
.search-field {
display: flex;
flex-direction: row;
border-radius: $input_field_border_radius;
border: 1px solid #afafaf;
align-items: center;
margin: 10px;
padding-left: 15px;
input {
border: none;
border-radius: $input_field_border_radius;
}
}
.logo-subtext {
color: #4285f4;
position: relative;
left: 110px;
top: -18px;
}
}
.advanced-search-container {
margin: 50px 40px;
label {
display: inline-block;
width: 16%;
font-size: 20px;
}
.whitespace {
display: inline-block;
width: 50%;
}
.form-group {
display: flex;
align-items: center;
margin-top: 10px;
padding: 10px 0;
label {
width: 16%;
font-size: 14px;
}
input[type="text"] {
width: 49%;
padding: 2px 0;
}
.clarification {
font-size: 11px;
width: 30%;
margin-left: 1%;
.monospace {
font-family: monospace;
}
}
.right-align {
width: 50%;
}
}
}