Skip to content

Commit a1b7c5b

Browse files
committed
Customise colours
1 parent b139a6a commit a1b7c5b

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

_sass/dash/_layout.scss

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,16 @@
149149
ul > li {
150150
text-align: left;
151151
margin-bottom: 0.6em;
152-
color: lighten($color-green, 25%);
152+
@include themed() {
153+
color: t('list-primary');
154+
}
153155
list-style: none;
154156
margin-left: 0;
155157

156158
svg {
157-
color: $color-green;
159+
@include themed() {
160+
color: t('list-secondary');
161+
}
158162
margin-right: 0.65em;
159163
margin-bottom: -1px;
160164
}
@@ -177,27 +181,35 @@
177181
margin-bottom: 1em;
178182
margin-left: 0.5em;
179183
font-style: italic;
180-
color: lighten($color-yellow, 20%);
184+
@include themed() {
185+
color: t('quote-primary');
186+
}
181187

182188
&:before {
183189
content: $icon-quote-right;
184190
@include font-awesome-icon;
185191
}
186192

187193
& > svg.svg-inline--fa {
188-
color: lighten($color-yellow, 20%);
194+
@include themed() {
195+
color: t('quote-primary');
196+
}
189197
float: left;
190198
width: 3em;
191199
height: 3em;
192200
margin-right: 1em;
193201
}
194202

195203
& > ul > li > svg {
196-
color: lighten($color-yellow, 20%);
204+
@include themed() {
205+
color: t('quote-primary');
206+
}
197207
}
198208

199209
li {
200-
color: $color-yellow;
210+
@include themed() {
211+
color: t('quote-secondary');
212+
}
201213
&:before {
202214
content: $icon-minus;
203215
}

_sass/dash/_themes.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@ $themes: (
44
background-color-alt: $color-background-darker,
55
foreground-color: $color-foreground,
66
foreground-color-alt: $color-foreground-dark,
7-
foreground-color-contrast: white
7+
foreground-color-contrast: white,
8+
quote-primary: lighten($color-yellow, 20%),
9+
quote-secondary: $color-yellow,
10+
list-primary: lighten($color-green, 25%),
11+
list-secondary: $color-green
812
),
913
light: (
1014
background-color: $color-background-lighter,
1115
background-color-alt: $color-background-light,
1216
foreground-color: $color-foreground-dark,
1317
foreground-color-alt: $color-foreground-darker,
14-
foreground-color-contrast: black
18+
foreground-color-contrast: black,
19+
quote-primary: $color-yellow,
20+
quote-secondary: darken($color-yellow, 10%),
21+
list-primary: $color-green,
22+
list-secondary: lighten($color-green, 20%)
1523
),
1624
);

0 commit comments

Comments
 (0)