Skip to content

Commit 92958af

Browse files
avivaceISSOtm
authored andcommitted
Style warning boxes
1 parent c47f26c commit 92958af

File tree

1 file changed

+42
-9
lines changed

1 file changed

+42
-9
lines changed

custom/style.css

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ html {
2020
}
2121
}
2222

23-
/* Override global variables */
24-
:root {
25-
/* workaround to get hover+active sidebar links on normal links blue */
26-
--sidebar-active: var(--links);
27-
}
28-
29-
3023
body {
3124
font-family: "Inter";
3225
/* Enable some font features for Inter (https://rsms.me/inter/#features/calt) */
@@ -76,12 +69,13 @@ code {
7669
.box {
7770
margin: 20px 0;
7871
padding: 1.6px 20px;
79-
border-left-width: .5rem;
72+
border-left-width: .75rem;
8073
border-left-style: solid;
8174
}
8275

8376
.box>.box-title {
8477
font-weight: 600;
78+
text-transform: uppercase;
8579
}
8680

8781
.box.tip {
@@ -90,12 +84,51 @@ code {
9084
}
9185

9286
.box.warning {
93-
border-left-color: #e7c000;
87+
border-left-color: var(--c-warning);
9488
background-color: rgba(255, 229, 100, .2);
89+
color: var(--c-warning-text);
90+
}
91+
92+
.box.warning>.box-title{
93+
color: var(--c-warning-title);
9594
}
9695

9796
.spacer {
9897
width: 100%;
9998
height: 3px;
10099
margin: 25px 0px 25px 0px;
101100
}
101+
102+
103+
/* Global CSS variables */
104+
105+
:root {
106+
/* (Override) workaround to get hover+active sidebar links on normal links blue */
107+
--sidebar-active: var(--links);
108+
/* Warning boxes base styling */
109+
--c-warning: #e7c000;
110+
--c-warning-bg: #fffae3;
111+
--c-warning-title: #ad9000;
112+
}
113+
114+
/* Theme-wide CSS variables */
115+
116+
.ayu {
117+
--c-warning-text: #eac100;
118+
}
119+
120+
.coal {
121+
--c-warning-text: #eac100;
122+
}
123+
124+
.light {
125+
--c-warning-text: #746000;
126+
}
127+
128+
.navy {
129+
--c-warning-text: #eac100;
130+
}
131+
132+
.rust {
133+
--c-warning-text: #ad8e00;
134+
}

0 commit comments

Comments
 (0)