spuit 0.1.2 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/.npmignore +1 -2
  3. data/Makefile +12 -0
  4. data/README.md +2 -1
  5. data/lib/spuit/version.rb +1 -1
  6. data/package.json +2 -25
  7. data/scss/components/_button.scss +28 -27
  8. data/scss/components/_group.scss +50 -0
  9. data/scss/components/_switch.scss +40 -24
  10. data/scss/components/_triangle.scss +4 -4
  11. data/scss/elements/{_custom-checkbox.scss → _custom-radio.scss} +31 -22
  12. data/scss/elements/_fieldset.scss +21 -49
  13. data/scss/elements/_input.scss +26 -11
  14. data/scss/elements/_radio.scss +39 -0
  15. data/scss/elements/_select.scss +7 -3
  16. data/scss/elements/_table.scss +4 -11
  17. data/scss/includes/_spacers.scss +1 -1
  18. data/scss/modules/_reset.scss +32 -0
  19. data/scss/spuit.scss +5 -1
  20. data/scss/variables/_defaults.scss +1 -0
  21. data/scss/variables/_fonts.scss +45 -0
  22. data/scss/variables/_media-queries.scss +2 -2
  23. data/site/.gitignore +117 -0
  24. data/site/README.md +12 -0
  25. data/site/archetypes/default.md +6 -0
  26. data/site/config.toml +24 -0
  27. data/site/content/posts/components.html +445 -0
  28. data/site/content/posts/example.md +66 -0
  29. data/site/content/posts/layouts.md +11 -0
  30. data/site/content/posts/layouts/2col.html +27 -0
  31. data/site/content/posts/layouts/holygrail.html +40 -0
  32. data/site/content/posts/layouts/stickyfooter.html +23 -0
  33. data/site/content/search.adoc +5 -0
  34. data/site/themes/spuit/.gitignore +68 -0
  35. data/site/themes/spuit/LICENSE.md +20 -0
  36. data/site/themes/spuit/README.md +66 -0
  37. data/site/themes/spuit/archetypes/default.md +7 -0
  38. data/{assets/javascripts/spuit → site/themes/spuit/assets/javascripts/_}/Common.js +0 -0
  39. data/{assets/javascripts/spuit → site/themes/spuit/assets/javascripts/_}/extend.js +0 -0
  40. data/site/themes/spuit/assets/javascripts/classes/HugoSearch.js +115 -0
  41. data/site/themes/spuit/assets/javascripts/classes/onof.js +107 -0
  42. data/site/themes/spuit/assets/javascripts/scripts.js +26 -0
  43. data/site/themes/spuit/assets/stylesheets/styles.scss +790 -0
  44. data/site/themes/spuit/assets/stylesheets/styles/components/_card.scss +160 -0
  45. data/site/themes/spuit/assets/stylesheets/styles/components/_syntax.scss +59 -0
  46. data/site/themes/spuit/assets/stylesheets/styles/config/_mixins.scss +8 -0
  47. data/site/themes/spuit/assets/stylesheets/styles/config/_variables.scss +6 -0
  48. data/site/themes/spuit/design/badge.sketch +0 -0
  49. data/site/themes/spuit/layouts/404.html +9 -0
  50. data/site/themes/spuit/layouts/_default/baseof.html +27 -0
  51. data/site/themes/spuit/layouts/_default/list.html +22 -0
  52. data/site/themes/spuit/layouts/_default/rss.xml +26 -0
  53. data/site/themes/spuit/layouts/_default/single.html +14 -0
  54. data/site/themes/spuit/layouts/_default/temp.html +5 -0
  55. data/site/themes/spuit/layouts/index.html +2 -0
  56. data/site/themes/spuit/layouts/json/single.html +28 -0
  57. data/site/themes/spuit/layouts/partials/foot.html +26 -0
  58. data/site/themes/spuit/layouts/partials/footer.html +5 -0
  59. data/site/themes/spuit/layouts/partials/head.html +52 -0
  60. data/site/themes/spuit/layouts/partials/header.html +4 -0
  61. data/site/themes/spuit/layouts/partials/parts/breadcrumbs.html +36 -0
  62. data/site/themes/spuit/layouts/partials/parts/info.html +19 -0
  63. data/site/themes/spuit/layouts/partials/parts/nextback.html +9 -0
  64. data/site/themes/spuit/layouts/partials/parts/pagenator.html +31 -0
  65. data/site/themes/spuit/layouts/partials/parts/pager.html +23 -0
  66. data/site/themes/spuit/layouts/partials/sidebar.html +52 -0
  67. data/site/themes/spuit/layouts/partials/widgets/archive.html +14 -0
  68. data/site/themes/spuit/layouts/partials/widgets/categories.html +12 -0
  69. data/site/themes/spuit/layouts/partials/widgets/recents.html +14 -0
  70. data/site/themes/spuit/layouts/partials/widgets/related.html +13 -0
  71. data/site/themes/spuit/layouts/partials/widgets/search-modal.html +19 -0
  72. data/site/themes/spuit/layouts/partials/widgets/search.html +10 -0
  73. data/site/themes/spuit/layouts/partials/widgets/tags.html +12 -0
  74. data/site/themes/spuit/layouts/shortcodes/blockquote.html +70 -0
  75. data/site/themes/spuit/layouts/shortcodes/card-amazon.html +28 -0
  76. data/site/themes/spuit/layouts/shortcodes/card-site.html +22 -0
  77. data/site/themes/spuit/layouts/shortcodes/card-store.html +28 -0
  78. data/site/themes/spuit/layouts/shortcodes/card-youtube.html +27 -0
  79. data/site/themes/spuit/layouts/shortcodes/previews.html +18 -0
  80. data/site/themes/spuit/package-lock.json +7959 -0
  81. data/site/themes/spuit/package.json +46 -0
  82. data/{dist → site/themes/spuit/static}/favicon.ico +0 -0
  83. data/site/themes/spuit/static/fonts/FontAwesome.otf +0 -0
  84. data/site/themes/spuit/static/fonts/fontawesome-webfont.eot +0 -0
  85. data/site/themes/spuit/static/fonts/fontawesome-webfont.svg +2671 -0
  86. data/site/themes/spuit/static/fonts/fontawesome-webfont.ttf +0 -0
  87. data/site/themes/spuit/static/fonts/fontawesome-webfont.woff +0 -0
  88. data/site/themes/spuit/static/fonts/fontawesome-webfont.woff2 +0 -0
  89. data/site/themes/spuit/static/images/appstore-badge.png +0 -0
  90. data/site/themes/spuit/static/images/appstore-badge_en.png +0 -0
  91. data/{dist → site/themes/spuit/static/images}/favicon.png +0 -0
  92. data/site/themes/spuit/static/images/google-play-badge.png +0 -0
  93. data/site/themes/spuit/static/images/google-play-badge_en.png +0 -0
  94. data/site/themes/spuit/static/javascripts/scripts.js +120 -0
  95. data/site/themes/spuit/static/stylesheets/styles.css +9763 -0
  96. data/site/themes/spuit/theme.toml +9 -0
  97. data/site/themes/spuit/webpack.config.js +10 -0
  98. data/site/themes/spuit/webpack/css.webpack.config.js +42 -0
  99. data/site/themes/spuit/webpack/js.webpack.config.js +21 -0
  100. data/site/themes/spuit/yarn.lock +6815 -0
  101. data/yarn.lock +337 -4942
  102. metadata +84 -16
  103. data/assets/html/index.ejs +0 -331
  104. data/assets/javascripts/scripts.js +0 -4
  105. data/assets/stylesheets/styles.scss +0 -191
  106. data/assets/stylesheets/styles/config/_mixins.scss +0 -26
  107. data/assets/stylesheets/styles/config/_variables.scss +0 -4
  108. data/dist/index.html +0 -1
  109. data/dist/javascripts/scripts.js +0 -1
  110. data/dist/stylesheets/styles.css +0 -3
  111. data/scss/_/_form.sass +0 -44
