j1-template 2020.0.1 → 2020.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/layouts/content_generator_blog_archive.html +22 -18
- data/_includes/themes/j1/layouts/content_generator_collection.html +15 -12
- data/_includes/themes/j1/layouts/content_generator_page.html +16 -17
- data/_includes/themes/j1/layouts/content_generator_post.html +19 -24
- data/_includes/themes/j1/modules/navigator/generator.html +62 -40
- data/assets/data/menu.html +6 -5
- data/assets/data/mmenu.html +455 -0
- data/assets/data/{sidebar.html → mmenu_sidebar.html} +24 -18
- data/assets/data/mmenu_toc.html +45 -0
- data/assets/data/quicklinks.html +9 -4
- data/assets/data/ssm.html +227 -0
- data/assets/error_pages/HTTP204.html +3 -3
- data/assets/themes/j1/core/css/bootstrap.css +116 -93
- data/assets/themes/j1/core/css/bootstrap.min.css +4 -4
- data/assets/themes/j1/core/css/globals.css +1 -1
- data/assets/themes/j1/core/css/theme_extensions.css +186 -96
- data/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
- data/assets/themes/j1/core/css/uno.css +186 -96
- data/assets/themes/j1/core/css/uno.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +130 -104
- data/assets/themes/j1/core/css/vendor.min.css +4 -4
- data/assets/themes/j1/core/js/template.js +296 -24
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/j1_app/j1_auth_manager/auth_manager.rb +21 -17
- data/lib/j1_app/j1_auth_manager/config.rb +13 -9
- data/lib/j1_app/j1_site_manager/static_site.rb +1 -1
- data/lib/starter_web/Gemfile +2 -2
- data/lib/starter_web/_config.yml +12 -139
- data/lib/starter_web/_data/modules/authentication.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +25 -24
- data/lib/starter_web/_data/modules/defaults/ssm.yml +50 -0
- data/lib/starter_web/_data/modules/defaults/toccer.yml +14 -15
- data/lib/starter_web/_data/modules/navigator.yml +164 -97
- data/lib/starter_web/_data/modules/ssm.yml +133 -0
- data/lib/starter_web/_data/modules/toccer.yml +20 -62
- data/lib/starter_web/_data/resources.yml +74 -51
- data/lib/starter_web/_data/template_settings.yml +13 -13
- data/lib/starter_web/_plugins/uglify.rb +41 -0
- data/lib/starter_web/apps/public/{cc → cc/cc.yml} +0 -0
- data/lib/starter_web/apps/public/cc/index.adoc +107 -0
- data/lib/starter_web/assets/images/modules/icons/j1/{j1..ico → j1.ico} +0 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/algolia.js +321 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/attic.js +4 -4
- data/lib/starter_web/assets/themes/j1/adapter/js/carousel.js +3 -3
- data/lib/starter_web/assets/themes/j1/adapter/js/framer.js +3 -3
- data/lib/starter_web/assets/themes/j1/adapter/js/j1.js +19 -60
- data/lib/starter_web/assets/themes/j1/adapter/js/mmenu.js +452 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/navigator.js +50 -50
- data/lib/starter_web/assets/themes/j1/adapter/js/ssm.js +498 -0
- data/lib/starter_web/assets/themes/j1/adapter/js/themer.js +1 -1
- data/lib/starter_web/assets/themes/j1/adapter/js/toccer.js +40 -43
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.css +384 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/mmenu-light.min.css +384 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.css +153 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/css/themes/uno.min.css +153 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.js +11 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.min.js +11 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.js +118 -0
- data/lib/starter_web/assets/themes/j1/extensions/mmenu-light/js/mmenu-light.polyfills.min.js +118 -0
- data/lib/starter_web/collections/posts/public/{jekyll → featured}/_posts/2018-05-01-confusion-about-base-url.adoc +0 -0
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/learn/floating_sidebar.adoc +199 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +2 -2
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +2 -2
- data/lib/starter_web/pages/public/learn/whats_up.adoc +12 -11
- data/lib/starter_web/pages/public/legal/en/500_support.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/000_includes/tables/mdi_icons/200_rotate.asciidoc +1 -1
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +2 -3
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
- data/lib/starter_web/pages/public/site_search.adoc +196 -0
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +26 -13
- data/assets/themes/j1/core/css/globals.scss +0 -28
- data/lib/starter_web/_data/modules/back2top.yml +0 -40
- data/lib/starter_web/_data/modules/defaults/back2top.yml +0 -147
- data/lib/starter_web/_data/modules/defaults/smooth_scroll.yml +0 -169
- data/lib/starter_web/_data/modules/smooth_scroll.yml +0 -169
- data/lib/starter_web/assets/themes/j1/adapter/js/back2top.js +0 -227
- data/lib/starter_web/assets/themes/j1/adapter/js/scroller.js +0 -177
@@ -116,7 +116,7 @@ j1.adapter['themer'] = (function (j1, window) {
|
|
116
116
|
var logger;
|
117
117
|
var logText;
|
118
118
|
|
119
|
-
var default_theme_css = environment
|
119
|
+
var default_theme_css = (environment == 'production') ? '/assets/themes/j1/core/css/uno.min.css' : '/assets/themes/j1/core/css/uno.css';
|
120
120
|
var default_theme_extention_css = '{{themer_options.includeBootswatch}}';
|
121
121
|
var default_theme_name = 'Uno';
|
122
122
|
var default_theme_author = 'J1 Team';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
---
|
2
|
-
regenerate:
|
2
|
+
regenerate: true
|
3
3
|
---
|
4
4
|
|
5
5
|
{% capture j1_cache %}
|
@@ -127,10 +127,8 @@ j1.adapter['toccer'] = (function () {
|
|
127
127
|
settings.collapseDepth = {{toccer_options.collapseDepth}};
|
128
128
|
}
|
129
129
|
|
130
|
-
if (settings.
|
131
|
-
settings.
|
132
|
-
} else {
|
133
|
-
settings.scrollOffset = settings.headingsOffset
|
130
|
+
if (settings.scrollSmoothOffset === undefined) {
|
131
|
+
settings.scrollSmoothOffset = {{toccer_options.scrollSmoothOffset}};
|
134
132
|
}
|
135
133
|
|
136
134
|
if (settings.enabled === undefined) {
|
@@ -188,43 +186,42 @@ j1.adapter['toccer'] = (function () {
|
|
188
186
|
_this.setState('running');
|
189
187
|
logger.info('state: ' + _this.getState());
|
190
188
|
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
return true;
|
189
|
+
// tocbot fired if page|mmenu is ready
|
190
|
+
//
|
191
|
+
var dependencies_met_j1_page_ready = setInterval (function () {
|
192
|
+
if (j1.getState() === 'finished') {
|
193
|
+
var bg_primary = j1.getStyleValue('bg-primary', 'background-color');
|
194
|
+
|
195
|
+
tocbot.init({
|
196
|
+
log: {{ toccer_options.log | json }},
|
197
|
+
activeLinkColor: {{ toccer_options.activeLinkColor | json }},
|
198
|
+
tocSelector: {{ toccer_options.tocSelector | json }},
|
199
|
+
headingSelector: {{ toccer_options.headingSelector | json }},
|
200
|
+
ignoreSelector: {{ toccer_options.ignoreSelector | json }},
|
201
|
+
contentSelector: {{ toccer_options.contentSelector | json }},
|
202
|
+
collapseDepth: settings.collapseDepth,
|
203
|
+
throttleTimeout: {{ toccer_options.throttleTimeout | json }},
|
204
|
+
includeHtml: false,
|
205
|
+
linkClass: 'toc-link',
|
206
|
+
extraLinkClasses: '',
|
207
|
+
activeLinkClass: 'is-active-link',
|
208
|
+
listClass: 'toc-list',
|
209
|
+
extraListClasses: '',
|
210
|
+
isCollapsedClass: 'is-collapsed',
|
211
|
+
collapsibleClass: 'is-collapsible',
|
212
|
+
listItemClass: 'toc-list-item',
|
213
|
+
positionFixedSelector: '',
|
214
|
+
positionFixedClass: 'is-position-fixed',
|
215
|
+
fixedSidebarOffset: 'auto',
|
216
|
+
scrollSmooth: {{ toccer_options.scrollSmooth | json }},
|
217
|
+
scrollSmoothDuration: {{ toccer_options.scrollSmoothDuration | json }},
|
218
|
+
scrollSmoothOffset: {{ toccer_options.scrollSmoothOffset | json }},
|
219
|
+
headingsOffset: {{ toccer_options.headingsOffset | json }},
|
220
|
+
throttleTimeout: {{ toccer_options.throttleTimeout | json }}
|
221
|
+
});
|
222
|
+
clearInterval(dependencies_met_j1_page_ready);
|
223
|
+
} // END j1 finished
|
224
|
+
}, 25); // END dependencies_met_j1_page_ready
|
228
225
|
}, // END initToccerCore
|
229
226
|
|
230
227
|
// -------------------------------------------------------------------------
|
@@ -350,4 +347,4 @@ j1.adapter['toccer'] = (function () {
|
|
350
347
|
|
351
348
|
{% endcapture %}
|
352
349
|
{{ j1_cache | strip_empty_lines }}
|
353
|
-
{% assign j1_cache = nil %}
|
350
|
+
{% assign j1_cache = nil %}
|
@@ -0,0 +1,384 @@
|
|
1
|
+
/*!
|
2
|
+
* Mmenu Light
|
3
|
+
* mmenujs.com/mmenu-light v3.0.4
|
4
|
+
*
|
5
|
+
* Copyright (c) Fred Heusschen
|
6
|
+
* www.frebsite.nl
|
7
|
+
*
|
8
|
+
* License: CC-BY-4.0
|
9
|
+
* http://creativecommons.org/licenses/by/4.0/
|
10
|
+
*/
|
11
|
+
|
12
|
+
:root {
|
13
|
+
--mm-ocd-width: 80%;
|
14
|
+
--mm-ocd-min-width: 200px;
|
15
|
+
--mm-ocd-max-width: 440px
|
16
|
+
}
|
17
|
+
|
18
|
+
body.mm-ocd-opened {
|
19
|
+
overflow-y: hidden;
|
20
|
+
-ms-scroll-chaining: none;
|
21
|
+
overscroll-behavior: none
|
22
|
+
}
|
23
|
+
|
24
|
+
/*
|
25
|
+
jadams, 2020-06-20: CSS/Offset to the NAV bar should be calculted
|
26
|
+
at runtime as a dyn style
|
27
|
+
*/
|
28
|
+
.mm-ocd {
|
29
|
+
position: fixed;
|
30
|
+
top: 80px; /* jadams, 2020-06-20: offset to the NAV bar */
|
31
|
+
right: 0;
|
32
|
+
bottom: 100%;
|
33
|
+
left: 0;
|
34
|
+
z-index: 9999;
|
35
|
+
overflow: hidden;
|
36
|
+
-ms-scroll-chaining: none;
|
37
|
+
overscroll-behavior: contain;
|
38
|
+
background: rgba(0, 0, 0, 0);
|
39
|
+
-webkit-transition-property: bottom, background-color;
|
40
|
+
-o-transition-property: bottom, background-color;
|
41
|
+
transition-property: bottom, background-color;
|
42
|
+
-webkit-transition-duration: 0s, .3s;
|
43
|
+
-o-transition-duration: 0s, .3s;
|
44
|
+
transition-duration: 0s, .3s;
|
45
|
+
-webkit-transition-timing-function: ease;
|
46
|
+
-o-transition-timing-function: ease;
|
47
|
+
transition-timing-function: ease;
|
48
|
+
-webkit-transition-delay: .45s, .15s;
|
49
|
+
-o-transition-delay: .45s, .15s;
|
50
|
+
transition-delay: .45s, .15s
|
51
|
+
}
|
52
|
+
|
53
|
+
.mm-ocd--open {
|
54
|
+
bottom: 0;
|
55
|
+
background: rgba(0, 0, 0, .25);
|
56
|
+
-webkit-transition-delay: 0s;
|
57
|
+
-o-transition-delay: 0s;
|
58
|
+
transition-delay: 0s
|
59
|
+
}
|
60
|
+
|
61
|
+
.mm-ocd__content {
|
62
|
+
position: absolute;
|
63
|
+
top: 0;
|
64
|
+
bottom: 0;
|
65
|
+
z-index: 2;
|
66
|
+
width: 80%;
|
67
|
+
width: var(--mm-ocd-width);
|
68
|
+
min-width: 200px;
|
69
|
+
min-width: var(--mm-ocd-min-width);
|
70
|
+
max-width: 440px;
|
71
|
+
max-width: var(--mm-ocd-max-width);
|
72
|
+
background: #fff;
|
73
|
+
-webkit-transition-property: -webkit-transform;
|
74
|
+
transition-property: -webkit-transform;
|
75
|
+
-o-transition-property: transform;
|
76
|
+
transition-property: transform;
|
77
|
+
transition-property: transform, -webkit-transform;
|
78
|
+
-webkit-transition-duration: .3s;
|
79
|
+
-o-transition-duration: .3s;
|
80
|
+
transition-duration: .3s;
|
81
|
+
-webkit-transition-timing-function: ease;
|
82
|
+
-o-transition-timing-function: ease;
|
83
|
+
transition-timing-function: ease
|
84
|
+
}
|
85
|
+
|
86
|
+
.mm-ocd--left .mm-ocd__content {
|
87
|
+
left: 0;
|
88
|
+
-webkit-transform: translate3d(-100%, 0, 0);
|
89
|
+
transform: translate3d(-100%, 0, 0)
|
90
|
+
}
|
91
|
+
|
92
|
+
.mm-ocd--right .mm-ocd__content {
|
93
|
+
right: 0;
|
94
|
+
-webkit-transform: translate3d(100%, 0, 0);
|
95
|
+
transform: translate3d(100%, 0, 0)
|
96
|
+
}
|
97
|
+
|
98
|
+
.mm-ocd--open .mm-ocd__content {
|
99
|
+
-webkit-transform: translate3d(0, 0, 0);
|
100
|
+
transform: translate3d(0, 0, 0)
|
101
|
+
}
|
102
|
+
|
103
|
+
.mm-ocd__backdrop {
|
104
|
+
position: absolute;
|
105
|
+
top: 0;
|
106
|
+
bottom: 0;
|
107
|
+
z-index: 3;
|
108
|
+
width: calc(100% - 80%);
|
109
|
+
width: calc(100% - var(--mm-ocd-width));
|
110
|
+
min-width: calc(100% - 440px);
|
111
|
+
min-width: calc(100% - var(--mm-ocd-max-width));
|
112
|
+
max-width: calc(100% - 200px);
|
113
|
+
max-width: calc(100% - var(--mm-ocd-min-width));
|
114
|
+
background: rgba(3, 2, 1, 0)
|
115
|
+
}
|
116
|
+
|
117
|
+
.mm-ocd--left .mm-ocd__backdrop {
|
118
|
+
right: 0
|
119
|
+
}
|
120
|
+
|
121
|
+
.mm-ocd--right .mm-ocd__backdrop {
|
122
|
+
left: 0
|
123
|
+
}
|
124
|
+
|
125
|
+
.mm-spn,
|
126
|
+
.mm-spn a,
|
127
|
+
.mm-spn li,
|
128
|
+
.mm-spn span,
|
129
|
+
.mm-spn ul {
|
130
|
+
display: block;
|
131
|
+
padding: 0;
|
132
|
+
margin: 0;
|
133
|
+
-webkit-box-sizing: border-box;
|
134
|
+
box-sizing: border-box
|
135
|
+
}
|
136
|
+
|
137
|
+
:root {
|
138
|
+
--mm-spn-item-height: 50px;
|
139
|
+
--mm-spn-item-indent: 20px;
|
140
|
+
--mm-spn-line-height: 24px
|
141
|
+
}
|
142
|
+
|
143
|
+
.mm-spn {
|
144
|
+
width: 100%;
|
145
|
+
height: 100%;
|
146
|
+
-webkit-tap-highlight-color: transparent;
|
147
|
+
-webkit-overflow-scrolling: touch;
|
148
|
+
overflow: hidden;
|
149
|
+
-webkit-clip-path: inset(0 0 0 0);
|
150
|
+
clip-path: inset(0 0 0 0);
|
151
|
+
-webkit-transform: translateX(0);
|
152
|
+
-ms-transform: translateX(0);
|
153
|
+
transform: translateX(0)
|
154
|
+
}
|
155
|
+
|
156
|
+
.mm-spn ul {
|
157
|
+
-webkit-overflow-scrolling: touch;
|
158
|
+
position: fixed;
|
159
|
+
top: 0;
|
160
|
+
left: 100%;
|
161
|
+
bottom: 0;
|
162
|
+
z-index: 2;
|
163
|
+
width: 130%;
|
164
|
+
padding-right: 30%;
|
165
|
+
line-height: 24px;
|
166
|
+
line-height: var(--mm-spn-line-height);
|
167
|
+
overflow: visible;
|
168
|
+
overflow-y: auto;
|
169
|
+
background: inherit;
|
170
|
+
-webkit-transition: left .3s ease 0s;
|
171
|
+
-o-transition: left .3s ease 0s;
|
172
|
+
transition: left .3s ease 0s;
|
173
|
+
cursor: default
|
174
|
+
}
|
175
|
+
|
176
|
+
.mm-spn ul:after {
|
177
|
+
content: '';
|
178
|
+
display: block;
|
179
|
+
height: 50px;
|
180
|
+
height: var(--mm-spn-item-height)
|
181
|
+
}
|
182
|
+
|
183
|
+
.mm-spn>ul {
|
184
|
+
left: 0
|
185
|
+
}
|
186
|
+
|
187
|
+
.mm-spn ul.mm-spn--open {
|
188
|
+
left: 0
|
189
|
+
}
|
190
|
+
|
191
|
+
.mm-spn ul.mm-spn--parent {
|
192
|
+
left: -30%;
|
193
|
+
overflow-y: hidden
|
194
|
+
}
|
195
|
+
|
196
|
+
.mm-spn li {
|
197
|
+
position: relative;
|
198
|
+
background: inherit;
|
199
|
+
cursor: pointer
|
200
|
+
}
|
201
|
+
|
202
|
+
.mm-spn li:before {
|
203
|
+
content: '';
|
204
|
+
display: block;
|
205
|
+
position: absolute;
|
206
|
+
top: 25px;
|
207
|
+
top: calc(var(--mm-spn-item-height)/ 2);
|
208
|
+
right: 25px;
|
209
|
+
right: calc(var(--mm-spn-item-height)/ 2);
|
210
|
+
z-index: 0;
|
211
|
+
width: 10px;
|
212
|
+
height: 10px;
|
213
|
+
border-top: 2px solid;
|
214
|
+
border-right: 2px solid;
|
215
|
+
-webkit-transform: rotate(45deg) translate(0, -50%);
|
216
|
+
-ms-transform: rotate(45deg) translate(0, -50%);
|
217
|
+
transform: rotate(45deg) translate(0, -50%);
|
218
|
+
opacity: .4
|
219
|
+
}
|
220
|
+
|
221
|
+
.mm-spn li:after {
|
222
|
+
content: '';
|
223
|
+
display: block;
|
224
|
+
margin-left: 20px;
|
225
|
+
margin-left: var(--mm-spn-item-indent);
|
226
|
+
border-top: 1px solid;
|
227
|
+
opacity: .15
|
228
|
+
}
|
229
|
+
|
230
|
+
.mm-spn a,
|
231
|
+
.mm-spn span {
|
232
|
+
position: relative;
|
233
|
+
z-index: 1;
|
234
|
+
padding: 13px 20px;
|
235
|
+
padding: calc((var(--mm-spn-item-height) - var(--mm-spn-line-height))/ 2) var(--mm-spn-item-indent)
|
236
|
+
}
|
237
|
+
|
238
|
+
.mm-spn a {
|
239
|
+
background: inherit;
|
240
|
+
color: inherit;
|
241
|
+
text-decoration: none
|
242
|
+
}
|
243
|
+
|
244
|
+
.mm-spn a:not(:last-child) {
|
245
|
+
width: calc(100% - 50px);
|
246
|
+
width: calc(100% - var(--mm-spn-item-height))
|
247
|
+
}
|
248
|
+
|
249
|
+
.mm-spn a:not(:last-child):after {
|
250
|
+
content: '';
|
251
|
+
display: block;
|
252
|
+
position: absolute;
|
253
|
+
top: 0;
|
254
|
+
right: 0;
|
255
|
+
bottom: 0;
|
256
|
+
border-right: 1px solid;
|
257
|
+
opacity: .15
|
258
|
+
}
|
259
|
+
|
260
|
+
.mm-spn span {
|
261
|
+
background: 0 0
|
262
|
+
}
|
263
|
+
|
264
|
+
.mm-spn.mm-spn--navbar {
|
265
|
+
cursor: pointer
|
266
|
+
}
|
267
|
+
|
268
|
+
.mm-spn.mm-spn--navbar:before {
|
269
|
+
content: '';
|
270
|
+
display: block;
|
271
|
+
position: absolute;
|
272
|
+
top: 25px;
|
273
|
+
top: calc(var(--mm-spn-item-height)/ 2);
|
274
|
+
left: 20px;
|
275
|
+
left: var(--mm-spn-item-indent);
|
276
|
+
width: 10px;
|
277
|
+
height: 10px;
|
278
|
+
margin-top: 2px;
|
279
|
+
border-top: 2px solid;
|
280
|
+
border-left: 2px solid;
|
281
|
+
-webkit-transform: rotate(-45deg) translate(50%, -50%);
|
282
|
+
-ms-transform: rotate(-45deg) translate(50%, -50%);
|
283
|
+
transform: rotate(-45deg) translate(50%, -50%);
|
284
|
+
opacity: .4
|
285
|
+
}
|
286
|
+
|
287
|
+
.mm-spn.mm-spn--navbar.mm-spn--main {
|
288
|
+
cursor: default
|
289
|
+
}
|
290
|
+
|
291
|
+
.mm-spn.mm-spn--navbar.mm-spn--main:before {
|
292
|
+
content: none;
|
293
|
+
display: none
|
294
|
+
}
|
295
|
+
|
296
|
+
.mm-spn.mm-spn--navbar:after {
|
297
|
+
content: attr(data-mm-spn-title);
|
298
|
+
display: block;
|
299
|
+
position: absolute;
|
300
|
+
top: 0;
|
301
|
+
left: 0;
|
302
|
+
right: 0;
|
303
|
+
height: 50px;
|
304
|
+
height: var(--mm-spn-item-height);
|
305
|
+
padding: 0 40px;
|
306
|
+
padding: 0 calc(var(--mm-spn-item-indent) * 2);
|
307
|
+
line-height: 50px;
|
308
|
+
line-height: var(--mm-spn-item-height);
|
309
|
+
opacity: .4;
|
310
|
+
text-align: left; /* jadams, 2020-06-20: set menu title to the left */
|
311
|
+
overflow: hidden;
|
312
|
+
white-space: nowrap;
|
313
|
+
-o-text-overflow: ellipsis;
|
314
|
+
text-overflow: ellipsis;
|
315
|
+
font-size: x-large; /* jadams, 2020-06-20: increase size of the menu title */
|
316
|
+
}
|
317
|
+
|
318
|
+
.mm-spn.mm-spn--navbar.mm-spn--main:after {
|
319
|
+
padding-left: 20px;
|
320
|
+
padding-left: var(--mm-spn-item-indent)
|
321
|
+
}
|
322
|
+
|
323
|
+
.mm-spn.mm-spn--navbar ul {
|
324
|
+
top: 51px;
|
325
|
+
top: calc(var(--mm-spn-item-height) + 1px)
|
326
|
+
}
|
327
|
+
|
328
|
+
.mm-spn.mm-spn--navbar ul:before {
|
329
|
+
content: '';
|
330
|
+
display: block;
|
331
|
+
position: fixed;
|
332
|
+
top: inherit;
|
333
|
+
z-index: 2;
|
334
|
+
width: 100%;
|
335
|
+
border-top: 1px solid currentColor;
|
336
|
+
opacity: .15
|
337
|
+
}
|
338
|
+
|
339
|
+
.mm-spn.mm-spn--light {
|
340
|
+
color: #444;
|
341
|
+
background: #f3f3f3
|
342
|
+
}
|
343
|
+
|
344
|
+
/* jadams, 2020-06-20: set j1 template colors (dark theme) */
|
345
|
+
.mm-spn.mm-spn--dark {
|
346
|
+
color: #e3e3e3;
|
347
|
+
background: #191919
|
348
|
+
}
|
349
|
+
|
350
|
+
.mm-spn.mm-spn--vertical {
|
351
|
+
overflow-y: auto
|
352
|
+
}
|
353
|
+
|
354
|
+
.mm-spn.mm-spn--vertical ul {
|
355
|
+
width: 100%;
|
356
|
+
padding-right: 0;
|
357
|
+
position: static
|
358
|
+
}
|
359
|
+
|
360
|
+
.mm-spn.mm-spn--vertical ul ul {
|
361
|
+
display: none;
|
362
|
+
padding-left: 20px;
|
363
|
+
padding-left: var(--mm-spn-item-indent)
|
364
|
+
}
|
365
|
+
|
366
|
+
.mm-spn.mm-spn--vertical ul ul:after {
|
367
|
+
height: 25px;
|
368
|
+
height: calc(var(--mm-spn-item-height)/ 2)
|
369
|
+
}
|
370
|
+
|
371
|
+
.mm-spn.mm-spn--vertical ul.mm-spn--open {
|
372
|
+
display: block
|
373
|
+
}
|
374
|
+
|
375
|
+
.mm-spn.mm-spn--vertical li.mm-spn--open:before {
|
376
|
+
-webkit-transform: rotate(135deg) translate(-50%, 0);
|
377
|
+
-ms-transform: rotate(135deg) translate(-50%, 0);
|
378
|
+
transform: rotate(135deg) translate(-50%, 0)
|
379
|
+
}
|
380
|
+
|
381
|
+
.mm-spn.mm-spn--vertical ul ul li:last-child:after {
|
382
|
+
content: none;
|
383
|
+
display: none
|
384
|
+
}
|