jekyll-text-theme-fork 2.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (224) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +235 -0
  3. data/LICENSE +21 -0
  4. data/README.md +89 -0
  5. data/_data/authors.yml +0 -0
  6. data/_data/licenses.yml +16 -0
  7. data/_data/locale.yml +169 -0
  8. data/_data/navigation.yml +52 -0
  9. data/_data/variables.yml +64 -0
  10. data/_includes/analytics-providers/custom.html +3 -0
  11. data/_includes/analytics-providers/google.html +14 -0
  12. data/_includes/analytics.html +7 -0
  13. data/_includes/article/footer/author-profile.html +47 -0
  14. data/_includes/article/footer/custom.html +3 -0
  15. data/_includes/article/footer/license.html +14 -0
  16. data/_includes/article/footer/subscribe.html +6 -0
  17. data/_includes/article/top/custom.html +3 -0
  18. data/_includes/article-footer.html +55 -0
  19. data/_includes/article-header.html +49 -0
  20. data/_includes/article-info.html +96 -0
  21. data/_includes/article-list.html +144 -0
  22. data/_includes/article-section-navigator.html +54 -0
  23. data/_includes/aside/toc.html +1 -0
  24. data/_includes/author-links.html +120 -0
  25. data/_includes/comments-providers/custom.html +3 -0
  26. data/_includes/comments-providers/disqus.html +22 -0
  27. data/_includes/comments-providers/gitalk.html +39 -0
  28. data/_includes/comments-providers/valine.html +46 -0
  29. data/_includes/comments.html +11 -0
  30. data/_includes/extensions/bilibili.html +5 -0
  31. data/_includes/extensions/codepen.html +4 -0
  32. data/_includes/extensions/netease-cloud-music.html +4 -0
  33. data/_includes/extensions/slideshare.html +6 -0
  34. data/_includes/extensions/soundcloud.html +4 -0
  35. data/_includes/extensions/ted.html +5 -0
  36. data/_includes/extensions/youtube.html +4 -0
  37. data/_includes/footer.html +37 -0
  38. data/_includes/head/custom.html +3 -0
  39. data/_includes/head/favicon.html +26 -0
  40. data/_includes/head.html +24 -0
  41. data/_includes/header.html +44 -0
  42. data/_includes/main/bottom/custom.html +3 -0
  43. data/_includes/main/top/custom.html +3 -0
  44. data/_includes/markdown-enhancements/chart.html +15 -0
  45. data/_includes/markdown-enhancements/mathjax.html +17 -0
  46. data/_includes/markdown-enhancements/mermaid.html +10 -0
  47. data/_includes/markdown-enhancements.html +17 -0
  48. data/_includes/pageview-providers/custom/home.html +3 -0
  49. data/_includes/pageview-providers/custom/post.html +3 -0
  50. data/_includes/pageview-providers/leancloud/home.html +35 -0
  51. data/_includes/pageview-providers/leancloud/leancloud.js +72 -0
  52. data/_includes/pageview-providers/leancloud/post.html +31 -0
  53. data/_includes/pageview.html +29 -0
  54. data/_includes/paginator.html +98 -0
  55. data/_includes/scripts/archieve.js +135 -0
  56. data/_includes/scripts/article.js +24 -0
  57. data/_includes/scripts/aside/affix.js +26 -0
  58. data/_includes/scripts/aside/toc.js +35 -0
  59. data/_includes/scripts/common.js +7 -0
  60. data/_includes/scripts/components/lightbox.js +49 -0
  61. data/_includes/scripts/components/search.js +86 -0
  62. data/_includes/scripts/components/sidebar.js +30 -0
  63. data/_includes/scripts/home.js +3 -0
  64. data/_includes/scripts/lib/affix.js +111 -0
  65. data/_includes/scripts/lib/gallery.js +192 -0
  66. data/_includes/scripts/lib/lazyload.js +143 -0
  67. data/_includes/scripts/lib/modal.js +64 -0
  68. data/_includes/scripts/lib/scroll-to.js +13 -0
  69. data/_includes/scripts/lib/swiper.js +203 -0
  70. data/_includes/scripts/lib/throttle.js +28 -0
  71. data/_includes/scripts/lib/toc.js +107 -0
  72. data/_includes/scripts/page.js +3 -0
  73. data/_includes/scripts/utils/imagesLoad.js +28 -0
  74. data/_includes/scripts/utils/utils.js +39 -0
  75. data/_includes/scripts/variables.html +35 -0
  76. data/_includes/search-providers/custom/search.html +3 -0
  77. data/_includes/search-providers/default/search-data.js +14 -0
  78. data/_includes/search-providers/default/search.html +18 -0
  79. data/_includes/search-providers/default/search.js +112 -0
  80. data/_includes/search-providers/google-custom-search-engine/search.html +21 -0
  81. data/_includes/search-providers/google-custom-search-engine/search.js +33 -0
  82. data/_includes/search.html +20 -0
  83. data/_includes/sharing-providers/addthis.html +9 -0
  84. data/_includes/sharing-providers/addtoany.html +10 -0
  85. data/_includes/sharing-providers/custom.html +3 -0
  86. data/_includes/sharing.html +7 -0
  87. data/_includes/sidebar/toc.html +25 -0
  88. data/_includes/snippets/assign.html +9 -0
  89. data/_includes/snippets/get-article-title.html +11 -0
  90. data/_includes/snippets/get-lang.html +6 -0
  91. data/_includes/snippets/get-locale-string.html +12 -0
  92. data/_includes/snippets/get-nav-url.html +8 -0
  93. data/_includes/snippets/get-sources.html +2 -0
  94. data/_includes/snippets/get-string-from-locale-config.html +7 -0
  95. data/_includes/snippets/is_collection.html +6 -0
  96. data/_includes/snippets/page-url.html +2 -0
  97. data/_includes/snippets/prepend-baseurl.html +4 -0
  98. data/_includes/snippets/prepend-path.html +1 -0
  99. data/_includes/svg/icon/social/behance.svg +3 -0
  100. data/_includes/svg/icon/social/douban.svg +5 -0
  101. data/_includes/svg/icon/social/facebook.svg +3 -0
  102. data/_includes/svg/icon/social/flicker.svg +5 -0
  103. data/_includes/svg/icon/social/github.svg +3 -0
  104. data/_includes/svg/icon/social/googleplus.svg +3 -0
  105. data/_includes/svg/icon/social/linkedin.svg +3 -0
  106. data/_includes/svg/icon/social/mail.svg +6 -0
  107. data/_includes/svg/icon/social/medium.svg +3 -0
  108. data/_includes/svg/icon/social/npm.svg +9 -0
  109. data/_includes/svg/icon/social/pinterest.svg +3 -0
  110. data/_includes/svg/icon/social/qq.svg +3 -0
  111. data/_includes/svg/icon/social/telegram.svg +4 -0
  112. data/_includes/svg/icon/social/twitter.svg +3 -0
  113. data/_includes/svg/icon/social/weibo.svg +6 -0
  114. data/_includes/svg/icon/social/weixin.svg +3 -0
  115. data/_includes/svg/icon/social/zhihu.svg +3 -0
  116. data/_includes/svg/logo.svg +8 -0
  117. data/_includes/tags.html +52 -0
  118. data/_layouts/404.html +13 -0
  119. data/_layouts/archive.html +40 -0
  120. data/_layouts/article.html +29 -0
  121. data/_layouts/articles.html +89 -0
  122. data/_layouts/base.html +25 -0
  123. data/_layouts/home.html +43 -0
  124. data/_layouts/landing.html +178 -0
  125. data/_layouts/none.html +1 -0
  126. data/_layouts/page.html +270 -0
  127. data/_sass/additional/_alert.scss +29 -0
  128. data/_sass/additional/_photo-frame.scss +17 -0
  129. data/_sass/additional/_tag.scss +21 -0
  130. data/_sass/animate/_fade-in-down.scss +10 -0
  131. data/_sass/animate/_fade-in-up.scss +10 -0
  132. data/_sass/animate/_fade-in.scss +8 -0
  133. data/_sass/common/_classes.scss +24 -0
  134. data/_sass/common/_function.scss +15 -0
  135. data/_sass/common/_print.scss +20 -0
  136. data/_sass/common/_reset.scss +174 -0
  137. data/_sass/common/_variables.scss +150 -0
  138. data/_sass/common/classes/_animation.scss +13 -0
  139. data/_sass/common/classes/_clearfix.scss +19 -0
  140. data/_sass/common/classes/_clickable.scss +159 -0
  141. data/_sass/common/classes/_display.scss +13 -0
  142. data/_sass/common/classes/_flex.scss +394 -0
  143. data/_sass/common/classes/_grid.scss +80 -0
  144. data/_sass/common/classes/_horizontal-rules.scss +14 -0
  145. data/_sass/common/classes/_link.scss +12 -0
  146. data/_sass/common/classes/_media.scss +17 -0
  147. data/_sass/common/classes/_overflow.scss +26 -0
  148. data/_sass/common/classes/_pseudo.scss +33 -0
  149. data/_sass/common/classes/_shadow.scss +22 -0
  150. data/_sass/common/classes/_spacing.scss +81 -0
  151. data/_sass/common/classes/_split-line.scss +24 -0
  152. data/_sass/common/classes/_text.scss +37 -0
  153. data/_sass/common/classes/_transform.scss +4 -0
  154. data/_sass/common/classes/_transition.scss +4 -0
  155. data/_sass/common/classes/_user-select.scss +6 -0
  156. data/_sass/common/components/_button.scss +163 -0
  157. data/_sass/common/components/_card.scss +103 -0
  158. data/_sass/common/components/_gallery.scss +21 -0
  159. data/_sass/common/components/_hero.scss +70 -0
  160. data/_sass/common/components/_image.scss +19 -0
  161. data/_sass/common/components/_item.scss +100 -0
  162. data/_sass/common/components/_menu.scss +67 -0
  163. data/_sass/common/components/_modal.scss +39 -0
  164. data/_sass/common/components/_swiper.scss +48 -0
  165. data/_sass/common/components/_toc.scss +124 -0
  166. data/_sass/components/_article-content.scss +221 -0
  167. data/_sass/components/_article-footer.scss +17 -0
  168. data/_sass/components/_article-header.scss +50 -0
  169. data/_sass/components/_article-info.scss +25 -0
  170. data/_sass/components/_article-list.scss +18 -0
  171. data/_sass/components/_author-links.scss +43 -0
  172. data/_sass/components/_author-profile.scss +26 -0
  173. data/_sass/components/_extensions.scss +35 -0
  174. data/_sass/components/_footer.scss +33 -0
  175. data/_sass/components/_header.scss +123 -0
  176. data/_sass/components/_lightbox.scss +7 -0
  177. data/_sass/components/_main.scss +28 -0
  178. data/_sass/components/_search.scss +186 -0
  179. data/_sass/components/_tags.scss +24 -0
  180. data/_sass/custom.scss +3 -0
  181. data/_sass/layout/_404.scss +14 -0
  182. data/_sass/layout/_archive.scss +5 -0
  183. data/_sass/layout/_article.scss +29 -0
  184. data/_sass/layout/_articles.scss +17 -0
  185. data/_sass/layout/_base.scss +6 -0
  186. data/_sass/layout/_home.scss +15 -0
  187. data/_sass/layout/_landing.scss +23 -0
  188. data/_sass/layout/_page.scss +165 -0
  189. data/_sass/skins/_chocolate.scss +74 -0
  190. data/_sass/skins/_dark.scss +74 -0
  191. data/_sass/skins/_default.scss +74 -0
  192. data/_sass/skins/_forest.scss +74 -0
  193. data/_sass/skins/_ocean.scss +74 -0
  194. data/_sass/skins/_orange.scss +74 -0
  195. data/_sass/skins/highlight/_default.scss +0 -0
  196. data/_sass/skins/highlight/_tomorrow-night-blue.scss +2 -0
  197. data/_sass/skins/highlight/_tomorrow-night-bright.scss +2 -0
  198. data/_sass/skins/highlight/_tomorrow-night-eighties.scss +2 -0
  199. data/_sass/skins/highlight/_tomorrow-night.scss +2 -0
  200. data/_sass/skins/highlight/_tomorrow.scss +2 -0
  201. data/_sass/skins/highlight/tomorrow/_default.scss +10 -0
  202. data/_sass/skins/highlight/tomorrow/_highlight.scss +74 -0
  203. data/_sass/skins/highlight/tomorrow/_night-blue.scss +10 -0
  204. data/_sass/skins/highlight/tomorrow/_night-bright.scss +10 -0
  205. data/_sass/skins/highlight/tomorrow/_night-eighties.scss +10 -0
  206. data/_sass/skins/highlight/tomorrow/_night.scss +10 -0
  207. data/assets/android-chrome-192x192.png +0 -0
  208. data/assets/android-chrome-512x512.png +0 -0
  209. data/assets/apple-touch-icon.png +0 -0
  210. data/assets/browserconfig.xml +9 -0
  211. data/assets/css/main.scss +74 -0
  212. data/assets/favicon-16x16.png +0 -0
  213. data/assets/favicon-32x32.png +0 -0
  214. data/assets/favicon.ico +0 -0
  215. data/assets/images/logo/logo.svg +8 -0
  216. data/assets/mstile-144x144.png +0 -0
  217. data/assets/mstile-150x150.png +0 -0
  218. data/assets/mstile-310x150.png +0 -0
  219. data/assets/mstile-310x310.png +0 -0
  220. data/assets/mstile-70x70.png +0 -0
  221. data/assets/safari-pinned-tab.svg +38 -0
  222. data/assets/search.js +3 -0
  223. data/assets/site.webmanifest +19 -0
  224. metadata +371 -0
