j1-template 2022.4.10 → 2022.5.0.rc0
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/modules/navigator/procedures/topsearch.proc +6 -6
- data/assets/data/fab.html +1 -1
- data/assets/data/panel.html +1 -1
- data/assets/themes/j1/adapter/js/attic.js +18 -3
- data/assets/themes/j1/adapter/js/navigator.js +19 -85
- data/assets/themes/j1/adapter/js/themer.js +5 -0
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +23 -26
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +7 -7
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +2 -2
- data/assets/themes/j1/core/css/vendor.css +5 -1
- data/assets/themes/j1/core/css/vendor.min.css +1 -1
- data/assets/themes/j1/modules/backstretch/js/backstretch.js +3 -1
- data/assets/themes/j1/modules/backstretch/js/backstretch.min.js +1 -1
- data/lib/j1/commands/generate.rb +12 -1
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.0/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.0/rubyeventmachine.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.1/fastfilereaderext.so +0 -0
- data/lib/j1/patches/rubygems/eventmachine-1.2.7-x64-mingw32/lib/3.1/rubyeventmachine.so +0 -0
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +270 -223
- data/lib/starter_web/_config.yml +6 -9
- data/lib/starter_web/_data/modules/attics.yml +13 -4
- data/lib/starter_web/_data/modules/defaults/attics.yml +1 -1
- data/lib/starter_web/_data/modules/defaults/navigator.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/themer.yml +1 -1
- data/lib/starter_web/_data/modules/navigator.yml +3 -3
- data/lib/starter_web/_data/modules/navigator_menu.yml +238 -157
- data/lib/starter_web/_includes/_attributes.asciidoc +575 -0
- data/lib/starter_web/_includes/attributes.asciidoc +41 -40
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/{modules/icons → icons}/asciidoc/logo-512x512.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/bokeh/bokeh-32x32.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/bokeh/bokeh.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/bokeh/logo-160x160.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/bootstrap/bootstrap-solid-32x32.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/bootstrap/bs-docs-masthead-pattern.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/bootstrap/scalable/bootstrap-outline.svg +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/bootstrap/scalable/bootstrap-punchout.svg +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/bootstrap/scalable/bootstrap-solid.svg +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/angular.ui.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/angularjs.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/aws.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/bootstrap.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/c9.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/chai.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/emmet.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/express.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/git.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/github.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/gulp.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/heroku.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/htmlcss-1.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/htmlcss-2.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/jasmine.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/javascript.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/jquery.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/kanban.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/leanux.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/linkedin.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/mean.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/mongodb.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/node.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/postgresql.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/protractor.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/rails.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/ruby.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/sass.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/scrum.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/components/twitter.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/github/avatar-icon.png +0 -0
- data/lib/starter_web/assets/images/icons/hyvor-talk/hyvor-logo.24x24.png +0 -0
- data/lib/starter_web/assets/images/icons/hyvor-talk/hyvor-logo.512x512.png +0 -0
- data/lib/starter_web/assets/images/icons/hyvor-talk/hyvore-talk.ico +0 -0
- data/lib/starter_web/assets/images/icons/hyvor-talk/scalable/hyvor-logo.svg +81 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/j1/favicon.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/j1/j1-256x256.gif +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/j1/j1-256x256.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/j1/j1-32x32.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/j1/j1-512x512.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/j1/j1-64x64.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/j1/j1.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/j1/scalable/j1.svg +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/jupyter/jupyter-32x32.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/jupyter/jupyter.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/jupyter/logo.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/centos/centos-icon.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/centos/centos.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/suse/suse.gif +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/suse/suse.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/suse/suse.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/ubuntu/cof_black_hex.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/ubuntu/cof_orange_hex.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/ubuntu/cof_white-black_hex.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/ubuntu/cof_white-orange_hex.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/ubuntu/ubuntu.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/windows/windows.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/windows/windows_flags_color.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/windows/windows_hdd.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/os/windows/windows_store.ico +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/amazon.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/behance.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/blogger.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/deviantart.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/dribbble.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/dropbox.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/evernote.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/facebook.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/forrst.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/github.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/googleplus.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/instagram.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/jolicloud.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/last-fm.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/linkedin.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/picasa.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/pintrest.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/rss.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/skype.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/spotify.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/stumbleupon.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/tumblr.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/twitter.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/vimeo.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/vk.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/wordpress.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/xing.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/yahoo.png +0 -0
- data/lib/starter_web/assets/images/{modules/icons → icons}/social/youtube.png +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/alexander-redl.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/harpal-singh.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/1920x1280/john-schnobrich-2.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/alexander-redl.jpg +0 -0
- data/lib/starter_web/assets/images/modules/attics/harpal-singh.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.adoc +2 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-02-01-site-generators.adoc +3 -2
- data/lib/starter_web/collections/posts/public/featured/_posts/{2022-02-28-about-j1.adoc → 2022-02-01-about-j1.adoc} +2 -3
- data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/index.html +6 -2
- data/lib/starter_web/package.json +2 -2
- data/lib/starter_web/pages/public/features/general.adoc +0 -1
- data/lib/starter_web/pages/public/features/template.adoc +4 -5
- data/lib/starter_web/pages/public/jupyter/examples/distributed/j1-common-used-widgets.adoc +1 -1
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_circular_times_table.html +747 -747
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_climate_change_forecast.html +1250 -1250
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_docs_example_dynamic.html +186 -186
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_interactive_widgets.html +512 -512
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets.html +629 -629
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_bar_chart.html +95 -95
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_hist_chart.html +93 -93
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_line_chart.html +96 -96
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_multiple_choice.html +70 -70
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_question_short_answer.html +156 -156
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_chart.html +95 -95
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_nbi_widgets_scatter_drag_chart.html +93 -93
- data/lib/starter_web/pages/public/jupyter/notebooks/textbooks/j1_odes_in_python.html +955 -955
- data/lib/starter_web/pages/public/learn/_roundtrip/100_present_images.adoc +313 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/100_present_videos.adoc +281 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/200_typography.adoc +253 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/300_icon_fonts.adoc +579 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/400_asciidoc_extensions.adoc +719 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/410_bs_modals_extentions.adoc +91 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/420_responsive_tables_extensions.adoc +420 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/500_themes.adoc +250 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/600_quicksearch.adoc +425 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/attributes.asciidoc +118 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/100_gistblock.asciidoc +28 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_info.asciidoc +14 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_left_warning.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_bottom_right_danger.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_central_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_full_height_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_table_bs_modal_examples.asciidoc +47 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_left_info.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/410_top_right_success.asciidoc +11 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/419_advanced_modals_demo.asciidoc +337 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/documents/tables/bs_modal_examples.asciidoc +47 -0
- data/lib/starter_web/pages/public/learn/_roundtrip/_includes/google-ad.js +130 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +2 -1
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +0 -28
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +6 -6
- data/lib/starter_web/pages/public/panels/intro_panel/_includes/attributes.asciidoc +5 -5
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +3 -3
- data/lib/starter_web/pages/public/se/se-fake.adoc +44 -0
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +179 -149
- data/assets/data/twa_v1.json +0 -7039
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.ads.asciidoc +0 -196
- data/lib/starter_web/collections/posts/public/featured/_posts/2021-01-01-about-cookies.comments.asciidoc +0 -182
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
title: Roundtrip
|
3
|
+
tagline: advanced bootstrap modals
|
4
|
+
date: 2020-11-08 00:00:00
|
5
|
+
description: >
|
6
|
+
Advanced Bootstrap modals are used to add dialogs to your
|
7
|
+
web pages for user notifications. To highlight important
|
8
|
+
information to your visitors. Modals are positioned over
|
9
|
+
everything else in the document so that messages get the
|
10
|
+
user's attention.
|
11
|
+
|
12
|
+
categories: [ Roundtrip ]
|
13
|
+
tags: [ Introduction, Bootstrap, Modal, Extension ]
|
14
|
+
|
15
|
+
flowtext: false
|
16
|
+
fab_menu_id: page_ctrl
|
17
|
+
|
18
|
+
permalink: /pages/public/learn/roundtrip/modals/
|
19
|
+
regenerate: false
|
20
|
+
|
21
|
+
resources: [ animate ]
|
22
|
+
resource_options:
|
23
|
+
- attic:
|
24
|
+
slides:
|
25
|
+
- url: /assets/images/pages/roundtrip/bootstrap-1920x1000-bw.jpg
|
26
|
+
alt: bootstrap
|
27
|
+
---
|
28
|
+
|
29
|
+
// Page Initializer
|
30
|
+
// =============================================================================
|
31
|
+
// Enable the Liquid Preprocessor
|
32
|
+
:page-liquid:
|
33
|
+
|
34
|
+
// Set (local) page attributes here
|
35
|
+
// -----------------------------------------------------------------------------
|
36
|
+
// :page--attr: <attr-value>
|
37
|
+
:images-dir: {imagesdir}/pages/roundtrip/100_present_images
|
38
|
+
|
39
|
+
// Load Liquid procedures
|
40
|
+
// -----------------------------------------------------------------------------
|
41
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
42
|
+
|
43
|
+
// Load page attributes
|
44
|
+
// -----------------------------------------------------------------------------
|
45
|
+
{% include {{load_attributes}} scope="all" %}
|
46
|
+
|
47
|
+
|
48
|
+
// Page content
|
49
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
50
|
+
|
51
|
+
// Include sub-documents (if any)
|
52
|
+
// -----------------------------------------------------------------------------
|
53
|
+
[role="dropcap"]
|
54
|
+
Advanced Bootstrap Modals are based on the free package of
|
55
|
+
link:{url-mdb--home}[Material Design for Bootstrap, {browser-window--new}] on version
|
56
|
+
*4.3.2*. This version can be found following this link:
|
57
|
+
link:{url-mdb--bs-modals-legacy}[Enhanced Bootstrap Modals, {browser-window--new}]. A more
|
58
|
+
current version is available from here:
|
59
|
+
link:{url-mdb--bs-modals}[Modal examples & templates, {browser-window--new}].
|
60
|
+
Bootstrap modals are used to add dialogues to your web pages for user
|
61
|
+
notifications. To highlight important information to your visitors. Modals
|
62
|
+
are positioned over everything else in the document so that messages
|
63
|
+
get the user's attention.
|
64
|
+
|
65
|
+
To improve your visitor's experience on important information that shouldn't
|
66
|
+
be missed. Modals are a great choice to bring the user's attention. Using the
|
67
|
+
J1 Template BS enhanced predefined modal styles, some emotional weight is
|
68
|
+
added to the information displayed - ranging from an info level, a simple
|
69
|
+
warning to critical messages.
|
70
|
+
|
71
|
+
NOTE: For more information on how to use Bootstrap’s JavaScript modal
|
72
|
+
plugin, refer to: link:{url-bs-doc--components-modal}[Bootstrap Docs, {browser-window--new}].
|
73
|
+
|
74
|
+
// include::{documentdir}/tables/bs_modal_examples.asciidoc[]
|
75
|
+
include::{documentdir}/410_table_bs_modal_examples.asciidoc[]
|
76
|
+
|
77
|
+
== What next
|
78
|
+
|
79
|
+
Bootstrap is a helpful framework that offers in the current V5
|
80
|
+
version a complete set of styles to create excellent responsive designs.
|
81
|
+
In the sense of all can be improved, the responsive tables support of BS
|
82
|
+
needs some enhancement to display tables on low-resolution devices or smaller
|
83
|
+
(browser-) window sizes.
|
84
|
+
|
85
|
+
The first version for improved responsive tables that scale better is available
|
86
|
+
for the J1 Template. Check out from here what the
|
87
|
+
link:{url-roundtrip--responsive-tables}[BS Table Extensions] can do!
|
88
|
+
|
89
|
+
// Include the modals HTML portion
|
90
|
+
// -----------------------------------------------------------------------------
|
91
|
+
include::{documentdir}/419_advanced_modals_demo.asciidoc[]
|
@@ -0,0 +1,420 @@
|
|
1
|
+
---
|
2
|
+
title: Roundtrip
|
3
|
+
tagline: responsive tables
|
4
|
+
date: 2020-11-09 00:00:00
|
5
|
+
description: >
|
6
|
+
Creating a design for responsive tables is challenging. The approach used by
|
7
|
+
J1 Template is based on pure CSS on top of the classic Bootstrap styles for
|
8
|
+
simplicity and portability to be viewed best on all devices and browsers.
|
9
|
+
|
10
|
+
categories: [ Roundtrip ]
|
11
|
+
tags: [ Introduction, Bootstrap, Table, Extension ]
|
12
|
+
|
13
|
+
flowtext: false
|
14
|
+
fab_menu_id: page_ctrl
|
15
|
+
|
16
|
+
permalink: /pages/public/learn/roundtrip/responsive_tables/
|
17
|
+
regenerate: false
|
18
|
+
|
19
|
+
resources: [ animate, rouge ]
|
20
|
+
resource_options:
|
21
|
+
- attic:
|
22
|
+
opacity: 0.7
|
23
|
+
slides:
|
24
|
+
- url: /assets/images/pages/roundtrip/tables-1920x1280-bw.jpg
|
25
|
+
alt: Photo by Markus Spiske on Unsplash
|
26
|
+
badge:
|
27
|
+
type: unsplash
|
28
|
+
author: Markus Spiske
|
29
|
+
href: https://unsplash.com/@markusspiske/portfolio
|
30
|
+
---
|
31
|
+
|
32
|
+
// Page Initializer
|
33
|
+
// =============================================================================
|
34
|
+
// Enable the Liquid Preprocessor
|
35
|
+
:page-liquid:
|
36
|
+
|
37
|
+
// Set (local) page attributes here
|
38
|
+
// -----------------------------------------------------------------------------
|
39
|
+
// :page--attr: <attr-value>
|
40
|
+
:images-dir: {imagesdir}/pages/roundtrip/100_present_images
|
41
|
+
|
42
|
+
// Load Liquid procedures
|
43
|
+
// -----------------------------------------------------------------------------
|
44
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
45
|
+
|
46
|
+
// Load page attributes
|
47
|
+
// -----------------------------------------------------------------------------
|
48
|
+
{% include {{load_attributes}} scope="all" %}
|
49
|
+
|
50
|
+
|
51
|
+
// Page content
|
52
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
53
|
+
|
54
|
+
// Include sub-documents (if any)
|
55
|
+
// -----------------------------------------------------------------------------
|
56
|
+
[role="dropcap"]
|
57
|
+
Creating a design for responsive tables is challenging. The approach used by
|
58
|
+
J1 Template is based on pure CSS on top of the classic Bootstrap styles for
|
59
|
+
simplicity and portability to be viewed best on all devices and browsers.
|
60
|
+
|
61
|
+
== Table types
|
62
|
+
|
63
|
+
But, for sure, the solution provided is a compromise. To fit the everyday needs
|
64
|
+
for tables viewed on desktop and mobile devices, three types of responsive
|
65
|
+
tables are implemented:
|
66
|
+
|
67
|
+
.Types of responsive tables
|
68
|
+
[cols="3a,3a,6a", options="header", width="100%", role="table-responsive mt-3"]
|
69
|
+
|===
|
70
|
+
|Type |Style |Description
|
71
|
+
|
72
|
+
|J Table (default)
|
73
|
+
|`r-text-xxx`
|
74
|
+
|J Tables are used by J1 Template for default. Those tables are using the
|
75
|
+
*responsive text* feature (see link:{url-roundtrip--typography}[Typography])
|
76
|
+
with no additional CSS classes to be applied. For smaller viewports, the text
|
77
|
+
scales down and should fit the cells automatically. The default text size for
|
78
|
+
J1 is `r-text-300`.
|
79
|
+
|
80
|
+
|B Table (Bootstrap)
|
81
|
+
|`table-responsive`
|
82
|
+
|If adding the class `table-responsive`, it creates a responsive table based
|
83
|
+
on Bootstrap CSS styles. The table will then scroll horizontally on small
|
84
|
+
devices. Making any table responsive across *all* viewports, the additional
|
85
|
+
class `table-responsive` is to applied. For specific (Bootstrap) breakpoints,
|
86
|
+
the classes `table-responsive-lg{-sm\|-md\|-lg\|-xl}` are available to have
|
87
|
+
better control on what viewport sizes tables are being transformed.
|
88
|
+
|
89
|
+
|F Table (fixed)
|
90
|
+
|`no-rtext`
|
91
|
+
|If the responsive text feature from J1 is *not* wanted, the CSS class
|
92
|
+
`no-rtext` is to be applied. J tables are *not* responsive per default,
|
93
|
+
but in combination with the CSS class `table-responsive{-sm|-md|-lg|-xl`
|
94
|
+
from Bootstrap, this type behaves like classic Bootstrap responsive tables
|
95
|
+
(see above) but *no* responsive text is used.
|
96
|
+
|
97
|
+
|R Tables (stacked)
|
98
|
+
|`rtable`
|
99
|
+
|The style `rtable` *rebuilds* a table. The header is set to invisible, and
|
100
|
+
all columns get vertically *stacked as rows*. The rebuild of responsive
|
101
|
+
tables takes effect if the viewport (window size) is smaller than 992px for
|
102
|
+
the width (x-axis); typical for small devices like tablets or mobiles.
|
103
|
+
|
104
|
+
|===
|
105
|
+
|
106
|
+
To see the transformation on a table in action, resize for desktop devices the
|
107
|
+
browser window or use a device the viewport is smaller than 768px (mobiles or
|
108
|
+
tablets).
|
109
|
+
|
110
|
+
== Tables 2-column
|
111
|
+
|
112
|
+
Tables are widely used for documentation pages. Below, simple 2-column tables
|
113
|
+
are used to explain some of the Jekyll variables for templating your content
|
114
|
+
pages.
|
115
|
+
|
116
|
+
=== Bootstrap tables
|
117
|
+
|
118
|
+
Bootstrap tables support tables to be scrolled horizontally on smaller
|
119
|
+
viewports. From a specified breakpoint and up, the table will behave normally
|
120
|
+
and do not scroll horizontally.
|
121
|
+
|
122
|
+
.Example, Bootstrap using fixed text size `no-rtext`
|
123
|
+
[source, no_theme, role="noclip"]
|
124
|
+
----
|
125
|
+
[cols="6,6", options="header", width="100%", role="table-responsive no-rtext"]
|
126
|
+
|===
|
127
|
+
|Variable |Description
|
128
|
+
...
|
129
|
+
|===
|
130
|
+
----
|
131
|
+
|
132
|
+
.Bootstrap, fixed text size `no-rtext`
|
133
|
+
[cols="6a,6a", options="header", width="100%", role="table-responsive no-rtext mt-3"]
|
134
|
+
|===
|
135
|
+
|Variable |Description
|
136
|
+
|
137
|
+
|`page.content`
|
138
|
+
|The content of the Page, rendered or un-rendered
|
139
|
+
depending upon what Liquid is being processed and what `page` is.
|
140
|
+
|
141
|
+
|`page.title`
|
142
|
+
|The title of the Page.
|
143
|
+
|
144
|
+
|`page.date`
|
145
|
+
|The Date assigned to the Post. This can be overridden in a
|
146
|
+
Post's front matter by specifying a new date/time in the format
|
147
|
+
`YYYY-MM-DD HH:MM:SS` (assuming UTC), or `YYYY-MM-DD HH:MM:SS +/-TTTT`
|
148
|
+
(to specify a time zone using an offset from UTC. e.g.
|
149
|
+
`2008-12-14 10:30:00 +0900`).
|
150
|
+
|
151
|
+
|===
|
152
|
+
|
153
|
+
.Example, Bootstrap using responsive text size
|
154
|
+
[source, no_theme, role="noclip"]
|
155
|
+
----
|
156
|
+
[cols="6,6", options="header", width="100%", role="table-responsive"]
|
157
|
+
|===
|
158
|
+
|Variable |Description
|
159
|
+
...
|
160
|
+
|===
|
161
|
+
----
|
162
|
+
|
163
|
+
.Bootstrap, responsive text size
|
164
|
+
[cols="6a,6a", options="header", width="100%", role="table-responsive mt-3"]
|
165
|
+
|===
|
166
|
+
|Variable |Description
|
167
|
+
|
168
|
+
|`page.content`
|
169
|
+
|The content of the Page, rendered or un-rendered
|
170
|
+
depending upon what Liquid is being processed and what `page` is.
|
171
|
+
|
172
|
+
|`page.title`
|
173
|
+
|The title of the Page.
|
174
|
+
|
175
|
+
|`page.date`
|
176
|
+
|The Date assigned to the Post. This can be overridden in a
|
177
|
+
Post's front matter by specifying a new date/time in the format
|
178
|
+
`YYYY-MM-DD HH:MM:SS` (assuming UTC), or `YYYY-MM-DD HH:MM:SS +/-TTTT`
|
179
|
+
(to specify a time zone using an offset from UTC. e.g.
|
180
|
+
`2008-12-14 10:30:00 +0900`).
|
181
|
+
|
182
|
+
|===
|
183
|
+
|
184
|
+
|
185
|
+
=== Responsive tables
|
186
|
+
|
187
|
+
Responsive tables *rebuild* a table. The header is set to invisible, and
|
188
|
+
all columns get vertically *stacked as rows*.
|
189
|
+
|
190
|
+
.Example, R Table using responsive text size
|
191
|
+
[source, no_theme, role="noclip"]
|
192
|
+
----
|
193
|
+
[cols="6,6", options="header", width="100%", role="rtable"]
|
194
|
+
|===
|
195
|
+
|Variable |Description
|
196
|
+
...
|
197
|
+
|===
|
198
|
+
----
|
199
|
+
|
200
|
+
.R Table, responsive text size
|
201
|
+
[cols="6a,6a", options="header", width="100%", role="rtable mt-3"]
|
202
|
+
|===
|
203
|
+
|Variable |Description
|
204
|
+
|
205
|
+
|`page.content`
|
206
|
+
|The content of the Page, rendered or un-rendered
|
207
|
+
depending upon what Liquid is being processed and what `page` is.
|
208
|
+
|
209
|
+
|`page.title`
|
210
|
+
|The title of the Page.
|
211
|
+
|
212
|
+
|`page.date`
|
213
|
+
|The Date assigned to the Post. This can be overridden in a
|
214
|
+
Post's front matter by specifying a new date/time in the format
|
215
|
+
`YYYY-MM-DD HH:MM:SS` (assuming UTC), or `YYYY-MM-DD HH:MM:SS +/-TTTT`
|
216
|
+
(to specify a time zone using an offset from UTC. e.g.
|
217
|
+
`2008-12-14 10:30:00 +0900`).
|
218
|
+
|
219
|
+
|===
|
220
|
+
|
221
|
+
.Example, R Table using fixed font size
|
222
|
+
[source, no_theme, role="noclip"]
|
223
|
+
----
|
224
|
+
[cols="6,6", options="header", width="100%", role="rtable no-rtext"]
|
225
|
+
|===
|
226
|
+
|Variable |Description
|
227
|
+
...
|
228
|
+
|===
|
229
|
+
----
|
230
|
+
|
231
|
+
.R Table, stacked, fixed text size `no-rtext`
|
232
|
+
[cols="6a,6a", options="header", width="100%", role="rtable no-rtext mt-3"]
|
233
|
+
|===
|
234
|
+
|Variable |Description
|
235
|
+
|
236
|
+
|`page.content`
|
237
|
+
|The content of the Page, rendered or un-rendered
|
238
|
+
depending upon what Liquid is being processed and what `page` is.
|
239
|
+
|
240
|
+
|`page.title`
|
241
|
+
|The title of the Page.
|
242
|
+
|
243
|
+
|`page.date`
|
244
|
+
|The Date assigned to the Post. This can be overridden in a
|
245
|
+
Post's front matter by specifying a new date/time in the format
|
246
|
+
`YYYY-MM-DD HH:MM:SS` (assuming UTC), or `YYYY-MM-DD HH:MM:SS +/-TTTT`
|
247
|
+
(to specify a time zone using an offset from UTC. e.g.
|
248
|
+
`2008-12-14 10:30:00 +0900`).
|
249
|
+
|
250
|
+
|===
|
251
|
+
|
252
|
+
|
253
|
+
== Tables multi-column
|
254
|
+
|
255
|
+
Responsive Bootstrap tables support tables to be scrolled horizontally
|
256
|
+
on smaller viewports. Making any table responsive across all viewports,
|
257
|
+
the additional class `rtable` is used. For specific (Bootstrap)
|
258
|
+
breakpoints, the classes `rtable{-sm|-md|-lg|-xl}` are available
|
259
|
+
to better control over what viewport sizes table are transformed.
|
260
|
+
From a specified breakpoint and up, the table will behave normally and do
|
261
|
+
not scroll horizontally.
|
262
|
+
|
263
|
+
=== Bootstrap tables
|
264
|
+
|
265
|
+
Bootstrap responsive tables make use of overflow-y: hidden, which clips off
|
266
|
+
any content that goes beyond the bottom or top edges of the table.
|
267
|
+
In particular, this can clip off dropdown menus and other third-party
|
268
|
+
widgets.
|
269
|
+
|
270
|
+
.Example, Bootstrap using fixed text size `no-rtext`
|
271
|
+
[source, no_theme, role="noclip"]
|
272
|
+
----
|
273
|
+
[cols=",,,,", options="header", width="100%", role="table-responsive no-rtext"]
|
274
|
+
|===
|
275
|
+
|Parameter |Type |Default |Description |Example
|
276
|
+
...
|
277
|
+
|===
|
278
|
+
----
|
279
|
+
|
280
|
+
.Bootstrap, fixed text size `no-rtext`
|
281
|
+
[cols="2,2,2,3,3", options="header", width="100%", role="table-responsive no-rtext mt-3"]
|
282
|
+
|===
|
283
|
+
|Parameter |Type |Default |Description |Example
|
284
|
+
|
285
|
+
|`color`
|
286
|
+
|Hash
|
287
|
+
|`md_white`
|
288
|
+
|The background_color hash contains a pair of colors to control the header
|
289
|
+
background as a gradient.
|
290
|
+
|The background_color hash contains a pair of colors to control the header
|
291
|
+
background as a gradient.
|
292
|
+
|
293
|
+
|`background_color_1`
|
294
|
+
|Symbolic color \| RGB valuess
|
295
|
+
|`md_indigo`
|
296
|
+
|Start value (color) for the gradient used for the header box background.
|
297
|
+
Alternatively, the color can be configured as (hexadecimal) RGB valuess of
|
298
|
+
the form `#RRGGBB`
|
299
|
+
|Start value (color) for the gradient used for the header box background.
|
300
|
+
Alternatively, the color can be configured as (hexadecimal) RGB valuess of
|
301
|
+
the form `#RRGGBB`
|
302
|
+
|
303
|
+
|===
|
304
|
+
|
305
|
+
.Example, Bootstrap using responsive text size
|
306
|
+
[source, no_theme, role="noclip"]
|
307
|
+
----
|
308
|
+
[cols=",,,,", options="header", width="100%", role="table-responsive"]
|
309
|
+
|===
|
310
|
+
|Parameter |Type |Default |Description |Example
|
311
|
+
...
|
312
|
+
|===
|
313
|
+
----
|
314
|
+
|
315
|
+
.Bootstrap, responsive text size
|
316
|
+
[cols="2,2,2,3,3", options="header", width="100%", role="table-responsive mt-3"]
|
317
|
+
|===
|
318
|
+
|Parameter |Type |Default |Description |Example
|
319
|
+
|
320
|
+
|`color`
|
321
|
+
|Hash
|
322
|
+
|`md_white`
|
323
|
+
|The background_color hash contains a pair of colors to control the header
|
324
|
+
background as a gradient.
|
325
|
+
|The background_color hash contains a pair of colors to control the header
|
326
|
+
background as a gradient.
|
327
|
+
|
328
|
+
|`background_color_1`
|
329
|
+
|Symbolic color \| RGB valuess
|
330
|
+
|`md_indigo`
|
331
|
+
|Start value (color) for the gradient used for the header box background.
|
332
|
+
Alternatively, the color can be configured as (hexadecimal) RGB valuess of
|
333
|
+
the form `#RRGGBB`
|
334
|
+
|Start value (color) for the gradient used for the header box background.
|
335
|
+
Alternatively, the color can be configured as (hexadecimal) RGB valuess of
|
336
|
+
the form `#RRGGBB`
|
337
|
+
|
338
|
+
|===
|
339
|
+
|
340
|
+
=== Responsive tables
|
341
|
+
|
342
|
+
.Example, R Table using fixed text size `no-rtext`
|
343
|
+
[source, no_theme, role="noclip"]
|
344
|
+
----
|
345
|
+
[cols=",,,,", options="header", width="100%", role="rtable no-rtext"]
|
346
|
+
|===
|
347
|
+
|Parameter |Type |Default |Description |Example
|
348
|
+
...
|
349
|
+
|===
|
350
|
+
----
|
351
|
+
|
352
|
+
.R Table, fixed text size `no-rtext`
|
353
|
+
[cols="2,2,2,3,3", options="header", width="100%", role="rtable no-rtext mt-3"]
|
354
|
+
|===
|
355
|
+
|Parameter |Type |Default |Description |Example
|
356
|
+
|
357
|
+
|`color`
|
358
|
+
|Hash
|
359
|
+
|`md_white`
|
360
|
+
|The background_color hash contains a pair of colors to control the header
|
361
|
+
background as a gradient.
|
362
|
+
|The background_color hash contains a pair of colors to control the header
|
363
|
+
background as a gradient.
|
364
|
+
|
365
|
+
|`background_color_1`
|
366
|
+
|Symbolic color \| RGB valuess
|
367
|
+
|`md_indigo`
|
368
|
+
|Start value (color) for the gradient used for the header box background.
|
369
|
+
Alternatively, the color can be configured as (hexadecimal) RGB valuess of
|
370
|
+
the form `#RRGGBB`
|
371
|
+
|Start value (color) for the gradient used for the header box background.
|
372
|
+
Alternatively, the color can be configured as (hexadecimal) RGB valuess of
|
373
|
+
the form `#RRGGBB`
|
374
|
+
|
375
|
+
|===
|
376
|
+
|
377
|
+
.Example, R Table using fixed text size `no-rtext`
|
378
|
+
[source, no_theme, role="noclip"]
|
379
|
+
----
|
380
|
+
[cols=",,,,", options="header", width="100%", role="rtable no-rtext"]
|
381
|
+
|===
|
382
|
+
|Parameter |Type |Default |Description |Example
|
383
|
+
...
|
384
|
+
|===
|
385
|
+
----
|
386
|
+
|
387
|
+
.R Table, responsive text size
|
388
|
+
[cols="2,2,2,3,3", options="header", width="100%", role="rtable mt-3"]
|
389
|
+
|===
|
390
|
+
|Parameter |Type |Default |Description |Example
|
391
|
+
|
392
|
+
|`color`
|
393
|
+
|Hash
|
394
|
+
|`md_white`
|
395
|
+
|The background_color hash contains a pair of colors to control the header
|
396
|
+
background as a gradient.
|
397
|
+
|The background_color hash contains a pair of colors to control the header
|
398
|
+
background as a gradient.
|
399
|
+
|
400
|
+
|`background_color_1`
|
401
|
+
|Symbolic color \| RGB valuess
|
402
|
+
|`md_indigo`
|
403
|
+
|Start value (color) for the gradient used for the header box background.
|
404
|
+
Alternatively, the color can be configured as (hexadecimal) RGB valuess of
|
405
|
+
the form `#RRGGBB`
|
406
|
+
|Start value (color) for the gradient used for the header box background.
|
407
|
+
Alternatively, the color can be configured as (hexadecimal) RGB valuess of
|
408
|
+
the form `#RRGGBB`
|
409
|
+
|
410
|
+
|===
|
411
|
+
|
412
|
+
|
413
|
+
== What next
|
414
|
+
|
415
|
+
Expectedly you've enjoyed exploring all the possibilities J1 offers so far.
|
416
|
+
An exciting feature may be the use of themes. But much, much more can the J1
|
417
|
+
do for your Web Site.
|
418
|
+
|
419
|
+
Check out what themes can do. Have a look at the
|
420
|
+
link:{url-roundtrip--themes}[BS Themes] feature!
|