jekyll-theme-yat 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +52 -0
- data/_data/defaults.yml +4 -0
- data/_data/translate_langs.yml +30 -0
- data/_includes/extensions/comments/disqus.html +18 -0
- data/_includes/extensions/comments/gitment.html +15 -0
- data/_includes/extensions/geopattern.html +21 -0
- data/_includes/extensions/google-analytics.html +12 -0
- data/_includes/extensions/google-translate.html +98 -0
- data/_includes/extensions/hashlocate.html +39 -0
- data/_includes/extensions/mathjax.html +10 -0
- data/_includes/extensions/trianglify.html +23 -0
- data/_includes/functions/get_categories.html +12 -0
- data/_includes/functions/get_datetimes.html +18 -0
- data/_includes/functions/get_tags.html +12 -0
- data/_includes/functions/get_value.html +19 -0
- data/_includes/functions/log.html +17 -0
- data/_includes/functions.html +25 -0
- data/_includes/head.html +16 -0
- data/_includes/sidebar/archive-list.html +10 -0
- data/_includes/sidebar/article-menu.html +59 -0
- data/_includes/sidebar/category-list.html +9 -0
- data/_includes/sidebar/common-list.html +25 -0
- data/_includes/sidebar/google-translate.html +3 -0
- data/_includes/sidebar/tag-list.html +9 -0
- data/_includes/views/article.html +11 -0
- data/_includes/views/banner.html +66 -0
- data/_includes/views/footer.html +13 -0
- data/_includes/views/header.html +44 -0
- data/_includes/views/pagination.html +33 -0
- data/_includes/views/paginator.html +21 -0
- data/_includes/views/post-header.html +11 -0
- data/_includes/views/post-item.html +13 -0
- data/_includes/views/segments.html +21 -0
- data/_includes/views/site-brand.html +7 -0
- data/_layouts/404.html +25 -0
- data/_layouts/archives.html +18 -0
- data/_layouts/articles.html +14 -0
- data/_layouts/categories.html +16 -0
- data/_layouts/default.html +23 -0
- data/_layouts/framework.html +35 -0
- data/_layouts/home.html +8 -0
- data/_layouts/post.html +53 -0
- data/_layouts/tags.html +16 -0
- data/_sass/misc/article-menu.scss +47 -0
- data/_sass/misc/common-list.scss +49 -0
- data/_sass/misc/google-translate.scss +190 -0
- data/_sass/yat/_base.scss +258 -0
- data/_sass/yat/_layout.scss +388 -0
- data/_sass/yat/_syntax-highlighting.scss +105 -0
- data/_sass/yat.scss +69 -0
- data/assets/main.scss +25 -0
- metadata +179 -0
@@ -0,0 +1,190 @@
|
|
1
|
+
/* OVERRIDE GOOGLE TRANSLATE WIDGET CSS BEGIN */
|
2
|
+
|
3
|
+
%goog-te-menu {
|
4
|
+
a.goog-te-menu-value {
|
5
|
+
vertical-align: top !important;
|
6
|
+
|
7
|
+
&:hover {
|
8
|
+
text-decoration: none;
|
9
|
+
}
|
10
|
+
|
11
|
+
span {
|
12
|
+
color: #aaa;
|
13
|
+
}
|
14
|
+
|
15
|
+
span:hover {
|
16
|
+
color: white;
|
17
|
+
}
|
18
|
+
|
19
|
+
/* Remove the down arrow */
|
20
|
+
/* when dropdown open */
|
21
|
+
span[style="color: rgb(213, 213, 213);"] {
|
22
|
+
display: none;
|
23
|
+
}
|
24
|
+
/* after clicked/touched */
|
25
|
+
span[style="color: rgb(118, 118, 118);"] {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
/* on page load (not yet touched or clicked) */
|
29
|
+
span[style="color: rgb(155, 155, 155);"] {
|
30
|
+
display: none;
|
31
|
+
}
|
32
|
+
|
33
|
+
/* Remove span with left border line | (next to the arrow) in Chrome & Firefox */
|
34
|
+
span[style="border-left: 1px solid rgb(187, 187, 187);"] {
|
35
|
+
display: none;
|
36
|
+
}
|
37
|
+
/* Remove span with left border line | (next to the arrow) in Edge & IE11 */
|
38
|
+
span[style="border-left-color: rgb(187, 187, 187); border-left-width: 1px; border-left-style: solid;"] {
|
39
|
+
display: none;
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
div#google_translate_element {
|
45
|
+
display: inline;
|
46
|
+
|
47
|
+
div.goog-te-gadget {
|
48
|
+
display: inline;
|
49
|
+
font-size: 0;
|
50
|
+
}
|
51
|
+
|
52
|
+
div[id=':0.targetLanguage'] {
|
53
|
+
display: inline;
|
54
|
+
}
|
55
|
+
|
56
|
+
div.goog-te-gadget-simple {
|
57
|
+
border: none;
|
58
|
+
background-color: transparent;
|
59
|
+
|
60
|
+
@extend %goog-te-menu;
|
61
|
+
}
|
62
|
+
|
63
|
+
a.goog-logo-link {
|
64
|
+
display: none;
|
65
|
+
}
|
66
|
+
|
67
|
+
.goog-te-gadget-icon {
|
68
|
+
display: none !important;
|
69
|
+
/*background: url("url for the icon") 0 0 no-repeat !important;*/
|
70
|
+
}
|
71
|
+
|
72
|
+
a.goog-te-menu-value {
|
73
|
+
margin: 0;
|
74
|
+
|
75
|
+
span:first-child {
|
76
|
+
display: none;
|
77
|
+
}
|
78
|
+
|
79
|
+
&:before {
|
80
|
+
content: "\f1ab \f0d7";
|
81
|
+
font-family: FontAwesome;
|
82
|
+
font-size: initial;
|
83
|
+
color: #fefefe;
|
84
|
+
border: 1px solid #fefefe85;
|
85
|
+
border-radius: 3px;
|
86
|
+
padding: 3px 6px;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
.goog-te-menu-frame .goog-te-menu2 {
|
92
|
+
max-width: 100%;
|
93
|
+
overflow-x: auto;
|
94
|
+
box-sizing: border-box;
|
95
|
+
height: auto;
|
96
|
+
}
|
97
|
+
|
98
|
+
/* HIDE the google translate toolbar */
|
99
|
+
.goog-te-banner-frame.skiptranslate {
|
100
|
+
display: none !important;
|
101
|
+
border: none;
|
102
|
+
box-shadow: 0 0;
|
103
|
+
-webkit-box-shadow: 0 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
body {
|
107
|
+
top: 0px !important;
|
108
|
+
}
|
109
|
+
|
110
|
+
/* OVERRIDE GOOGLE TRANSLATE WIDGET CSS END */
|
111
|
+
|
112
|
+
|
113
|
+
// Main look
|
114
|
+
|
115
|
+
.ct-language-selected {
|
116
|
+
background: lighten($theme-color, 10%) !important;
|
117
|
+
}
|
118
|
+
|
119
|
+
.ct-language-dropdown {
|
120
|
+
overflow: hidden;
|
121
|
+
max-height: 0;
|
122
|
+
position: absolute;
|
123
|
+
top: 110%;
|
124
|
+
right: -10px;
|
125
|
+
-webkit-transition: all 0.25s ease-in-out;
|
126
|
+
transition: all 0.25s ease-in-out;
|
127
|
+
width: 100px;
|
128
|
+
text-align: center;
|
129
|
+
padding-top: 0;
|
130
|
+
z-index: 200;
|
131
|
+
|
132
|
+
li {
|
133
|
+
background: lighten($theme-color, 5%);
|
134
|
+
padding: 5px;
|
135
|
+
|
136
|
+
a {
|
137
|
+
display: block;
|
138
|
+
color: invert($theme-color);
|
139
|
+
|
140
|
+
img {
|
141
|
+
width: 24px;
|
142
|
+
max-height: 24px;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
&:first-child {
|
147
|
+
padding-top: 10px;
|
148
|
+
border-radius: 3px 3px 0 0;
|
149
|
+
}
|
150
|
+
|
151
|
+
&:last-child {
|
152
|
+
padding-bottom: 10px;
|
153
|
+
border-radius: 0 0 3px 3px;
|
154
|
+
}
|
155
|
+
|
156
|
+
&:hover {
|
157
|
+
@extend .ct-language-selected;
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
.list-unstyled {
|
164
|
+
display: inline-block;
|
165
|
+
list-style: none;
|
166
|
+
margin-left: 0;
|
167
|
+
}
|
168
|
+
|
169
|
+
.ct-language {
|
170
|
+
display: inline-block;
|
171
|
+
position: relative;
|
172
|
+
background: #fefefe2b;
|
173
|
+
padding: 3px 10px;
|
174
|
+
border-radius: 3px;
|
175
|
+
|
176
|
+
&:hover {
|
177
|
+
cursor: pointer;
|
178
|
+
|
179
|
+
.ct-language-dropdown {
|
180
|
+
padding-top: 8px;
|
181
|
+
max-height: 10000px;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
|
185
|
+
&:before {
|
186
|
+
content: "\f1ab \f0d7";
|
187
|
+
font-family: FontAwesome;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
@@ -0,0 +1,258 @@
|
|
1
|
+
/**
|
2
|
+
* Reset some basic elements
|
3
|
+
*/
|
4
|
+
body, h1, h2, h3, h4, h5, h6,
|
5
|
+
p, blockquote, pre, hr,
|
6
|
+
dl, dd, ol, ul, figure {
|
7
|
+
margin: 0;
|
8
|
+
padding: 0;
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Basic styling
|
15
|
+
*/
|
16
|
+
body {
|
17
|
+
font: $base-font-weight #{$base-font-size}/#{$base-line-height} $base-font-family;
|
18
|
+
color: $text-color;
|
19
|
+
background-color: $background-color;
|
20
|
+
-webkit-text-size-adjust: 100%;
|
21
|
+
-webkit-font-feature-settings: "kern" 1;
|
22
|
+
-moz-font-feature-settings: "kern" 1;
|
23
|
+
-o-font-feature-settings: "kern" 1;
|
24
|
+
font-feature-settings: "kern" 1;
|
25
|
+
font-kerning: normal;
|
26
|
+
display: flex;
|
27
|
+
min-height: 100vh;
|
28
|
+
flex-direction: column;
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Set `margin-bottom` to maintain vertical rhythm
|
35
|
+
*/
|
36
|
+
h1, h2, h3, h4, h5, h6,
|
37
|
+
p, blockquote, pre,
|
38
|
+
ul, ol, dl, figure,
|
39
|
+
%vertical-rhythm {
|
40
|
+
margin-bottom: $spacing-unit / 2;
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
/**
|
46
|
+
* `main` element
|
47
|
+
*/
|
48
|
+
main {
|
49
|
+
display: block; /* Default value of `display` of `main` element is 'inline' in IE 11. */
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
/**
|
55
|
+
* Images
|
56
|
+
*/
|
57
|
+
img {
|
58
|
+
max-width: 100%;
|
59
|
+
vertical-align: middle;
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
/**
|
65
|
+
* Figures
|
66
|
+
*/
|
67
|
+
figure > img {
|
68
|
+
display: block;
|
69
|
+
}
|
70
|
+
|
71
|
+
figcaption {
|
72
|
+
font-size: $small-font-size;
|
73
|
+
}
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
/**
|
78
|
+
* Lists
|
79
|
+
*/
|
80
|
+
ul, ol {
|
81
|
+
margin-left: $spacing-unit;
|
82
|
+
}
|
83
|
+
|
84
|
+
li {
|
85
|
+
> ul,
|
86
|
+
> ol {
|
87
|
+
margin-bottom: 0;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Headings
|
95
|
+
*/
|
96
|
+
h1, h2, h3, h4, h5, h6 {
|
97
|
+
font-weight: $base-font-weight * 1.5;
|
98
|
+
}
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Links
|
104
|
+
*/
|
105
|
+
a {
|
106
|
+
color: $brand-color;
|
107
|
+
text-decoration: none;
|
108
|
+
|
109
|
+
&:visited {
|
110
|
+
color: darken($brand-color, 15%);
|
111
|
+
}
|
112
|
+
|
113
|
+
&:hover {
|
114
|
+
color: $text-color;
|
115
|
+
text-decoration: underline;
|
116
|
+
}
|
117
|
+
|
118
|
+
.social-media-list &:hover {
|
119
|
+
text-decoration: none;
|
120
|
+
|
121
|
+
.username {
|
122
|
+
text-decoration: underline;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Blockquotes
|
130
|
+
*/
|
131
|
+
blockquote {
|
132
|
+
color: $grey-color;
|
133
|
+
border-left: 4px solid $grey-color-light;
|
134
|
+
padding-left: $spacing-unit / 2;
|
135
|
+
@include relative-font-size(1.125);
|
136
|
+
letter-spacing: -1px;
|
137
|
+
font-style: italic;
|
138
|
+
|
139
|
+
> :last-child {
|
140
|
+
margin-bottom: 0;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
/**
|
147
|
+
* Code formatting
|
148
|
+
*/
|
149
|
+
pre,
|
150
|
+
code {
|
151
|
+
@include relative-font-size(0.9375);
|
152
|
+
border-radius: 3px;
|
153
|
+
background-color: #3d3d3d;
|
154
|
+
}
|
155
|
+
|
156
|
+
code {
|
157
|
+
padding: 1px 5px;
|
158
|
+
}
|
159
|
+
|
160
|
+
pre {
|
161
|
+
padding: 8px 12px;
|
162
|
+
overflow-x: auto;
|
163
|
+
|
164
|
+
> code {
|
165
|
+
border: 0;
|
166
|
+
padding-right: 0;
|
167
|
+
padding-left: 0;
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
/**
|
174
|
+
* Wrapper
|
175
|
+
*/
|
176
|
+
.wrapper {
|
177
|
+
max-width: $content-width;
|
178
|
+
margin: auto;
|
179
|
+
padding-right: $spacing-unit;
|
180
|
+
padding-left: $spacing-unit;
|
181
|
+
@extend %clearfix;
|
182
|
+
|
183
|
+
@include media-query($on-laptop) {
|
184
|
+
padding-right: $spacing-unit / 2;
|
185
|
+
padding-left: $spacing-unit / 2;
|
186
|
+
}
|
187
|
+
}
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Clearfix
|
193
|
+
*/
|
194
|
+
%clearfix:after {
|
195
|
+
content: "";
|
196
|
+
display: table;
|
197
|
+
clear: both;
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
/**
|
202
|
+
* Tables
|
203
|
+
*/
|
204
|
+
table {
|
205
|
+
margin-bottom: $spacing-unit;
|
206
|
+
width: 100%;
|
207
|
+
text-align: $table-text-align;
|
208
|
+
color: lighten($text-color, 18%);
|
209
|
+
border-collapse: collapse;
|
210
|
+
border: 1px solid $grey-color-light;
|
211
|
+
tr {
|
212
|
+
&:nth-child(even) {
|
213
|
+
background-color: lighten($grey-color-light, 6%);
|
214
|
+
}
|
215
|
+
}
|
216
|
+
th, td {
|
217
|
+
padding: ($spacing-unit / 3) ($spacing-unit / 2);
|
218
|
+
}
|
219
|
+
th {
|
220
|
+
background-color: lighten($grey-color-light, 3%);
|
221
|
+
border: 1px solid darken($grey-color-light, 4%);
|
222
|
+
border-bottom-color: darken($grey-color-light, 12%);
|
223
|
+
}
|
224
|
+
td {
|
225
|
+
border: 1px solid $grey-color-light;
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
/**
|
230
|
+
* Vertical center
|
231
|
+
*/
|
232
|
+
%vertical-center {
|
233
|
+
position: absolute;
|
234
|
+
top: 50%;
|
235
|
+
transform: translateY(-50%);
|
236
|
+
}
|
237
|
+
|
238
|
+
/**
|
239
|
+
* Flex layout
|
240
|
+
*/
|
241
|
+
%flex-layout {
|
242
|
+
display: flex;
|
243
|
+
}
|
244
|
+
|
245
|
+
%flex-1 {
|
246
|
+
flex: 1;
|
247
|
+
min-width: 0; /* <-- fix flexbox width with pre tags */
|
248
|
+
}
|
249
|
+
|
250
|
+
/**
|
251
|
+
* Flex sticky
|
252
|
+
*/
|
253
|
+
@mixin flex-sticky($top) {
|
254
|
+
position: sticky;
|
255
|
+
align-self: flex-start; /* <-- fix the sticky not work issue */
|
256
|
+
transform: scale(0.9999); /* <-- fix the sticky x overflow issue */
|
257
|
+
top: $top;
|
258
|
+
}
|