jekyll-text-theme-fork 2.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +235 -0
- data/LICENSE +21 -0
- data/README.md +89 -0
- data/_data/authors.yml +0 -0
- data/_data/licenses.yml +16 -0
- data/_data/locale.yml +169 -0
- data/_data/navigation.yml +52 -0
- data/_data/variables.yml +64 -0
- data/_includes/analytics-providers/custom.html +3 -0
- data/_includes/analytics-providers/google.html +14 -0
- data/_includes/analytics.html +7 -0
- data/_includes/article/footer/author-profile.html +47 -0
- data/_includes/article/footer/custom.html +3 -0
- data/_includes/article/footer/license.html +14 -0
- data/_includes/article/footer/subscribe.html +6 -0
- data/_includes/article/top/custom.html +3 -0
- data/_includes/article-footer.html +55 -0
- data/_includes/article-header.html +49 -0
- data/_includes/article-info.html +96 -0
- data/_includes/article-list.html +144 -0
- data/_includes/article-section-navigator.html +54 -0
- data/_includes/aside/toc.html +1 -0
- data/_includes/author-links.html +120 -0
- data/_includes/comments-providers/custom.html +3 -0
- data/_includes/comments-providers/disqus.html +22 -0
- data/_includes/comments-providers/gitalk.html +39 -0
- data/_includes/comments-providers/valine.html +46 -0
- data/_includes/comments.html +11 -0
- data/_includes/extensions/bilibili.html +5 -0
- data/_includes/extensions/codepen.html +4 -0
- data/_includes/extensions/netease-cloud-music.html +4 -0
- data/_includes/extensions/slideshare.html +6 -0
- data/_includes/extensions/soundcloud.html +4 -0
- data/_includes/extensions/ted.html +5 -0
- data/_includes/extensions/youtube.html +4 -0
- data/_includes/footer.html +37 -0
- data/_includes/head/custom.html +3 -0
- data/_includes/head/favicon.html +26 -0
- data/_includes/head.html +24 -0
- data/_includes/header.html +44 -0
- data/_includes/main/bottom/custom.html +3 -0
- data/_includes/main/top/custom.html +3 -0
- data/_includes/markdown-enhancements/chart.html +15 -0
- data/_includes/markdown-enhancements/mathjax.html +17 -0
- data/_includes/markdown-enhancements/mermaid.html +10 -0
- data/_includes/markdown-enhancements.html +17 -0
- data/_includes/pageview-providers/custom/home.html +3 -0
- data/_includes/pageview-providers/custom/post.html +3 -0
- data/_includes/pageview-providers/leancloud/home.html +35 -0
- data/_includes/pageview-providers/leancloud/leancloud.js +72 -0
- data/_includes/pageview-providers/leancloud/post.html +31 -0
- data/_includes/pageview.html +29 -0
- data/_includes/paginator.html +98 -0
- data/_includes/scripts/archieve.js +135 -0
- data/_includes/scripts/article.js +24 -0
- data/_includes/scripts/aside/affix.js +26 -0
- data/_includes/scripts/aside/toc.js +35 -0
- data/_includes/scripts/common.js +7 -0
- data/_includes/scripts/components/lightbox.js +49 -0
- data/_includes/scripts/components/search.js +86 -0
- data/_includes/scripts/components/sidebar.js +30 -0
- data/_includes/scripts/home.js +3 -0
- data/_includes/scripts/lib/affix.js +111 -0
- data/_includes/scripts/lib/gallery.js +192 -0
- data/_includes/scripts/lib/lazyload.js +143 -0
- data/_includes/scripts/lib/modal.js +64 -0
- data/_includes/scripts/lib/scroll-to.js +13 -0
- data/_includes/scripts/lib/swiper.js +203 -0
- data/_includes/scripts/lib/throttle.js +28 -0
- data/_includes/scripts/lib/toc.js +107 -0
- data/_includes/scripts/page.js +3 -0
- data/_includes/scripts/utils/imagesLoad.js +28 -0
- data/_includes/scripts/utils/utils.js +39 -0
- data/_includes/scripts/variables.html +35 -0
- data/_includes/search-providers/custom/search.html +3 -0
- data/_includes/search-providers/default/search-data.js +14 -0
- data/_includes/search-providers/default/search.html +18 -0
- data/_includes/search-providers/default/search.js +112 -0
- data/_includes/search-providers/google-custom-search-engine/search.html +21 -0
- data/_includes/search-providers/google-custom-search-engine/search.js +33 -0
- data/_includes/search.html +20 -0
- data/_includes/sharing-providers/addthis.html +9 -0
- data/_includes/sharing-providers/addtoany.html +10 -0
- data/_includes/sharing-providers/custom.html +3 -0
- data/_includes/sharing.html +7 -0
- data/_includes/sidebar/toc.html +25 -0
- data/_includes/snippets/assign.html +9 -0
- data/_includes/snippets/get-article-title.html +11 -0
- data/_includes/snippets/get-lang.html +6 -0
- data/_includes/snippets/get-locale-string.html +12 -0
- data/_includes/snippets/get-nav-url.html +8 -0
- data/_includes/snippets/get-sources.html +2 -0
- data/_includes/snippets/get-string-from-locale-config.html +7 -0
- data/_includes/snippets/is_collection.html +6 -0
- data/_includes/snippets/page-url.html +2 -0
- data/_includes/snippets/prepend-baseurl.html +4 -0
- data/_includes/snippets/prepend-path.html +1 -0
- data/_includes/svg/icon/social/behance.svg +3 -0
- data/_includes/svg/icon/social/douban.svg +5 -0
- data/_includes/svg/icon/social/facebook.svg +3 -0
- data/_includes/svg/icon/social/flicker.svg +5 -0
- data/_includes/svg/icon/social/github.svg +3 -0
- data/_includes/svg/icon/social/googleplus.svg +3 -0
- data/_includes/svg/icon/social/linkedin.svg +3 -0
- data/_includes/svg/icon/social/mail.svg +6 -0
- data/_includes/svg/icon/social/medium.svg +3 -0
- data/_includes/svg/icon/social/npm.svg +9 -0
- data/_includes/svg/icon/social/pinterest.svg +3 -0
- data/_includes/svg/icon/social/qq.svg +3 -0
- data/_includes/svg/icon/social/telegram.svg +4 -0
- data/_includes/svg/icon/social/twitter.svg +3 -0
- data/_includes/svg/icon/social/weibo.svg +6 -0
- data/_includes/svg/icon/social/weixin.svg +3 -0
- data/_includes/svg/icon/social/zhihu.svg +3 -0
- data/_includes/svg/logo.svg +8 -0
- data/_includes/tags.html +52 -0
- data/_layouts/404.html +13 -0
- data/_layouts/archive.html +40 -0
- data/_layouts/article.html +29 -0
- data/_layouts/articles.html +89 -0
- data/_layouts/base.html +25 -0
- data/_layouts/home.html +43 -0
- data/_layouts/landing.html +178 -0
- data/_layouts/none.html +1 -0
- data/_layouts/page.html +270 -0
- data/_sass/additional/_alert.scss +29 -0
- data/_sass/additional/_photo-frame.scss +17 -0
- data/_sass/additional/_tag.scss +21 -0
- data/_sass/animate/_fade-in-down.scss +10 -0
- data/_sass/animate/_fade-in-up.scss +10 -0
- data/_sass/animate/_fade-in.scss +8 -0
- data/_sass/common/_classes.scss +24 -0
- data/_sass/common/_function.scss +15 -0
- data/_sass/common/_print.scss +20 -0
- data/_sass/common/_reset.scss +174 -0
- data/_sass/common/_variables.scss +150 -0
- data/_sass/common/classes/_animation.scss +13 -0
- data/_sass/common/classes/_clearfix.scss +19 -0
- data/_sass/common/classes/_clickable.scss +159 -0
- data/_sass/common/classes/_display.scss +13 -0
- data/_sass/common/classes/_flex.scss +394 -0
- data/_sass/common/classes/_grid.scss +80 -0
- data/_sass/common/classes/_horizontal-rules.scss +14 -0
- data/_sass/common/classes/_link.scss +12 -0
- data/_sass/common/classes/_media.scss +17 -0
- data/_sass/common/classes/_overflow.scss +26 -0
- data/_sass/common/classes/_pseudo.scss +33 -0
- data/_sass/common/classes/_shadow.scss +22 -0
- data/_sass/common/classes/_spacing.scss +81 -0
- data/_sass/common/classes/_split-line.scss +24 -0
- data/_sass/common/classes/_text.scss +37 -0
- data/_sass/common/classes/_transform.scss +4 -0
- data/_sass/common/classes/_transition.scss +4 -0
- data/_sass/common/classes/_user-select.scss +6 -0
- data/_sass/common/components/_button.scss +163 -0
- data/_sass/common/components/_card.scss +103 -0
- data/_sass/common/components/_gallery.scss +21 -0
- data/_sass/common/components/_hero.scss +70 -0
- data/_sass/common/components/_image.scss +19 -0
- data/_sass/common/components/_item.scss +100 -0
- data/_sass/common/components/_menu.scss +67 -0
- data/_sass/common/components/_modal.scss +39 -0
- data/_sass/common/components/_swiper.scss +48 -0
- data/_sass/common/components/_toc.scss +124 -0
- data/_sass/components/_article-content.scss +221 -0
- data/_sass/components/_article-footer.scss +17 -0
- data/_sass/components/_article-header.scss +50 -0
- data/_sass/components/_article-info.scss +25 -0
- data/_sass/components/_article-list.scss +18 -0
- data/_sass/components/_author-links.scss +43 -0
- data/_sass/components/_author-profile.scss +26 -0
- data/_sass/components/_extensions.scss +35 -0
- data/_sass/components/_footer.scss +33 -0
- data/_sass/components/_header.scss +123 -0
- data/_sass/components/_lightbox.scss +7 -0
- data/_sass/components/_main.scss +28 -0
- data/_sass/components/_search.scss +186 -0
- data/_sass/components/_tags.scss +24 -0
- data/_sass/custom.scss +3 -0
- data/_sass/layout/_404.scss +14 -0
- data/_sass/layout/_archive.scss +5 -0
- data/_sass/layout/_article.scss +29 -0
- data/_sass/layout/_articles.scss +17 -0
- data/_sass/layout/_base.scss +6 -0
- data/_sass/layout/_home.scss +15 -0
- data/_sass/layout/_landing.scss +23 -0
- data/_sass/layout/_page.scss +165 -0
- data/_sass/skins/_chocolate.scss +74 -0
- data/_sass/skins/_dark.scss +74 -0
- data/_sass/skins/_default.scss +74 -0
- data/_sass/skins/_forest.scss +74 -0
- data/_sass/skins/_ocean.scss +74 -0
- data/_sass/skins/_orange.scss +74 -0
- data/_sass/skins/highlight/_default.scss +0 -0
- data/_sass/skins/highlight/_tomorrow-night-blue.scss +2 -0
- data/_sass/skins/highlight/_tomorrow-night-bright.scss +2 -0
- data/_sass/skins/highlight/_tomorrow-night-eighties.scss +2 -0
- data/_sass/skins/highlight/_tomorrow-night.scss +2 -0
- data/_sass/skins/highlight/_tomorrow.scss +2 -0
- data/_sass/skins/highlight/tomorrow/_default.scss +10 -0
- data/_sass/skins/highlight/tomorrow/_highlight.scss +74 -0
- data/_sass/skins/highlight/tomorrow/_night-blue.scss +10 -0
- data/_sass/skins/highlight/tomorrow/_night-bright.scss +10 -0
- data/_sass/skins/highlight/tomorrow/_night-eighties.scss +10 -0
- data/_sass/skins/highlight/tomorrow/_night.scss +10 -0
- data/assets/android-chrome-192x192.png +0 -0
- data/assets/android-chrome-512x512.png +0 -0
- data/assets/apple-touch-icon.png +0 -0
- data/assets/browserconfig.xml +9 -0
- data/assets/css/main.scss +74 -0
- data/assets/favicon-16x16.png +0 -0
- data/assets/favicon-32x32.png +0 -0
- data/assets/favicon.ico +0 -0
- data/assets/images/logo/logo.svg +8 -0
- data/assets/mstile-144x144.png +0 -0
- data/assets/mstile-150x150.png +0 -0
- data/assets/mstile-310x150.png +0 -0
- data/assets/mstile-310x310.png +0 -0
- data/assets/mstile-70x70.png +0 -0
- data/assets/safari-pinned-tab.svg +38 -0
- data/assets/search.js +3 -0
- data/assets/site.webmanifest +19 -0
- metadata +371 -0
@@ -0,0 +1,150 @@
|
|
1
|
+
$base: (
|
2
|
+
font-family: (-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif),
|
3
|
+
font-family-code: (Menlo, Monaco, Consolas, Andale Mono, lucida console, Courier New, monospace),
|
4
|
+
|
5
|
+
font-size-root: 16px,
|
6
|
+
font-size-root-sm: 14px,
|
7
|
+
|
8
|
+
font-size-xl: 1.5rem,
|
9
|
+
font-size-lg: 1.25rem,
|
10
|
+
font-size: 1rem,
|
11
|
+
font-size-sm: .85rem,
|
12
|
+
font-size-xs: .7rem,
|
13
|
+
|
14
|
+
font-size-h1-xl: 3.5rem,
|
15
|
+
font-size-h2-xl: 2.5rem,
|
16
|
+
font-size-h3-xl: 2rem,
|
17
|
+
font-size-h4-xl: 1.75rem,
|
18
|
+
font-size-h5-xl: 1.5rem,
|
19
|
+
font-size-h6-xl: 1.5rem,
|
20
|
+
|
21
|
+
font-size-h1-lg: 3rem,
|
22
|
+
font-size-h2-lg: 2rem,
|
23
|
+
font-size-h3-lg: 1.75rem,
|
24
|
+
font-size-h4-lg: 1.5rem,
|
25
|
+
font-size-h5-lg: 1.25rem,
|
26
|
+
font-size-h6-lg: 1.25rem,
|
27
|
+
|
28
|
+
font-size-h1: 2.5rem,
|
29
|
+
font-size-h2: 1.9rem,
|
30
|
+
font-size-h3: 1.5rem,
|
31
|
+
font-size-h4: 1.2rem,
|
32
|
+
font-size-h5: 1rem,
|
33
|
+
font-size-h6: 1rem,
|
34
|
+
|
35
|
+
font-size-h1-sm: 2rem,
|
36
|
+
font-size-h2-sm: 1.5rem,
|
37
|
+
font-size-h3-sm: 1.35rem,
|
38
|
+
font-size-h4-sm: 1.15rem,
|
39
|
+
font-size-h5-sm: 1rem,
|
40
|
+
font-size-h6-sm: 1rem,
|
41
|
+
|
42
|
+
font-size-h1-xs: 1.05rem,
|
43
|
+
font-size-h2-xs: 1rem,
|
44
|
+
font-size-h3-xs: .95rem,
|
45
|
+
font-size-h4-xs: .9rem,
|
46
|
+
font-size-h5-xs: .85rem,
|
47
|
+
font-size-h6-xs: .85rem,
|
48
|
+
|
49
|
+
font-weight: 400,
|
50
|
+
font-weight-bold: 700,
|
51
|
+
|
52
|
+
line-height-xl: 2,
|
53
|
+
line-height-lg: 1.8,
|
54
|
+
line-height: 1.6,
|
55
|
+
line-height-sm: 1.4,
|
56
|
+
line-height-xs: 1.2,
|
57
|
+
|
58
|
+
spacer: 1rem,
|
59
|
+
|
60
|
+
border-radius-lg: .8rem,
|
61
|
+
border-radius: .4rem,
|
62
|
+
border-radius-sm: .2rem
|
63
|
+
);
|
64
|
+
|
65
|
+
$spacers: (
|
66
|
+
0: 0,
|
67
|
+
1: map-get($base, spacer) * .25,
|
68
|
+
2: map-get($base, spacer) * .5,
|
69
|
+
3: map-get($base, spacer),
|
70
|
+
4: map-get($base, spacer) * 1.5,
|
71
|
+
5: map-get($base, spacer) * 3
|
72
|
+
);
|
73
|
+
|
74
|
+
$z-indexes: (
|
75
|
+
actions: 996,
|
76
|
+
mask: 997,
|
77
|
+
sidebar: 998,
|
78
|
+
modal: 999
|
79
|
+
);
|
80
|
+
|
81
|
+
$layout: (
|
82
|
+
header-height: 5rem,
|
83
|
+
header-height-sm: 3rem,
|
84
|
+
content-max-width: 950px,
|
85
|
+
sidebar-width: 250px,
|
86
|
+
sidebar-header-height: 3rem,
|
87
|
+
aside-width: 220px
|
88
|
+
);
|
89
|
+
|
90
|
+
// sm md lg
|
91
|
+
// | ------ | ------ | ------ |
|
92
|
+
// 0 500 1024 -
|
93
|
+
|
94
|
+
$responsive: (
|
95
|
+
sm: 0,
|
96
|
+
md: 500px,
|
97
|
+
lg: 1024px
|
98
|
+
);
|
99
|
+
|
100
|
+
$animation: (
|
101
|
+
duration: .4s,
|
102
|
+
duration-sm: .2s,
|
103
|
+
timing-function: ease-in-out
|
104
|
+
);
|
105
|
+
|
106
|
+
$clickable: (
|
107
|
+
transition: all .2s ease-in-out
|
108
|
+
);
|
109
|
+
|
110
|
+
$button-height-xl: 2.8rem;
|
111
|
+
$button-height-lg: 2.3rem;
|
112
|
+
$button-height: 1.9rem;
|
113
|
+
$button-height-sm: 1.5rem;
|
114
|
+
$button-height-xs: 1.2rem;
|
115
|
+
|
116
|
+
$button: (
|
117
|
+
padding-y-xl: calc(($button-height-xl - map-get($base, font-size-xl)) / 2),
|
118
|
+
padding-x-xl: calc($button-height-xl / 3),
|
119
|
+
padding-y-lg: calc(($button-height-lg - map-get($base, font-size-lg)) / 2),
|
120
|
+
padding-x-lg: calc($button-height-lg / 3),
|
121
|
+
padding-y: calc(($button-height - map-get($base, font-size)) / 2),
|
122
|
+
padding-x: calc($button-height / 3),
|
123
|
+
padding-y-sm: calc(($button-height-sm - map-get($base, font-size-sm)) / 2),
|
124
|
+
padding-x-sm: calc($button-height-sm / 3),
|
125
|
+
padding-y-xs: calc(($button-height-xs - map-get($base, font-size-xs)) / 2),
|
126
|
+
padding-x-xs: calc($button-height-xs / 3),
|
127
|
+
|
128
|
+
pill-radius: 6rem,
|
129
|
+
|
130
|
+
circle-diameter-xl: $button-height-xl,
|
131
|
+
circle-diameter-lg: $button-height-lg,
|
132
|
+
circle-diameter: $button-height,
|
133
|
+
circle-diameter-sm: $button-height-sm,
|
134
|
+
circle-diameter-xs: $button-height-xs,
|
135
|
+
|
136
|
+
font-weight: map-get($base, font-weight-bold)
|
137
|
+
);
|
138
|
+
|
139
|
+
$image: (
|
140
|
+
width-xl: 20em,
|
141
|
+
width-lg: 16rem,
|
142
|
+
width: 12rem,
|
143
|
+
width-sm: 8rem,
|
144
|
+
width-xs: 4rem
|
145
|
+
);
|
146
|
+
|
147
|
+
$menu: (
|
148
|
+
horizontal-spacer: 1,
|
149
|
+
horizontal-item-vertical-spacer: 1
|
150
|
+
);
|
@@ -0,0 +1,159 @@
|
|
1
|
+
@mixin clickable($clr, $bg-clr, $hover-clr: default, $hover-bg-clr: default, $active-clr: default, $active-bg-clr: default, $focus-clr: default, $focus-bg-clr: default, $theme: default, $ignore-path: default) {
|
2
|
+
|
3
|
+
@if $theme == default {
|
4
|
+
@if $bg-clr == null and $hover-bg-clr == null {
|
5
|
+
@if $hover-clr == default {
|
6
|
+
$theme: get-color-theme($clr);
|
7
|
+
} @else {
|
8
|
+
$theme: get-color-theme($hover-clr);
|
9
|
+
}
|
10
|
+
} @else {
|
11
|
+
@if $hover-bg-clr == default {
|
12
|
+
$theme: get-color-theme($bg-clr);
|
13
|
+
} @else {
|
14
|
+
$theme: get-color-theme($hover-bg-clr);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@if $ignore-path == default {
|
20
|
+
$ignore-path: false;
|
21
|
+
} @else {
|
22
|
+
$ignore-path: true;
|
23
|
+
}
|
24
|
+
|
25
|
+
@include transition(map-get($clickable, transition));
|
26
|
+
@if $ignore-path == false {
|
27
|
+
svg {
|
28
|
+
path {
|
29
|
+
@include transition(map-get($clickable, transition));
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
// hover
|
35
|
+
@if $hover-clr == default {
|
36
|
+
@if $hover-bg-clr == null {
|
37
|
+
@if $theme == "light" {
|
38
|
+
$hover-clr: darken($clr, 14%);
|
39
|
+
}
|
40
|
+
@if $theme == "dark" {
|
41
|
+
$hover-clr: lighten($clr, 18%);
|
42
|
+
}
|
43
|
+
} @else if $hover-bg-clr == default {
|
44
|
+
$hover-clr: $clr;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
@if $hover-bg-clr == default {
|
49
|
+
@if $theme == "light" {
|
50
|
+
$hover-bg-clr: darken($bg-clr, 14%);
|
51
|
+
}
|
52
|
+
@if $theme == "dark" {
|
53
|
+
$hover-bg-clr: lighten($bg-clr, 18%);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// active
|
58
|
+
@if $active-clr == default {
|
59
|
+
@if $active-bg-clr == null {
|
60
|
+
@if $theme == "light" {
|
61
|
+
$active-clr: darken($hover-clr, 15%);
|
62
|
+
}
|
63
|
+
@if $theme == "dark" {
|
64
|
+
$active-clr: lighten($hover-clr, 16%);
|
65
|
+
}
|
66
|
+
} @else if $active-bg-clr == default {
|
67
|
+
$active-clr: $hover-clr;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
@if $active-bg-clr == default {
|
72
|
+
@if $theme == "light" {
|
73
|
+
$active-bg-clr: darken($hover-bg-clr, 15%);
|
74
|
+
}
|
75
|
+
@if $theme == "dark" {
|
76
|
+
$active-bg-clr: lighten($hover-bg-clr, 16%);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
// focus
|
81
|
+
@if $focus-clr == default {
|
82
|
+
@if $focus-bg-clr == null {
|
83
|
+
$focus-clr: $hover-clr;
|
84
|
+
} @else if $hover-bg-clr == default {
|
85
|
+
$focus-clr: $hover-clr;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
@if $focus-bg-clr == default {
|
90
|
+
$focus-bg-clr: $hover-bg-clr;
|
91
|
+
}
|
92
|
+
|
93
|
+
@include plain() {
|
94
|
+
color: $clr;
|
95
|
+
@if $bg-clr {
|
96
|
+
background-color: $bg-clr;
|
97
|
+
}
|
98
|
+
@if $ignore-path == false {
|
99
|
+
svg path {
|
100
|
+
fill: $clr;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
@include hover() {
|
105
|
+
color: $hover-clr;
|
106
|
+
@if $hover-bg-clr {
|
107
|
+
background-color: $hover-bg-clr;
|
108
|
+
}
|
109
|
+
@if $ignore-path == false {
|
110
|
+
svg path {
|
111
|
+
fill: $hover-clr;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
@include active() {
|
116
|
+
color: $active-clr;
|
117
|
+
@if $active-bg-clr {
|
118
|
+
background-color: $active-bg-clr;
|
119
|
+
}
|
120
|
+
@if $ignore-path == false {
|
121
|
+
svg path {
|
122
|
+
fill: $active-clr;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
@include focus() {
|
127
|
+
color: $focus-clr;
|
128
|
+
@if $focus-bg-clr{
|
129
|
+
background-color: $focus-bg-clr;
|
130
|
+
box-shadow: 0 0 0 2px rgba($focus-bg-clr, .4);
|
131
|
+
}
|
132
|
+
@if $ignore-path == false {
|
133
|
+
svg path {
|
134
|
+
fill: $focus-clr;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
@include disabled() {
|
139
|
+
@if $theme == "light" {
|
140
|
+
color: rgba($clr, .2) !important;
|
141
|
+
}
|
142
|
+
@if $theme == "dark" {
|
143
|
+
color: rgba($clr, .4) !important;
|
144
|
+
}
|
145
|
+
@if $bg-clr {
|
146
|
+
background-color: $bg-clr !important;
|
147
|
+
}
|
148
|
+
@if $ignore-path == false {
|
149
|
+
svg path {
|
150
|
+
@if $theme == "light" {
|
151
|
+
fill: rgba($clr, .2) !important;
|
152
|
+
}
|
153
|
+
@if $theme == "dark" {
|
154
|
+
fill: rgba($clr, .4) !important;
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|