You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now the stylesheet uses modular scale, exposed via global CSS variables
(on :root) which end users can re-use to extend the stylesheet, or modify
their values to change the scale ratio and/or base font-size.
The ToC was improved, reducing font-sizes, and ensuring that a ToC
position at "top" has a nice frame to distinguish it from the main text.
Start documenting the work done so far, along with the pending taks,
within the README of the New Default Theme.
Copy file name to clipboardExpand all lines: css__default-new/README.md
+51
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,9 @@ An attempt to Sassify and improve the default PML stylesheet according to [SMACS
11
11
-[About](#about)
12
12
-[Goals](#goals)
13
13
-[Going SMACSS](#going-smacss)
14
+
-[Stylesheet Status](#stylesheet-status)
14
15
-[Links](#links)
16
+
-[Free Online Books](#free-online-books)
15
17
-[CSS for Printed Media](#css-for-printed-media)
16
18
17
19
<!-- /MarkdownTOC -->
@@ -63,11 +65,49 @@ Furthermore, the fact that all classes are prefixed with `pml-` doesn't help muc
63
65
64
66
But then, since currently PML doesn't empower the end user to control the generated HTML tags and their classes, we'll have to work with what we can, and "make do" whatever PML throws at us. Hopefully, comments in the Sass sources will help to clarify the pros and cons of the current PML template situation, and help up work around such limitations.
65
67
68
+
69
+
# Stylesheet Status
70
+
71
+
The following task-list is a provisional roadmap for the stylesheet work.
72
+
73
+
74
+
- [ ] **DOCUMENT PAGE** — i.e. the document contents "proper," regardless of the page layout, responsive design issues, etc., focusing on the quality of the web typography adopted in the contents, with the goal to improve readability via elegant "typesetting".
75
+
- [ ] **modular scale** — apply a modular scale to the various font sizes used in the document:
76
+
- [x] **major second** → ratio: `1.125` (8:9) — this is a nice scale since it allows to cover all elements from the doc title (`<h1>`) down to the body text without excessive font size difference, yet retain an harmonious growth.
77
+
- [x] **CSS variables**: All modular scale values are exposed to the user via global `:root` vars: `--ms6` .. `--ms0` .. `--ms-6`.
78
+
- [x] `--ms6` .. `--ms1` are used for headings `<h1>` .. `<h5>`, with `<h6>` sharing the same size of `<h5>` but being italicized to distinguish between them. Var `--ms0` is used for main body text (`<body>`, `<p>`, ecc.), and `--ms-1` for `<small>` and any other smaller element that might need it.
79
+
- [ ] Fix those elements in the stylesheet which are still using the original font-size definitions:
80
+
- [x] `.pml-quote-text*` (block quotes)
81
+
- [ ] Now use `--ms*` vars instead, by needs thorough checking and adjusting.
- [x] Custom values replaced with `--ms-1` (i.e. small).
84
+
- [ ] **printed-media stylesheet** (postponed to later on)
85
+
- [ ] **Typography** — apply best practices CSS rules to enforce good typography on the entire document:
86
+
- [ ] Carefully pick good fonts that pair well:
87
+
- [ ] **Serif** (currently using a Serif font for both body and titles)
88
+
- [ ] **Sans-serif?** (i.e. for headings and titles)
89
+
- [ ] **Monospace**
90
+
- [ ] For each chosen font, ensure that proper ratios are adopted for line-height, letter-spacing, etc., according to typographic guidelines.
91
+
- [ ] **Body text** — ensure that paragraph and other main body text elements are given proper CSS rules to control:
92
+
- [ ] [Measure][§2.1.2] (aka _line length_): between 45 to 75 characters, according to font-face and context (e.g. columns can have shorter measure).
93
+
- [ ] [Hyphenation][§2.4].
94
+
- [ ] [Orphans/Widows][§2.4.8].
95
+
- [ ] Ragging (alignment/justification): apply rules to prevent "rivers" (for browsers which support advanced features).
96
+
- [ ] Indentation & Vertical-Spacing: automatically handled via CSS rules that follow standard pagination rules (all paragraphs indented except first, spacing before and after quotations, etc.).
97
+
- [ ] **Titles/Captions**: ensure that they are given extra letter-spacing, and dedicated hyphenation and orphan rules.
[WebTypography.net]: http://webtypography.net/ "The Elements of Typographic Style Applied to the Web, by Richard Rutter, 2005"
133
+
134
+
[clagnut/webtypography]: https://github.com/clagnut/webtypography "Source repository of R.Rutter's “The Elements of Typographic Style Applied to the Web”"
135
+
136
+
[The Elements of Typographic Style Applied to the Web]: http://webtypography.net/toc/ "The Elements of Typographic Style Applied to the Web, by Richard Rutter, 2005"
137
+
[§2.1.2]: http://webtypography.net/2.1.2 "The Elements of Typographic Style Applied to the Web: §2.1.2. Choose a comfortable measure"
138
+
[§2.4]: http://webtypography.net/2.4.1 "The Elements of Typographic Style Applied to the Web: §2.4. Etiquette of Hyphenation & Pagination"
139
+
[§2.4.8]: http://webtypography.net/2.4.8 "The Elements of Typographic Style Applied to the Web: §2.4.8. Never begin a page with the last line of a multi-line paragraph"
0 commit comments