@@ -0,0 +1,24 @@
1
+ @mixin split-line($direction: default, $width: default, $color: default) {
2
+ @if $direction == default {
3
+ $direction: top;
4
+ }
5
+ @if $color == default {
6
+ $color: $border-color-l;
7
+ }
8
+ @if $width == default {
9
+ $width: 1px;
10
+ }
11
+ border: 0 solid $color;
12
+ @if $direction == top {
13
+ border-top-width: $width;
14
+ }
15
+ @if $direction == right {
16
+ border-right-width: $width;
17
+ }
18
+ @if $direction == bottom {
19
+ border-bottom-width: $width;
20
+ }
21
+ @if $direction == left {
22
+ border-left-width: $width;
23
+ }
24
+ }
@@ -0,0 +1,37 @@
1
+ @mixin text-light {
2
+ color: $text-color-theme-light;
3
+ h1, h2, h3 {
4
+ color: $text-color-theme-light-d;
5
+ }
6
+ h4, h5 {
7
+ color: $text-color-theme-light;
8
+ }
9
+ h6 {
10
+ color: $text-color-theme-light-l;
11
+ }
12
+ a:not(.button) {
13
+ @include link-colors($text-color-theme-light, $main-color-1);
14
+ }
15
+ }
16
+ @mixin text-dark {
17
+ color: $text-color-theme-dark;
18
+ h1, h2, h3 {
19
+ color: $text-color-theme-dark-d;
20
+ }
21
+ h4, h5 {
22
+ color: $text-color-theme-dark;
23
+ }
24
+ h6 {
25
+ color: $text-color-theme-dark-l;
26
+ }
27
+ a:not(.button) {
28
+ @include link-colors($text-color-theme-dark, $main-color-1);
29
+ }
30
+ }
31
+
32
+ .text--light {
33
+ @include text-light();
34
+ }
35
+ .text--dark {
36
+ @include text-dark();
37
+ }
@@ -0,0 +1,4 @@
1
+ @mixin transform($value) {
2
+ -webkit-transform: $value;
3
+ transform: $value;
4
+ }
@@ -0,0 +1,4 @@
1
+ @mixin transition($value) {
2
+ -webkit-transition: $value;
3
+ transition: $value;
4
+ }
@@ -0,0 +1,6 @@
1
+ @mixin user-select($value) {
2
+ -webkit-user-select: $value;
3
+ -moz-user-select: $value;
4
+ -ms-user-select: $value;
5
+ user-select: $value;
6
+ }
@@ -0,0 +1,163 @@
1
+ @mixin button() {
2
+ display: inline-block;
3
+ font-weight: map-get($button, font-weight);
4
+ line-height: 1 !important;
5
+ text-decoration: none !important;
6
+ cursor: pointer;
7
+ outline: none;
8
+ @include user-select(none);
9
+ svg {
10
+ width: 1rem;
11
+ height: 1rem;
12
+ }
13
+ @include disabled() {
14
+ cursor: not-allowed;
15
+ }
16
+ }
17
+
18
+ .button {
19
+ @include button();
20
+ }
21
+
22
+ .button--primary {
23
+ @include clickable($text-color-1, $main-color-1);
24
+ }
25
+
26
+ .button--secondary {
27
+ @include clickable($text-color-3, $main-color-3);
28
+ }
29
+
30
+ .button--success {
31
+ @include clickable($text-color-function, $green);
32
+ }
33
+
34
+ .button--info {
35
+ @include clickable($text-color-function, $blue);
36
+ }
37
+
38
+ .button--warning {
39
+ @include clickable($text-color-function, $yellow);
40
+ }
41
+
42
+ .button--error {
43
+ @include clickable($text-color-function, $red);
44
+ }
45
+
46
+ .button--theme-light {
47
+ @include clickable($text-color-theme-dark, $main-color-theme-light);
48
+ }
49
+
50
+ .button--theme-dark {
51
+ @include clickable($text-color-theme-light, $main-color-theme-dark);
52
+ }
53
+
54
+ .button--outline-primary {
55
+ color: $main-color-1;
56
+ border: 1px solid $main-color-1;
57
+ @include clickable($main-color-1, transparent, $text-color-1, $main-color-1);
58
+ }
59
+
60
+ .button--outline-secondary {
61
+ color: $main-color-3;
62
+ border: 1px solid $main-color-3;
63
+ @include clickable($main-color-3, transparent, $text-color-3, $main-color-3);
64
+ }
65
+
66
+ .button--outline-success {
67
+ color: $green;
68
+ border: 1px solid $green;
69
+ @include clickable($green, transparent, $text-color-function, $green);
70
+ }
71
+
72
+ .button--outline-info {
73
+ color: $blue;
74
+ border: 1px solid $blue;
75
+ @include clickable($blue, transparent, $text-color-function, $blue);
76
+ }
77
+
78
+ .button--outline-warning {
79
+ color: $yellow;
80
+ border: 1px solid $yellow;
81
+ @include clickable($yellow, transparent, $text-color-function, $yellow);
82
+ }
83
+
84
+ .button--outline-error {
85
+ color: $red;
86
+ border: 1px solid $red;
87
+ @include clickable($red, transparent, $text-color-function, $red);
88
+ }
89
+
90
+ .button--outline-theme-light {
91
+ color: $main-color-theme-light;
92
+ border: 1px solid $main-color-theme-light;
93
+ @include clickable($main-color-theme-light, transparent, $text-color-theme-dark, $main-color-theme-light);
94
+ }
95
+
96
+ .button--outline-theme-dark {
97
+ color: $main-color-theme-dark;
98
+ border: 1px solid $main-color-theme-dark;
99
+ @include clickable($main-color-theme-dark, transparent, $text-color-theme-light, $main-color-theme-dark);
100
+ }
101
+
102
+ .button--pill {
103
+ border-radius: map-get($button, pill-radius);
104
+ @extend .button--md;
105
+ }
106
+
107
+ .button--rounded {
108
+ border-radius: map-get($base, border-radius);
109
+ @extend .button--md;
110
+ }
111
+
112
+ .button--circle {
113
+ @include inline-flex();
114
+ @include justify-content(center);
115
+ @include align-items(center);
116
+ border-radius: 50%;
117
+ @extend .button--md;
118
+ }
119
+
120
+ .button--md {
121
+ padding: map-get($button, padding-y) map-get($button, padding-x);
122
+ font-size: map-get($base, font-size);
123
+ &.button--circle {
124
+ width: map-get($button, circle-diameter);
125
+ height: map-get($button, circle-diameter);
126
+ }
127
+ }
128
+
129
+ .button--xs {
130
+ padding: map-get($button, padding-y-xs) map-get($button, padding-x-xs);
131
+ font-size: map-get($base, font-size-xs);
132
+ &.button--circle {
133
+ width: map-get($button, circle-diameter-xs);
134
+ height: map-get($button, circle-diameter-xs);
135
+ }
136
+ }
137
+
138
+ .button--sm {
139
+ padding: map-get($button, padding-y-sm) map-get($button, padding-x-sm);
140
+ font-size: map-get($base, font-size-sm);
141
+ &.button--circle {
142
+ width: map-get($button, circle-diameter-sm);
143
+ height: map-get($button, circle-diameter-sm);
144
+ }
145
+ }
146
+
147
+ .button--lg {
148
+ padding: map-get($button, padding-y-lg) map-get($button, padding-x-lg);
149
+ font-size: map-get($base, font-size-lg);
150
+ &.button--circle {
151
+ width: map-get($button, circle-diameter-lg);
152
+ height: map-get($button, circle-diameter-lg);
153
+ }
154
+ }
155
+
156
+ .button--xl {
157
+ padding: map-get($button, padding-y-xl) map-get($button, padding-x-xl);
158
+ font-size: map-get($base, font-size-xl);
159
+ &.button--circle {
160
+ width: map-get($button, circle-diameter-xl);
161
+ height: map-get($button, circle-diameter-xl);
162
+ }
163
+ }
@@ -0,0 +1,103 @@
1
+
2
+ .card {
3
+ max-width: 18rem;
4
+ border-radius: map-get($base, border-radius);
5
+ @include box-shadow();
6
+ @include transition(box-shadow map-get($animation, duration) map-get($animation, timing-function));
7
+ & > :first-child {
8
+ border-top-left-radius: map-get($base, border-radius);
9
+ border-top-right-radius: map-get($base, border-radius);
10
+ }
11
+ & > :last-child {
12
+ border-bottom-right-radius: map-get($base, border-radius);
13
+ border-bottom-left-radius: map-get($base, border-radius);
14
+ }
15
+ }
16
+
17
+ .cell {
18
+ & > .card {
19
+ max-width: unset;
20
+ }
21
+ }
22
+
23
+ .card__content {
24
+ padding: map-get($spacers, 2) map-get($spacers, 3);
25
+ }
26
+
27
+ .card__header, .card__header > a {
28
+ @include link-colors($text-color-d, $main-color-1);
29
+ }
30
+
31
+ .card__image {
32
+ position: relative;
33
+ width: 100%;
34
+ & > img {
35
+ display: block;
36
+ width: 100%;
37
+ height: auto;
38
+ border-radius: inherit;
39
+ }
40
+ & > .overlay {
41
+ position: absolute;
42
+ width: 100%;
43
+ max-height: 100%;
44
+ padding: map-get($spacers, 2);
45
+ a {
46
+ text-decoration: none !important;
47
+ }
48
+ }
49
+ & > .overlay, & > .overlay--top {
50
+ top: 0;
51
+ bottom: auto;
52
+ border-top-left-radius: inherit;
53
+ border-top-right-radius: inherit;
54
+ border-bottom-right-radius: 0;
55
+ border-bottom-left-radius: 0;
56
+ }
57
+ & > .overlay--bottom {
58
+ top: auto;
59
+ bottom: 0;
60
+ border-top-left-radius: 0;
61
+ border-top-right-radius: 0;
62
+ border-bottom-right-radius: inherit;
63
+ border-bottom-left-radius: inherit;
64
+ }
65
+ & > .overlay--full {
66
+ top: 0;
67
+ bottom: 0;
68
+ }
69
+ & > .overlay, & > .overlay--dark {
70
+ @extend .text--dark;
71
+ background-color: rgba(#000, .4);
72
+ }
73
+ & > .overlay--light {
74
+ @extend .text--light;
75
+ background: rgba(#fff, .4);
76
+ }
77
+ }
78
+
79
+ .card--clickable {
80
+ cursor: pointer;
81
+ @include hover() {
82
+ @include box-shadow(2);
83
+ .card__image {
84
+ & > img {
85
+ height: inherit;
86
+ }
87
+ }
88
+ }
89
+ @include transition(map-get($clickable, transition));
90
+ }
91
+
92
+ .card--flat {
93
+ @include box-shadow(0);
94
+ .card__image {
95
+ & > img {
96
+ border-radius: map-get($base, border-radius);
97
+ }
98
+ }
99
+ .card__content {
100
+ padding-top: 0;
101
+ padding-left: 0;
102
+ }
103
+ }
@@ -0,0 +1,21 @@
1
+ .gallery {
2
+ height: 100%;
3
+ @include flexbox();
4
+ @include flex-direction(column);
5
+ }
6
+
7
+ .gallery__swiper {
8
+ @include flex(1);
9
+ }
10
+
11
+ .gallery-item {
12
+ @include flexbox();
13
+ @include align-items(center);
14
+ @include justify-content(center);
15
+ height: 100%;
16
+ overflow: hidden;
17
+ }
18
+
19
+ .gallery-item__main {
20
+ display: block;
21
+ }
@@ -0,0 +1,70 @@
1
+ .hero {
2
+ background-position: 50% 50%;
3
+ @include flexbox();
4
+ @include flex-direction(column);
5
+ @include justify-content(center);
6
+ h1 { font-size: map-get($base, font-size-h1-xl); }
7
+ h2 { font-size: map-get($base, font-size-h2-xl); }
8
+ h3 { font-size: map-get($base, font-size-h3-xl); }
9
+ h4 { font-size: map-get($base, font-size-h4-xl); }
10
+ h5 { font-size: map-get($base, font-size-h5-xl); }
11
+ h6 { font-size: map-get($base, font-size-h6-xl); }
12
+ p { font-size: map-get($base, font-size-xl); }
13
+ @include media-breakpoint-down(lg) {
14
+ h1 { font-size: map-get($base, font-size-h1-lg); }
15
+ h2 { font-size: map-get($base, font-size-h2-lg); }
16
+ h3 { font-size: map-get($base, font-size-h3-lg); }
17
+ h4 { font-size: map-get($base, font-size-h4-lg); }
18
+ h5 { font-size: map-get($base, font-size-h5-lg); }
19
+ h6 { font-size: map-get($base, font-size-h6-lg); }
20
+ p { font-size: map-get($base, font-size-lg); }
21
+ }
22
+ @include media-breakpoint-down(md) {
23
+ h1 { font-size: map-get($base, font-size-h1-sm); }
24
+ h2 { font-size: map-get($base, font-size-h2-sm); }
25
+ h3 { font-size: map-get($base, font-size-h3-sm); }
26
+ h4 { font-size: map-get($base, font-size-h4-sm); }
27
+ h5 { font-size: map-get($base, font-size-h5-sm); }
28
+ h6 { font-size: map-get($base, font-size-h6-sm); }
29
+ p { font-size: map-get($base, font-size); }
30
+ }
31
+ background-size: cover;
32
+
33
+ }
34
+
35
+ .hero--center {
36
+ text-align: center;
37
+ .menu {
38
+ @extend .menu--center;
39
+ }
40
+ }
41
+
42
+ .hero--light {
43
+ @extend .text--light;
44
+ }
45
+
46
+ .hero--dark {
47
+ @extend .text--dark;
48
+ }
49
+
50
+ .hero__content {
51
+ margin: map-get($spacers, 5);
52
+ @include media-breakpoint-down(lg) {
53
+ margin: map-get($spacers, 5) map-get($spacers, 4);
54
+ }
55
+ @include media-breakpoint-down(md) {
56
+ margin: map-get($spacers, 4) map-get($spacers, 3);
57
+ }
58
+ }
59
+
60
+ .heros {
61
+ & > .hero {
62
+ margin: map-get($spacers, 5);
63
+ @include media-breakpoint-down(lg) {
64
+ margin: map-get($spacers, 3);
65
+ }
66
+ @include media-breakpoint-down(md) {
67
+ margin: map-get($spacers, 2) 0;
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,19 @@
1
+ .image {
2
+ max-width: 100%;
3
+ @extend .image--md;
4
+ }
5
+ .image--md {
6
+ width: map-get($image, width);
7
+ }
8
+ .image--xl {
9
+ width: map-get($image, width-xl);
10
+ }
11
+ .image--lg {
12
+ width: map-get($image, width-lg);
13
+ }
14
+ .image--sm {
15
+ width: map-get($image, width-sm);
16
+ }
17
+ .image--xs {
18
+ width: map-get($image, width-xs);
19
+ }
@@ -0,0 +1,100 @@
1
+ .item {
2
+ @include flexbox();
3
+ @include media-breakpoint-down(md) {
4
+ @include flex-direction(column);
5
+ }
6
+ }
7
+
8
+ .item__image {
9
+ margin-right: map-get($spacers, 3);
10
+ & + .item__content {
11
+ & > :first-child {
12
+ margin-top: 0;
13
+ & > :first-child {
14
+ margin-top: 0;
15
+ }
16
+ }
17
+ }
18
+ @include media-breakpoint-down(md) {
19
+ margin-right: 0;
20
+ }
21
+ }
22
+
23
+ .item__content {
24
+ @include flex(1);
25
+ min-width: 0;
26
+ }
27
+
28
+ a > .item__header, a.item__header, .item__header > a {
29
+ @include link-colors($text-color-d, $main-color-1);
30
+ }
31
+
32
+ .item__meta {
33
+ color: $text-color-l;
34
+ }
35
+
36
+ .item__description {
37
+ &, .article__content {
38
+ font-size: map-get($base, font-size-sm);
39
+ line-height: map-get($base, line-height);
40
+ @include block-elements() {
41
+ margin-top: map-get($spacers, 2);
42
+ margin-bottom: map-get($spacers, 2);
43
+ }
44
+ @include heading-elements() {
45
+ margin-top: map-get($spacers, 3);
46
+ }
47
+ h1, h2, h3 {
48
+ color: $text-color;
49
+ }
50
+ h1, h2 {
51
+ padding: 0;
52
+ border: none;
53
+ }
54
+ h1 {
55
+ font-size: map-get($base, font-size-h1-xs);
56
+ }
57
+ h2 {
58
+ font-size: map-get($base, font-size-h2-xs);
59
+ }
60
+ h3 {
61
+ font-size: map-get($base, font-size-h3-xs);
62
+ }
63
+ h4 {
64
+ font-size: map-get($base, font-size-h4-xs);
65
+ }
66
+ h5 {
67
+ font-size: map-get($base, font-size-h5-xs);
68
+ }
69
+ h6 {
70
+ font-size: map-get($base, font-size-h6-xs);
71
+ }
72
+ img {
73
+ max-height: 32rem;
74
+ @include media-breakpoint-down(md) {
75
+ max-height: 14rem;
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ .items {
82
+ & > .item {
83
+ &:not(:last-child) {
84
+ margin-bottom: map-get($spacers, 2);
85
+ }
86
+ }
87
+ }
88
+
89
+ .items--divided {
90
+ & > .item {
91
+ &:not(:first-child) {
92
+ padding-top: map-get($spacers, 4);
93
+ }
94
+ &:not(:last-child) {
95
+ padding-bottom: map-get($spacers, 4);
96
+ @include split-line(bottom);
97
+ }
98
+ list-style-type: none;
99
+ }
100
+ }
@@ -0,0 +1,67 @@
1
+ @mixin menu-direction($direction: default) {
2
+ @if $direction == default {
3
+ $direction: "horizontal";
4
+ }
5
+ @if $direction == "vertical" {
6
+ @include flex-direction(column);
7
+ } @else {
8
+ @include flex-direction(row);
9
+ }
10
+ }
11
+
12
+ @mixin menu($horizontal-spacer: default, $horizontal-item-vertical-spacer: default, $wrap: default) {
13
+ @if $horizontal-spacer == default {
14
+ $horizontal-spacer: map-get($menu, horizontal-spacer);
15
+ }
16
+ @if $horizontal-item-vertical-spacer == default {
17
+ $horizontal-item-vertical-spacer: map-get($menu, horizontal-item-vertical-spacer);
18
+ }
19
+ @if $wrap == default {
20
+ $wrap: wrap;
21
+ }
22
+ @include flexbox();
23
+ @include flex-wrap($wrap);
24
+ margin-top: 0;
25
+ margin-bottom: 0;
26
+ & > li {
27
+ @if $horizontal-item-vertical-spacer {
28
+ margin-top: map-get($spacers, $horizontal-item-vertical-spacer);
29
+ margin-bottom: map-get($spacers, $horizontal-item-vertical-spacer);
30
+ }
31
+ margin-right: map-get($spacers, $horizontal-spacer);
32
+ list-style-type: none;
33
+ &:last-child {
34
+ margin-right: 0;
35
+ }
36
+ }
37
+ }
38
+
39
+ .menu {
40
+ @include menu();
41
+ @include menu-direction();
42
+ @include align-items(center);
43
+ }
44
+
45
+ .menu--vertical {
46
+ @include menu-direction("vertical");
47
+ @include align-items(normal);
48
+ & > li {
49
+ margin-right: 0;
50
+ }
51
+ }
52
+
53
+ .menu--inline {
54
+ @include inline-flex();
55
+ }
56
+
57
+ .menu--center {
58
+ @include justify-content(center);
59
+ }
60
+
61
+ .menu--nowrap {
62
+ @include flex-wrap(nowrap);
63
+ }
64
+
65
+ .menu--grow {
66
+ @include flex-grow(1);
67
+ }
@@ -0,0 +1,39 @@
1
+ @mixin modal($z-index: default, $color: default, $background-color: default) {
2
+ @if $z-index == default {
3
+ $z-index: map-get($z-indexes, modal);
4
+ }
5
+ @if $color == default {
6
+ $color: $text-color-theme-dark;
7
+ }
8
+ @if $background-color == default {
9
+ $background-color: $mask-color;
10
+ }
11
+ position: fixed;
12
+ top: 0;
13
+ left: 0;
14
+ z-index: $z-index;
15
+ width: 100%;
16
+ height: 100%;
17
+ color: $color;
18
+ touch-action: none;
19
+ background-color: $background-color;
20
+ opacity: 0;
21
+ @include transform(translate(100%, 0));
22
+ @include transition(#{opacity map-get($animation, duration) map-get($animation, timing-function),
23
+ transform 0s map-get($animation, duration) map-get($animation, timing-function)});
24
+ }
25
+ @mixin modal--show() {
26
+ opacity: 1;
27
+ @include transform(translate(0, 0));
28
+ @include transition(#{opacity map-get($animation, duration) map-get($animation, timing-function)});
29
+ }
30
+
31
+ .modal {
32
+ @include modal();
33
+ }
34
+ .modal--show {
35
+ @include modal--show();
36
+ }
37
+ .modal--overflow {
38
+ @include overflow(auto);
39
+ }
@@ -0,0 +1,48 @@
1
+ .swiper {
2
+ position: relative;
3
+ @include overflow(hidden);
4
+ }
5
+
6
+ .swiper__wrapper, .swiper__slide {
7
+ width: 100%;
8
+ height: 100%;
9
+ }
10
+
11
+ .swiper__wrapper {
12
+ @include flexbox();
13
+ }
14
+
15
+ .swiper__wrapper--animation {
16
+ @include transition(transform map-get($animation, duration) map-get($animation, timing-function));
17
+ }
18
+
19
+ .swiper__slide {
20
+ @include flex-shrink(0);
21
+ & > img {
22
+ max-width: 100%;
23
+ }
24
+ }
25
+
26
+ .swiper__button {
27
+ position: absolute;
28
+ top: 50%;
29
+ @extend .button, .button--circle;
30
+ @include transform(translate(0, -50%));
31
+ @include clickable($text-color-d, rgba($main-color-3, .4));
32
+ }
33
+
34
+ .swiper--light .swiper__button {
35
+ @include clickable($text-color-theme-light, rgba($main-color-theme-dark, .4));
36
+ }
37
+
38
+ .swiper--dark .swiper__button {
39
+ @include clickable($text-color-theme-dark, rgba($main-color-theme-light, .4));
40
+ }
41
+
42
+ .swiper__button--prev {
43
+ left: 10px;
44
+ }
45
+
46
+ .swiper__button--next {
47
+ right: 10px;
48
+ }