domain-jekyll 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/_includes/Content.html +1 -0
- data/_includes/Header.html +18 -11
- data/_includes/PreviousNext.html +14 -0
- data/_includes/TwitterEmbed.html +5 -0
- data/_includes/YoutubeEmbed.html +4 -0
- data/_layouts/Default.html +3 -1
- data/_layouts/Home.html +27 -2
- data/_layouts/Post.html +1 -1
- data/_layouts/Tutorial.html +53 -0
- data/_layouts/Tutorials.html +20 -0
- data/_sass/domain/_author.scss +2 -2
- data/_sass/domain/_backtotop.scss +4 -4
- data/_sass/domain/_codecopy.scss +35 -35
- data/_sass/domain/_content.scss +0 -1
- data/_sass/domain/_contextmenu.scss +84 -84
- data/_sass/domain/_embed.scss +20 -0
- data/_sass/domain/_highlight.scss +25 -27
- data/_sass/domain/_media.scss +13 -9
- data/_sass/domain/_normalize.scss +217 -260
- data/_sass/domain/_pagination.scss +17 -15
- data/_sass/domain/_previousnext.scss +108 -0
- data/_sass/domain/_search.scss +0 -2
- data/_sass/domain/_sidenote.scss +1 -1
- data/_sass/domain/_tables.scss +18 -0
- data/_sass/domain/_tag.scss +4 -2
- data/_sass/domain/_toc.scss +24 -24
- data/_sass/domain/_tooltip.scss +114 -115
- data/_sass/domain/_util.scss +262 -267
- data/_sass/domain/skin/_dark.scss +22 -28
- data/_sass/domain/skin/_light.scss +2 -9
- data/_sass/domain.scss +3 -0
- data/assets/.DS_Store +0 -0
- data/assets/js/ContextMenu.js +8 -8
- metadata +10 -3
- data/_includes/Postlist.html +0 -26
@@ -0,0 +1,108 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
PreviousNext
|
3
|
+
========================================================================== */
|
4
|
+
/* Previous Next Page Buttons */
|
5
|
+
.previousnext {
|
6
|
+
float: left;
|
7
|
+
margin-bottom: 1em;
|
8
|
+
padding-bottom: 1em;
|
9
|
+
width: 100%;
|
10
|
+
|
11
|
+
ul {
|
12
|
+
margin: 0;
|
13
|
+
padding: 0;
|
14
|
+
list-style-type: none;
|
15
|
+
font-family: $font-family;
|
16
|
+
}
|
17
|
+
|
18
|
+
li {
|
19
|
+
display: block;
|
20
|
+
float: left;
|
21
|
+
margin-left: -1px;
|
22
|
+
|
23
|
+
a {
|
24
|
+
display: block;
|
25
|
+
margin-bottom: 0.25em;
|
26
|
+
padding: 0.5em 1em;
|
27
|
+
font-family: $font-family;
|
28
|
+
font-size: 14px;
|
29
|
+
font-weight: bold;
|
30
|
+
line-height: 1.5;
|
31
|
+
text-align: center;
|
32
|
+
text-decoration: none;
|
33
|
+
color: $primary-text-color;
|
34
|
+
border: 1px solid mix(#000, $footer-border-color, 25%);
|
35
|
+
border-radius: 0;
|
36
|
+
|
37
|
+
&:hover {
|
38
|
+
background-color: $quaternary-bg-color;
|
39
|
+
}
|
40
|
+
|
41
|
+
&.current,
|
42
|
+
&.current.disabled {
|
43
|
+
color: #fff;
|
44
|
+
background: $button-hover-color;
|
45
|
+
}
|
46
|
+
|
47
|
+
&.disabled {
|
48
|
+
color: rgba($primary-text-color, 0.5);
|
49
|
+
pointer-events: none;
|
50
|
+
cursor: not-allowed;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
&:first-child {
|
55
|
+
margin-left: 0;
|
56
|
+
|
57
|
+
a {
|
58
|
+
border-top-left-radius: 4px;
|
59
|
+
border-bottom-left-radius: 4px;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
&:last-child {
|
64
|
+
a {
|
65
|
+
border-top-right-radius: 4px;
|
66
|
+
border-bottom-right-radius: 4px;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
/* next/previous buttons */
|
72
|
+
&--pager {
|
73
|
+
display: block;
|
74
|
+
padding: 1em 2em;
|
75
|
+
float: left;
|
76
|
+
width: 50%;
|
77
|
+
font-family: $font-family;
|
78
|
+
font-size: 1em;
|
79
|
+
font-weight: bold;
|
80
|
+
text-align: center;
|
81
|
+
text-decoration: none;
|
82
|
+
color: $primary-text-color;
|
83
|
+
border: 1px solid mix(#000, $footer-border-color, 25%);
|
84
|
+
border-radius: 4px;
|
85
|
+
|
86
|
+
&:hover {
|
87
|
+
background-color: $quaternary-bg-color;
|
88
|
+
//@include yiq-contrasted($primary-text-color);
|
89
|
+
}
|
90
|
+
|
91
|
+
&:first-child {
|
92
|
+
border-top-right-radius: 0;
|
93
|
+
border-bottom-right-radius: 0;
|
94
|
+
}
|
95
|
+
|
96
|
+
&:last-child {
|
97
|
+
margin-left: -1px;
|
98
|
+
border-top-left-radius: 0;
|
99
|
+
border-bottom-left-radius: 0;
|
100
|
+
}
|
101
|
+
|
102
|
+
&.disabled {
|
103
|
+
color: rgba($primary-text-color, 0.5);
|
104
|
+
pointer-events: none;
|
105
|
+
cursor: not-allowed;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
data/_sass/domain/_search.scss
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
/* ==========================================================================
|
2
2
|
Search
|
3
3
|
========================================================================== */
|
4
|
-
|
5
4
|
.searchbar input[type="text"] {
|
6
5
|
position: relative;
|
7
6
|
padding-left: 50px;
|
@@ -206,7 +205,6 @@
|
|
206
205
|
opacity: 1;
|
207
206
|
transition: opacity ease 400ms, width 0s, height 0s;
|
208
207
|
}
|
209
|
-
|
210
208
|
//Buttons
|
211
209
|
/* Blogposts: Post-heading, Post-subheading, Post-content, Related Posts*/
|
212
210
|
.main-site-subheader {
|
data/_sass/domain/_sidenote.scss
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
/* ==========================================================================
|
2
|
+
Tables
|
3
|
+
========================================================================== */
|
4
|
+
.table-wrapper {
|
5
|
+
display: block;
|
6
|
+
width: 100%;
|
7
|
+
max-width: 100%;
|
8
|
+
margin-bottom: 24px;
|
9
|
+
overflow-x: auto;
|
10
|
+
border-radius: 4px;
|
11
|
+
//box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
|
12
|
+
}
|
13
|
+
|
14
|
+
table {
|
15
|
+
display: table;
|
16
|
+
min-width: 100%;
|
17
|
+
border-collapse: separate;
|
18
|
+
}
|
data/_sass/domain/_tag.scss
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
/* ==========================================================================
|
2
2
|
Tag
|
3
3
|
========================================================================== */
|
4
|
-
|
5
4
|
.tags {
|
6
5
|
margin: 0;
|
7
6
|
padding: 10px;
|
7
|
+
|
8
8
|
li {
|
9
9
|
display: inline-block;
|
10
10
|
margin: 5px;
|
11
11
|
list-style: none;
|
12
|
+
|
12
13
|
a {
|
13
14
|
text-decoration: none;
|
14
15
|
color: $primary-text-color;
|
@@ -16,7 +17,8 @@
|
|
16
17
|
padding: 5px 10px;
|
17
18
|
border: 1px solid $secondary-border-color;
|
18
19
|
background-color: $secondary-bg-color;
|
19
|
-
transition: all .3s;
|
20
|
+
transition: all 0.3s;
|
21
|
+
|
20
22
|
&:hover {
|
21
23
|
background-color: $quaternary-bg-color;
|
22
24
|
}
|
data/_sass/domain/_toc.scss
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
/* ==========================================================================
|
2
2
|
Table of Contents
|
3
3
|
========================================================================== */
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
4
|
+
#markdown-toc::before {
|
5
|
+
content: "Table of Contents";
|
6
|
+
font-weight: bold;
|
7
|
+
text-align: center;
|
8
|
+
}
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
10
|
+
#markdown-toc li {
|
11
|
+
margin-left: 1rem;
|
12
|
+
list-style: decimal;
|
13
|
+
}
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
15
|
+
#markdown-toc li * {
|
16
|
+
padding-left: 3px;
|
17
|
+
}
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
#markdown-toc {
|
20
|
+
border: 1px solid #aaa;
|
21
|
+
padding: 1.5em;
|
22
|
+
list-style: decimal;
|
23
|
+
display: inline-block;
|
24
|
+
}
|
25
25
|
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
#markdown-toc a {
|
27
|
+
text-decoration: none;
|
28
|
+
}
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
#markdown-toc a:hover {
|
31
|
+
text-decoration: underline;
|
32
|
+
}
|
data/_sass/domain/_tooltip.scss
CHANGED
@@ -1,118 +1,117 @@
|
|
1
1
|
/* ==========================================================================
|
2
2
|
Tooltip
|
3
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
|
-
}
|
4
|
+
.tooltip {
|
5
|
+
display: inline;
|
6
|
+
position: relative;
|
7
|
+
text-align: left;
|
8
|
+
}
|
9
|
+
|
10
|
+
.tooltip bottom {
|
11
|
+
display: none;
|
12
|
+
}
|
13
|
+
|
14
|
+
.tooltip .right {
|
15
|
+
min-width: 300px;
|
16
|
+
top: 50%;
|
17
|
+
left: 100%;
|
18
|
+
margin-left: 20px;
|
19
|
+
transform: translate(0, -50%);
|
20
|
+
padding: 10px 20px;
|
21
|
+
color: $primary-text-color;
|
22
|
+
background-color: $primary-bg-color;
|
23
|
+
font-weight: normal;
|
24
|
+
font-size: 13px;
|
25
|
+
border-radius: 8px;
|
26
|
+
position: absolute;
|
27
|
+
z-index: 99999999;
|
28
|
+
box-sizing: border-box;
|
29
|
+
box-shadow: 0 1px 8px $primary-box-shadow-color;
|
30
|
+
display: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
.tooltip:hover .right {
|
34
|
+
display: block;
|
35
|
+
}
|
36
|
+
|
37
|
+
.tooltip .right i {
|
38
|
+
position: absolute;
|
39
|
+
top: 50%;
|
40
|
+
right: 100%;
|
41
|
+
margin-top: -12px;
|
42
|
+
width: 12px;
|
43
|
+
height: 24px;
|
44
|
+
overflow: hidden;
|
45
|
+
}
|
46
|
+
|
47
|
+
.tooltip .right i::after {
|
48
|
+
content: '';
|
49
|
+
position: absolute;
|
50
|
+
width: 12px;
|
51
|
+
height: 12px;
|
52
|
+
left: 0;
|
53
|
+
top: 50%;
|
54
|
+
transform: translate(50%,-50%) rotate(-45deg);
|
55
|
+
background-color: $primary-bg-color;
|
56
|
+
box-shadow: 0 1px 8px $primary-box-shadow-color;
|
57
|
+
}
|
58
|
+
|
59
|
+
.right .tooltip-title {
|
60
|
+
font-size: 14px;
|
61
|
+
font-weight: 600;
|
62
|
+
display: inline-block;
|
63
|
+
}
|
64
|
+
|
65
|
+
.right .tooltip-excerpt {
|
66
|
+
font-size: 12px;
|
67
|
+
display: inline-block;
|
68
|
+
}
|
69
|
+
|
70
|
+
.right .tooltip-excerpt a {
|
71
|
+
font-size: 12px;
|
72
|
+
}
|
73
|
+
|
74
|
+
input.margin-toggle {
|
75
|
+
display: none;
|
76
|
+
}
|
77
|
+
|
78
|
+
.srs-svg {
|
79
|
+
stroke: $primary-text-color;
|
80
|
+
}
|
81
|
+
|
82
|
+
label.sidenote-number {
|
83
|
+
display: inline;
|
84
|
+
}
|
85
|
+
|
86
|
+
label.margin-toggle:not(.sidenote-number) {
|
87
|
+
display: none;
|
88
|
+
}
|
89
|
+
|
90
|
+
.spaced-rep {
|
91
|
+
display: none;
|
92
|
+
}
|
93
|
+
|
94
|
+
input.srs-toggle {
|
95
|
+
display: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
label.srs-toggle {
|
99
|
+
display: inline;
|
100
|
+
cursor: pointer;
|
101
|
+
}
|
102
|
+
|
103
|
+
.srs-toggle:checked + .spaced-rep {
|
104
|
+
display: block !important;
|
105
|
+
left: 1rem;
|
106
|
+
clear: both;
|
107
|
+
margin: 1rem 2.5%;
|
108
|
+
vertical-align: baseline;
|
109
|
+
position: relative;
|
110
|
+
padding: 12px;
|
111
|
+
width: 240px;
|
112
|
+
background-color: $primary-bg-color;
|
113
|
+
border: solid 1px $ternary-border-color;
|
114
|
+
border-radius: 5px;
|
115
|
+
box-shadow: 1px 1px 15px $secondary-box-shadow-color;
|
116
|
+
word-wrap: break-word;
|
117
|
+
}
|