Skip to content

Commit

Permalink
Style comments using color variables
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdzli committed Jan 19, 2021
1 parent 355e85c commit 78e351e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
2 changes: 2 additions & 0 deletions src/_sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ $bold-weight: 700;
$text-base-color: #434648;
$text-link-blue: #003fff;
$text-link-blue-active: #0036c7;
$box: #c6f0e4;

$black: #0d122b;
$light: #ececec;
Expand All @@ -27,6 +28,7 @@ $white: #fff;
$dark-text-base-color: #c7bebe;
$dark-text-link-blue: #ff5277;
$dark-text-link-blue-active: #ff2957;
$dark-box: #303030;

$dark-black: #131418;
$dark-white: #eaeaea;
Expand Down
9 changes: 9 additions & 0 deletions src/_sass/simorq/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,15 @@ figcaption {
text-align: center;
}

.button,
button {
padding: 1rem;
border-radius: 10px;
border-width: 0;
color: $text-base-color;
background-color: $box;
}

// List
ul {
list-style: none;
Expand Down
6 changes: 6 additions & 0 deletions src/_sass/simorq/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ body[data-theme="dark"] {
text-shadow: 0 1px 0 $dark-black;
}

.button,
button {
color: $dark-text-base-color;
background-color: $dark-box;
}

// horizontal rule
hr {
border-color: $dark-light;
Expand Down
10 changes: 1 addition & 9 deletions src/_sass/simorq/_mastodon.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
.mastodon-comment {
background-color: #c6f0e4;
background-color: $box;
border-radius: 10px;
padding: 15px;
margin-bottom: 1rem;
display: flex;
.article-content {
.button {
padding: 1rem;
border-radius: 4px;
border-width: 0;
color: #c6f0e4
}
}
.author {
padding-top: 0;
display: flex;
Expand Down

0 comments on commit 78e351e

Please sign in to comment.