-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.scss
More file actions
127 lines (127 loc) · 2.28 KB
/
example.scss
File metadata and controls
127 lines (127 loc) · 2.28 KB
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
* {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; }
body {
font-family: 'Arial', sans-serif;
font-size: 16px;
}
pre {
font-family: "Fira Code Medium", Consolas, monospace;
}
$padding: 16px;
$main-color: #00ADB5;
$border-color: #eee;
.site-page {
background: #ffffff;
min-height: 100vh;
}
.site-main {
padding-top: 16px;
.ree-layout {
flex-direction: column;
&.hasAside {
flex-direction: row;
}
}
}
.site-header {
background: $border-color;
padding: 8px 0;
display: flex;
justify-content: space-between;
&-left {
display: flex;
align-items: center;
.toggle-sidebar {
display: none;
@media (max-width: 768px) {
display: flex;
}
padding-left: $padding;
align-items: center;
svg {
display: inline-block;
}
}
.logo {
padding: 0 $padding;
display: flex;
align-items: center;
svg {
display: inline-block;
}
}
}
}
.github {
padding: 0 $padding;
}
.site-aside {
border-right: 1px solid #EEEEEE;
margin-right: 16px;
&.open {
@media (max-width: 768px) {
display: block !important;
position: absolute;
top: 0;
left: 0;
width: 66.66666666666667%;
max-width: 240px;
height: 100vh;
background: #fff;
z-index: 10;
transform: translateX(0);
transition: transform 0.3s ease;
}
}
h2 {
padding: $padding;
font-size: 18px;
}
ul {
min-width: 12em;
margin-top: 12px;
> li {
padding: 8px 0;
a {
color: #333;
display: block;
padding: 8px $padding;
&:hover {
color: $main-color;
}
&.active {
color: white;
background: $main-color;
}
}
}
}
}
.site-main {
max-width: 105ch;
margin: 0 auto;
}
.site-footer {
text-align: center;
font-size: 12px;
color: #666;
padding: 16px 0;
border-top: 1px solid $border-color;
}
.mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100vh;
background: rgba(0, 0, 0, 0.5);
z-index: 9;
display: none;
&.active {
display: block;
}
}