j1-template 2021.1.28 → 2021.2.2
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_news_panel_posts.html +6 -6
- data/_includes/themes/j1/layouts/content_generator_post.html +3 -0
- data/_includes/themes/j1/modules/navigator/generator.html +1 -1
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +5 -5
- data/_includes/themes/j1/procedures/posts/create_series_header.proc +6 -6
- data/_layouts/default.html +6 -2
- data/assets/data/mdil_icons.json +2417 -0
- data/assets/data/panel.html +10 -10
- data/assets/themes/j1/adapter/js/j1.js +8 -7
- data/assets/themes/j1/adapter/js/j1scroll.js +19 -1
- data/assets/themes/j1/adapter/js/navigator.js +11 -4
- data/assets/themes/j1/adapter/js/rtable.js +77 -24
- data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.css +1222 -0
- data/assets/themes/j1/core/css/icon-fonts/materialdesign-light.min.css +1 -0
- data/assets/themes/j1/core/css/icon-fonts/materialdesign.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.css +58 -109
- data/assets/themes/j1/core/css/themes/uno-dark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +28 -18
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/vendor.css +7 -20
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/eot/materialdesignicons-light-webfont.eot +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/materialdesignicons-light-webfont.woff2 +0 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/svg/materialdesignicons-light-webfont.svg +801 -0
- data/assets/themes/j1/core/fonts/material_design_icons_light/fonts/ttf/materialdesignicons-light-webfont.ttf +0 -0
- data/assets/themes/j1/core/js/template.js +4 -4
- data/assets/themes/j1/core/js/template.js.map +1 -1
- data/assets/themes/j1/core/js/template.min.js +4 -4
- data/assets/themes/j1/core/js/template.min.js.map +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/carousel/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/j1Scroll/js/j1scroll.js +11 -21
- data/assets/themes/j1/modules/j1Scroll/js/j1scroll.min.js +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.css +1 -1
- data/assets/themes/j1/modules/justifiedGallery/css/theme/uno.min.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +5 -15
- data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +1 -1
- data/assets/themes/j1/modules/mdilPreviewer/css/previewer.css +97 -0
- data/assets/themes/j1/modules/mdilPreviewer/css/previewer.min.css +15 -0
- data/assets/themes/j1/modules/mdilPreviewer/js/previewer.js +125 -0
- data/assets/themes/j1/modules/mdilPreviewer/js/previewer.min.js +15 -0
- data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.css +3 -3
- data/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css +2 -174
- data/assets/themes/j1/modules/rtable/js/rtable.js +59 -25
- data/assets/themes/j1/modules/rtable/js/rtable.min.js +12 -683
- data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.js +73 -73
- data/assets/themes/j1/modules/showOnScroll/js/showOnScroll.min.js +15 -15
- data/lib/j1/commands/generate.rb +5 -8
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +15 -51
- data/lib/starter_web/_data/blocks/banner.yml +4 -5
- data/lib/starter_web/_data/blocks/panel.yml +217 -183
- data/lib/starter_web/_data/layouts/home.yml +20 -16
- data/lib/starter_web/_data/modules/defaults/navigator.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/rtable.yml +34 -0
- data/lib/starter_web/_data/modules/j1scroll.yml +12 -2
- data/lib/starter_web/_data/modules/navigator_menu.yml +3 -3
- data/lib/starter_web/_data/modules/rtable.yml +34 -0
- data/lib/starter_web/_data/resources.yml +38 -16
- data/lib/starter_web/_includes/attributes.asciidoc +6 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/annie-spratt-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/antonino-visalli-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/humble-lamb-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/library-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/romain-vignes-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/sigmund-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/{pages/videos → modules/attics}/szabo-viktor-1920x1280.jpg +0 -0
- data/lib/starter_web/assets/images/pages/asciidoc_skeletons/example-pdf-screenshot.png +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/{2020-01-01-about-cookies.adoc → 2021-01-01-about-cookies.adoc} +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/{2021-03-01-site-generators.adoc → 2021-02-01-site-generators.adoc} +0 -0
- data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-20-minneapolis.adoc → series/_posts/2020-01-01-post-wiki-series.adoc} +11 -10
- data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc → series/_posts/2020-01-02-post-wiki-series.adoc} +15 -13
- data/lib/starter_web/collections/posts/public/{wikipedia/_posts/2016-11-26-columbia-river.adoc → series/_posts/2020-01-03-post-wiki-series.adoc} +28 -11
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/attributes.asciidoc +0 -0
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/documents/readme +0 -0
- data/lib/starter_web/collections/posts/public/{wikipedia → series}/_posts/_includes/tables/readme +0 -0
- data/lib/starter_web/index.html +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/000_intro.adoc +5 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +43 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +61 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/attributes.asciidoc +95 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/000_intro.asciidoc +54 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/000_basic_example.asciidoc +31 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/111_about_the_converter.asciidoc +111 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/112_getting_started.asciidoc +95 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter/113_themes.asciidoc +39 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/100_converter.asciidoc +8 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/211_language_overview.asciidoc +122 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/212_values.asciidoc +502 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes/213_fonts.asciidoc +261 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/_includes/documents/200_themes.asciidoc +8 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.bat +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book → documentation}/a2p.sh +2 -2
- data/lib/starter_web/pages/public/asciidoc_skeletons/{book/book.a2p → documentation/documentation.a2p} +2 -8
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +86 -0
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/100_chapter.asciidoc +848 -40
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/200_chapter.asciidoc +149 -38
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +2 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +312 -119
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +5 -5
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +5 -5
- data/lib/starter_web/pages/public/blog/navigator/archive.html +5 -5
- data/lib/starter_web/pages/public/previewer/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 +51 -82
- data/assets/themes/j1/modules/rtable/js/tablesaw-init.js +0 -18
- data/assets/themes/j1/modules/rtable/js/tablesaw.stackonly.js +0 -2371
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +0 -128
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +0 -131
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +0 -131
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +0 -132
- data/lib/starter_web/pages/infinite-scroll-tester-5.adoc +0 -119
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/blindtext.asciidoc +0 -11
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/font_icons.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/gallery.asciidoc +0 -5
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/asciidoc-extensions/lightbox.asciidoc +0 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/chapter_document.asciidoc +0 -9
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/documents/entry_document.asciidoc +0 -3
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/images/image.asciidoc +0 -6
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column.asciidoc +0 -12
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_2_column_options.asciidoc +0 -30
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_3_column.asciidoc +0 -16
- data/lib/starter_web/pages/public/asciidoc_skeletons/_templates/tables/table_4_column.asciidoc +0 -25
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/100_chapter.adoc +0 -62
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/200_chapter.adoc +0 -64
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/900_references.adoc +0 -73
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/attributes.asciidoc +0 -74
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/000_intro.asciidoc +0 -33
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/100_chapter_document.asciidoc +0 -21
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter/110_chapter_document.asciidoc +0 -36
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/100_chapter.asciidoc +0 -7
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter/200_chapter_document.asciidoc +0 -53
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/200_chapter.asciidoc +0 -5
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/000_intro.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/100_chapter_document.asciidoc +0 -33
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/200_chapter_document.asciidoc +0 -26
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references/900_sources.asciidoc +0 -81
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/900_references.asciidoc +0 -23
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
- data/lib/starter_web/pages/public/asciidoc_skeletons/book/book.adoc +0 -136
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/100_chapter.asciidoc +0 -60
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/200_chapter.asciidoc +0 -59
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/documents/tables/110_material_design_icons.asciidoc +0 -102
- data/lib/starter_web/pages/public/previewer/_includes/attributes.asciidoc +0 -60
- data/lib/starter_web/pages/public/previewer/_includes/documents/licenses/mit.asciidoc +0 -19
- data/lib/starter_web/pages/public/previewer/_includes/documents/readme +0 -0
- data/lib/starter_web/pages/public/previewer/_includes/documents/rouge/100_language_examples.asciidoc +0 -119
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/100_absolute_sizes.asciidoc +0 -39
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/110_bs_grid_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/120_relative_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/200_rotate.asciidoc +0 -71
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/300_flip.asciidoc +0 -31
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/400_spin_pulsed.asciidoc +0 -39
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/500_bw_color_palette.asciidoc +0 -61
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/510_bs_color_palette.asciidoc +0 -55
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/600_md_color_palette.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/601_md_color_palette_indigo.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/mdi_icons/602_md_color_palette_pink.asciidoc +0 -95
- data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/200_rouge_attributes.asciidoc +0 -41
- data/lib/starter_web/pages/public/previewer/_includes/tables/rouge/300_supported_languages.asciidoc +0 -857
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_bs_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/100_relative_sizes.asciidoc +0 -47
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/200_rotate.asciidoc +0 -71
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/300_flip.asciidoc +0 -30
- data/lib/starter_web/pages/public/previewer/_includes/tables/twitter_emoji/400_spin_pulsed.asciidoc +0 -31
- data/lib/starter_web/pages/public/previewer/iframer.adoc +0 -93
- data/lib/starter_web/pages/public/previewer/justified_gallery.html +0 -41
- data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +0 -574
- data/lib/starter_web/pages/public/previewer/mdi_icons_preview.adoc +0 -220
- data/lib/starter_web/pages/public/previewer/rouge.adoc +0 -133
- data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +0 -191
@@ -1,6 +1,6 @@
|
|
1
1
|
/*
|
2
2
|
# -----------------------------------------------------------------------------
|
3
|
-
# ~/assets/themes/j1/modules/
|
3
|
+
# ~/assets/themes/j1/modules/rtable/css/theme/uno/rtable.min.css
|
4
4
|
# Tablesaw v3.1.2 Theme for J1 Template
|
5
5
|
#
|
6
6
|
# Product/Info:
|
@@ -16,176 +16,4 @@
|
|
16
16
|
# See: https://github.com/filamentgroup/tablesaw/blob/master/LICENSE
|
17
17
|
# -----------------------------------------------------------------------------
|
18
18
|
*/
|
19
|
-
|
20
|
-
/*
|
21
|
-
// BS4 media breakpoints
|
22
|
-
// -----------------------------------------------------------------------------
|
23
|
-
$breakpoint-xl: 1200px;
|
24
|
-
$breakpoint-lg: 992px;
|
25
|
-
$breakpoint-md: 768px;
|
26
|
-
$breakpoint-sm: 576px;
|
27
|
-
$breakpoint-xs: 575px;
|
28
|
-
*/
|
29
|
-
|
30
|
-
.tablesaw {
|
31
|
-
width: 100%;
|
32
|
-
max-width: 100%;
|
33
|
-
empty-cells: show;
|
34
|
-
border-collapse: collapse;
|
35
|
-
/* border: 0; */
|
36
|
-
/* padding: 0; */
|
37
|
-
}
|
38
|
-
|
39
|
-
.tablesaw * {
|
40
|
-
box-sizing: border-box;
|
41
|
-
}
|
42
|
-
|
43
|
-
.tablesaw-stack td .tablesaw-cell-label,
|
44
|
-
.tablesaw-stack th .tablesaw-cell-label {
|
45
|
-
display: none;
|
46
|
-
}
|
47
|
-
|
48
|
-
/* Mobile first styles: Begin with the stacked presentation at narrow widths */
|
49
|
-
|
50
|
-
/* Support note IE9+: @media only all */
|
51
|
-
|
52
|
-
/* Media query to show as a standard table at 560px (35em x 16px) or wider */
|
53
|
-
|
54
|
-
|
55
|
-
/* All Media screens
|
56
|
-
-------------------------------------------------------------------------------- */
|
57
|
-
@media all {
|
58
|
-
/* Show the table cells as a block level element */
|
59
|
-
|
60
|
-
.tablesaw-stack {
|
61
|
-
clear: both;
|
62
|
-
}
|
63
|
-
|
64
|
-
.tablesaw-stack td,
|
65
|
-
.tablesaw-stack th {
|
66
|
-
text-align: left;
|
67
|
-
display: block;
|
68
|
-
}
|
69
|
-
|
70
|
-
.tablesaw-stack tr {
|
71
|
-
clear: both;
|
72
|
-
display: table-row;
|
73
|
-
}
|
74
|
-
|
75
|
-
/* Make the label elements a percentage width */
|
76
|
-
|
77
|
-
.tablesaw-stack td .tablesaw-cell-label,
|
78
|
-
.tablesaw-stack th .tablesaw-cell-label {
|
79
|
-
display: inline-block;
|
80
|
-
/* padding: 0 .6em 0 0; */
|
81
|
-
/* width: 30%; */
|
82
|
-
width: 20%;
|
83
|
-
}
|
84
|
-
|
85
|
-
/* For grouped headers, have a different style to visually
|
86
|
-
separate the levels by classing the first label in each
|
87
|
-
col group
|
88
|
-
*/
|
89
|
-
|
90
|
-
.tablesaw-stack th .tablesaw-cell-label-top,
|
91
|
-
.tablesaw-stack td .tablesaw-cell-label-top {
|
92
|
-
display: block;
|
93
|
-
padding: .4em 0;
|
94
|
-
margin: .4em 0;
|
95
|
-
}
|
96
|
-
|
97
|
-
.tablesaw-cell-label {
|
98
|
-
display: block;
|
99
|
-
}
|
100
|
-
|
101
|
-
/* Avoid double strokes when stacked */
|
102
|
-
|
103
|
-
.tablesaw-stack tbody th.group {
|
104
|
-
margin-top: -1px;
|
105
|
-
}
|
106
|
-
|
107
|
-
/* Avoid double strokes when stacked */
|
108
|
-
|
109
|
-
.tablesaw-stack th.group b.tablesaw-cell-label {
|
110
|
-
display: none !important;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
|
-
/* Desktop
|
115
|
-
@media (min-width: 40em) $grid-breakpoint-lg
|
116
|
-
-------------------------------------------------------------------------------- */
|
117
|
-
@media screen and (min-width: 992px) {
|
118
|
-
.tablesaw-stack tr {
|
119
|
-
display: table-row;
|
120
|
-
}
|
121
|
-
|
122
|
-
/* Show the table header rows */
|
123
|
-
|
124
|
-
.tablesaw-stack td,
|
125
|
-
.tablesaw-stack th,
|
126
|
-
.tablesaw-stack thead td,
|
127
|
-
.tablesaw-stack thead th {
|
128
|
-
display: table-cell;
|
129
|
-
margin: 0;
|
130
|
-
}
|
131
|
-
|
132
|
-
/* Hide the labels in each cell */
|
133
|
-
|
134
|
-
.tablesaw-stack td .tablesaw-cell-label,
|
135
|
-
.tablesaw-stack th .tablesaw-cell-label {
|
136
|
-
display: none !important;
|
137
|
-
}
|
138
|
-
}
|
139
|
-
|
140
|
-
/* Mobile
|
141
|
-
@media (max-width: 39.9375em) {
|
142
|
-
-------------------------------------------------------------------------------- */
|
143
|
-
@media screen and (max-width: 992px) {
|
144
|
-
/* Table rows have a gray bottom stroke by default */
|
145
|
-
|
146
|
-
.tablesaw-stack tbody tr {
|
147
|
-
display: block;
|
148
|
-
width: 100%;
|
149
|
-
/* border-bottom: 1px solid #dfdfdf; */
|
150
|
-
}
|
151
|
-
|
152
|
-
.tablesaw-stack thead td,
|
153
|
-
.tablesaw-stack thead th {
|
154
|
-
display: none;
|
155
|
-
}
|
156
|
-
|
157
|
-
.tablesaw-stack tbody td,
|
158
|
-
.tablesaw-stack tbody th {
|
159
|
-
display: block;
|
160
|
-
/* float: left; */
|
161
|
-
/* clear: left; */
|
162
|
-
width: 100%;
|
163
|
-
}
|
164
|
-
|
165
|
-
/* jadams, 2020-09-15: */
|
166
|
-
.tablesaw-cell-label {
|
167
|
-
vertical-align: top;
|
168
|
-
font-weight: 700 !important;
|
169
|
-
}
|
170
|
-
|
171
|
-
/* jadams, 2020-09-65: changed max-width: 67% */
|
172
|
-
.tablesaw-cell-content {
|
173
|
-
display: inline-block;
|
174
|
-
margin-left: .5rem;
|
175
|
-
max-width: 100%;
|
176
|
-
min-width: 100%; /* is to calculated for firefox */
|
177
|
-
}
|
178
|
-
|
179
|
-
.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-label,
|
180
|
-
.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-content {
|
181
|
-
display: block;
|
182
|
-
width: 100%;
|
183
|
-
max-width: 100%;
|
184
|
-
padding: 0;
|
185
|
-
}
|
186
|
-
|
187
|
-
.tablesaw-stack td:empty,
|
188
|
-
.tablesaw-stack th:empty {
|
189
|
-
display: none;
|
190
|
-
}
|
191
|
-
}
|
19
|
+
.tablesaw{width:100%;max-width:100%;empty-cells:show;border-collapse:collapse}.tablesaw *{box-sizing:border-box}.tablesaw-stack td .tablesaw-cell-label,.tablesaw-stack th .tablesaw-cell-label{display:none}@media all{.tablesaw-stack{clear:both}.tablesaw-stack td,.tablesaw-stack th{text-align:left;display:block}.tablesaw-stack tr{clear:both;display:table-row}.tablesaw-stack td .tablesaw-cell-label,.tablesaw-stack th .tablesaw-cell-label{display:inline-block;width:20%}.tablesaw-stack th .tablesaw-cell-label-top,.tablesaw-stack td .tablesaw-cell-label-top{display:block;padding:.4em 0;margin:.4em 0}.tablesaw-cell-label{display:block}.tablesaw-stack tbody th.group{margin-top:-1px}.tablesaw-stack th.group b.tablesaw-cell-label{display:none!important}}@media screen and (min-width:992px){.tablesaw-stack tr{display:table-row}.tablesaw-stack td,.tablesaw-stack th,.tablesaw-stack thead td,.tablesaw-stack thead th{display:table-cell;margin:0}.tablesaw-stack td .tablesaw-cell-label,.tablesaw-stack th .tablesaw-cell-label{display:none!important}}@media screen and (max-width:992px){.tablesaw-stack tbody tr{display:block;width:100%}.tablesaw-stack thead td,.tablesaw-stack thead th{display:none}.tablesaw-stack tbody td,.tablesaw-stack tbody th{display:block;width:100%}.tablesaw-cell-label{vertical-align:top;font-weight:700!important}.tablesaw-cell-content{display:inline-block;margin-left:.5rem;max-width:100%;min-width:100%}.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-label,.tablesaw-stack .tablesaw-stack-block .tablesaw-cell-content{display:block;width:100%;max-width:100%;padding:0}.tablesaw-stack td:empty,.tablesaw-stack th:empty{display:none}}
|
@@ -1,26 +1,22 @@
|
|
1
1
|
/*
|
2
2
|
# -----------------------------------------------------------------------------
|
3
|
-
#
|
4
|
-
#
|
3
|
+
# ~/assets/themes/j1/modules/rtable/js/rtable.js
|
4
|
+
# Tablesaw v3.1.2 implementation for J1 Template
|
5
5
|
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
6
|
+
# Product/Info:
|
7
|
+
# https://jekyll.one
|
8
|
+
# https://github.com/filamentgroup/tablesaw
|
9
9
|
#
|
10
|
-
#
|
11
|
-
#
|
10
|
+
# Copyright (C) 2021 Juergen Adams
|
11
|
+
# Copyright (c) 2013 Filament Group
|
12
12
|
#
|
13
|
-
#
|
14
|
-
#
|
15
|
-
#
|
16
|
-
#
|
13
|
+
# J1 Template is licensed under the MIT License.
|
14
|
+
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
15
|
+
# Tablesaw is licensed under the MIT License.
|
16
|
+
# See: https://github.com/filamentgroup/tablesaw/blob/master/LICENSE
|
17
17
|
# -----------------------------------------------------------------------------
|
18
18
|
*/
|
19
19
|
|
20
|
-
/*! Tablesaw - v3.1.2 - 2019-03-19
|
21
|
-
* https://github.com/filamentgroup/tablesaw
|
22
|
-
* Copyright (c) 2019 Filament Group; Licensed MIT */
|
23
|
-
|
24
20
|
(function (root, factory) {
|
25
21
|
if (typeof define === 'function' && define.amd) {
|
26
22
|
define(["jquery"], function (jQuery) {
|
@@ -76,26 +72,34 @@
|
|
76
72
|
(!window.blackberry || window.WebKitPoint) && // only WebKit Blackberry (OS 6+)
|
77
73
|
!window.operamini,
|
78
74
|
$: $,
|
79
|
-
_init: function(element) {
|
75
|
+
_init: function(element, options) {
|
80
76
|
Tablesaw.$(element || document).trigger("enhance.tablesaw");
|
77
|
+
Tablesaw.options = options;
|
81
78
|
},
|
82
|
-
|
79
|
+
|
80
|
+
// -------------------------------------------------------------------------
|
81
|
+
// initializer
|
82
|
+
// -------------------------------------------------------------------------
|
83
|
+
init: function(element, options) {
|
83
84
|
// Account for Tablesaw being loaded either before or after the DOMContentLoaded event is fired.
|
84
85
|
domContentLoadedTriggered =
|
85
86
|
domContentLoadedTriggered || /complete|loaded/.test(document.readyState);
|
86
87
|
if (!domContentLoadedTriggered) {
|
87
88
|
if ("addEventListener" in document) {
|
88
|
-
// Use raw DOMContentLoaded instead of
|
89
|
+
// Use raw DOMContentLoaded instead of Tablesaw (may have issues in Android 2.3, exhibited by stack table)
|
89
90
|
document.addEventListener("DOMContentLoaded", function() {
|
90
|
-
Tablesaw._init(element);
|
91
|
+
Tablesaw._init(element, options);
|
91
92
|
});
|
92
93
|
}
|
93
94
|
} else {
|
94
|
-
Tablesaw._init(element);
|
95
|
+
Tablesaw._init(element, options);
|
95
96
|
}
|
96
97
|
}
|
97
98
|
};
|
98
99
|
|
100
|
+
// ---------------------------------------------------------------------------
|
101
|
+
// event handler
|
102
|
+
// ---------------------------------------------------------------------------
|
99
103
|
$(document).on("enhance.tablesaw", function() {
|
100
104
|
|
101
105
|
// Extend i18n config, if one exists.
|
@@ -110,10 +114,16 @@
|
|
110
114
|
];
|
111
115
|
});
|
112
116
|
|
117
|
+
// ---------------------------------------------------------------------------
|
118
|
+
// enhance ???
|
119
|
+
// ---------------------------------------------------------------------------
|
113
120
|
if (Tablesaw.mustard) {
|
114
121
|
$(document.documentElement).addClass("tablesaw-enhanced");
|
115
122
|
}
|
116
123
|
|
124
|
+
// -------------------------------------------------------------------------
|
125
|
+
// plugin
|
126
|
+
// -------------------------------------------------------------------------
|
117
127
|
(function() {
|
118
128
|
var pluginName = "tablesaw";
|
119
129
|
var classes = {
|
@@ -125,16 +135,18 @@
|
|
125
135
|
refresh: "tablesawrefresh",
|
126
136
|
resize: "tablesawresize"
|
127
137
|
};
|
128
|
-
var defaultMode
|
129
|
-
var initSelector
|
130
|
-
var initFilterSelector
|
131
|
-
var defaultConfig
|
138
|
+
var defaultMode = "stack";
|
139
|
+
var initSelector = "table";
|
140
|
+
var initFilterSelector = "[data-tablesaw],[data-tablesaw-mode],[data-tablesaw-sortable]";
|
141
|
+
var defaultConfig = {};
|
142
|
+
var logger = log4javascript.getLogger('j1.rtable');
|
132
143
|
|
133
144
|
Tablesaw.events = events;
|
134
145
|
|
135
146
|
var Table = function(element) {
|
136
147
|
if (!element) {
|
137
148
|
throw new Error("Tablesaw requires an element.");
|
149
|
+
logger.error("Tablesaw requires an element.");
|
138
150
|
}
|
139
151
|
|
140
152
|
this.table = element;
|
@@ -182,7 +194,7 @@
|
|
182
194
|
};
|
183
195
|
|
184
196
|
Table.prototype.getConfig = function(pluginSpecificConfig) {
|
185
|
-
//
|
197
|
+
// Tablesaw extend doesn’t support arbitrary args
|
186
198
|
var configs = $.extend(defaultConfig, pluginSpecificConfig || {});
|
187
199
|
return $.extend(configs, typeof TablesawConfig !== "undefined" ? TablesawConfig : {});
|
188
200
|
};
|
@@ -548,12 +560,34 @@
|
|
548
560
|
|
549
561
|
var resizeTimeout;
|
550
562
|
$(window).on("resize", function() {
|
563
|
+
var winWidth;
|
564
|
+
$('table').each(function() {
|
565
|
+
var curTable = $(this);
|
566
|
+
var log_text;
|
567
|
+
|
568
|
+
if ($(curTable).hasClass('rtable')) {
|
569
|
+
winWidth = $(window).width();
|
570
|
+
// set show/hide all table/colgroup elements
|
571
|
+
//
|
572
|
+
if ($(window).width() < Tablesaw.options.breakpoint) {
|
573
|
+
log_text = '\n' + 'hide colgroups: ' + curTable.attr('id')
|
574
|
+
curTable.find('colgroup').hide();
|
575
|
+
logger.debug(log_text);
|
576
|
+
} else {
|
577
|
+
log_text = '\n' + 'show colgroup: ' + curTable.attr('id')
|
578
|
+
curTable.find('colgroup').show();
|
579
|
+
logger.debug(log_text);
|
580
|
+
}
|
581
|
+
}
|
582
|
+
});
|
583
|
+
|
551
584
|
if (!isScrolling) {
|
552
585
|
window.clearTimeout(resizeTimeout);
|
553
586
|
resizeTimeout = window.setTimeout(function() {
|
554
587
|
$doc.trigger(events.resize);
|
555
588
|
}, 150); // must be less than the scrolling timeout above.
|
556
589
|
}
|
590
|
+
|
557
591
|
});
|
558
592
|
|
559
593
|
Tablesaw.Table = Table;
|