-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
120 lines (108 loc) · 1.72 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
.container {
font-family: 'Roboto Condensed', sans-serif;
background: url("https://www.pixeden.com/media/k2/galleries/131/001-subtle-light-pattern-background-texture.jpg");
display: grid;
grid-template-areas:
"links"
"content";
padding: 0.5em;
margin: 0;
}
#navbar {
grid-area: links;
position: fixed;
width: 100%;
top: 0;
background-color: #fff;
z-index: 1;
border: 1px solid black;
border-bottom: none;
}
#main-doc {
grid-area: content;
position: relative;
top: 34vh;
}
.nav-link {
display: block;
text-decoration: none;
color: #000;
text-align: center;
border-bottom: 1px solid black;
}
h1 {
text-align: center;
}
h1, h2, h3, h4 {
font-family: 'Roboto', sans-serif;
}
a:hover {
color: red;
}
li {
padding: 0.3em;
}
.main-section a {
animation-name: colorful;
animation-duration: 5s;
animation-iteration-count: infinite;
}
@keyframes colorful {
0% {
color: blue;
}
50% {
color: red;
}
70% {
color: red;
}
100%; {
color: blue;
}
}
/* Now time to work on some media queries */
@media (min-width: 500px) {
.nav-link {
padding: 0.15em;
font-size: 1.5em;
}
#main-doc {
top: 42vh;
font-size: 18px;
line-height: 1.2;
}
}
@media (min-width: 600px) {
#main-doc {
font-size: 20px;
line-height: 1.2;
}
}
@media (min-width: 700px;) {
.nav-link {
font-size: 1.7em;
font-weight: 600;
}
}
@media (min-width: 800px) {
.container {
display: grid;
grid-template-columns: 1fr 2fr;
grid-template-areas:
"links content";
grid-gap: 1em;
}
#navbar {
width: 30vw;
height: 100%;
font-size: auto;
background: inherit;
}
#main-doc {
top: 0;
}
h2 {
text-align: center;
}
}