Skip to content

Commit 70061ea

Browse files
committed
Fix #223.
1 parent e87bd2a commit 70061ea

File tree

1 file changed

+39
-19
lines changed

1 file changed

+39
-19
lines changed

_sass/minimal-mistakes.scss

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ html, body {
129129

130130
.notice {
131131
border-radius: 0;
132-
margin: 1em 0 !important; /* override*/
132+
margin: 1em 0 !important; /* override */
133133
padding: 10px;
134134
font-size: $type-size-5 !important;
135135
font-style: normal;
@@ -139,7 +139,7 @@ html, body {
139139

140140
.notice--primary {
141141
border-radius: 0;
142-
margin: 1em 0 !important; /* override*/
142+
margin: 1em 0 !important; /* override */
143143
padding: 10px;
144144
font-size: $type-size-5 !important;
145145
font-style: normal;
@@ -149,64 +149,84 @@ html, body {
149149

150150
.notice--info {
151151
border-radius: 0;
152-
margin: 1em 0 !important; /* override*/
152+
margin: 1em 0 !important; /* override */
153153
padding: 10px;
154154
font-size: $type-size-5 !important;
155155
font-style: normal;
156156

157-
background-color: #cfeefc;
157+
background-color: rgba(63, 188, 244, .25) !important;
158158
border-left: 0.25em solid #1f86b5 !important;
159-
color: #2b5f76;
160159
}
161160

162-
.notice--info a {
161+
@media (prefers-color-scheme: light) {
162+
.notice--info {
163163
color: #2b5f76;
164+
}
165+
166+
.notice--info a {
167+
color: #2b5f76;
168+
}
164169
}
165170

166171
.notice--warning {
167172
border-radius: 0;
168-
margin: 1em 0 !important; /* override*/
173+
margin: 1em 0 !important; /* override */
169174
padding: 10px;
170175
font-size: $type-size-5 !important;
171176
font-style: normal;
172177

173178
background-color: rgba(255, 229, 100, .25) !important;
174179
border-left: 0.25em solid #e7c000 !important;
175-
color: #6b5900;
176180
}
177181

178-
.notice--warning a {
182+
@media (prefers-color-scheme: light) {
183+
.notice--warning {
179184
color: #6b5900;
185+
}
186+
187+
.notice--warning a {
188+
color: #6b5900;
189+
}
180190
}
181191

182192
.notice--success {
183193
border-radius: 0;
184-
margin: 1em 0 !important; /* override*/
194+
margin: 1em 0 !important; /* override */
185195
padding: 10px;
186196
font-size: $type-size-5 !important;
187197
font-style: normal;
188198

189-
background-color: #e2f5ec;
199+
background-color: rgba(112, 205, 162, .25) !important;
190200
border-left: 0.25em solid #42b983 !important;
191-
color: #215d42;
192201
}
193202

194-
.notice--success a {
195-
color: #215d42;
203+
@media (prefers-color-scheme: light) {
204+
.notice--success {
205+
color: #215d42;
206+
}
207+
208+
.notice--success a {
209+
color: #215d42;
210+
}
196211
}
197212

198213
.notice--danger {
199214
border-radius: 0;
200-
margin: 1em 0 !important; /* override*/
215+
margin: 1em 0 !important; /* override */
201216
padding: 10px;
202217
font-size: $type-size-5 !important;
203218
font-style: normal;
204219

205-
background-color: #ffe0e0;
220+
background-color: rgba(255, 72, 72, .25) !important;
206221
border-left: 0.25em solid #c00 !important;
207-
color: #600;
208222
}
209223

210-
.notice--danger a {
211-
color: #600;
224+
@media (prefers-color-scheme: light) {
225+
.notice--danger {
226+
color: #600;
227+
}
228+
229+
.notice--danger a {
230+
color: #600;
231+
}
212232
}

0 commit comments

Comments
 (0)