Skip to content

Commit

Permalink
Remove deprecated transparentize methods
Browse files Browse the repository at this point in the history
  • Loading branch information
dgudim committed Oct 7, 2024
1 parent 0f1e72a commit 46f8970
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 13 deletions.
6 changes: 4 additions & 2 deletions autogen/styles/buttons.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

.button-container {
display: table;
margin-left: auto;
Expand Down Expand Up @@ -25,11 +27,11 @@ a.button {
outline: none;

&:hover {
background: transparentize($accent, .15);
background: color.adjust($accent, $alpha: -0.15);
}

&:active {
background: transparentize($accent, .2);
background: color.adjust($accent, $alpha: -0.2);
border: 1px solid $accent2;
}

Expand Down
4 changes: 3 additions & 1 deletion autogen/styles/form.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

input, textarea, select {
background: transparent;
color: $accent;
Expand Down Expand Up @@ -38,7 +40,7 @@ select {
}

::placeholder {
color: transparentize($accent, .5);
color: color.adjust($accent, $alpha: -0.5);
}

.notification-form {
Expand Down
6 changes: 4 additions & 2 deletions autogen/styles/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

html {
box-sizing: border-box;
}
Expand Down Expand Up @@ -84,7 +86,7 @@ img {

margin-bottom: 30px;

box-shadow: 0 0 50px transparentize($bg2, .2);
box-shadow: 0 0 50px color.adjust($bg2, $alpha: -0.2);

@media ($phone) {
margin-bottom: 20px;
Expand Down Expand Up @@ -154,7 +156,7 @@ code,
kbd {
font-family: 'Fira Code', Monaco, Consolas, Ubuntu Mono, monospace !important;
font-feature-settings: normal;
background: transparentize($accent, .8);
background: color.adjust($accent, $alpha: -0.8);
color: $accent;
padding: 1px 6px;
margin: 0 2px;
Expand Down
4 changes: 3 additions & 1 deletion autogen/styles/pagination.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

.pagination {
margin-top: 50px;

Expand All @@ -16,7 +18,7 @@
margin: 0 auto;
padding: 5px 10px;
background: $background;
color: transparentize($color, .7);
color: color.adjust($color, $alpha: -0.7);
font-size: .8rem;
text-transform: uppercase;
text-decoration: none;
Expand Down
12 changes: 7 additions & 5 deletions autogen/styles/post.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

.terminal-content {
@extend .framed;

Expand Down Expand Up @@ -53,7 +55,7 @@ blockquote {

&.filled {
position: relative;
background: transparentize($accent, .9);
background: color.adjust($accent, $alpha: -0.9);
font: inherit;
color: inherit;
border: 1px solid $accent;
Expand Down Expand Up @@ -90,7 +92,7 @@ blockquote {
&-meta {
font-size: 1rem;
margin-bottom: 10px;
color: transparentize($accent, .3);
color: color.adjust($accent, $alpha: -0.3);
}

&-title {
Expand Down Expand Up @@ -171,7 +173,7 @@ blockquote {
}

.hanchor {
color: transparentize($accent3, .1);
color: color.adjust($accent3, $alpha: -0.1);
text-decoration: none;
margin-left: 10px;
visibility: hidden;
Expand All @@ -185,5 +187,5 @@ h4:hover a {
}

.footnotes {
color: transparentize($color, .5);
}
color: color.adjust($color, $alpha: -0.5);
}
4 changes: 3 additions & 1 deletion autogen/styles/variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:color';

$bg_h: #1d2021;
$bg: #282828;
$bg_s: #32302f;
Expand Down Expand Up @@ -40,7 +42,7 @@ $text_invert: $bg_h;
$background: mix($accent, $bg, 0%);
$color: $fg;
$border-color: $bg2;
$shadow-color: transparentize($accent, .9);
$shadow-color: color.adjust($accent, $alpha: -0.9);

/* MEDIA QUERIES */
$phone: "max-width: 684px";
Expand Down
2 changes: 1 addition & 1 deletion styles/styles.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 46f8970

Please sign in to comment.