diff options
author | Jefferson Julio <[email protected]> | 2021-05-30 22:53:32 -0300 |
---|---|---|
committer | Jefferson Julio <[email protected]> | 2021-05-30 22:53:32 -0300 |
commit | 381bff129b70471e86e99a2d6b6a7e090f13287e (patch) | |
tree | 35d383b4ec622efd8fbbd49a72c44a5561a04f92 /static/styles.css | |
parent | e9c35a9eff9e0881df7d6a6e8d17b70ac37ad0fe (diff) | |
download | blog.sh-381bff129b70471e86e99a2d6b6a7e090f13287e.tar.bz2 blog.sh-381bff129b70471e86e99a2d6b6a7e090f13287e.zip |
Better article parsing, support for article code parsing (add line numbers to code blocks)
Diffstat (limited to 'static/styles.css')
-rw-r--r-- | static/styles.css | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/static/styles.css b/static/styles.css index e84dc56..d45bdd1 100644 --- a/static/styles.css +++ b/static/styles.css @@ -275,7 +275,7 @@ header > h2 { } .pad-left, .pad-right { - width: 215px; + width: 180px; } } @@ -347,13 +347,37 @@ header > h2 { border-radius: 8px; } ::-webkit-scrollbar-thumb:hover{ - background: var(--primary-bg); + background: #059233; } ::-webkit-scrollbar-track{ background: var(--primary-bg); border-radius: 7px; } -::-webkit-scrollbar-track:hover { +*::selection { background: var(--primary-fg); + color: var(--primary-bg); +} + +*::-moz-selection { + background: var(--primary-fg); + color: var(--primary-bg); +} + +pre { + counter-reset: line; + display: block; + border: 1px solid; + padding: 4px; +} + +code { + counter-increment: line; +} + +code:before { + content: counter(line); + margin-right: 8px; + margin-left: 4px; + -webkit-user-select: none; } |