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,253 @@
|
|
1
|
+
---
|
2
|
+
title: Roundtrip
|
3
|
+
tagline: typography
|
4
|
+
date: 2020-11-05 00:00:00
|
5
|
+
description: >
|
6
|
+
The character font serves as one of the most crucial branding elements for
|
7
|
+
any business. Typography matters for any media presenting text. The text will
|
8
|
+
take on an important role of acting not only as plain text but will also serve
|
9
|
+
as something like images.
|
10
|
+
|
11
|
+
categories: [ Roundtrip ]
|
12
|
+
tags: [ Introduction, Module, Typography ]
|
13
|
+
|
14
|
+
fab_menu_id: page_ctrl
|
15
|
+
|
16
|
+
permalink: /pages/public/learn/roundtrip/typography/
|
17
|
+
regenerate: false
|
18
|
+
|
19
|
+
resources: [ animate ]
|
20
|
+
resource_options:
|
21
|
+
- attic:
|
22
|
+
opacity: 0.3
|
23
|
+
slides:
|
24
|
+
- url: /assets/images/pages/roundtrip/typography-1920x1280-bw.jpg
|
25
|
+
alt: Photo by Alice Donovan Rousel on Unsplash
|
26
|
+
preload: 0
|
27
|
+
transitionDuration: fast
|
28
|
+
resolutionRefreshRate: 500
|
29
|
+
badge:
|
30
|
+
type: unsplash
|
31
|
+
author: Alice Donovan Rousel
|
32
|
+
href: https://unsplash.com/@alicekat/portfolio
|
33
|
+
---
|
34
|
+
|
35
|
+
// Page Initializer
|
36
|
+
// =============================================================================
|
37
|
+
// Enable the Liquid Preprocessor
|
38
|
+
:page-liquid:
|
39
|
+
|
40
|
+
// Set (local) page attributes here
|
41
|
+
// -----------------------------------------------------------------------------
|
42
|
+
// :page--attr: <attr-value>
|
43
|
+
:images-dir: {imagesdir}/pages/roundtrip/100_present_images
|
44
|
+
|
45
|
+
// Load Liquid procedures
|
46
|
+
// -----------------------------------------------------------------------------
|
47
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
48
|
+
|
49
|
+
// Load page attributes
|
50
|
+
// -----------------------------------------------------------------------------
|
51
|
+
{% include {{load_attributes}} scope="all" %}
|
52
|
+
|
53
|
+
|
54
|
+
// Page content
|
55
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
56
|
+
|
57
|
+
// Include sub-documents (if any)
|
58
|
+
// -----------------------------------------------------------------------------
|
59
|
+
[role="dropcap"]
|
60
|
+
The character font serves as one of the most crucial branding elements for
|
61
|
+
any business. Typography matters for any media presenting text. The text will
|
62
|
+
take on an important role of acting as plain text but will also serve
|
63
|
+
as something like images.
|
64
|
+
|
65
|
+
== Responsive Text
|
66
|
+
|
67
|
+
Sadly, one common flaw is seen in many templates and frameworks: a lack of
|
68
|
+
support for genuinely responsive text. While elements on a page resize
|
69
|
+
fluidly, the text still resizes on a fixed basis. To avoid this issue,
|
70
|
+
especially for heavily text-focused pages, J1 Template supports styles that
|
71
|
+
fluidly scale text size and line height to optimize readability for the user.
|
72
|
+
|
73
|
+
Below you find an example of how text behaves if defined on a fixed basis -
|
74
|
+
what you'll see quite often. Change the size of your Browser Window to see
|
75
|
+
what will happen in terms of responsiveness.
|
76
|
+
|
77
|
+
++++
|
78
|
+
<div>
|
79
|
+
<button type="button" name="toggle-r-text" class="btn btn-primary btn-flex mt-3 mb-3">
|
80
|
+
<i class="toggle-button mdi mdi-toggle-switch-off mdi-lg mdi-md-bg-primary-50 mr-1"></i>
|
81
|
+
Toggle rtext
|
82
|
+
</button>
|
83
|
+
<div class="mb-4">
|
84
|
+
<div class="content">
|
85
|
+
<!-- jadams, 2020-11-15: adjusted heading levels (Google optimisation) -->
|
86
|
+
<h3 class="notoc">The Extremes of Good and Evil</h3>
|
87
|
+
<p class="small notoc text-gray mb-3">Cicero, Paragraph 1.10.32 · Translation by H. Rackham, Issue 1914 - De Finibus</p>
|
88
|
+
<p class="toggle-description no-r-text">
|
89
|
+
But I must explain to you how all this mistaken idea of denouncing
|
90
|
+
pleasure and praising pain was born and I will give you a complete
|
91
|
+
account of the system, and expound the actual teachings of the great
|
92
|
+
explorer of the truth, the master-builder of human happiness.
|
93
|
+
<br/><br/>
|
94
|
+
No one rejects, dislikes, or avoids pleasure itself, because it is
|
95
|
+
pleasure, but because those who do not know how to pursue pleasure
|
96
|
+
rationally encounter consequences that are extremely painful. Nor
|
97
|
+
again is there anyone who loves or pursues or desires to obtain pain
|
98
|
+
of itself, because it is pain, but because occasionally circumstances
|
99
|
+
occur in which toil and pain can procure him some great pleasure.
|
100
|
+
<br/><br/>
|
101
|
+
To take a trivial example, which of us ever undertakes laborious
|
102
|
+
physical exercise, except to obtain some advantage from it? But who
|
103
|
+
has any right to find fault with a man who chooses to enjoy a pleasure
|
104
|
+
that has no annoying consequences, or one who avoids a pain that
|
105
|
+
produces no resultant pleasure?
|
106
|
+
</p>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<script>
|
112
|
+
$('button[name="toggle-r-text"]').on('click', function (e) {
|
113
|
+
$('p.toggle-description').toggleClass('no-r-text r-text-300');
|
114
|
+
$('.toggle-button').toggleClass('mdi-toggle-switch-off mdi-toggle-switch');
|
115
|
+
});
|
116
|
+
</script>
|
117
|
+
++++
|
118
|
+
|
119
|
+
To see Responsive Text `r-text` in action, use the button above to toggle on
|
120
|
+
and off Responsive Text to see the difference!
|
121
|
+
|
122
|
+
== Scaling Responsive Text
|
123
|
+
|
124
|
+
The responsive text comes in five different scale factors in a range from 100
|
125
|
+
to 500. Scaling `r-text` gives you the flexibility to use `r-text` everywhere.
|
126
|
+
Or you can offer different text sizes of your Web for visitors having visual
|
127
|
+
handicaps or reading disabilities.
|
128
|
+
|
129
|
+
To see `r-text` scaling in action, click on the button above to resize
|
130
|
+
the text from `r-text` level 300 to 500 back and forth. Resize
|
131
|
+
your Browser and watch the size of this text body change to see the
|
132
|
+
responsiveness in action.
|
133
|
+
|
134
|
+
++++
|
135
|
+
<div>
|
136
|
+
<button type="button" name="scale-r-text" class="btn btn-primary btn-flex mt-3 mb-3">
|
137
|
+
<i class="scale-button mdi mdi-arrow-up mdi-lg mdi-md-bg-primary-50 mr-1"></i>
|
138
|
+
Scale rtext
|
139
|
+
</button>
|
140
|
+
<div class="mb-4">
|
141
|
+
<div class="content">
|
142
|
+
<!-- jadams, 2020-11-15: adjusted heading levels (Google optimisation) -->
|
143
|
+
<h3 class="notoc">The Extremes of Good and Evil</h3>
|
144
|
+
<p class="small notoc text-gray mb-3">Cicero, Paragraph 1.10.32 · Translation by H. Rackham, Issue 1914 - De Finibus</p>
|
145
|
+
<p class="scale-description r-text-300">
|
146
|
+
On the other hand, we denounce with righteous indignation and dislike men who
|
147
|
+
are so beguiled and demoralized by the charms of pleasure of the moment, so
|
148
|
+
blinded by desire, that they cannot foresee the pain and trouble that are
|
149
|
+
bound to ensue; and equal blame belongs to those who fail in their duty through
|
150
|
+
weakness of will, which is the same as saying through shrinking from toil and pain.
|
151
|
+
<br/><br/>
|
152
|
+
These cases are perfectly simple and easy to distinguish. In a free hour, when
|
153
|
+
our power of choice is untrammelled and when nothing prevents our being able to
|
154
|
+
do what we like best, every pleasure is to be welcomed and every pain avoided.
|
155
|
+
But in certain circumstances and owing to the claims of duty or the obligations
|
156
|
+
of business is will frequently occur that pleasures have to be repudiated and
|
157
|
+
annoyances accepted. The wise man therefore always holds in these matters to
|
158
|
+
this principle of selection: he rejects pleasures to secure other greater
|
159
|
+
pleasures, or else he endures pains to avoid worse pains.
|
160
|
+
</p>
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
</div>
|
164
|
+
|
165
|
+
<script>
|
166
|
+
$('button[name="scale-r-text"]').on('click', function (e) {
|
167
|
+
$('p.scale-description').toggleClass('r-text-300 r-text-500');
|
168
|
+
$('.scale-button').toggleClass('mdi-arrow-up mdi-arrow-down');
|
169
|
+
});
|
170
|
+
</script>
|
171
|
+
++++
|
172
|
+
|
173
|
+
== Scale factors
|
174
|
+
|
175
|
+
As mentioned, `r-text` comes in five levels of size. The base of `r-text` is
|
176
|
+
the Fibonacci numbers extracted from the Fibonacci series. These numbers are
|
177
|
+
the most popular division ratios in typography. When speaking of the golden
|
178
|
+
ratio (1: 1.618) in typography and graphic design, the Fibonacci numbers are
|
179
|
+
usually the base.
|
180
|
+
|
181
|
+
The Fibonacci series is translated into CSS Media queries and scales a base
|
182
|
+
font in size accordingly. Further, the resulting font scale series have
|
183
|
+
multipliers (scale factors) ranging from 0.5 (50%) up to 1.0 (100%) of the
|
184
|
+
base.
|
185
|
+
|
186
|
+
That way, five series are available by the five scale factors. See the following
|
187
|
+
table how `r-text` scales.
|
188
|
+
|
189
|
+
.Scale factors
|
190
|
+
|===
|
191
|
+
|Property |Factor |Example text
|
192
|
+
|
193
|
+
|`r-text-100`
|
194
|
+
|0.5
|
195
|
+
|
|
196
|
+
[role="r-text-100"]
|
197
|
+
But I must explain to you how all this mistaken idea of denouncing
|
198
|
+
pleasure and praising pain was born and I will give you a complete
|
199
|
+
account of the system, and expound the actual teachings of the great
|
200
|
+
explorer of the truth, the master-builder of human happiness.
|
201
|
+
|
202
|
+
|`r-text-200`
|
203
|
+
|0.7
|
204
|
+
|
|
205
|
+
[role="r-text-200"]
|
206
|
+
But I must explain to you how all this mistaken idea of denouncing
|
207
|
+
pleasure and praising pain was born and I will give you a complete
|
208
|
+
account of the system, and expound the actual teachings of the great
|
209
|
+
explorer of the truth, the master-builder of human happiness.
|
210
|
+
|
211
|
+
|`r-text-300`
|
212
|
+
|0.8
|
213
|
+
|
|
214
|
+
[role="r-text-300"]
|
215
|
+
But I must explain to you how all this mistaken idea of denouncing
|
216
|
+
pleasure and praising pain was born and I will give you a complete
|
217
|
+
account of the system, and expound the actual teachings of the great
|
218
|
+
explorer of the truth, the master-builder of human happiness.
|
219
|
+
|
220
|
+
|`r-text-400`
|
221
|
+
|0.9
|
222
|
+
|
|
223
|
+
[role="r-text-400"]
|
224
|
+
But I must explain to you how all this mistaken idea of denouncing
|
225
|
+
pleasure and praising pain was born and I will give you a complete
|
226
|
+
account of the system, and expound the actual teachings of the great
|
227
|
+
explorer of the truth, the master-builder of human happiness.
|
228
|
+
|
229
|
+
|`r-text-500`
|
230
|
+
|1.0
|
231
|
+
|
|
232
|
+
[role="r-text-500"]
|
233
|
+
But I must explain to you how all this mistaken idea of denouncing
|
234
|
+
pleasure and praising pain was born and I will give you a complete
|
235
|
+
account of the system, and expound the actual teachings of the great
|
236
|
+
explorer of the truth, the master-builder of human happiness.
|
237
|
+
|
238
|
+
|===
|
239
|
+
|
240
|
+
== What next
|
241
|
+
|
242
|
+
Have you enjoyed playing with the text? We hope so. But even more, J1 can
|
243
|
+
do for your web pages. With the examples on that page, icons support the
|
244
|
+
meaning of what was grouped as text.
|
245
|
+
|
246
|
+
J1 Template supports popular icons font sets like:
|
247
|
+
|
248
|
+
* Material Design Icons
|
249
|
+
* FontAwesome Icons V5
|
250
|
+
* Iconify
|
251
|
+
|
252
|
+
Would you like to learn more about icons? The next example page focus on what's
|
253
|
+
possible using link:{url-roundtrip--icon-fonts}[Icon Fonts, {browser-window--new}].
|