forked from nathanielevan/startpage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
171 lines (147 loc) · 3.04 KB
/
index.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
@import "nord.css";
body {
background-color: var(--nord0);
font-family: "Inter", sans-serif;
margin: 0px;
min-height: 100vh;
}
#main-container {
margin: auto;
display: flex;
width: 640px;
min-height: inherit;
flex-direction: column;
align-items: stretch;
justify-content: center;
gap: 10px;
}
#user-greeting {
margin-top: 30px;
font-size: 21px;
font-weight: normal;
color: var(--nord5);
}
#current-time {
font-size: 35px;
font-weight: normal;
color: var(--nord4);
}
#search {
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
margin-top: 10px;
padding: 10px;
background-color: var(--nord1);
border-radius: 8px;
box-shadow: 5px 5px 3px 0px #1c1f26;
box-sizing: border-box;
gap: 10px;
font-size: 14px;
}
.button {
background-color: var(--nord2);
color: var(--nord5);
border-radius: 8px;
border-style: none;
}
.button:active {
background-color: var(--nord3);
}
#search-engine-select {
padding: 0.6em 10px;
border-right: 10px solid transparent;
font-family: inherit;
font-size: inherit;
}
#search-input-cont {
flex: 1;
}
#search-input {
background: linear-gradient(var(--nord4), var(--nord4)), linear-gradient(var(--nord4), var(--nord4));
background-size: 100% 0.1em, 0 0.1em;
background-position: 100% 100%, 0 100%;
background-repeat: no-repeat;
transition: background-size 400ms ease;
border: none;
outline: none;
color: var(--nord5);
padding: 0.6em 0;
width: 100%;
font-family: inherit;
font-size: inherit;
}
#search-input:focus {
background-size: 0 0.1em, 100% 0.1em;
}
#search-button {
padding: 0.6em 12px;
font-family: inherit;
font-size: inherit;
}
#links {
display: flex;
flex-direction: row;
font-size: 14px;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 30px;
}
.link-group {
padding: 10px;
background-color: var(--nord1);
border-radius: 8px;
box-shadow: 5px 5px 3px 0px #1c1f26;
flex: 1 1 0%;
}
.link-group-title {
color: var(--nord4);
margin-bottom: 10px;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
a {
text-decoration: none;
display: inline-block;
padding: 2px 0px;
width: 100%;
}
.link-text {
display: inline-block;
padding: 2px 0px;
background: linear-gradient(var(--nord4), var(--nord4));
background-size: 0 0.1em;
background-position: 0 100%;
background-repeat: no-repeat;
transition: background-size 250ms, color 250ms;
color: var(--nord5);
}
a:hover > .link-text {
background-size: 100% 0.1em;
color: var(--nord4);
}
@media (max-width: 800px) {
#main-container {
width: 80%;
}
}
@media (max-width: 650px) {
#search-engine-cont, #search-engine-select {
width: 100%;
}
.link-group {
flex: 1 1 40%;
}
}
@media (max-width: 350px) {
.link-group {
flex: 100%;
}
#search-button-cont, #search-button {
width: 100%;
}
}