Skip to content
This repository was archived by the owner on Feb 16, 2024. It is now read-only.

Commit 374059b

Browse files
committed
Make default notice styles less opinionated
1 parent a76006d commit 374059b

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

assets/stylesheets/notices.scss

+2-30
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
1-
$warning: #ecbe7b;
2-
3-
:root {
4-
--tip-bg: #{rgba(mix($secondary, $highlight, 50%), 0.3)};
5-
--tip-border: #{rgba(mix($secondary, $highlight, 50%), 0.6)};
6-
7-
--tip-bg-warning: #{rgba($warning, 0.3)};
8-
--tip-border-warning: #{rgba($warning, 0.2)};
9-
}
10-
11-
121
.notice {
13-
background-color: var(--tip-bg);
2+
background-color: #{rgba($highlight, 0.25)};
143
border: none;
15-
border-left: 52px solid var(--tip-border);
4+
border-left: 52px solid #{rgba($highlight, 0.15)};
165
position: relative;
176

187
.notice-icon {
@@ -22,25 +11,8 @@ $warning: #ecbe7b;
2211
margin: 0 6px;
2312
width: 32px;
2413
height: 32px;
25-
background-repeat: no-repeat;
26-
background-size: 32px;
27-
background-position: center center;
2814
position: absolute;
2915
left: -48px;
3016
top: calc(50% - 16px);
3117
}
32-
33-
&.notice-warning {
34-
background-color: var(--tip-bg-warning);
35-
border-left-color: var(--tip-border-warning);
36-
}
37-
&.notice-information_source {
38-
// background-color: var(--tip-bg);
39-
}
40-
&.notice-note {
41-
// background-color: var(--tip-bg);
42-
}
43-
&.notice-pushpin {
44-
// background-color: yellow;
45-
}
4618
}

0 commit comments

Comments
 (0)