jekyll-text-theme 2.0.2 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/_data/locale.yml +12 -0
  4. data/_includes/analytics-providers/google.html +7 -9
  5. data/_includes/article-info.html +19 -35
  6. data/_includes/article-list.html +73 -0
  7. data/_includes/author-links.html +7 -0
  8. data/_includes/header.html +13 -9
  9. data/_includes/markdown-enhancements.html +3 -3
  10. data/_includes/paginator.html +73 -72
  11. data/_includes/scripts/archieve.js +57 -160
  12. data/_includes/scripts/aside/affix.js +2 -0
  13. data/_includes/scripts/lib/affix.js +8 -6
  14. data/_includes/scripts/lib/toc.js +3 -5
  15. data/_includes/scripts/search-data.js +14 -0
  16. data/_includes/scripts/search.js +177 -0
  17. data/_includes/scripts/utils.js +1 -1
  18. data/_includes/scripts/variables.html +6 -0
  19. data/_includes/search.html +24 -0
  20. data/_includes/snippets/is_collection.html +6 -0
  21. data/_includes/snippets/prepend-baseurl.html +4 -1
  22. data/_includes/snippets/prepend-path.html +1 -0
  23. data/_includes/svg/icon/social/npm.svg +9 -0
  24. data/_includes/tags.html +2 -2
  25. data/_layouts/archive.html +3 -9
  26. data/_layouts/base.html +1 -0
  27. data/_layouts/home.html +1 -28
  28. data/_layouts/landing.html +11 -4
  29. data/_layouts/page.html +18 -8
  30. data/_sass/common/_classes.scss +1 -0
  31. data/_sass/common/_function.scss +2 -2
  32. data/_sass/common/_reset.scss +5 -5
  33. data/_sass/common/_variables.scss +22 -14
  34. data/_sass/common/classes/_animation.scss +1 -1
  35. data/_sass/common/classes/_clearfix.scss +7 -3
  36. data/_sass/common/classes/_clickable.scss +13 -13
  37. data/_sass/common/classes/_display.scss +3 -0
  38. data/_sass/common/classes/_flex.scss +131 -131
  39. data/_sass/common/classes/_grid.scss +3 -3
  40. data/_sass/common/classes/_horizontal-rules.scss +3 -3
  41. data/_sass/common/classes/_overflow.scss +3 -3
  42. data/_sass/common/classes/_spacing.scss +24 -24
  43. data/_sass/common/classes/_transform.scss +1 -1
  44. data/_sass/common/classes/_transition.scss +1 -1
  45. data/_sass/common/classes/_user-select.scss +3 -3
  46. data/_sass/common/components/_button.scss +19 -9
  47. data/_sass/common/components/_card.scss +2 -2
  48. data/_sass/common/components/_item.scss +90 -0
  49. data/_sass/common/components/_menu.scss +8 -4
  50. data/_sass/common/components/_toc.scss +7 -2
  51. data/_sass/components/_article-content.scss +25 -18
  52. data/_sass/components/_article-info.scss +2 -2
  53. data/_sass/components/_article-list.scss +3 -0
  54. data/_sass/components/_author-links.scss +3 -0
  55. data/_sass/components/_author-profile.scss +5 -5
  56. data/_sass/components/_footer.scss +13 -5
  57. data/_sass/components/_header.scss +80 -46
  58. data/_sass/components/_main.scss +3 -3
  59. data/_sass/components/_search.scss +97 -0
  60. data/_sass/components/_tags.scss +3 -2
  61. data/_sass/layout/_archive.scss +5 -82
  62. data/_sass/layout/_article.scss +2 -2
  63. data/_sass/layout/_base.scss +1 -1
  64. data/_sass/layout/_home.scss +10 -68
  65. data/_sass/layout/_landing.scss +5 -6
  66. data/_sass/layout/_page.scss +34 -12
  67. data/_sass/skins/_chocolate.scss +2 -1
  68. data/_sass/skins/_dark.scss +3 -2
  69. data/_sass/skins/_default.scss +2 -1
  70. data/_sass/skins/_forest.scss +2 -1
  71. data/_sass/skins/_ocean.scss +2 -1
  72. data/_sass/skins/_orange.scss +2 -1
  73. data/_sass/skins/highlight/tomorrow/_highlight.scss +65 -65
  74. data/_sass/skins/highlight/tomorrow/_night-blue.scss +2 -2
  75. data/_sass/skins/highlight/tomorrow/_night-bright.scss +1 -1
  76. data/_sass/skins/highlight/tomorrow/_night-eighties.scss +7 -7
  77. data/_sass/skins/highlight/tomorrow/_night.scss +1 -1
  78. data/assets/css/main.scss +4 -1
  79. data/assets/search.js +3 -0
  80. metadata +14 -3
  81. data/_includes/scripts/article-list.html +0 -25
