-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
123 lines (101 loc) · 1.79 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
* {
margin: 0;
padding: 0;
}
body {
font-family: Lato, Helvetica, Verdana, sans-serif;
height: 100vh;
color: #353535;
background-color: #d0cfc5;
display: grid;
gap: 1em;
}
header {
background-color: #1eaafc;
background-image: linear-gradient(130deg, #6c52d9 0%, #1eaafc 85%, #3edfd7 100%);
color: #fff;
}
footer {
background-color: #1eaafc;
background-image: linear-gradient(130deg, #6c52d9 0%, #1eaafc 85%, #3edfd7 100%);
color: #fff;
}
header h1 {
margin-left: 0.75em;
}
nav {
color: #fff;
background-color: #1eaafc;
background-image: linear-gradient(130deg, #6c52d9 0%, #1eaafc 85%, #3edfd7 100%);
}
nav ul {
list-style-type: none;
}
nav li {
padding: 1.4em;
}
.toggle-drawer {
text-decoration: none;
color: inherit;
}
@media screen and (min-width: 35rem) {
body {
grid-template-columns: repeat(4, 1fr);
grid-auto-rows: min-content min-content auto min-content;
gap: 0;
}
nav {
box-shadow: 0 0.375em 0.375em #333;
}
header,
nav,
footer {
grid-column: span 4;
}
footer {
text-align: right;
}
nav li {
display: inline-block;
}
main {
padding-top: 1em;
grid-column: span 3;
}
.toggle-drawer {
display: none;
}
}
@media screen and (max-width: 34.99rem) {
body {
grid-auto-rows: min-content auto auto min-content;
}
header h1 {
font-size: x-large;
display: inline;
}
nav {
position: fixed;
top: 0;
bottom: 0;
width: 20em;
left: -20em;
transition: transform .3s ease-in-out;
}
#nav:target {
transform: translateX(20em);
}
.close {
display: block;
font-weight: bold;
text-align: right;
font-size: xx-large;
padding-right: 1em;
}
header {
box-shadow: 0 0.375em 0.375em #333;
}
footer {
text-align: center;
}
}