Skip to content

Commit 6ed7fec

Browse files
[assets][css] Refactor CSS and bring in-line with notes.volution.ro one.
1 parent f9e1d0e commit 6ed7fec

File tree

4 files changed

+481
-408
lines changed

4 files changed

+481
-408
lines changed

sources/embedded/assets/css/core.css

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,53 @@
11

22

3+
@namespace svg "http://www.w3.org/2000/svg";
4+
5+
36

47

58
html:root {
6-
font-family : "JetBrains Mono NL", "JetBrains Mono", "Fira Mono", "Courier New", monospace;
9+
font-family : "JetBrains Mono NL", "JetBrains Mono", "Fira Mono", "Andale Mono", "Fira Sans", "Verdana", "Trebuchet MS", sans-serif;
710
font-size : 16px;
811
line-height : 24px;
912
}
1013

14+
pre, code {
15+
font-family : "JetBrains Mono NL", "JetBrains Mono", "Fira Mono", "Andale Mono", "Courier New", monospace;
16+
}
17+
18+
19+
1120

1221
html:root {
1322
color : hsl(0, 0%, 75%);
14-
background-color : hsl(0, 0%, 15%);
23+
background : hsl(0, 0%, 15%);
1524
}
1625

1726

18-
* {
27+
:not(svg|*) {
1928
border-color : hsl(0, 0%, 25%);
2029
outline-color : hsl(0, 0%, 25%);
2130
}
2231

2332

24-
::selection {
33+
:not(svg|*)::selection {
2534
color : hsl(0, 0%, 100%) !important;
2635
background-color : hsl(30, 100%, 25%) !important;
2736
}
2837

2938

30-
* {
39+
:not(svg|*) {
3140
scrollbar-width : thin;
32-
scrollbar-color : hsl(0, 0%, 5%) hsl(0, 0%, 25%);
41+
scrollbar-color : hsl(0, 0%, 25%) transparent;
3342
}
3443

35-
::-webkit-scrollbar {
36-
width : 6px;
37-
height : 6px;
38-
background : hsl(0, 0%, 5%);
44+
:not(svg|*)::-webkit-scrollbar {
45+
width : 4px;
46+
height : 4px;
47+
background : transparent;
3948
}
4049

41-
::-webkit-scrollbar-thumb {
50+
:not(svg|*)::-webkit-scrollbar-thumb {
4251
background : hsl(0, 0%, 25%);
4352
}
4453

@@ -55,14 +64,18 @@ div, dialog, form, fieldset,
5564
table, figure, figcaption,
5665
hr {
5766
display : block;
67+
/* NOTE: Breaks in Chrome!
5868
display : flow-root;
5969
display : block flow-root;
70+
*/
6071
}
6172

6273

6374
ul > li, ol > li {
6475
display : list-item;
76+
/* NOTE: Breaks in Chrome!
6577
display : list-item block flow-root;
78+
*/
6679
}
6780
ul > li {
6881
list-style-type : square;
@@ -74,6 +87,15 @@ ol > li {
7487
}
7588

7689

90+
code,
91+
em, i, u,
92+
strong, mark, b,
93+
del, s,
94+
q {
95+
display : inline;
96+
}
97+
98+
7799

78100

79101
pre {
@@ -108,10 +130,10 @@ details > summary {
108130
cursor : pointer;
109131
}
110132

111-
a *,
112-
button *, select *,
113-
input[type="submit"] *, input[type="reset"] *, input[type="button"] *,
114-
details > summary * {
133+
a :not(svg|*),
134+
button :not(svg|*), select :not(svg|*),
135+
input[type="submit"] :not(svg|*), input[type="reset"] :not(svg|*), input[type="button"] :not(svg|*),
136+
details > summary :not(svg|*) {
115137
color : inherit;
116138
cursor : inherit;
117139
}
@@ -135,9 +157,6 @@ input[type="submit"]:hover, input[type="reset"]:hover, input[type="button"]:hove
135157
outline-offset : -1px;
136158
}
137159

138-
139-
140-
141160
button, input, select, summary {
142161
border-style : solid;
143162
border-width : 1px;

0 commit comments

Comments
 (0)