_main.scss
2.7 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#main {
background: $main-bg;
margin: 0 0 $content-margin + $content-padding 0;
}
#body {
img, .video-container {
margin: 3rem auto;
display: block;
text-align: center;
&.border {
border: 2px solid #e6e6e6 !important;
padding: 2px;
}
&.shadow {
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
}
@extend .default-animation;
position: relative;
margin-left: $sidebar-width;
min-height: 100%;
.bordered {
border: 1px solid #ccc;
}
.padding {
@extend .default-animation;
padding: 3rem ($body-margin + 2rem);
@include breakpoint(desktop-only) {
position: static;
padding: 15px ($body-margin - 1rem);
}
@include breakpoint(mobile-only) {
padding: 5px 1rem;
}
}
h1 + hr {
margin-top: -1.7rem;
margin-bottom: 3rem;
}
#navigation {
@include breakpoint(desktop-only) {
position: static;
margin-right: 0 !important;
width: 100%;
display: table;
}
}
.nav {
@extend .default-animation;
position: fixed;
top: 0;
bottom: 0;
width: $body-margin;
font-size: 50px;
height: 100%;
cursor: pointer;
display: table;
text-align: center;
> i {
display: table-cell;
vertical-align: middle;
text-align: center;
}
@include breakpoint(desktop-only) {
display: table-cell;
position: static;
top: auto;
width: 50%;
text-align: center;
height: 100px;
line-height: 100px;
padding-top: 0;
> i {
display: inline-block;
}
}
&:hover {
background: $navbar-bg;
}
&.nav-pref {
left: 0;
}
&.nav-next {
right: 0;
}
}
}
#body-inner {
margin-bottom: 5rem;
}
// Chapter title
#chapter {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
padding: 2rem 0;
#body-inner {
padding-bottom: 3rem;
max-width: 80%;
}
h3 {
font-family: $font-family-default;
font-weight: $font-weight-regular;
text-align: center;
}
h1 {
font-size: 5rem;
border-bottom: 4px solid $rule-color;
}
p {
text-align: center;
font-size: 1.2rem;
}
}
#footer {
padding: 3rem 1rem;
color: darken($sidebar-link, 10%);
font-size: 13px;
p {
margin: 0;
}
}