Skip to content

Commit 129b352

Browse files
changed: some sass depreciations - specifically lighten/darken (#643)
1 parent 78fc09d commit 129b352

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

‎_sass/minima/_base.scss‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "sass:math";
2+
@use "sass:color";
23

34
/**
45
* Reset some basic elements
@@ -109,7 +110,7 @@ a {
109110
text-decoration: none;
110111

111112
&:visited {
112-
color: darken($brand-color, 15%);
113+
color: color.adjust($brand-color, $lightness: -15%);
113114
}
114115

115116
&:hover {
@@ -238,21 +239,21 @@ table {
238239
display: block;
239240
overflow: auto;
240241
text-align: $table-text-align;
241-
color: lighten($text-color, 18%);
242+
color: color.adjust($text-color, $lightness: 18%);
242243
border-collapse: collapse;
243244
border: 1px solid $grey-color-light;
244245
tr {
245246
&:nth-child(even) {
246-
background-color: lighten($grey-color-light, 6%);
247+
background-color: color.adjust($grey-color-light, $lightness: 6%);
247248
}
248249
}
249250
th, td {
250251
padding: math.div($spacing-unit, 3) math.div($spacing-unit, 2);
251252
}
252253
th {
253-
background-color: lighten($grey-color-light, 3%);
254-
border: 1px solid darken($grey-color-light, 4%);
255-
border-bottom-color: darken($grey-color-light, 12%);
254+
background-color: color.adjust($grey-color-light, $lightness: 3%);
255+
border: 1px solid color.adjust($grey-color-light, $lightness: -4%);
256+
border-bottom-color: color.adjust($grey-color-light, $lightness: -12%);
256257
}
257258
td {
258259
border: 1px solid $grey-color-light;

‎_sass/support.scss‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Set customizable Minima theme values
22

3+
@use "sass:color";
4+
35
$on-palm: 765px;
46
$on-laptop: 800px;
57

@@ -11,8 +13,8 @@ $plum: #9530A3; // "Purple Ink" (ibid.)
1113
$danger-color: $banner-color;
1214
$brand-color: $blue;
1315
$grey-color: #828282;
14-
$grey-color-light: lighten($grey-color, 40%);
15-
$grey-color-dark: darken($grey-color, 25%);
16+
$grey-color-light: color.adjust($grey-color, $lightness: 40%);
17+
$grey-color-dark: color.adjust($grey-color, $lightness: -25%);
1618

1719
$ui-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif, "Apple Color Emoji", "Noto Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
1820
$google-fonts: "Gentium Plus", "Noto Serif TC", "Noto Serif JP", "Noto Serif Thai";

‎assets/css/tagindex.scss‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
---
3+
@use "sass:color";
34
@import "support";
45

56
$topradii: 10px 10px 0px 0px;
@@ -84,7 +85,7 @@ div.tag-list3:last-child {
8485
}
8586
}
8687
.tag-list4:has(img) {
87-
background-color: darken($grey-color-light, 10%);
88+
background-color: color.adjust($grey-color-light, $lightness: -10%);
8889
}
8990
.tag-list4:has(.children4) .tagbox4 {
9091
padding: 2px 4px $spacing-unit 4px;
@@ -106,7 +107,7 @@ div.tag-list3:last-child {
106107
}
107108
}
108109
.tag-list6:has(img) {
109-
background-color: darken($grey-color-light, 17%);
110+
background-color: color.adjust($grey-color-light, $lightness: -17%);
110111
}
111112
.tag-list6 {
112113
font-size: 95%;

0 commit comments

Comments
 (0)