@@ -0,0 +1,107 @@
1
+ /*
2
+ howto:
3
+
4
+ import Onof from 'onof'
5
+
6
+ document.addEventListener("DOMContentLoaded", function () {
7
+ var onof = new Onof()
8
+ })
9
+
10
+ document.body.addEventListener('on.onof', function (e) {
11
+ console.log(e)
12
+ })
13
+
14
+ document.body.addEventListener('off.onof', function (e) {
15
+ console.log(e)
16
+ })
17
+
18
+ */
19
+
20
+ export default class {
21
+ constructor() {
22
+ this.init()
23
+ }
24
+ init() {
25
+ var elements = document.querySelectorAll('[data-onof]')
26
+ for (let i = 0; i < elements.length; i++) {
27
+ const el = elements[i]
28
+ const scope = this
29
+ el.onclick = function (e) {
30
+ e.preventDefault()
31
+ let className = scope.getClasstName(e)
32
+ let targetElements = scope.getTargetElements(e)
33
+ for (let index = 0; index < targetElements.length; index++) {
34
+ const element = targetElements[index]
35
+ let isActive = element.classList.toggle(className)
36
+
37
+ //複数ターゲットがある場合、最初の要素のアクティブ状態を採用
38
+ if (index === 0) {
39
+ //trigger class
40
+ if (isActive) {
41
+ el.classList.add('on')
42
+ } else {
43
+ el.classList.remove('on')
44
+ }
45
+
46
+ //call event
47
+ let evenType = 'off.onof'
48
+ if (isActive) {
49
+ evenType = 'on.onof'
50
+ }
51
+ scope.fireEvent(evenType, {
52
+ active: isActive,
53
+ target: element,
54
+ trigger: el
55
+ })
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ getClasstName(e) {
63
+ let className = 'on'
64
+ if (e.currentTarget.dataset.onof) {
65
+ className = e.currentTarget.dataset.onof
66
+ }
67
+ return className
68
+ }
69
+
70
+ getTargetName(e) {
71
+ let targetName
72
+ if (e.currentTarget.dataset.onofTarget) {
73
+ // if target is dataOnofTarget
74
+ targetName = e.currentTarget.dataset.onofTarget
75
+ } else if (e.currentTarget.href) {
76
+ // if target is anchor
77
+ let targetUrl = e.currentTarget.href
78
+ let targetUrls = targetUrl.split('/')
79
+ targetName = targetUrls[targetUrls.length - 1]
80
+ }
81
+ return targetName
82
+ }
83
+
84
+ getTargetElements(e) {
85
+ let targetName = this.getTargetName(e)
86
+
87
+ //TODO: [data-xxx]にも対応したい...
88
+
89
+ if (targetName.indexOf('#') !== -1) {
90
+ return [document.getElementById(targetName.replace('#', ''))]
91
+ } else if (targetName.indexOf('.') !== -1) {
92
+ return document.querySelectorAll(targetName)
93
+ }
94
+ return []
95
+ }
96
+
97
+ fireEvent(eventName, detail) {
98
+ let event
99
+ try {
100
+ event = new CustomEvent(eventName, { detail: detail })
101
+ } catch (e) {
102
+ event = document.createEvent('CustomEvent')
103
+ event.initCustomEvent(eventName, false, false, detail)
104
+ }
105
+ document.body.dispatchEvent(event)
106
+ }
107
+ }
@@ -0,0 +1,26 @@
1
+ import $ from 'jquery'
2
+ import bootstrap from 'bootstrap'
3
+ import HugoSearch from './classes/HugoSearch'
4
+ import Onof from './classes/onof'
5
+
6
+ document.addEventListener("DOMContentLoaded", function () {
7
+ var onof = new Onof()
8
+ })
9
+
10
+ document.body.addEventListener('on.onof', function (e) {
11
+ if (e.detail.target.id === 'hamburger') {
12
+ $('body').addClass('noscroll')
13
+ }
14
+ })
15
+
16
+ document.body.addEventListener('off.onof', function (e) {
17
+ if (e.detail.target.id === 'hamburger') {
18
+ $('body').delay(200).queue(() => {
19
+ $(this).removeClass('noscroll').dequeue()
20
+ })
21
+ }
22
+ })
23
+
24
+ $(function() {
25
+ var hugoSearch = new HugoSearch()
26
+ });
@@ -0,0 +1,790 @@
1
+ @import "~bootstrap/scss/bootstrap.scss";
2
+
3
+ // @import "~spuit/spuit";
4
+ @import "../../../../../scss/spuit";
5
+ @import "../../../../../scss/includes/grid";
6
+ @import "../../../../../scss/components/wrap";
7
+ @import "../../../../../scss/components/wordwrap-fadeout";
8
+ @import "../../../../../scss/components/triangle";
9
+ @import "../../../../../scss/variables/defaults";
10
+
11
+ @import "styles/config/variables";
12
+ @import "styles/config/mixins";
13
+
14
+ @import "styles/components/syntax";
15
+
16
+ @include include-animations;
17
+ @include include-normalize;
18
+ @include include-grid;
19
+
20
+ // @include include-spacers;
21
+
22
+ // basic styles
23
+
24
+ html {
25
+ font-size: 100%;
26
+ -webkit-scroll-behavior: smooth;
27
+ scroll-behavior: smooth;
28
+
29
+ @include breakpoint-down(md) {
30
+ font-size: 90%;
31
+ }
32
+ }
33
+
34
+ body {
35
+ @include font(0);
36
+ color: $color-black;
37
+
38
+ &.noscroll {
39
+ overflow: hidden;
40
+ padding-right: 15px;
41
+ }
42
+ }
43
+
44
+ a,
45
+ button,
46
+ input,
47
+ select,
48
+ td,
49
+ li {
50
+ @include font;
51
+ }
52
+
53
+ label,
54
+ legend {
55
+ margin: 0;
56
+ }
57
+
58
+ a {
59
+ color: $color-blue;
60
+ text-decoration: underline;
61
+
62
+ &:hover {
63
+ color: lighten($color-blue, 15%);
64
+ }
65
+
66
+ &:active {
67
+ outline: $outline-active;
68
+ }
69
+
70
+ &.no-underline {
71
+ text-decoration: none;
72
+ }
73
+ }
74
+
75
+ // layouts
76
+ $width-sidebar: 14rem;
77
+
78
+ .l-2col {
79
+ @include breakpoint-up(md) {
80
+ display: flex;
81
+
82
+ > aside {
83
+ width: $width-sidebar;
84
+ }
85
+
86
+ > main {
87
+ flex: 1;
88
+ overflow: auto;
89
+ }
90
+ }
91
+
92
+ @include breakpoint-down(md) {
93
+ > aside {
94
+ transition: all 0.2s ease-out;
95
+ margin-left: -$width-sidebar;
96
+ width: $width-sidebar;
97
+ overflow-y: auto;
98
+ height: 100vh;
99
+ top: 0;
100
+ left: 0;
101
+ position: fixed;
102
+ background: #fff;
103
+ }
104
+
105
+ > main {
106
+ margin-left: 0;
107
+ margin-right: 0;
108
+ transition: all 0.2s ease-out;
109
+ }
110
+
111
+ &.open {
112
+ margin-left: 0;
113
+
114
+ > aside {
115
+ margin-left: 0;
116
+ }
117
+
118
+ > main {
119
+ margin-left: $width-sidebar;
120
+ margin-right: -$width-sidebar;
121
+ }
122
+ }
123
+ }
124
+ }
125
+
126
+ .hamburger {
127
+ @include breakpoint-up(md) {
128
+ display: none;
129
+ }
130
+ @include breakpoint-down(md) {
131
+ line-height: 1;
132
+ margin: 0;
133
+ padding: 0;
134
+ border: 0;
135
+ display: inline-block;
136
+ vertical-align: middle;
137
+ cursor: pointer;
138
+ position: fixed;
139
+ top: 0;
140
+ z-index: 1;
141
+ transition: all 0.2s ease-out;
142
+ width: 0;
143
+ line-height: 0;
144
+
145
+ .icon-hamburger {
146
+ @include icon-hamburger;
147
+ z-index: 101;
148
+ position: relative;
149
+ vertical-align: top;
150
+
151
+ &::before {
152
+ vertical-align: top;
153
+ }
154
+ }
155
+
156
+ &.on {
157
+ //overlay
158
+ &::after {
159
+ content: "";
160
+ position: fixed;
161
+ top: 0;
162
+ width: 100vw;
163
+ height: 100vh;
164
+ background-color: rgba(#ddd, 0.5);
165
+ }
166
+ }
167
+ }
168
+ }
169
+
170
+ .l-2col {
171
+ > aside {
172
+ flex: 0 0 $width-sidebar;
173
+ }
174
+
175
+ main {
176
+ min-width: 20rem;
177
+ flex-grow: 1;
178
+ }
179
+ }
180
+
181
+ // components
182
+
183
+ .header {
184
+ padding: 2rem;
185
+ }
186
+
187
+ .footer {
188
+ padding: 2rem;
189
+ }
190
+
191
+ .sidebar {
192
+ position: -webkit-sticky;
193
+ position: sticky;
194
+ top: 0;
195
+ padding: 2rem;
196
+
197
+ ul {
198
+ @include group-vertical;
199
+ }
200
+ }
201
+
202
+ .content {
203
+ @include word-break;
204
+ padding: 2rem;
205
+ }
206
+
207
+ .search-modal.modal {
208
+ .modal-dialog {
209
+ margin-top: -1px;
210
+ max-width: 700px;
211
+
212
+ .modal-content {
213
+ border-radius: 0 0 0.3rem 0.3rem;
214
+ }
215
+ }
216
+
217
+ input {
218
+ @include input-normal(100%);
219
+ margin: 0;
220
+ }
221
+ ul {
222
+ margin: 20px 0 0 0;
223
+ padding: 0;
224
+ list-style: none;
225
+
226
+ &:empty {
227
+ display: none;
228
+ }
229
+ }
230
+ #search-results {
231
+ h5 {
232
+ font-size: 0.875rem;
233
+ }
234
+ p {
235
+ font-size: 0.875rem;
236
+ white-space: nowrap;
237
+ overflow: hidden;
238
+ text-overflow: ellipsis;
239
+ }
240
+ }
241
+ }
242
+
243
+ //--------------------------------------------------
244
+
245
+ .layout-preview {
246
+ padding: 1rem;
247
+ background-color: adjust-hue(lighten(red, 40%), 0%);
248
+
249
+ @for $i from 0 to 36 {
250
+ &.c#{$i} {
251
+ background-color: adjust-hue(lighten(red, 40%), $i * 10%);
252
+ }
253
+ }
254
+ }
255
+
256
+ .title-lg {
257
+ @include font(3, 1);
258
+ margin-bottom: 0.5rem;
259
+ }
260
+
261
+ .title-xs {
262
+ @include font(-3, 1);
263
+ color: #aaa;
264
+ background-color: #f8f8f8;
265
+ display: inline-block;
266
+ margin-bottom: 0.5rem;
267
+ }
268
+
269
+ .preview {
270
+ @include word-break;
271
+ border: 1px solid #eee;
272
+ margin: 1rem 0;
273
+ padding: 1rem;
274
+
275
+ h1,
276
+ h2,
277
+ h3,
278
+ h4,
279
+ h5,
280
+ h6 {
281
+ margin: 0 0 1rem;
282
+ padding: 0;
283
+ &:first-child {
284
+ margin-top: 0;
285
+ }
286
+ }
287
+
288
+ h1 {
289
+ @include font(6, 1, bold);
290
+ }
291
+ h2 {
292
+ @include font(5, 1, bold);
293
+ }
294
+ h3 {
295
+ @include font(4, 1, bold);
296
+ }
297
+ h4 {
298
+ @include font(3, 1, bold);
299
+ }
300
+ h5 {
301
+ @include font(2, 1, bold);
302
+ }
303
+ h6 {
304
+ @include font(1, 1, bold);
305
+ }
306
+ p {
307
+ @include font(0, 1);
308
+
309
+ a {
310
+ @include font;
311
+ }
312
+
313
+ &.has-indent {
314
+ text-indent: 2rem;
315
+ }
316
+ }
317
+ small {
318
+ @include font(-3, 1);
319
+ }
320
+
321
+ .red {
322
+ color: red;
323
+ }
324
+
325
+ blockquote {
326
+ @include font(2);
327
+ font-style: italic;
328
+ color: $color-gray;
329
+
330
+ cite {
331
+ @include font(0);
332
+ display: block;
333
+ margin-top: 1rem;
334
+ text-align: right;
335
+
336
+ &::before {
337
+ content: '';
338
+ display: inline-block;
339
+ width: 5rem;
340
+ height: 0;
341
+ border-top: 1px solid $color-gray;
342
+ vertical-align: middle;
343
+ margin-right: 0.2rem;
344
+ }
345
+ }
346
+ }
347
+
348
+ .button {
349
+ @include button-normal;
350
+
351
+ &.has-loading {
352
+ @include button-loading;
353
+ }
354
+ }
355
+
356
+ .button-semiflat {
357
+ @include font;
358
+ @include button-semiflat;
359
+ }
360
+ .button-outline {
361
+ @include font;
362
+ @include button-outline;
363
+ }
364
+ .button-emboss {
365
+ @include font;
366
+ @include button-emboss;
367
+ }
368
+ .button-link {
369
+ @include button-base;
370
+ }
371
+
372
+ .group {
373
+ &-stretch {
374
+ @include group-stretch;
375
+ }
376
+
377
+ &-center {
378
+ @include group-center;
379
+ }
380
+
381
+ &-vertical {
382
+ @include group-vertical;
383
+ }
384
+
385
+ &-lined {
386
+ @include group-lined;
387
+ }
388
+ }
389
+
390
+ .fieldset {
391
+ &-horizontal {
392
+ @include fieldset-horizontal;
393
+ }
394
+
395
+ &-vertical {
396
+ @include fieldset-vertical;
397
+ }
398
+ }
399
+
400
+ label,
401
+ legend,
402
+ select {
403
+ @include font(0, 1);
404
+ }
405
+
406
+ input[type="text"],
407
+ textarea {
408
+ @include input-normal(100%);
409
+ @include font(0, 1);
410
+ }
411
+
412
+ input[type="file"] {
413
+ @include file-normal(100%);
414
+ @include font(-1, 1);
415
+ }
416
+
417
+ textarea {
418
+ height: 120px;
419
+ }
420
+
421
+ .radio,
422
+ .checkbox {
423
+ @include radio-normal;
424
+ }
425
+
426
+ .custom-radio {
427
+ @include custom-radio-normal;
428
+ }
429
+
430
+ .custom-checkbox {
431
+ @include custom-checkbox-normal;
432
+ }
433
+
434
+ .switch {
435
+ @include switch-normal(38px, 20px, #529ef6, 5px);
436
+ }
437
+
438
+ .select {
439
+ @include select-normal;
440
+ }
441
+
442
+ .table {
443
+ @include table-normal;
444
+ @include font(-1, 1);
445
+
446
+ &-line {
447
+ @include table-line;
448
+ @include font(-1, 1);
449
+ }
450
+
451
+ &-stripe {
452
+ @include table-stripe;
453
+ @include font(-1, 1);
454
+ }
455
+ }
456
+
457
+ .reset-ul {
458
+ @include reset-ul;
459
+ }
460
+
461
+ .word-break {
462
+ @include word-break;
463
+ display: inline-block;
464
+ width: 100px;
465
+ background: #f8f8f8;
466
+ padding: 10px;
467
+ }
468
+
469
+ .no-word-break {
470
+ @include word-break(false);
471
+ display: inline-block;
472
+ width: 100px;
473
+ background: #f8f8f8;
474
+ padding: 1rem;
475
+ }
476
+
477
+ .text-overflow {
478
+ @include text-overflow();
479
+ display: inline-block;
480
+ width: 100px;
481
+ background: #f8f8f8;
482
+ padding: 1rem;
483
+ }
484
+
485
+ .wordwrap-fadeout {
486
+ @include wordwrap-fadeout;
487
+ }
488
+
489
+ .balloon {
490
+ $c: rgba($color-black, 0.2);
491
+ display: inline-block;
492
+ width: 6rem;
493
+ height: 2rem;
494
+ background-color: $c;
495
+
496
+ &.l {
497
+ @include triangle($c, 0.4rem, 0.7rem, 0, 50%, "left", "after");
498
+ }
499
+ &.t {
500
+ @include triangle($c, 0.7rem, 0.4rem, 50%, 0, "top", "after");
501
+ }
502
+ &.r {
503
+ @include triangle($c, 0.4rem, 0.7rem, 0, 50%, "right", "after");
504
+ }
505
+ &.b {
506
+ @include triangle($c, 0.7rem, 0.4rem, 50%, 0, "bottom", "after");
507
+ }
508
+ }
509
+
510
+ .icon {
511
+ &-twitter {
512
+ @include icon-twitter;
513
+ }
514
+ &-facebook {
515
+ @include icon-facebook;
516
+ }
517
+ &-hatena {
518
+ @include icon-hatena;
519
+ }
520
+ &-hamburger {
521
+ @include icon-hamburger;
522
+ }
523
+
524
+ &-svg {
525
+ &::before {
526
+ content: "";
527
+ @include background-map-svg($map-svg-star);
528
+ }
529
+ }
530
+ }
531
+ }
532
+
533
+ //--------------------------------------------------
534
+
535
+ // .btn {
536
+ // @include button;
537
+ // }
538
+
539
+ // .header {
540
+ // a {
541
+ // @include font(1rem, 1.8rem);
542
+ // color: $color-black;
543
+
544
+ // &:hover {
545
+ // color: $color-blue;
546
+ // text-decoration: none;
547
+ // }
548
+ // }
549
+ // }
550
+
551
+ // .entries {
552
+ // &__item {
553
+ // padding-bottom: 20px;
554
+
555
+ // h1, h1 a {
556
+ // @include font(1.4rem, 2.4rem);
557
+ // }
558
+ // a {
559
+ // color: $color-blue;
560
+ // }
561
+ // h1 {
562
+ // a {
563
+ // text-decoration: none;
564
+ // padding-bottom: .3rem;
565
+
566
+ // &:hover {
567
+ // text-decoration: none;
568
+ // border-bottom: 1px solid $color-blue;
569
+ // }
570
+ // }
571
+ // }
572
+ // }
573
+ // &__item-content {
574
+ // color: $color-gray;
575
+ // }
576
+ // }
577
+
578
+ // .entry {
579
+ // h1, h1 a {
580
+ // @include font(1.8rem, 2.8rem);
581
+ // }
582
+
583
+ // a {
584
+ // color: $color-blue;
585
+ // }
586
+
587
+ // p, a {
588
+ // @include font(.9125rem, 2rem);
589
+ // }
590
+
591
+ // &__content {
592
+ // img {
593
+ // max-width: 100%;
594
+ // }
595
+ // }
596
+ // }
597
+
598
+ // .info {
599
+ // @include font(.75rem, 1);
600
+ // color: $color-gray;
601
+ // padding-bottom: 10px;
602
+
603
+ // a {
604
+ // @include font(.75rem, 1);
605
+ // }
606
+ // }
607
+
608
+ // .profile {
609
+ // &__info {
610
+ // margin: 10px 0 20px;
611
+
612
+ // p {
613
+ // @include font(.75rem);
614
+ // margin-bottom: 5px;
615
+ // }
616
+ // }
617
+
618
+ // &__links {
619
+ // list-style: none;
620
+
621
+ // li {
622
+ // display: inline-block;
623
+ // a {
624
+ // display: inline-block;
625
+ // font-size: .6125rem !important;
626
+ // color: $color-black !important;
627
+ // background: #f2f2f2;
628
+ // border-radius: 30px;
629
+ // text-align: center;
630
+ // padding: 2px 10px;
631
+
632
+ // &:hover {
633
+ // text-decoration: none;
634
+ // background: $color-blue;
635
+ // color: #fff !important;
636
+ // }
637
+ // }
638
+ // }
639
+ // }
640
+ // }
641
+
642
+ // .widget {
643
+ // padding-bottom: 40px;
644
+
645
+ // h5 {
646
+ // @include font(.6125rem, 1);
647
+ // color: #ddd;
648
+ // text-transform: uppercase;
649
+ // }
650
+ // ul {
651
+ // list-style: none;
652
+ // margin: 0;
653
+ // padding: 0;
654
+ // li {
655
+ // @include font(.6125rem, 1);
656
+ // color: $color-gray;
657
+ // padding-bottom: 10px;
658
+ // a {
659
+ // @include font(.875rem, 1.6rem);
660
+ // color: $color-black;
661
+
662
+ // &:hover {
663
+ // color: $color-blue;
664
+
665
+ // }
666
+ // }
667
+ // }
668
+ // }
669
+ // }
670
+
671
+ // .pagenator {
672
+ // text-align: center;
673
+ // ul {
674
+ // list-style: none;
675
+ // margin: 0;
676
+ // padding: 0;
677
+ // li {
678
+ // display: inline-block;
679
+ // padding: 0 .5rem;
680
+ // a {
681
+ // @include font(1rem, 1);
682
+ // color: $color-blue;
683
+ // }
684
+ // }
685
+ // }
686
+ // }
687
+
688
+ // .breadcrumbs {
689
+ // margin-bottom: 1rem;
690
+ // ol {
691
+ // display: inline-block;
692
+ // margin: 0;
693
+ // padding: 0;
694
+ // list-style: none;
695
+ // li {
696
+ // @include font(.75rem);
697
+ // display: inline-block;
698
+ // color: $color-gray;
699
+
700
+ // &:before {
701
+ // content: '>';
702
+ // }
703
+
704
+ // &:first-child {
705
+ // &:before {
706
+ // display: none;
707
+ // }
708
+ // }
709
+
710
+ // a {
711
+ // color: $color-blue;
712
+ // }
713
+ // }
714
+ // }
715
+ // }
716
+
717
+ // .related {
718
+ // padding: 1rem 0;
719
+
720
+ // ul {
721
+ // li {
722
+ // display: inline-block;
723
+ // a {
724
+ // display: inline-block;
725
+ // border: 1px solid #eee;
726
+ // padding: 10px 10px;
727
+
728
+ // &:hover {
729
+ // text-decoration: none;
730
+ // border-color: $color-blue;
731
+ // }
732
+ // }
733
+ // }
734
+ // }
735
+ // }
736
+
737
+ // .nextback {
738
+ // > a {
739
+ // display: block;
740
+ // border: 1px solid #eee;
741
+ // padding: 5px 10px;
742
+ // margin-bottom: 10px;
743
+
744
+ // &:hover {
745
+ // text-decoration: none;
746
+ // border-color: $color-blue;
747
+ // }
748
+ // }
749
+ // }
750
+
751
+ // .previews {
752
+ // $c: #f8f8f8;
753
+ // margin: 2rem 0;
754
+
755
+ // h5 {
756
+ // @include font(.6125rem, 1);
757
+ // color: #ddd;
758
+ // text-transform: uppercase;
759
+ // }
760
+
761
+ // ul {
762
+ // display: flex;
763
+ // padding: 40px;
764
+ // border-radius: 10px;
765
+ // background: $c;
766
+ // list-style: none;
767
+ // @include breakpoint-down(md) {
768
+ // padding: 20px;
769
+ // justify-content: center;
770
+ // }
771
+ // li {
772
+ // margin: 40px;
773
+ // max-height: 600px;
774
+ // overflow: hidden;
775
+ // @include wordwrap-fadeout(60px, 0, $c);
776
+ // @include breakpoint-down(md) {
777
+ // margin: 20px;
778
+ // }
779
+ // }
780
+ // }
781
+ // }
782
+
783
+ // .highlight {
784
+ // padding-bottom: 20px;
785
+
786
+ // > pre {
787
+ // padding: 15px;
788
+ // border-radius: 3px;
789
+ // }
790
+ // }