j1-template 2022.0.17 → 2022.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/error_pages/HTTP204.html +1 -1
- data/assets/error_pages/HTTP400.html +1 -1
- data/assets/error_pages/HTTP401.html +1 -1
- data/assets/error_pages/HTTP403.html +1 -1
- data/assets/error_pages/HTTP404.html +1 -1
- data/assets/error_pages/HTTP444.html +1 -1
- data/assets/error_pages/HTTP445.html +1 -1
- data/assets/error_pages/HTTP446.html +1 -1
- data/assets/error_pages/HTTP447.html +1 -1
- data/assets/error_pages/HTTP448.html +1 -1
- data/assets/error_pages/HTTP500.html +1 -1
- data/assets/error_pages/HTTP501.html +1 -1
- data/assets/error_pages/HTTP502.html +1 -1
- data/assets/error_pages/HTTP503.html +1 -1
- data/assets/themes/j1/adapter/js/customFunctions.js +221 -0
- data/assets/themes/j1/adapter/js/customModule.js +221 -0
- data/assets/themes/j1/adapter/js/dropdowns.js +319 -0
- data/assets/themes/j1/adapter/js/rtable.js +2 -6
- data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.css +109 -0
- data/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.min.css +15 -0
- data/assets/themes/j1/modules/dropdowns/js/cash.js +978 -0
- data/assets/themes/j1/modules/dropdowns/js/dropdowns.js +864 -0
- data/lib/j1/commands/generate.rb +25 -14
- data/lib/j1/commands/rebuild.rb +1 -0
- data/lib/j1/commands/reset.rb +6 -3
- data/lib/j1/commands/setup.rb +18 -13
- data/lib/j1/commands/site.rb +2 -1
- data/lib/j1/utils/exec2.rb +33 -7
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/_data/apps/carousel.yml +138 -140
- data/lib/starter_web/_data/blocks/banner.yml +7 -7
- data/lib/starter_web/_data/modules/defaults/dropdowns.yml +164 -0
- data/lib/starter_web/_data/modules/dropdowns.yml +77 -0
- data/lib/starter_web/_data/resources.yml +73 -2
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/lunr_index.rb +2 -2
- data/lib/starter_web/package.json +2 -2
- data/lib/starter_web/pages/public/about/about_site.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/000_intro.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.base.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.comments.asciidoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +1 -1
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
- data/lib/starter_web/pages/public/manuals/j1-dropdown.adoc +294 -0
- data/lib/starter_web/pages/public/manuals/{dropdown-help.adoc → msdropdown.adoc} +0 -0
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +14 -6
- data/assets/themes/j1/modules/fab/css/theme/uno/fab.css +0 -373
- data/assets/themes/j1/modules/fab/css/theme/uno/fab.min.css +0 -15
@@ -0,0 +1,319 @@
|
|
1
|
+
---
|
2
|
+
regenerate: true
|
3
|
+
---
|
4
|
+
|
5
|
+
{% capture cache %}
|
6
|
+
|
7
|
+
{% comment %}
|
8
|
+
# -----------------------------------------------------------------------------
|
9
|
+
# ~/assets/themes/j1/adapter/js/dropdowns.js
|
10
|
+
# Liquid template to adapt dropdowns
|
11
|
+
#
|
12
|
+
# Product/Info:
|
13
|
+
# https://jekyll.one
|
14
|
+
# Copyright (C) 2021 Juergen Adams
|
15
|
+
#
|
16
|
+
# J1 Template is licensed under the MIT License.
|
17
|
+
# For details, see https://jekyll.one
|
18
|
+
# -----------------------------------------------------------------------------
|
19
|
+
# Test data:
|
20
|
+
# {{ liquid_var | debug }}
|
21
|
+
# {{ dropdowns_options | debug }}
|
22
|
+
# -----------------------------------------------------------------------------
|
23
|
+
{% endcomment %}
|
24
|
+
|
25
|
+
{% comment %} Liquid procedures
|
26
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
27
|
+
|
28
|
+
{% comment %} Set global settings
|
29
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
30
|
+
{% assign environment = site.environment %}
|
31
|
+
{% assign asset_path = "/assets/themes/j1" %}
|
32
|
+
|
33
|
+
{% comment %} Process YML config data
|
34
|
+
================================================================================ {% endcomment %}
|
35
|
+
|
36
|
+
{% comment %} Set config files
|
37
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
38
|
+
{% assign template_config = site.data.j1_config %}
|
39
|
+
{% assign blocks = site.data.blocks %}
|
40
|
+
{% assign modules = site.data.modules %}
|
41
|
+
|
42
|
+
{% comment %} Set config data
|
43
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
44
|
+
{% assign dropdowns_defaults = modules.defaults.dropdowns.defaults %}
|
45
|
+
{% assign dropdowns_settings = modules.dropdowns.settings %}
|
46
|
+
|
47
|
+
{% comment %} Set config options
|
48
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
49
|
+
{% assign dropdowns_options = dropdowns_defaults | merge: dropdowns_settings %}
|
50
|
+
|
51
|
+
{% assign production = false %}
|
52
|
+
{% if environment == 'prod' or environment == 'production' %}
|
53
|
+
{% assign production = true %}
|
54
|
+
{% endif %}
|
55
|
+
|
56
|
+
/*
|
57
|
+
# -----------------------------------------------------------------------------
|
58
|
+
# ~/assets/themes/j1/adapter/js/dropdowns.js
|
59
|
+
# J1 Adapter for J1 Module Dropdowns
|
60
|
+
#
|
61
|
+
# Product/Info:
|
62
|
+
# https://jekyll.one
|
63
|
+
#
|
64
|
+
# Copyright (C) 2021 Juergen Adams
|
65
|
+
#
|
66
|
+
# J1 Template is licensed under the MIT License.
|
67
|
+
# For details, see https://jekyll.one
|
68
|
+
# -----------------------------------------------------------------------------
|
69
|
+
# Adapter generated: {{site.time}}
|
70
|
+
# -----------------------------------------------------------------------------
|
71
|
+
*/
|
72
|
+
|
73
|
+
// -----------------------------------------------------------------------------
|
74
|
+
// ESLint shimming
|
75
|
+
// -----------------------------------------------------------------------------
|
76
|
+
/* eslint indent: "off" */
|
77
|
+
// -----------------------------------------------------------------------------
|
78
|
+
'use strict';
|
79
|
+
j1.adapter.dropdowns = (function (j1, window) {
|
80
|
+
|
81
|
+
{% comment %} Set global variables
|
82
|
+
------------------------------------------------------------------------------ {% endcomment %}
|
83
|
+
var environment = '{{environment}}';
|
84
|
+
var moduleOptions = {};
|
85
|
+
var instances = [];
|
86
|
+
var frontmatterOptions;
|
87
|
+
var _this;
|
88
|
+
var logger;
|
89
|
+
var logText;
|
90
|
+
|
91
|
+
// ---------------------------------------------------------------------------
|
92
|
+
// Helper functions
|
93
|
+
// ---------------------------------------------------------------------------
|
94
|
+
|
95
|
+
// ---------------------------------------------------------------------------
|
96
|
+
// Main object
|
97
|
+
// ---------------------------------------------------------------------------
|
98
|
+
return {
|
99
|
+
|
100
|
+
// -------------------------------------------------------------------------
|
101
|
+
// Initializer
|
102
|
+
// -------------------------------------------------------------------------
|
103
|
+
init: function (options) {
|
104
|
+
|
105
|
+
// -----------------------------------------------------------------------
|
106
|
+
// Default module settings
|
107
|
+
// -----------------------------------------------------------------------
|
108
|
+
var settings = $.extend({
|
109
|
+
module_name: 'j1.adapter.dropdowns',
|
110
|
+
generated: '{{site.time}}'
|
111
|
+
}, options);
|
112
|
+
|
113
|
+
// -----------------------------------------------------------------------
|
114
|
+
// Global variable settings
|
115
|
+
// -----------------------------------------------------------------------
|
116
|
+
_this = j1.adapter.dropdowns;
|
117
|
+
logger = log4javascript.getLogger('j1.adapter.dropdowns');
|
118
|
+
|
119
|
+
|
120
|
+
// initialize state flag
|
121
|
+
_this.setState('started');
|
122
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
123
|
+
logger.info('\n' + 'module is being initialized');
|
124
|
+
|
125
|
+
// create settings object from frontmatterOptions
|
126
|
+
frontmatterOptions = options != null ? $.extend({}, options) : {};
|
127
|
+
moduleOptions = $.extend({}, {{dropdowns_options | replace: 'nil', 'null' | replace: '=>', ':' }});
|
128
|
+
|
129
|
+
if (typeof frontmatterOptions !== 'undefined') {
|
130
|
+
moduleOptions = j1.mergeData(moduleOptions, frontmatterOptions);
|
131
|
+
}
|
132
|
+
|
133
|
+
var dependencies_met_j1_finished = setInterval(function() {
|
134
|
+
if (j1.getState() == 'finished') {
|
135
|
+
var elms = document.querySelectorAll('.dropdowns');
|
136
|
+
|
137
|
+
// -------------------------------------------------------------------
|
138
|
+
// dropdowns initializer
|
139
|
+
// -------------------------------------------------------------------
|
140
|
+
var log_text = '\n' + 'dropdowns is being initialized';
|
141
|
+
logger.info(log_text);
|
142
|
+
|
143
|
+
{% for item in dropdowns_options.dropdowns %} {% if item.dropdown.enabled %}
|
144
|
+
{% assign dropdown_id = item.dropdown.id %}
|
145
|
+
|
146
|
+
{% comment %} load default options
|
147
|
+
---------------------------------------------------------------------- {% endcomment %}
|
148
|
+
{% assign alignment = dropdowns_options.options.alignment %}
|
149
|
+
{% assign autoTrigger = dropdowns_options.options.autoTrigger %}
|
150
|
+
{% assign constrainWidth = dropdowns_options.options.constrainWidth %}
|
151
|
+
{% assign coverTrigger = dropdowns_options.options.coverTrigger %}
|
152
|
+
{% assign closeOnClick = dropdowns_options.options.closeOnClick %}
|
153
|
+
{% assign hover = dropdowns_options.options.hover %}
|
154
|
+
{% assign inDuration = dropdowns_options.options.inDuration %}
|
155
|
+
{% assign outDuration = dropdowns_options.options.outDuration %}
|
156
|
+
{% assign cbOnOpen = dropdowns_options.options.cbOnOpen %}
|
157
|
+
{% assign cbOnClose = dropdowns_options.options.cbOnClose %}
|
158
|
+
{% assign cbOnItemClick = dropdowns_options.options.cbOnItemClick %}
|
159
|
+
|
160
|
+
{% comment %} set dropdown options
|
161
|
+
-------------------------------------------------------------------- {% endcomment %}
|
162
|
+
{% if item.dropdown.options.alignment %} {% assign alignment = item.dropdown.options.alignment %} {% endif %}
|
163
|
+
{% if item.dropdown.options.autoTrigger %} {% assign autoTrigger = item.dropdown.options.autoTrigger %} {% endif %}
|
164
|
+
{% if item.dropdown.options.constrainWidth %} {% assign constrainWidth = item.dropdown.options.constrainWidth %} {% endif %}
|
165
|
+
{% if item.dropdown.options.coverTrigger %} {% assign coverTrigger = item.dropdown.options.coverTrigger %} {% endif %}
|
166
|
+
{% if item.dropdown.options.closeOnClick %} {% assign closeOnClick = item.dropdown.options.closeOnClick %} {% endif %}
|
167
|
+
{% if item.dropdown.options.hover %} {% assign hover = item.dropdown.options.hover %} {% endif %}
|
168
|
+
{% if item.dropdown.options.inDuration %} {% assign inDuration = item.dropdown.options.inDuration %} {% endif %}
|
169
|
+
{% if item.dropdown.options.outDuration %} {% assign outDuration = item.dropdown.options.outDuration %} {% endif %}
|
170
|
+
{% if item.dropdown.options.cbOnOpen %} {% assign cbOnOpen = item.dropdown.options.cbOnOpen %} {% endif %}
|
171
|
+
{% if item.dropdown.options.cbOnClose %} {% assign cbOnClose = item.dropdown.options.cbOnClose %} {% endif %}
|
172
|
+
{% if item.dropdown.options.cbOnItemClick %} {% assign cbOnItemClick = item.dropdown.options.cbOnItemClick %} {% endif %}
|
173
|
+
|
174
|
+
elms.forEach(function (elm) {
|
175
|
+
var id = elm.dataset.target;
|
176
|
+
|
177
|
+
if (id === '{{dropdown_id}}') {
|
178
|
+
// processing: {{dropdown_id}}
|
179
|
+
//
|
180
|
+
var instance = j1.dropdowns.init(elm, {
|
181
|
+
alignment: "{{alignment}}",
|
182
|
+
autoTrigger: {{autoTrigger}},
|
183
|
+
constrainWidth: {{constrainWidth}},
|
184
|
+
coverTrigger: {{coverTrigger}},
|
185
|
+
closeOnClick: {{closeOnClick}},
|
186
|
+
hover: {{hover}},
|
187
|
+
inDuration: "{{inDuration}}",
|
188
|
+
outDuration: "{{outDuration}}",
|
189
|
+
onOpen: "{{cbOnOpen}}",
|
190
|
+
onClose: "{{cbOnClose}}",
|
191
|
+
onItemClick: "{{cbOnItemClick}}"
|
192
|
+
});
|
193
|
+
instances.push(instance);
|
194
|
+
}
|
195
|
+
|
196
|
+
});
|
197
|
+
{% assign item.dropdown.options = nil %}
|
198
|
+
{% endif %} {% endfor %}
|
199
|
+
|
200
|
+
_this.setState('finished');
|
201
|
+
logger.info('\n' + 'state: ' + _this.getState());
|
202
|
+
|
203
|
+
clearInterval(dependencies_met_j1_finished);
|
204
|
+
} // END dependencies_met_j1_finished
|
205
|
+
}, 25);
|
206
|
+
|
207
|
+
}, // END init
|
208
|
+
|
209
|
+
// -------------------------------------------------------------------------
|
210
|
+
// cbOnClick)
|
211
|
+
// Called by the dropdowns CORE module when and dropdown element
|
212
|
+
// is clicked
|
213
|
+
// -------------------------------------------------------------------------
|
214
|
+
cbOnclick: function (event) {
|
215
|
+
var logger = log4javascript.getLogger('j1.adapter.dropdowns.cbOnClick');
|
216
|
+
var itemEl = $(event.target).closest('li')[0];
|
217
|
+
|
218
|
+
|
219
|
+
// logText = '\n' + 'entered cbOnClick on id: ' + id;
|
220
|
+
// logger.info(logText);
|
221
|
+
|
222
|
+
return true;
|
223
|
+
},
|
224
|
+
|
225
|
+
// -------------------------------------------------------------------------
|
226
|
+
// cbOnOpen()
|
227
|
+
// Called by the dropdowns CORE module when dropdown get opened
|
228
|
+
// -------------------------------------------------------------------------
|
229
|
+
cbOnOpen: function (elm) {
|
230
|
+
var logger = log4javascript.getLogger('j1.adapter.dropdowns.cbOnOpen');
|
231
|
+
var id = elm.id;
|
232
|
+
|
233
|
+
logText = '\n' + 'entered cbOnOpen on id: ' + id;
|
234
|
+
logger.info(logText);
|
235
|
+
return true;
|
236
|
+
},
|
237
|
+
|
238
|
+
// -------------------------------------------------------------------------
|
239
|
+
// cbOnClose()
|
240
|
+
// Called by the dropdowns CORE module when dropdown get closed
|
241
|
+
// -------------------------------------------------------------------------
|
242
|
+
cbOnClose: function (elm) {
|
243
|
+
var logger = log4javascript.getLogger('j1.adapter.dropdowns.cbOnClose');
|
244
|
+
var id = elm.id;
|
245
|
+
var listItems = '#' + elm.id + " li";
|
246
|
+
var menuItems = document.querySelectorAll(listItems);
|
247
|
+
var activeItem;
|
248
|
+
var activeValue;
|
249
|
+
|
250
|
+
// Loop through each <li> element and mark selected menuItem by class active
|
251
|
+
for (var i=0; i < menuItems.length; i++) {
|
252
|
+
if (menuItems[i].classList.contains('active')) {
|
253
|
+
activeItem = i;
|
254
|
+
activeValue = menuItems[i].dataset.target;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
logText = '\n' + 'entered cbOnClose on id: ' + id;
|
259
|
+
logger.info(logText);
|
260
|
+
logText = '\n' + 'item selected: ' + activeItem;
|
261
|
+
logger.info(logText);
|
262
|
+
logText = '\n' + 'value selected: ' + activeValue;
|
263
|
+
logger.info(logText);
|
264
|
+
return true;
|
265
|
+
},
|
266
|
+
|
267
|
+
// -------------------------------------------------------------------------
|
268
|
+
// messageHandler
|
269
|
+
// Manage messages send from other J1 modules
|
270
|
+
// -------------------------------------------------------------------------
|
271
|
+
messageHandler: function (sender, message) {
|
272
|
+
var json_message = JSON.stringify(message, undefined, 2);
|
273
|
+
|
274
|
+
logText = '\n' + 'received message from ' + sender + ': ' + json_message;
|
275
|
+
logger.debug(logText);
|
276
|
+
|
277
|
+
// -----------------------------------------------------------------------
|
278
|
+
// Process commands|actions
|
279
|
+
// -----------------------------------------------------------------------
|
280
|
+
if (message.type === 'command' && message.action === 'module_initialized') {
|
281
|
+
//
|
282
|
+
// Place handling of command|action here
|
283
|
+
//
|
284
|
+
logger.info('\n' + message.text);
|
285
|
+
}
|
286
|
+
|
287
|
+
//
|
288
|
+
// Place handling of other command|action here
|
289
|
+
//
|
290
|
+
|
291
|
+
return true;
|
292
|
+
}, // END messageHandler
|
293
|
+
|
294
|
+
// -------------------------------------------------------------------------
|
295
|
+
// setState()
|
296
|
+
// Sets the current (processing) state of the module
|
297
|
+
// -------------------------------------------------------------------------
|
298
|
+
setState: function (stat) {
|
299
|
+
_this.state = stat;
|
300
|
+
}, // END setState
|
301
|
+
|
302
|
+
// -------------------------------------------------------------------------
|
303
|
+
// getState()
|
304
|
+
// Returns the current (processing) state of the module
|
305
|
+
// -------------------------------------------------------------------------
|
306
|
+
getState: function () {
|
307
|
+
return _this.state;
|
308
|
+
} // END getState
|
309
|
+
|
310
|
+
}; // END return
|
311
|
+
})(j1, window);
|
312
|
+
|
313
|
+
{% endcapture %}
|
314
|
+
{% if production %}
|
315
|
+
{{ cache | minifyJS }}
|
316
|
+
{% else %}
|
317
|
+
{{ cache | strip_empty_lines }}
|
318
|
+
{% endif %}
|
319
|
+
{% assign cache = nil %}
|
@@ -130,13 +130,9 @@ j1.adapter.rtable = (function (j1, window) {
|
|
130
130
|
var dependencies_met_j1_finished = setInterval(function() {
|
131
131
|
if (j1.getState() == 'finished') {
|
132
132
|
|
133
|
-
//
|
133
|
+
// -------------------------------------------------------------------
|
134
134
|
// rtable initializer
|
135
|
-
//
|
136
|
-
var log_text = '\n' + 'rtable is being initialized';
|
137
|
-
// -----------------------------------------------------------------------
|
138
|
-
// rtable initializer
|
139
|
-
// -----------------------------------------------------------------------
|
135
|
+
// -------------------------------------------------------------------
|
140
136
|
var log_text = '\n' + 'rtable is being initialized';
|
141
137
|
logger.info(log_text);
|
142
138
|
|
@@ -0,0 +1,109 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.css
|
4
|
+
# Provides styles for J1 Module Dropdowns
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# https://jekyll.one
|
8
|
+
#
|
9
|
+
# Copyright (C) 2021 Juergen Adams
|
10
|
+
#
|
11
|
+
# J1 Template is licensed under the MIT License.
|
12
|
+
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
13
|
+
# -----------------------------------------------------------------------------
|
14
|
+
*/
|
15
|
+
|
16
|
+
ul.dropdown-content {
|
17
|
+
list-style-type: none; /* Remove bullets */
|
18
|
+
padding: 0; /* Remove padding */
|
19
|
+
margin: 0; /* Remove margins */
|
20
|
+
}
|
21
|
+
|
22
|
+
.dropdown-content {
|
23
|
+
background-color: #fff;
|
24
|
+
margin: 0;
|
25
|
+
display: none;
|
26
|
+
min-width: 100px;
|
27
|
+
overflow-y: auto;
|
28
|
+
opacity: 0;
|
29
|
+
position: absolute;
|
30
|
+
left: 0;
|
31
|
+
top: 0;
|
32
|
+
z-index: 9999;
|
33
|
+
-webkit-transform-origin: 0 0;
|
34
|
+
transform-origin: 0 0
|
35
|
+
-webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
|
36
|
+
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
|
37
|
+
}
|
38
|
+
|
39
|
+
.dropdown-content:focus {
|
40
|
+
outline: 0
|
41
|
+
}
|
42
|
+
|
43
|
+
.dropdown-content li {
|
44
|
+
clear: both;
|
45
|
+
color: rgba(0,0,0,0.87);
|
46
|
+
cursor: pointer;
|
47
|
+
min-height: 50px;
|
48
|
+
line-height: 1.5rem;
|
49
|
+
width: 100%;
|
50
|
+
text-align: left
|
51
|
+
}
|
52
|
+
|
53
|
+
.dropdown-content li:hover,.dropdown-content li.active {
|
54
|
+
background-color: #eee
|
55
|
+
}
|
56
|
+
|
57
|
+
.dropdown-content li:focus {
|
58
|
+
outline: none
|
59
|
+
}
|
60
|
+
|
61
|
+
.dropdown-content li.divider {
|
62
|
+
min-height: 0;
|
63
|
+
height: 1px
|
64
|
+
}
|
65
|
+
|
66
|
+
.dropdown-content li>a,.dropdown-content li>span {
|
67
|
+
font-size: 16px;
|
68
|
+
color: #424242;
|
69
|
+
display: block;
|
70
|
+
line-height: 22px;
|
71
|
+
padding: 14px 16px
|
72
|
+
}
|
73
|
+
|
74
|
+
.dropdown-content li>span>label {
|
75
|
+
top: 1px;
|
76
|
+
left: 0;
|
77
|
+
height: 18px
|
78
|
+
}
|
79
|
+
|
80
|
+
.dropdown-content li>a>i {
|
81
|
+
height: inherit;
|
82
|
+
line-height: inherit;
|
83
|
+
float: left;
|
84
|
+
margin: 0 24px 0 0;
|
85
|
+
width: 24px
|
86
|
+
}
|
87
|
+
|
88
|
+
.dropdown-content li:focus {
|
89
|
+
background-color: #dadada
|
90
|
+
}
|
91
|
+
|
92
|
+
.dropdown-content [type="checkbox"]+label {
|
93
|
+
top: 1px;
|
94
|
+
left: 0;
|
95
|
+
height: 18px;
|
96
|
+
-webkit-transform: none;
|
97
|
+
transform: none
|
98
|
+
}
|
99
|
+
|
100
|
+
.dropdown-content li.divider {
|
101
|
+
min-height: 0;
|
102
|
+
height: 1px;
|
103
|
+
overflow: hidden;
|
104
|
+
background-color: #e0e0e0;
|
105
|
+
}
|
106
|
+
|
107
|
+
.dropdown-trigger {
|
108
|
+
cursor: pointer
|
109
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*
|
2
|
+
# -----------------------------------------------------------------------------
|
3
|
+
# ~/assets/themes/j1/modules/dropdowns/css/theme/uno/dropdowns.min.css
|
4
|
+
# Provides styles for J1 Module Dropdowns
|
5
|
+
#
|
6
|
+
# Product/Info:
|
7
|
+
# https://jekyll.one
|
8
|
+
#
|
9
|
+
# Copyright (C) 2021 Juergen Adams
|
10
|
+
#
|
11
|
+
# J1 Template is licensed under the MIT License.
|
12
|
+
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
13
|
+
# -----------------------------------------------------------------------------
|
14
|
+
*/
|
15
|
+
ul.dropdown-content{list-style-type:none;padding:0;margin:0}.dropdown-content{background-color:#fff;margin:0;display:none;min-width:100px;overflow-y:auto;opacity:0;position:absolute;left:0;top:0;z-index:9999;-webkit-transform-origin:0 0;transform-origin:0 0 -webkit-box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);box-shadow:0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2)}.dropdown-content:focus{outline:0}.dropdown-content li{clear:both;color:rgba(0,0,0,0.87);cursor:pointer;min-height:50px;line-height:1.5rem;width:100%;text-align:left}.dropdown-content li:hover,.dropdown-content li.active{background-color:#eee}.dropdown-content li:focus{outline:0}.dropdown-content li.divider{min-height:0;height:1px}.dropdown-content li>a,.dropdown-content li>span{font-size:16px;color:#424242;display:block;line-height:22px;padding:14px 16px}.dropdown-content li>span>label{top:1px;left:0;height:18px}.dropdown-content li>a>i{height:inherit;line-height:inherit;float:left;margin:0 24px 0 0;width:24px}.dropdown-content li:focus{background-color:#dadada}.dropdown-content [type="checkbox"]+label{top:1px;left:0;height:18px;-webkit-transform:none;transform:none}.dropdown-content li.divider{min-height:0;height:1px;overflow:hidden;background-color:#e0e0e0}.dropdown-trigger{cursor:pointer}
|