diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2021-03-27 11:28:55 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-27 11:28:55 +0530 |
| commit | e503367a1adff7a62f4d7773f06f071f910ffc5a (patch) | |
| tree | c50374b50fc19c82f46af7f613dc42af74f94322 /assets/css/core/reset.css | |
| parent | b6af9eddee7f816b01a68836344b36d30de4a492 (diff) | |
[BREAKING] Split-up css into sub-parts (#317)
* Move styles into 3 different locations
- core
- common
- hljs
* Load all stylesheets in proper order
Diffstat (limited to 'assets/css/core/reset.css')
| -rw-r--r-- | assets/css/core/reset.css | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/assets/css/core/reset.css b/assets/css/core/reset.css new file mode 100644 index 0000000..ee8e77b --- /dev/null +++ b/assets/css/core/reset.css @@ -0,0 +1,138 @@ +*, +::after, +::before { + box-sizing: border-box +} + +html { + -webkit-tap-highlight-color: transparent; + overflow-y: scroll; +} + +a, +button, +body, +h1, +h2, +h3, +h4, +h5, +h6 { + color: var(--primary) +} + +body { + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + font-size: 18px; + line-height: 1.6; + word-break: break-word; + background: var(--theme) +} + +article, +aside, +figcaption, +figure, +footer, +header, +hgroup, +main, +nav, +section, +table { + display: block +} + +h1, +h2, +h3, +h4, +h5, +h6 { + line-height: 1.2 +} + +h1, +h2, +h3, +h4, +h5, +h6, +p { + margin-top: 0; + margin-bottom: 0 +} + +ul { + padding: 0 +} + +a { + text-decoration: none +} + +body, +figure, +ul { + margin: 0 +} + +table { + width: 100%; + border-collapse: collapse; + border-spacing: 0; + overflow-x: auto; + word-break: keep-all +} + +button, +input, +textarea { + padding: 0; + font: inherit; + background: 0 0; + border: 0; +} + +input, +textarea { + outline: 0 +} + +button, +input[type=button], +input[type=submit] { + cursor: pointer +} + +input:-webkit-autofill, +textarea:-webkit-autofill { + box-shadow: 0 0 0 50px var(--theme) inset +} + +img { + display: block; + max-width: 100% +} + +::-webkit-scrollbar-track { + background: 0 0 +} + +.list:not(.dark)::-webkit-scrollbar-track { + background: var(--code-bg) +} + +::-webkit-scrollbar-thumb { + background: var(--tertiary); + border: 5px solid var(--theme); + border-radius: var(--radius) +} + +.list:not(.dark)::-webkit-scrollbar-thumb { + border: 5px solid var(--code-bg) +} + +::-webkit-scrollbar-thumb:hover { + background: var(--secondary) +} |
