-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtutorial.scss
199 lines (179 loc) · 3.99 KB
/
tutorial.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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/* TODO:
* + for each wrapped section display line on left side (to show nesting)
* + add margins (70 characters on line)
* and more dynamic font maybe or highlighting
* + list numbering in different color
* + increase header font size
* */
@import "colors.scss";
@import "html_default.scss";
$line-height: 25px;
$font-size: 15px;
// }}}
// variable setup {{{
// check "INFO" tags in file when applying to colorcheme
// It's filter adjasment most of time (like hue rotate)
// check "FUNNY" tags for things I can't understand (you might let me know how
// why it's done so)
$main-background-color: $color0;
$background-dark: darken($main-background-color, 5%);
/* used to separate sections from each other (like borders) */
$background-light: lighten($main-background-color, 18%);
$light: $color15;
$grey: lighten($color8, 00%);
// in this file will be use as MAIN COLOR
$link-color: $color2;
$stress1: $color1; /* current opened tab in repository */
$stress2: $color9; /* hi last commiter name */
$stress3: $color12;
$stress4: $color2;
$stress5: $color10;
$stress_sec1: darken($stress1, 35%);
$stress_sec2: darken($stress2, 35%);
$stress_sec3: darken($stress3, 35%);
$stress_sec4: darken($stress4, 35%);
$stress_sec5: darken($stress5, 35%);
/* color when you need to emphasize some section (neighter it's button
* or heading to something */
// $section-emph-border: lighten($color1, 5%);
$section-emph-border: lighten($color11, 0%);
$section-emph-background: darken($color11, 55%);
$button-emph-background: darken($stress3, 35%);
$button-emph-border: $stress3;
$sel-background: darken($color8, 25%);
$button-border-hover: #8d969e;
$debug: #7a5178;
// }}}
// default stylesheet {{{
body
{
background: $main-background-color;
color: $light;
// usually header
h1,h2,h3,h4,h5,h6
{
color: $light ;
}
// usually code
code,
pre
{
background: $background-dark ;
border-color: $background-light ;
color: $light ;
}
// emphasized text
strong, em
{
color: lighten($light, 5%) ;
}
}
// usually bottom of page
footer
{
p
{
color: $grey ;
}
}
a
{
border-color: $background-light ;
text-decoration: none ;
&:link
{
color: $stress2 ;
}
&:hover,
&:active
{
border-color: $button-border-hover ;
color: lighten($stress2,10%) ;
}
&:visited
{
color: $link-color ;
}
}
// }}}
// combine vw measuring unit with min-width meta variable
body {
margin-left: 3em;
// only inside of actual content (without table of contents)
& > div {
// increase space between lists
li {
margin-top: 10px;
margin-bottom: 10px;
}
// show unfolded sections with different color
input[type=checkbox]:checked + label {
h1, h2, h3, h4 {
color: $stress1;
}
}
// show folded sections with pure white color
input[type=checkbox] + label {
h1, h2, h3, h4 {
color: #fff;
}
}
}
}
// if screen is too big content will be limited in width
@media (min-width: 800px) {
body {
width: 800px;
}
}
// increaese font size for better readability
p, li
{
font-size: $font-size;
}
// table of contents {{{
ol {
counter-reset: item;
}
ol > li {
counter-increment: item;
}
ol ol > li {
display: block;
}
ol ol > li:before {
content: counters(item, ".") ". ";
margin-left: -20px;
}
// }}}
// code blocks {{{
// inline
code
{
border-radius: 4px;
padding: 2px 4px;
line-height: $line-height;
}
// block
pre
{
padding: 2px 4px;
font-size: $font-size;
}
// }}}
// collapsible content {{{
input[type='checkbox'] {
display: none;
}
.lbl-toggle {
cursor: pointer;
}
.collapsible-content {
max-height: 0px;
overflow: hidden;
transition: max-height .25s ease-in-out;
}
.toggle:checked + .lbl-toggle + .collapsible-content {
max-height: 100%;
}
// }}}