From 6a298cd833e3058abd147c4efc4081e9b7722102 Mon Sep 17 00:00:00 2001 From: andrzej Date: Fri, 15 Nov 2024 11:46:00 +0100 Subject: [PATCH] add defaults --- public/css/defaults.css | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 public/css/defaults.css diff --git a/public/css/defaults.css b/public/css/defaults.css new file mode 100644 index 0000000..4f95935 --- /dev/null +++ b/public/css/defaults.css @@ -0,0 +1,62 @@ +*, +*::before, +*::after { + box-sizing: border-box; +} + +img { + display: block; + max-width: 100%; +} + +menu:not(article menu), +ol:not(article ol), +ul:not(article ul) { + list-style: none; +} + +menu, +ol, +ul { + padding-left: 0; +} + +article ol, +article ul { + list-style-position: inside; +} + +a { + /* Places underlines below the descenders */ + text-underline-position: under; + + + /* Sets the thickness as a percentage of the font size */ + text-decoration-thickness: 8; +} + +/* = the root */ +html { + font-size: 62.5%; + /* (62.5/100) * 16px = 10px */ + -webkit-text-size-adjust: none; + /* for iOS Safari */ + text-size-adjust: none; + /* for other mobile browsers */ +} + +@media (prefers-reduced-motion: no-preference) { + html { + scroll-behavior: smooth; + } +} + +label, +button, +select, +summary, +[type=radio], +[type=submit], +[type=checkbox] { + cursor: pointer; +}