@@ -16,7 +16,7 @@
16
16
  };
17
17
 
18
18
  window.isOverallScroller = function(node) {
19
- return node === document.documentElement || node === document.body;
19
+ return node === document.documentElement || node === document.body || node === window;
20
20
  };
21
21
 
22
22
  window.pageLoad = (function () {
@@ -1,6 +1,9 @@
1
1
  {%- include snippets/get-sources.html -%}
2
2
  {%- assign _sources = __return -%}
3
3
 
4
+ {%- include snippets/get-nav-url.html path="/assets/search.js" -%}
5
+ {%- assign _paths_search_js = __return -%}
6
+
4
7
  <script>
5
8
  (function() {
6
9
  var TEXT_VARIABLES = {
@@ -20,6 +23,9 @@
20
23
  toc: {
21
24
  selectors: '{{ site.toc.selectors | default: site.data.variables.default.toc.selectors }}'
22
25
  }
26
+ },
27
+ paths: {
28
+ search_js: '{{ _paths_search_js }}'
23
29
  }
24
30
  };
25
31
  window.TEXT_VARIABLES = TEXT_VARIABLES;
@@ -0,0 +1,24 @@
1
+ {%- include snippets/locale-to-string.html locale=site.data.locale.CANCEL -%}
2
+ {%- assign _locale_cancel = __return -%}
3
+ {%- include snippets/locale-to-string.html locale=site.data.locale.SEARCH -%}
4
+ {%- assign _locale_search = __return -%}
5
+
6
+ <div class="search">
7
+ <div class="main">
8
+ <div class="search__header">{{ _locale_search }}</div>
9
+ <div class="search-bar">
10
+ <div class="search-box js-search-box">
11
+ <div class="search-box__icon-search"><i class="fas fa-search"></i></div>
12
+ <input type="text" />
13
+ <div class="search-box__icon-clear js-icon-clear">
14
+ <a><i class="fas fa-times"></i></a>
15
+ </div>
16
+ </div>
17
+ <button class="button button--secondary button--pill search__cancel js-search-toggle">
18
+ {{ _locale_cancel }}</button>
19
+ </div>
20
+ <div class="search-result js-search-result"></div>
21
+ </div>
22
+ </div>
23
+
24
+ <script>{%- include scripts/search.js -%}</script>
@@ -0,0 +1,6 @@
1
+ {%- assign _page_path_first_char = include.page.path | slice: 0, 1 -%}
2
+ {%- if _page_path_first_char == '_' -%}
3
+ {%- assign __return = true -%}
4
+ {%- else -%}
5
+ {%- assign __return = false -%}
6
+ {%- endif -%}
@@ -1 +1,4 @@
1
- {%- assign __return = include.path | replace:'index.html','' | prepend: site.baseurl | replace:'//','/' -%}
1
+ {%- assign _include_path_replace_index = include.path | replace: 'index.html', '' -%}
2
+ {%- include snippets/prepend-path.html
3
+ path=_include_path_replace_index
4
+ prepend_path=site.baseurl -%}
@@ -0,0 +1 @@
1
+ {%- assign __return = include.path | prepend: '/' | prepend: include.prepend_path | replace:'//','/' -%}
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 48 48" version="1.1" width="24px" height="24px">
3
+ <g id="surface1">
4
+ <path style=" fill:#D50000;" d="M 0 15 L 48 15 L 48 32 L 24 32 L 24 35 L 13 35 L 13 32 L 0 32 Z "/>
5
+ <path style=" fill:#FFFFFF;" d="M 3 29 L 8 29 L 8 21 L 11 21 L 11 29 L 13 29 L 13 18 L 3 18 Z "/>
6
+ <path style=" fill:#FFFFFF;" d="M 16 18 L 16 32 L 21 32 L 21 29 L 26 29 L 26 18 Z M 24 26 L 21 26 L 21 21 L 24 21 Z "/>
7
+ <path style=" fill:#FFFFFF;" d="M 29 18 L 29 29 L 34 29 L 34 21 L 37 21 L 37 29 L 40 29 L 40 21 L 43 21 L 43 29 L 45 29 L 45 18 Z "/>
8
+ </g>
9
+ </svg>
@@ -18,7 +18,7 @@
18
18
  <div class="site-tags js-tags">
19
19
  <ul class="menu">
20
20
  <li>
21
- <button type="button" class="button button--secondary button--pill tag-button js-article-tag js-tag-show-all" data-encode="">
21
+ <button type="button" class="button button--secondary button--pill tag-button tag-button--all" data-encode="">
22
22
  Show All<div class="tag-button__count">{{ site.posts | size }}</div>
23
23
  </button>
24
24
  </li>
@@ -43,7 +43,7 @@
43
43
  {%- else -%}
44
44
  {%- assign _c_index = 4 -%}
45
45
  {%- endif -%}
46
- <li><button type="button" class="button button--pill tag-button tag-button-{{ _c_index }} js-article-tag" data-encode="{{ _tag[0] | strip | url_encode }}">
46
+ <li><button type="button" class="button button--pill tag-button tag-button-{{ _c_index }}" data-encode="{{ _tag[0] | strip | url_encode }}">
47
47
  <span>{{ _tag[0] | strip }}</span><div class="tag-button__count">{{ _tag[1].size }}</div>
48
48
  </button>
49
49
  </li>
@@ -5,19 +5,13 @@ titles:
5
5
  zh: 归档
6
6
  zh-Hans: 归档
7
7
  zh-Hant: 歸檔
8
- show_title: false
9
8
  ---
10
9
 
11
10
  <div class="layout--archive js-all">
12
- <div class="search-box js-search-box">
13
- <div class="search-box__icon-search"><i class="fas fa-search"></i></div>
14
- <input type="text" />
15
- <div class="search-box__icon-clear js-icon-clear">
16
- <div class="button button--secondary button--circle button--sm"><i class="fas fa-times"></i></div>
17
- </div>
18
- </div>
19
11
  {%- include tags.html -%}
20
- <div class="js-result layout--archive__result"></div>
12
+ <div class="js-result layout--archive__result d-none">
13
+ {%- include article-list.html articles=site.posts type='brief' reverse=true group_by='year' -%}
14
+ </div>
21
15
  </div>
22
16
 
23
17
  <script>
@@ -5,6 +5,7 @@ layout: none
5
5
  {%- include snippets/get-lang.html -%}
6
6
  <html lang="{{ __return }}">
7
7
  <head>
8
+ {%- include analytics.html -%}
8
9
  {%- include head.html -%}
9
10
  <script>
10
11
  {%- include scripts/utils.js -%}
@@ -8,36 +8,9 @@ titles:
8
8
  show_title: false
9
9
  ---
10
10
  <div class="layout--home">
11
-
12
- <div class="post-list">
13
- {%- for post in paginator.posts -%}
14
- <article itemscope itemtype="http://schema.org/BlogPosting">
15
-
16
- {%- include snippets/prepend-baseurl.html path=post.url -%}
17
- {%- assign _href = __return -%}
18
-
19
- {%- include snippets/locale-to-string.html locale=site.data.locale.READMORE -%}
20
- {%- assign _locale_readmore = __return -%}
21
-
22
- <header class="article__header"><h2 itemprop="headline"><a href="{{ _href }}">{{ post.title }}</a></h2></header>
23
- <div class="article__content" itemprop="description articleBody">
24
- {%- assign _excerpt_type = site.excerpt_type | default: site.data.variables.default.excerpt_type -%}
25
- {%- if _excerpt_type == 'html' -%}
26
- {{ post.excerpt }}
27
- {%- else -%}
28
- {{ post.excerpt | strip_html | truncate: 350 }}
29
- {%- endif -%}
30
- </div>
31
-
32
- <p class="post-list__readmore"><a href="{{ _href }}">{{ _locale_readmore }}</a></p>
33
- {%- include article-info.html -%}
34
- </article>
35
- {%- endfor -%}
36
- </div>
37
-
11
+ {%- include article-list.html articles=paginator.posts type='common' show_excerpt=true excerpt_type=site.excerpt_type -%}
38
12
  {%- include paginator.html -%}
39
13
  </div>
40
-
41
14
  <script>
42
15
  {%- include scripts/home.js -%}
43
16
  </script>
@@ -16,7 +16,7 @@ full_width: true
16
16
  {%- elsif page.data.theme == 'dark' -%}
17
17
  <section class="section section--dark overlay" style="background-image: url({{ _url }});">
18
18
  {%- else -%}
19
- <section class="section overlay" style="background-image: url({{ page.data.background_image.src }});">
19
+ <section class="section overlay" style="background-image: url({{ _url }});">
20
20
  {%- endif -%}
21
21
  <div class="section__content">
22
22
  <h1>{{ _title }}</h1>
@@ -37,12 +37,19 @@ full_width: true
37
37
  </section>
38
38
 
39
39
  {%- for _section in page.data.sections -%}
40
+ {%- include snippets/get-nav-url.html path=_section.background_image.src -%}
41
+ {%- assign _url = __return -%}
40
42
  {%- if _section.theme == 'light' -%}
41
- <section class="section section--light feature" id="section-{{ forloop.index }}">
43
+ <section class="section section--light feature" id="section-{{ forloop.index }}"
42
44
  {%- elsif _section.theme == 'dark' -%}
43
- <section class="section section--dark feature" id="section-{{ forloop.index }}">
45
+ <section class="section section--dark feature" id="section-{{ forloop.index }}"
44
46
  {%- else -%}
45
- <section class="section feature" id="section-{{ forloop.index }}">
47
+ <section class="section feature" id="section-{{ forloop.index }}"
48
+ {%- endif -%}
49
+ {%- if _section.background_color -%}
50
+ style="background-image: url({{ _url }}); background-color: {{ _section.background_color }};">
51
+ {%- else -%}
52
+ style="background-image: url({{ _url }});">
46
53
  {%- endif -%}
47
54
 
48
55
  <div class="section__content">
@@ -39,7 +39,7 @@ layout: base
39
39
  <div class="page__mask js-sidebar-hide"></div>
40
40
 
41
41
  {%- else -%}
42
- <div class="layout--page clearfix">
42
+ <div class="layout--page clearfix js-page-root">
43
43
  {%- endif -%}
44
44
 
45
45
  {%- if _full_width -%}
@@ -55,7 +55,6 @@ layout: base
55
55
  {%- if _show_header -%}
56
56
  <div class="page__header">{%- include header.html -%}</div>
57
57
  {%- endif -%}
58
-
59
58
  <div class="page__content">
60
59
  {%- if _full_width == false -%}
61
60
  <div class ="main">
@@ -87,11 +86,21 @@ layout: base
87
86
  {%- endif-%}
88
87
  {%- if _show_edit_on_github -%}
89
88
  {%- if site.repository and site.repository_tree -%}
89
+ {%- include snippets/is_collection.html page=page -%}
90
+ {%- assign _is_page_collection = __return -%}
90
91
  {%- include snippets/locale-to-string.html locale=site.data.locale.POST_ON_GITHUB -%}
92
+ {%- assign _locale_post_on_github = __return -%}
93
+ {%- if _is_page_collection -%}
94
+ {%- include snippets/prepend-path.html path=page.path prepend_path=site.collections_dir -%}
95
+ {%- assign _page_path = __return -%}
96
+ {%- else -%}
97
+ {%- assign _page_path = page.path -%}
98
+ {%- endif -%}
99
+ {%- assign _github_path = site.repository | append: '/tree/' | append: site.repository_tree | append: '/' | append: _page_path | replace:'//','/' -%}
91
100
  <span class="split-space">&nbsp;</span>
92
101
  <a class="edit-on-github"
93
- title="{{ __return }}"
94
- href="https://github.com/{{ site.repository }}/tree/{{ site.repository_tree }}/{{ page.path }}">
102
+ title="{{ _locale_post_on_github }}"
103
+ href="https://github.com/{{ _github_path }}">
95
104
  <i class="far fa-edit"></i></a>
96
105
  {%- endif -%}
97
106
  {%- endif -%}
@@ -99,7 +108,7 @@ layout: base
99
108
  </div>
100
109
  {%- endif -%}
101
110
 
102
- {%- include article-info.html -%}
111
+ {%- include article-info.html article=page -%}
103
112
 
104
113
  <div class="js-article-content">{{ content }}</div>
105
114
 
@@ -116,9 +125,11 @@ layout: base
116
125
  </div>
117
126
 
118
127
  <div class="page__footer">{%- include footer.html -%}</div>
119
-
120
128
  </div>
121
129
  </div>
130
+ {%- if _show_header -%}
131
+ <div class="page__search-panel">{%- include search.html -%}</div>
132
+ {%- endif -%}
122
133
  </div>
123
134
 
124
135
 
@@ -147,5 +158,4 @@ layout: base
147
158
 
148
159
 
149
160
  {%- include markdown-enhancements.html -%}
150
- {%- include pageview.html -%}
151
- {%- include analytics.html -%}
161
+ {%- include pageview.html -%}
@@ -4,6 +4,7 @@
4
4
  "common/classes/animation",
5
5
  "common/classes/clearfix",
6
6
  "common/classes/clickable",
7
+ "common/classes/display",
7
8
  "common/classes/flex",
8
9
  "common/classes/horizontal-rules",
9
10
  "common/classes/pseudo",
@@ -1,7 +1,7 @@
1
1
  @function get-color-theme($color) {
2
2
  @if lightness($color) < 15% {
3
- @return 'dark';
3
+ @return "dark";
4
4
  } @else {
5
- @return 'light';
5
+ @return "light";
6
6
  }
7
7
  }
@@ -29,13 +29,13 @@ html {
29
29
  }
30
30
 
31
31
  body {
32
- margin: 0;
33
32
  padding: 0;
33
+ margin: 0;
34
34
  }
35
35
 
36
36
  @include block-elements() {
37
- margin: map-get($base, vertical-space) 0;
38
37
  padding: 0;
38
+ margin: map-get($base, vertical-space) 0;
39
39
  }
40
40
 
41
41
  body {
@@ -148,13 +148,13 @@ figcaption {
148
148
  }
149
149
 
150
150
  button {
151
+ padding: 0;
152
+ margin: 0;
151
153
  font-size: 1rem;
152
154
  cursor: pointer;
153
- outline: none;
154
155
  background-color: transparent;
155
- padding: 0;
156
- margin: 0;
157
156
  border-width: 0;
157
+ outline: none;
158
158
  }
159
159
 
160
160
  input {
@@ -66,6 +66,13 @@ $spacers: (
66
66
  5: map-get($base, spacer) * 3
67
67
  );
68
68
 
69
+ $z-index: (
70
+ actions: 996,
71
+ mask: 997,
72
+ sidebar: 998,
73
+ search: 999
74
+ );
75
+
69
76
  $layout: (
70
77
  header-height: 5rem,
71
78
  header-height-sm: 3rem,
@@ -81,7 +88,7 @@ $layout: (
81
88
  // 0 500 1024 -
82
89
 
83
90
  $responsive: (
84
- sm: 0px,
91
+ sm: 0,
85
92
  md: 500px,
86
93
  lg: 1024px
87
94
  );
@@ -95,23 +102,24 @@ $link: (
95
102
  transition: all .2s ease-in-out
96
103
  );
97
104
 
98
- $button: (
99
- padding-y-lg: .3rem,
100
- padding-x-lg: 1.2rem,
101
-
102
- padding-y: .1rem,
103
- padding-x: .55rem,
105
+ $button-height-lg: 2.3rem;
106
+ $button-height: 1.9rem;
107
+ $button-height-sm: 1.5rem;
104
108
 
105
- padding-y-sm: .06rem,
106
- padding-x-sm: .35rem,
107
-
108
- font-weight: map-get($base, font-weight-bold),
109
+ $button: (
110
+ padding-y-lg: ($button-height-lg - map-get($base, font-size-lg)) / 2,
111
+ padding-x-lg: $button-height-lg / 3,
112
+ padding-y: ($button-height - map-get($base, font-size)) / 2,
113
+ padding-x: $button-height / 3,
114
+ padding-y-sm: ($button-height-sm - map-get($base, font-size-sm)) / 2,
115
+ padding-x-sm: $button-height-sm / 3,
109
116
 
110
117
  pill-radius: 4rem,
111
118
 
112
- circle-diameter-lg: 2.8rem,
113
- circle-diameter: 2rem,
114
- circle-diameter-sm: 1.5rem,
119
+ circle-diameter-lg: $button-height-lg,
120
+ circle-diameter: $button-height,
121
+ circle-diameter-sm: $button-height-sm,
122
+ font-weight: map-get($base, font-weight-bold),
115
123
 
116
124
  transition: all .2s ease-in-out
117
125
  );
@@ -1,6 +1,6 @@
1
1
  @mixin animation($value) {
2
2
  -webkit-animation: $value;
3
- animation: $value;
3
+ animation: $value;
4
4
  }
5
5
 
6
6
  @mixin keyframes($name) {
@@ -1,11 +1,15 @@
1
- .clearfix {
2
- &:after {
3
- content: "";
1
+ @mixin clearfix() {
2
+ &::after {
4
3
  display: table;
5
4
  clear: both;
5
+ content: "";
6
6
  }
7
7
  }
8
8
 
9
+ .clearfix {
10
+ @include clearfix();
11
+ }
12
+
9
13
  .left {
10
14
  float: left;
11
15
  }
@@ -19,22 +19,22 @@
19
19
  // hover
20
20
  @if $hover-clr == default {
21
21
  @if $hover-bg-clr == null {
22
- @if $theme == 'light' {
22
+ @if $theme == "light" {
23
23
  $hover-clr: darken($clr, 14%);
24
24
  }
25
- @if $theme == 'dark' {
25
+ @if $theme == "dark" {
26
26
  $hover-clr: lighten($clr, 18%);
27
27
  }
28
28
  } @else if $hover-bg-clr == default {
29
- $hover-clr: $clr
29
+ $hover-clr: $clr;
30
30
  }
31
31
  }
32
32
 
33
33
  @if $hover-bg-clr == default {
34
- @if $theme == 'light' {
34
+ @if $theme == "light" {
35
35
  $hover-bg-clr: darken($bg-clr, 14%);
36
36
  }
37
- @if $theme == 'dark' {
37
+ @if $theme == "dark" {
38
38
  $hover-bg-clr: lighten($bg-clr, 18%);
39
39
  }
40
40
  }
@@ -42,10 +42,10 @@
42
42
  // active
43
43
  @if $active-clr == default {
44
44
  @if $active-bg-clr == null {
45
- @if $theme == 'light' {
45
+ @if $theme == "light" {
46
46
  $active-clr: darken($hover-clr, 15%);
47
47
  }
48
- @if $theme == 'dark' {
48
+ @if $theme == "dark" {
49
49
  $active-clr: lighten($hover-clr, 16%);
50
50
  }
51
51
  } @else if $active-bg-clr == default {
@@ -54,10 +54,10 @@
54
54
  }
55
55
 
56
56
  @if $active-bg-clr == default {
57
- @if $theme == 'light' {
57
+ @if $theme == "light" {
58
58
  $active-bg-clr: darken($hover-bg-clr, 15%);
59
59
  }
60
- @if $theme == 'dark' {
60
+ @if $theme == "dark" {
61
61
  $active-bg-clr: lighten($hover-bg-clr, 16%);
62
62
  }
63
63
  }
@@ -75,7 +75,7 @@
75
75
  $focus-bg-clr: $hover-bg-clr;
76
76
  }
77
77
 
78
- @include plain {
78
+ @include plain() {
79
79
  color: $clr;
80
80
  @if $bg-clr {
81
81
  background-color: $bg-clr;
@@ -84,7 +84,7 @@
84
84
  fill: $clr;
85
85
  }
86
86
  }
87
- @include hover {
87
+ @include hover() {
88
88
  color: $hover-clr;
89
89
  @if $hover-bg-clr {
90
90
  background-color: $hover-bg-clr;
@@ -93,7 +93,7 @@
93
93
  fill: $hover-clr;
94
94
  }
95
95
  }
96
- @include active {
96
+ @include active() {
97
97
  color: $active-clr;
98
98
  @if $active-bg-clr {
99
99
  background-color: $active-bg-clr;
@@ -102,7 +102,7 @@
102
102
  fill: $active-clr;
103
103
  }
104
104
  }
105
- @include focus {
105
+ @include focus() {
106
106
  color: $focus-clr;
107
107
  @if $focus-bg-clr{
108
108
  background-color: $focus-bg-clr;