forked from umputun/remark42
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
umputun#5 use css custom properties instead of color constant
- Loading branch information
Showing
56 changed files
with
562 additions
and
297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
frontend/app/components/auth-panel/_theme/_dark/auth-panel_theme_dark.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.auth-panel_theme_dark { | ||
.auth-panel__user-id { | ||
color: #eee; | ||
color: var(--color5); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
frontend/app/components/auth-panel/_theme/_light/auth-panel_theme_light.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.auth-panel_theme_light { | ||
.auth-panel__user-id { | ||
color: #888; | ||
color: var(--color13); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
frontend/app/components/avatar-icon/_default/avatar-icon_default.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
.avatar-icon_default { | ||
border: 1px solid #9cdddb; | ||
border: 1px solid var(--color40); | ||
} |
6 changes: 3 additions & 3 deletions
6
frontend/app/components/button/_kind/_link/button_kind_link.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
.button_kind_link { | ||
background: transparent; | ||
font-weight: bold; | ||
color: #0aa; | ||
color: var(--color9); | ||
|
||
&:hover { | ||
color: #06c5c5; | ||
color: var(--color33); | ||
} | ||
|
||
&:disabled, | ||
&:hover:disabled { | ||
color: #0aa; | ||
color: var(--color9); | ||
} | ||
} |
8 changes: 4 additions & 4 deletions
8
frontend/app/components/button/_kind/_primary/button_kind_primary.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
.button_kind_primary { | ||
background: #259c9a; | ||
color: #fff; | ||
background: var(--color15); | ||
color: var(--color6); | ||
|
||
&:hover { | ||
background: #06c5c5; | ||
background: var(--color33); | ||
} | ||
|
||
&:hover:disabled { | ||
background: #259c9a; | ||
background: var(--color15); | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
frontend/app/components/button/_kind/_secondary/button_kind_secondary.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
.button_kind_secondary { | ||
background: #fff; | ||
background: var(--color6); | ||
color: inherit; | ||
|
||
&:hover { | ||
box-shadow: inset 0 0 0 2px #06c5c5; | ||
box-shadow: inset 0 0 0 2px var(--color33); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
frontend/app/components/button/_theme/_dark/button_theme_dark.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
.button_theme_dark.button_kind_secondary { | ||
background: #22201c; | ||
color: #ddd; | ||
background: var(--color8); | ||
color: var(--color20); | ||
} | ||
|
||
.button_theme_dark.button_kind_link { | ||
&:disabled, | ||
&:hover:disabled { | ||
color: #fff; | ||
color: var(--color6); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...pp/components/comment-form/__button/_type/_preview/comment-form__button_type_preview.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.comment-form__button_type_preview { | ||
&:hover, | ||
&:focus { | ||
box-shadow: inset 0 0 0 2px #0aa; | ||
color: #099; | ||
box-shadow: inset 0 0 0 2px var(--color9); | ||
color: var(--color17); | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...tend/app/components/comment-form/__button/_type/_send/comment-form__button_type_send.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
.comment-form__button_type_send { | ||
background: #259c9a; | ||
color: #fff; | ||
background: var(--color15); | ||
color: var(--color6); | ||
|
||
&:hover, | ||
&:focus { | ||
background: #0aa; | ||
background: var(--color9); | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
frontend/app/components/comment-form/__control-panel/comment-form__control-panel.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.comment-form__control-panel { | ||
height: 30px; | ||
background-color: #eee; | ||
background-color: var(--color5); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
bottom: 4px; | ||
font-size: 10px; | ||
font-weight: 700; | ||
color: #ef0000; | ||
color: var(--color38); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 18 additions & 18 deletions
36
frontend/app/components/comment-form/_theme/_dark/comment-form_theme_dark.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
.comment-form_theme_dark { | ||
border-color: #333; | ||
background: #22201c; /* try to fix textarea blinking in Safari */ | ||
border-color: var(--color7); | ||
background: var(--color8); /* try to fix textarea blinking in Safari */ | ||
|
||
.comment-form__actions { | ||
background: #333; | ||
background: var(--color7); | ||
} | ||
|
||
.comment-form__button_type_preview { | ||
background: #22201c; | ||
color: #ddd; | ||
background: var(--color8); | ||
color: var(--color20); | ||
} | ||
|
||
.comment-form__button_type_send { | ||
color: #ddd; | ||
color: var(--color20); | ||
} | ||
|
||
.comment-form__error { | ||
border-top: 8px solid #333; | ||
background: #672323; | ||
color: #f98989; | ||
border-top: 8px solid var(--color7); | ||
background: var(--color28); | ||
color: var(--color27); | ||
} | ||
|
||
.comment-form__field { | ||
background: #22201c; | ||
color: #eee; | ||
background: var(--color8); | ||
color: var(--color5); | ||
} | ||
|
||
.comment-form__preview { | ||
border-color: #22201c; | ||
background: #22201c; | ||
color: #ddd; | ||
border-color: var(--color8); | ||
background: var(--color8); | ||
color: var(--color20); | ||
} | ||
|
||
.comment-form__preview-wrapper { | ||
background: #333; | ||
background: var(--color7); | ||
} | ||
|
||
.comment-form__toolbar-item { | ||
color: #ddd; | ||
color: var(--color20); | ||
|
||
&:hover { | ||
color: #0aa; | ||
color: var(--color9); | ||
} | ||
} | ||
|
||
.comment-form__control-panel { | ||
background-color: #333; | ||
background-color: var(--color7); | ||
} | ||
} |
Oops, something went wrong.