2019-11-27 15:31:49 +07:00
|
|
|
|
/**
|
|
|
|
|
* Document
|
|
|
|
|
* Content-box & Responsive typography
|
|
|
|
|
*/
|
|
|
|
|
|
2020-09-11 23:22:50 +07:00
|
|
|
|
// Reboot based on :
|
|
|
|
|
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
|
2022-03-06 10:53:20 +07:00
|
|
|
|
// - sanitize.css v13.0.0 | CC0 1.0 Universal | github.com/csstools/sanitize.css
|
2019-11-27 15:31:49 +07:00
|
|
|
|
// ––––––––––––––––––––
|
|
|
|
|
|
2022-03-06 10:53:20 +07:00
|
|
|
|
// 1. Add border box sizing in all browsers (opinionated)
|
|
|
|
|
// 2. Backgrounds do not repeat by default (opinionated)
|
2019-11-27 15:31:49 +07:00
|
|
|
|
*,
|
|
|
|
|
*::before,
|
|
|
|
|
*::after {
|
|
|
|
|
box-sizing: border-box; // 1
|
2022-03-06 10:53:20 +07:00
|
|
|
|
background-repeat: no-repeat; // 2
|
2019-11-27 15:31:49 +07:00
|
|
|
|
}
|
|
|
|
|
|
2020-09-11 23:22:50 +07:00
|
|
|
|
// 1. Add text decoration inheritance in all browsers (opinionated)
|
|
|
|
|
// 2. Add vertical alignment inheritance in all browsers (opinionated)
|
|
|
|
|
::before,
|
|
|
|
|
::after {
|
|
|
|
|
text-decoration: inherit; // 1
|
|
|
|
|
vertical-align: inherit; // 2
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-06 10:53:20 +07:00
|
|
|
|
// 1. Use the default cursor in all browsers (opinionated)
|
|
|
|
|
// 2. Change the line height in all browsers (opinionated)
|
|
|
|
|
// 3. Breaks words to prevent overflow in all browsers (opinionated)
|
|
|
|
|
// 4. Use a 4-space tab width in all browsers (opinionated)
|
|
|
|
|
// 5. Remove the grey highlight on links in iOS (opinionated)
|
|
|
|
|
// 6. Prevent adjustments of font size after orientation changes in iOS
|
|
|
|
|
:where(:root) {
|
|
|
|
|
-webkit-tap-highlight-color: transparent; // 5
|
|
|
|
|
-webkit-text-size-adjust: 100%; // 6
|
|
|
|
|
text-size-adjust: 100%; // 6
|
2021-07-02 16:54:41 +07:00
|
|
|
|
background-color: var(--background-color);
|
|
|
|
|
color: var(--color);
|
2021-11-08 00:12:34 +07:00
|
|
|
|
font-weight: var(--font-weight);
|
2021-12-19 09:50:55 +07:00
|
|
|
|
font-size: var(--font-size);
|
2022-03-06 10:53:20 +07:00
|
|
|
|
line-height: var(--line-height); // 2
|
2021-12-19 09:50:55 +07:00
|
|
|
|
font-family: var(--font-family);
|
2022-09-11 17:24:21 +07:00
|
|
|
|
text-rendering: optimizeLegibility;
|
2022-03-06 10:53:20 +07:00
|
|
|
|
overflow-wrap: break-word; // 3
|
|
|
|
|
cursor: default; // 1
|
|
|
|
|
tab-size: 4; // 4
|
2022-10-15 17:23:02 +07:00
|
|
|
|
}
|