jekyll-text-theme 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -3
- data/_data/locale.yml +4 -4
- data/_data/variables.yml +1 -0
- data/_includes/article-footer/author-profile.html +2 -7
- data/_includes/article-footer/license.html +1 -2
- data/_includes/article-info.html +6 -13
- data/_includes/article-section-navigator.html +54 -0
- data/_includes/{follow-me.html → author-links.html} +4 -10
- data/_includes/footer.html +20 -21
- data/_includes/head.html +10 -18
- data/_includes/header.html +5 -8
- data/_includes/markdown-enhancements.html +6 -18
- data/_includes/markdown-enhancements/mathjax.html +4 -8
- data/_includes/markdown-enhancements/mermaid.html +3 -1
- data/_includes/pageview.html +1 -3
- data/_includes/paginator.html +97 -0
- data/_includes/scripts/archieve.js +4 -4
- data/_includes/scripts/article-list.html +2 -4
- data/_includes/scripts/aside/affix.js +7 -9
- data/_includes/scripts/aside/toc.js +7 -9
- data/_includes/scripts/{sidebar.js → components/sidebar.js} +0 -0
- data/_includes/scripts/lib/affix.js +35 -26
- data/_includes/scripts/lib/toc.js +7 -5
- data/_includes/sidebar/toc.html +2 -4
- data/_includes/snippets/assign.html +7 -3
- data/_includes/snippets/get-nav-url.html +4 -4
- data/_includes/snippets/get-sources.html +1 -4
- data/_includes/snippets/locale-to-string.html +4 -4
- data/_includes/snippets/page-title.html +2 -4
- data/_includes/snippets/page-url.html +1 -2
- data/_includes/snippets/prepend-baseurl.html +1 -1
- data/_includes/tags.html +1 -1
- data/_layouts/article.html +8 -38
- data/_layouts/home.html +4 -108
- data/_layouts/landing.html +6 -12
- data/_layouts/page.html +16 -28
- data/_sass/additional/_alert.scss +4 -4
- data/_sass/animate/_fade-in-up.scss +10 -0
- data/_sass/common/_classes.scss +2 -1
- data/_sass/common/_reset.scss +0 -13
- data/_sass/common/_variables.scss +1 -1
- data/_sass/common/classes/_clickable.scss +1 -1
- data/_sass/common/classes/_link.scss +0 -62
- data/_sass/common/components/_menu.scss +21 -1
- data/_sass/common/components/_toc.scss +9 -10
- data/_sass/components/{_article.content.scss → _article-content.scss} +3 -5
- data/_sass/components/{_article.info.scss → _article-info.scss} +3 -3
- data/_sass/components/{_follow-me.scss → _author-links.scss} +1 -1
- data/_sass/components/_author-profile.scss +1 -1
- data/_sass/components/_footer.scss +14 -12
- data/_sass/components/_header.scss +2 -1
- data/_sass/components/_tags.scss +1 -0
- data/_sass/layout/_archive.scss +7 -4
- data/_sass/layout/_article.scss +1 -1
- data/_sass/layout/_base.scss +10 -0
- data/_sass/layout/_home.scss +3 -0
- data/_sass/layout/_page.scss +5 -1
- data/_sass/skins/_chocolate.scss +25 -14
- data/_sass/skins/_dark.scss +19 -8
- data/_sass/skins/_default.scss +16 -5
- data/_sass/skins/_forest.scss +17 -6
- data/_sass/skins/_ocean.scss +23 -12
- data/_sass/skins/_orange.scss +26 -14
- 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/css/main.scss +20 -9
- metadata +23 -9
- data/_includes/snippets/to-boolean.html +0 -7
- data/_sass/common/_highlighting.scss +0 -65
data/_layouts/article.html
CHANGED
@@ -3,12 +3,8 @@ layout: page
|
|
3
3
|
type: article
|
4
4
|
---
|
5
5
|
|
6
|
-
{%- assign
|
7
|
-
{%- assign
|
8
|
-
{%- include snippets/assign.html -%}
|
9
|
-
{%- assign __target = site.data.variables.default.page.show_author_profile -%}
|
10
|
-
{%- assign __source = __return -%}
|
11
|
-
{%- include snippets/assign.html -%}
|
6
|
+
{%- include snippets/assign.html target=site.data.variables.default.page.show_author_profile source0=layout.show_author_profile -%}
|
7
|
+
{%- include snippets/assign.html target=__return source0=page.show_author_profile -%}
|
12
8
|
{%- assign _show_author_profile = __return -%}
|
13
9
|
|
14
10
|
<div class="layout--article">
|
@@ -17,12 +13,10 @@ type: article
|
|
17
13
|
|
18
14
|
<footer class="article__footer">
|
19
15
|
{%- if page.modify_date -%}
|
20
|
-
{%-
|
21
|
-
{%- include snippets/locale-to-string.html -%}
|
16
|
+
{%- include snippets/locale-to-string.html locale=site.data.locale.ARTICLE_DATE_FORMAT -%}
|
22
17
|
{%- assign _locale_date_format = __return -%}
|
23
18
|
|
24
|
-
{%-
|
25
|
-
{%- include snippets/locale-to-string.html -%}
|
19
|
+
{%- include snippets/locale-to-string.html locale=site.data.locale.LAST_UPDATED -%}
|
26
20
|
{%- assign _locale_last_update = __return -%}
|
27
21
|
<span>{{ _locale_last_update }}
|
28
22
|
<time itemprop="dateModified" datetime="{{ page.modify_date | date_to_xmlschema }}">{{ page.modify_date | date: _locale_date_format }}</time>
|
@@ -34,11 +28,11 @@ type: article
|
|
34
28
|
|
35
29
|
{%- if _show_author_profile -%}
|
36
30
|
{%- if page.author -%}
|
37
|
-
{%- assign
|
31
|
+
{%- assign _author = site.data.authors[page.author] -%}
|
38
32
|
{%- else -%}
|
39
|
-
{%- assign
|
33
|
+
{%- assign _author = site.author -%}
|
40
34
|
{%- endif -%}
|
41
|
-
{%- include article-footer/author-profile.html -%}
|
35
|
+
{%- include article-footer/author-profile.html author=_author -%}
|
42
36
|
{%- endif -%}
|
43
37
|
|
44
38
|
{%- if page.license -%}
|
@@ -46,31 +40,7 @@ type: article
|
|
46
40
|
{%- endif -%}
|
47
41
|
</footer>
|
48
42
|
|
49
|
-
{%-
|
50
|
-
<div class="article__previous-next clearfix">
|
51
|
-
{%- if page.next -%}
|
52
|
-
|
53
|
-
{%- assign __path = page.next.url -%}
|
54
|
-
{%- include snippets/prepend-baseurl.html -%}
|
55
|
-
{%- assign _href = __return -%}
|
56
|
-
|
57
|
-
{%- assign __locale = site.data.locale.PREVIOUS -%}
|
58
|
-
{%- include snippets/locale-to-string.html -%}
|
59
|
-
{%- assign _locale_previous = __return -%}
|
60
|
-
|
61
|
-
<div class="previous"><span>{{ _locale_previous }}</span><a href="{{ _href }}">{{ page.next.title }}</a></div>
|
62
|
-
{%- endif -%}
|
63
|
-
{%- if page.previous -%}
|
64
|
-
{%- assign __path = page.previous.url -%}
|
65
|
-
{%- include snippets/prepend-baseurl.html -%}
|
66
|
-
{%- assign _href = __return -%}
|
67
|
-
{%- assign __locale = site.data.locale.NEXT -%}
|
68
|
-
{%- include snippets/locale-to-string.html -%}
|
69
|
-
{%- assign _locale_next = __return -%}
|
70
|
-
<div class="next"><span>{{ _locale_next }}</span><a href="{{ _href }}">{{ page.previous.title }}</a></div>
|
71
|
-
{%- endif -%}
|
72
|
-
</div>
|
73
|
-
{%- endif -%}
|
43
|
+
{%- include article-section-navigator.html -%}
|
74
44
|
|
75
45
|
</div>
|
76
46
|
|
data/_layouts/home.html
CHANGED
@@ -13,12 +13,10 @@ show_title: false
|
|
13
13
|
{%- for post in paginator.posts -%}
|
14
14
|
<article itemscope itemtype="http://schema.org/BlogPosting">
|
15
15
|
|
16
|
-
{%-
|
17
|
-
{%- include snippets/prepend-baseurl.html -%}
|
16
|
+
{%- include snippets/prepend-baseurl.html path=post.url -%}
|
18
17
|
{%- assign _href = __return -%}
|
19
18
|
|
20
|
-
{%-
|
21
|
-
{%- include snippets/locale-to-string.html -%}
|
19
|
+
{%- include snippets/locale-to-string.html locale=site.data.locale.READMORE -%}
|
22
20
|
{%- assign _locale_readmore = __return -%}
|
23
21
|
|
24
22
|
<header class="article__header"><h2 itemprop="headline"><a href="{{ _href }}">{{ post.title }}</a></h2></header>
|
@@ -31,115 +29,13 @@ show_title: false
|
|
31
29
|
{%- endif -%}
|
32
30
|
</div>
|
33
31
|
|
34
|
-
<p><a href="{{ _href }}">{{ _locale_readmore }}</a></p>
|
32
|
+
<p class="post-list__readmore"><a href="{{ _href }}">{{ _locale_readmore }}</a></p>
|
35
33
|
{%- include article-info.html -%}
|
36
34
|
</article>
|
37
35
|
{%- endfor -%}
|
38
36
|
</div>
|
39
37
|
|
40
|
-
|
41
|
-
{%- if paginator.total_pages > 1 -%}
|
42
|
-
<nav class="pagination">
|
43
|
-
|
44
|
-
{%- assign __locale = site.data.locale.STATISTICS -%}
|
45
|
-
{%- include snippets/locale-to-string.html -%}
|
46
|
-
{%- assign _locale_statistics = __return -%}
|
47
|
-
|
48
|
-
{%- assign _post_count = site.posts | size -%}
|
49
|
-
{%- assign _page_count = paginator.total_pages -%}
|
50
|
-
<p>{{ _locale_statistics | replace: '[POST_COUNT]', _post_count | replace: '[PAGE_COUNT]', _page_count }}</p>
|
51
|
-
|
52
|
-
<ul class="menu menu--nowrap">
|
53
|
-
{%- assign _max_show = 5 -%}
|
54
|
-
{%- assign _max_show_modulo_two = _max_show | modulo: 2 -%}
|
55
|
-
{%- assign _length = paginator.total_pages -%}
|
56
|
-
{%- assign _length_mimus_one = _length | minus: 1 -%}
|
57
|
-
{%- assign _cur = paginator.page -%}
|
58
|
-
{%- assign _extra = _max_show | minus: 3 -%}
|
59
|
-
{%- assign _extra_half = _extra | divided_by: 2 -%}
|
60
|
-
|
61
|
-
{%- if _max_show > 4 and _max_show_modulo_two == 1 and paginator.total_pages > _max_show -%}
|
62
|
-
{%- assign _condition0 = _extra | divided_by: 2 | plus: 1 -%}
|
63
|
-
{%- assign _condition1 = _length | minus: _extra_half -%}
|
64
|
-
{%- if _cur <= _condition0 -%}
|
65
|
-
{%- assign _n0 = 2 -%}
|
66
|
-
{%- assign _n1 = _extra | plus: 2 -%}
|
67
|
-
{%- elsif _cur >= _condition1 -%}
|
68
|
-
{%- assign _n0 = _length | minus: _extra | minus: 1 -%}
|
69
|
-
{%- assign _n1 = _length | minus: 1 -%}
|
70
|
-
{%- else -%}
|
71
|
-
{%- assign _n0 = _cur | minus: _extra_half -%}
|
72
|
-
{%- assign _n1 = _cur | plus: _extra_half -%}
|
73
|
-
{%- endif -%}
|
74
|
-
{%- endif -%}
|
75
|
-
|
76
|
-
{%- if paginator.previous_page -%}
|
77
|
-
{%- assign __path = paginator.previous_page_path -%}
|
78
|
-
{%- include snippets/prepend-baseurl.html -%}
|
79
|
-
{%- assign _href = __return -%}
|
80
|
-
<li><a class="button button--secondary button--circle" href="{{ _href }}">
|
81
|
-
<i class="fas fa-angle-left"></i>
|
82
|
-
</a></li>
|
83
|
-
{%- else -%}
|
84
|
-
<li><div class="button button--secondary button--circle disabled">
|
85
|
-
<i class="fas fa-angle-left"></i>
|
86
|
-
</div></li>
|
87
|
-
{%- endif -%}
|
88
|
-
|
89
|
-
{%- for page in (1.._length) -%}
|
90
|
-
{%- if page == _cur -%}
|
91
|
-
<li>
|
92
|
-
<div class="button button--primary button--circle"><span>{{ page }}</span></div>
|
93
|
-
</li>
|
94
|
-
|
95
|
-
{%- elsif page == 1 -%}
|
96
|
-
{%- assign __path = site.paths.home | default: site.data.variables.default.paths.home -%}
|
97
|
-
{%- include snippets/prepend-baseurl.html -%}
|
98
|
-
{%- assign _href = __return -%}
|
99
|
-
<li>
|
100
|
-
<a class="button button--secondary button--circle" href="{{ _href }}"><span>{{ page }}</span></a>
|
101
|
-
</li>
|
102
|
-
|
103
|
-
{%- else -%}
|
104
|
-
{%- if _n0 and _n1 -%}
|
105
|
-
{%- if page > 1 and page < _n0 -%}
|
106
|
-
{%- if page == 2 -%}<li><span class="pagination__omit"><i class="fas fa-ellipsis-h"></i></span></li>{%- endif -%}
|
107
|
-
{%- elsif page > _n1 and page < _length -%}
|
108
|
-
{%- if page == _length_mimus_one -%}<li><span class="omit"><i class="fas fa-ellipsis-h"></i></span></li>{%- endif -%}
|
109
|
-
{%- else -%}
|
110
|
-
{%- assign __path = site.paginate_path -%}
|
111
|
-
{%- include snippets/prepend-baseurl.html -%}
|
112
|
-
{%- assign _href = __return -%}
|
113
|
-
<li>
|
114
|
-
<a class="button button--secondary button--circle" href="{{ _href | replace: ':num', page }}"><span>{{ page }}</span></a>
|
115
|
-
</li>
|
116
|
-
{%- endif -%}
|
117
|
-
{%- else -%}
|
118
|
-
{%- assign __path = site.paginate_path -%}
|
119
|
-
{%- include snippets/prepend-baseurl.html -%}
|
120
|
-
{%- assign _href = __return -%}
|
121
|
-
<li>
|
122
|
-
<a class="button button--secondary button--circle" href="{{ _href | replace: ':num', page }}"><span>{{ page }}</span></a>
|
123
|
-
</li>
|
124
|
-
{%- endif -%}
|
125
|
-
{%- endif -%}
|
126
|
-
{%- endfor -%}
|
127
|
-
|
128
|
-
{%- if paginator.next_page -%}
|
129
|
-
{%- assign __path = paginator.next_page_path -%}
|
130
|
-
{%- include snippets/prepend-baseurl.html -%}
|
131
|
-
{%- assign _href = __return -%}
|
132
|
-
<li><a class="button button--secondary button--circle" href="{{ _href }}">
|
133
|
-
<i class="fas fa-angle-right"></i>
|
134
|
-
</a></li>
|
135
|
-
{%- else -%}
|
136
|
-
<li><div class="button button--secondary button--circle disabled">
|
137
|
-
<i class="fas fa-angle-right"></i>
|
138
|
-
</div></li>
|
139
|
-
{%- endif -%}
|
140
|
-
</ul>
|
141
|
-
</nav>
|
142
|
-
{%- endif -%}
|
38
|
+
{%- include paginator.html -%}
|
143
39
|
</div>
|
144
40
|
|
145
41
|
<script>
|
data/_layouts/landing.html
CHANGED
@@ -9,8 +9,7 @@ full_width: true
|
|
9
9
|
{%- assign _title = __return -%}
|
10
10
|
|
11
11
|
<div class="layout--landing">
|
12
|
-
{%-
|
13
|
-
{%- include snippets/get-nav-url.html -%}
|
12
|
+
{%- include snippets/get-nav-url.html path=page.data.background_image.src -%}
|
14
13
|
{%- assign _url = __return -%}
|
15
14
|
{%- if page.data.theme == 'light' -%}
|
16
15
|
<section class="section section--light overlay" style="background-image: url({{ _url }});">
|
@@ -27,8 +26,7 @@ full_width: true
|
|
27
26
|
{%- if page.data.actions -%}
|
28
27
|
<ul class="menu menu--center">
|
29
28
|
{%- for _action in page.data.actions -%}
|
30
|
-
{%-
|
31
|
-
{%- include snippets/get-nav-url.html -%}
|
29
|
+
{%- include snippets/get-nav-url.html path=_action.url -%}
|
32
30
|
{%- assign _url = __return -%}
|
33
31
|
{%- assign _type = _action.type | default: 'info' -%}
|
34
32
|
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
@@ -58,8 +56,7 @@ full_width: true
|
|
58
56
|
{%- if _section.actions -%}
|
59
57
|
<ul class="menu menu--center">
|
60
58
|
{%- for _action in _section.actions -%}
|
61
|
-
{%-
|
62
|
-
{%- include snippets/get-nav-url.html -%}
|
59
|
+
{%- include snippets/get-nav-url.html path=_action.url -%}
|
63
60
|
{%- assign _url = __return -%}
|
64
61
|
{%- assign _type = _action.type | default: 'outline-info' -%}
|
65
62
|
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
@@ -88,8 +85,7 @@ full_width: true
|
|
88
85
|
{%- if child.actions -%}
|
89
86
|
<ul class="menu menu--center">
|
90
87
|
{%- for _action in child.actions -%}
|
91
|
-
{%-
|
92
|
-
{%- include snippets/get-nav-url.html -%}
|
88
|
+
{%- include snippets/get-nav-url.html path=_action.url -%}
|
93
89
|
{%- assign _url = __return -%}
|
94
90
|
{%- assign _type = _action.type | default: 'outline-info' -%}
|
95
91
|
<li><a class="button button--{{ _type }} button--pill button--lg" href="{{ _url }}">{{ _action.text }}</a></li>
|
@@ -101,16 +97,14 @@ full_width: true
|
|
101
97
|
{%- if child.image -%}
|
102
98
|
|
103
99
|
{%- if child.image.url -%}
|
104
|
-
{%-
|
105
|
-
{%- include snippets/get-nav-url.html -%}
|
100
|
+
{%- include snippets/get-nav-url.html path=child.image.url -%}
|
106
101
|
{%- assign _item_image_url = __return -%}
|
107
102
|
{%- else -%}
|
108
103
|
{%- assign _item_image_url = nil -%}
|
109
104
|
{%- endif -%}
|
110
105
|
|
111
106
|
{%- if child.image.src -%}
|
112
|
-
{%-
|
113
|
-
{%- include snippets/get-nav-url.html -%}
|
107
|
+
{%- include snippets/get-nav-url.html path=child.image.src -%}
|
114
108
|
{%- assign _item_image_src = __return -%}
|
115
109
|
{%- else -%}
|
116
110
|
{%- assign _item_image_src = nil -%}
|
data/_layouts/page.html
CHANGED
@@ -6,36 +6,24 @@ layout: base
|
|
6
6
|
{%- include snippets/page-title.html -%}
|
7
7
|
{%- assign _page_title = __return -%}
|
8
8
|
|
9
|
-
{%- assign
|
10
|
-
|
11
|
-
|
12
|
-
{%- assign __source = __return -%}
|
13
|
-
{%- assign __target = site.data.variables.default.page.show_header -%}
|
14
|
-
{%- include snippets/assign.html -%}
|
9
|
+
{%- include snippets/assign.html
|
10
|
+
target=site.data.variables.default.page.show_header
|
11
|
+
source0=layout.show_header source1=page.show_header -%}
|
15
12
|
{%- assign _show_header = __return -%}
|
16
13
|
|
17
|
-
{%- assign
|
18
|
-
|
19
|
-
|
20
|
-
{%- assign __source = __return -%}
|
21
|
-
{%- assign __target = site.data.variables.default.page.full_width -%}
|
22
|
-
{%- include snippets/assign.html -%}
|
14
|
+
{%- include snippets/assign.html
|
15
|
+
target = site.data.variables.default.page.full_width
|
16
|
+
source0=layout.full_width source1=page.full_width -%}
|
23
17
|
{%- assign _full_width = __return -%}
|
24
18
|
|
25
|
-
{%- assign
|
26
|
-
|
27
|
-
|
28
|
-
{%- assign __source = __return -%}
|
29
|
-
{%- assign __target = site.data.variables.default.page.show_title -%}
|
30
|
-
{%- include snippets/assign.html -%}
|
19
|
+
{%- include snippets/assign.html
|
20
|
+
target=site.data.variables.default.page.show_title
|
21
|
+
source0=layout.show_title source1=page.show_title -%}
|
31
22
|
{%- assign _show_title = __return -%}
|
32
23
|
|
33
|
-
{%- assign
|
34
|
-
|
35
|
-
|
36
|
-
{%- assign __source = __return -%}
|
37
|
-
{%- assign __target = site.data.variables.default.page.show_edit_on_github -%}
|
38
|
-
{%- include snippets/assign.html -%}
|
24
|
+
{%- include snippets/assign.html
|
25
|
+
target=site.data.variables.default.page.show_edit_on_github
|
26
|
+
source0=layout.show_edit_on_github source1=page.show_edit_on_github -%}
|
39
27
|
{%- assign _show_edit_on_github = __return -%}
|
40
28
|
|
41
29
|
{%- if page.sidebar -%}
|
@@ -99,9 +87,9 @@ layout: base
|
|
99
87
|
{%- endif-%}
|
100
88
|
{%- if _show_edit_on_github -%}
|
101
89
|
{%- if site.repository and site.repository_tree -%}
|
102
|
-
{%-
|
103
|
-
|
104
|
-
<a class="edit-on-github
|
90
|
+
{%- include snippets/locale-to-string.html locale=site.data.locale.POST_ON_GITHUB -%}
|
91
|
+
<span class="split-space"> </span>
|
92
|
+
<a class="edit-on-github"
|
105
93
|
title="{{ __return }}"
|
106
94
|
href="https://github.com/{{ site.repository }}/tree/{{ site.repository_tree }}/{{ page.path }}">
|
107
95
|
<i class="far fa-edit"></i></a>
|
@@ -143,7 +131,7 @@ layout: base
|
|
143
131
|
|
144
132
|
{%- if page.sidebar -%}
|
145
133
|
<script>
|
146
|
-
{%- include scripts/sidebar.js -%}
|
134
|
+
{%- include scripts/components/sidebar.js -%}
|
147
135
|
</script>
|
148
136
|
{%- endif -%}
|
149
137
|
|
@@ -1,25 +1,25 @@
|
|
1
1
|
.article__content {
|
2
2
|
p.success {
|
3
3
|
@include card(false);
|
4
|
-
background-color:
|
4
|
+
background-color: rgba($green, .1);
|
5
5
|
border: 1px solid $green;
|
6
6
|
}
|
7
7
|
|
8
8
|
p.info {
|
9
9
|
@include card(false);
|
10
|
-
background-color:
|
10
|
+
background-color: rgba($blue, .1);
|
11
11
|
border: 1px solid $blue;
|
12
12
|
}
|
13
13
|
|
14
14
|
p.warning {
|
15
15
|
@include card(false);
|
16
|
-
background-color:
|
16
|
+
background-color: rgba($yellow, .1);
|
17
17
|
border: 1px solid $yellow;
|
18
18
|
}
|
19
19
|
|
20
20
|
p.error {
|
21
21
|
@include card(false);
|
22
|
-
background-color:
|
22
|
+
background-color: rgba($red, .1);
|
23
23
|
border: 1px solid $red;
|
24
24
|
}
|
25
25
|
}
|
data/_sass/common/_classes.scss
CHANGED
data/_sass/common/_reset.scss
CHANGED
@@ -41,8 +41,6 @@ body {
|
|
41
41
|
body {
|
42
42
|
height: 100%;
|
43
43
|
font: map-get($base, font-weight) #{map-get($base, font-size)}/#{map-get($base, line-height)} map-get($base, font-family);
|
44
|
-
color: $text-color;
|
45
|
-
background-color: $background-color;
|
46
44
|
::-moz-selection {
|
47
45
|
background: $select-color;
|
48
46
|
}
|
@@ -54,10 +52,6 @@ body {
|
|
54
52
|
}
|
55
53
|
}
|
56
54
|
|
57
|
-
.root {
|
58
|
-
height: 100%;
|
59
|
-
}
|
60
|
-
|
61
55
|
input, textarea, select, button {
|
62
56
|
font: map-get($base, font-weight) #{map-get($base, font-size)}/#{map-get($base, line-height)} map-get($base, font-family);
|
63
57
|
color: $text-color;
|
@@ -153,13 +147,6 @@ figcaption {
|
|
153
147
|
font-size: map-get($base, font-size-sm);
|
154
148
|
}
|
155
149
|
|
156
|
-
.icon {
|
157
|
-
display: block;
|
158
|
-
>svg {
|
159
|
-
display: block;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
|
163
150
|
button {
|
164
151
|
font-size: 1rem;
|
165
152
|
cursor: pointer;
|
@@ -105,8 +105,8 @@
|
|
105
105
|
@include focus {
|
106
106
|
color: $focus-clr;
|
107
107
|
@if $focus-bg-clr{
|
108
|
-
box-shadow: 0 0 0 2px rgba($focus-bg-clr, .4);
|
109
108
|
background-color: $focus-bg-clr;
|
109
|
+
box-shadow: 0 0 0 2px rgba($focus-bg-clr, .4);
|
110
110
|
}
|
111
111
|
svg path {
|
112
112
|
fill: $focus-clr;
|
@@ -1,65 +1,3 @@
|
|
1
1
|
@mixin link-colors($clr, $hover-clr: default, $active-clr: default, $focus-clr: null, $theme: default) {
|
2
2
|
@include clickable($clr, null, $hover-clr, null, $active-clr, null, $focus-clr, null, $theme: default);
|
3
|
-
|
4
|
-
// @if $theme == default {
|
5
|
-
// @if $hover-clr == default {
|
6
|
-
// $theme: get-color-theme($clr);
|
7
|
-
// } @else {
|
8
|
-
// $theme: get-color-theme($hover-clr);
|
9
|
-
// }
|
10
|
-
// }
|
11
|
-
|
12
|
-
// @if $hover-clr == default {
|
13
|
-
// @if $theme == 'light' {
|
14
|
-
// $hover-clr: darken($clr, 14%);
|
15
|
-
// }
|
16
|
-
// @if $theme == 'dark' {
|
17
|
-
// $hover-clr: lighten($clr, 18%);
|
18
|
-
// }
|
19
|
-
// }
|
20
|
-
|
21
|
-
// @if $active-clr == default {
|
22
|
-
// @if $theme == 'light' {
|
23
|
-
// $active-clr: darken($hover-clr, 15%);
|
24
|
-
// }
|
25
|
-
// @if $theme == 'dark' {
|
26
|
-
// $active-clr: lighten($hover-clr, 16%);
|
27
|
-
// }
|
28
|
-
// }
|
29
|
-
|
30
|
-
// @if $focus-clr == default {
|
31
|
-
// @if $theme == 'light' {
|
32
|
-
// $focus-clr: $hover-clr;
|
33
|
-
// }
|
34
|
-
// @if $theme == 'dark' {
|
35
|
-
// $focus-clr: $hover-clr;
|
36
|
-
// }
|
37
|
-
// }
|
38
|
-
|
39
|
-
// @include plain {
|
40
|
-
// color: $clr;
|
41
|
-
// svg path {
|
42
|
-
// fill: $clr;
|
43
|
-
// }
|
44
|
-
// }
|
45
|
-
// @include hover {
|
46
|
-
// color: $hover-clr;
|
47
|
-
// svg path {
|
48
|
-
// fill: $hover-clr;
|
49
|
-
// }
|
50
|
-
// }
|
51
|
-
// @include active {
|
52
|
-
// color: $active-clr;
|
53
|
-
// svg path {
|
54
|
-
// fill: $active-clr;
|
55
|
-
// }
|
56
|
-
// }
|
57
|
-
// @if $focus-clr {
|
58
|
-
// @include focus {
|
59
|
-
// color: $focus-clr;
|
60
|
-
// svg path {
|
61
|
-
// fill: $focus-clr;
|
62
|
-
// }
|
63
|
-
// }
|
64
|
-
// }
|
65
3
|
}
|