-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): updating component's colors (#238)
- Loading branch information
1 parent
46c6298
commit fb885b8
Showing
5 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
packages/docs/src/app/components/anchors/_anchors-theme.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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
@mixin mc-anchors-theme($theme) { | ||
$foreground: map-get($theme, foreground); | ||
$text: mc-color($foreground, text); | ||
$primary: map_get($theme, primary); | ||
$primary_500: mc-color($primary, 500); | ||
$shadow: mc-color($foreground, less-contrast-text); | ||
|
||
.anchors-menu__list-element { | ||
color: $text; | ||
|
||
&:hover { @include box-shadow( inset 3px 0 0 rgba($shadow, 0.2) ); } | ||
|
||
&_active, &_active:hover { @include box-shadow( inset 3px 0 0 $primary_500 ); } | ||
} | ||
} | ||
|
||
@mixin box-shadow ($shadow) { | ||
-webkit-box-shadow: $shadow; | ||
-moz-box-shadow: $shadow; | ||
-o-box-shadow: $shadow; | ||
box-shadow: $shadow; | ||
} |
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
29 changes: 29 additions & 0 deletions
29
packages/docs/src/app/components/sidenav/_sidenav-theme.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@mixin mc-sidenav-theme($theme) { | ||
$foreground: map-get($theme, foreground); | ||
$background: map-get($theme, background); | ||
$white: mc-color($background, background); | ||
$text: mc-color($foreground, text); | ||
$is-dark-theme: map-get($theme, is-dark); | ||
$hover-color: mc-color($background, hover); | ||
|
||
.nav { | ||
background-color: $white; | ||
|
||
&__trigger:hover { background: $hover-color; } | ||
|
||
&__trigger-icon { color: $text; } | ||
|
||
&__item { | ||
color: $text; | ||
|
||
&.docs-component-viewer-sidenav-item-selected, | ||
&:hover { background: $hover-color; } | ||
|
||
&:active, &:focus { background: $hover-color; } | ||
} | ||
} | ||
} | ||
|
||
@mixin mc-sidenav-typography($config) { | ||
.nav { @include mc-typography-level-to-styles($config, body); } | ||
} |
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