-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.scss
71 lines (71 loc) · 1.28 KB
/
example.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
* {margin: 0;padding: 0; box-sizing: border-box;}
*::before {box-sizing: border-box;}
*::after {box-sizing: border-box;}
ul, ol {list-style: none;}
h1, h2, h3, h4, h5, h6 {font-weight: normal;}
a { text-decoration: none; color: inherit; }
pre {
font-family: "Fira Code Medium", Consolas, monospace;
}
$padding: 16px;
$main-color: #00ADB5;
$border-color: #eee;
body {
font-size: 16px;
}
.site-page {
background: #ffffff;
min-height: 100vh;
}
.site-main {
padding-top: 16px;
}
.site-header {
background: $border-color;
padding: 8px 0;
.logo {
padding: 0 $padding;
display: flex;
align-items: center;
> img {margin-right: 8px;}
> span {
color: $main-color;
font-size: 32px;
}
}
}
.site-aside {
border-right: 1px solid #EEEEEE;
margin-right: 16px;
h2 {
padding: $padding;
font-size: 18px;
}
ul {
min-width: 12em;
> li {
a {
color: #333;
display: block;
padding: 8px $padding;
&:hover {
color: $main-color;
}
&.active {
color: white;
background: $main-color;
}
}
}
}
}
.site-footer {
text-align: center;
font-size: 12px;
color: #666;
padding: 16px 0;
border-top: 1px solid $border-color;
}
.example {
padding: 16px 0;
}