Skip to content

Commit

Permalink
#159 Use sass @use rule for theme
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Apr 6, 2021
1 parent 62c55fd commit e815705
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
4 changes: 4 additions & 0 deletions src/style/_theme.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$ans-color: #fcce02 !default;
$dark: #343434 !default;
$primary: #015999 !default;
$info: #01998f !default;
23 changes: 13 additions & 10 deletions src/style/custom.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@use "sass:color";
@use "theme";

/* custom colors */
$theme-colors: (
"ans-color": #fcce02,
"dark": #343434,
"primary": #015999,
"primary-05": rgba(1, 89, 153, 0.5),
"info": #01998f,
"ans-color": theme.$ans-color,
"dark": theme.$dark,
"primary": theme.$primary,
"info": theme.$info,
);

ol.breadcrumb {
Expand Down Expand Up @@ -360,20 +362,21 @@ $breadcrumb-bg: transparent;
}

.annotation-card-container.new-annotation {
border: 1px solid theme-color("primary-05") !important;
border: 1px solid color.adjust(theme-color("primary"), $alpha: -0.5) !important;
}

.annotation-card-container.new-annotation .line1, .annotation-card-container.new-annotation .line2 {
background-color: theme-color("primary-05") !important;
.annotation-card-container.new-annotation .line1,
.annotation-card-container.new-annotation .line2 {
background-color: color.adjust(theme-color("primary"), $alpha: -0.5) !important;
z-index: 3;
}

.annotation-card-container.new-annotation .annotation-pointer-background-left {
border-left-color: theme-color("primary-05") !important;
border-left-color: color.adjust(theme-color("primary"), $alpha: -0.5) !important;
}

.annotation-card-container.new-annotation .annotation-pointer-background-right {
border-right-color: theme-color("primary-05") !important;
border-right-color: color.adjust(theme-color("primary"), $alpha: -0.5) !important;
}

.annotation-body textarea:focus {
Expand Down

0 comments on commit e815705

Please sign in to comment.