-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce new attention level designs for button and related theming …
…for card (#2735) Co-authored-by: mark-drastrup <mark.drastrup@gmail.com>
- Loading branch information
1 parent
9b1d11c
commit f7d2d68
Showing
15 changed files
with
220 additions
and
190 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
27 changes: 27 additions & 0 deletions
27
apps/cookbook/src/app/examples/dropdown-example/examples/dropdown-examples.shared.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,27 @@ | ||
@use 'sass:map'; | ||
@use '@kirbydesign/core/src/scss/utils'; | ||
|
||
kirby-card { | ||
margin-block: utils.size('m'); | ||
|
||
&.attention-levels { | ||
max-width: map.get(utils.$breakpoints, 'small'); | ||
} | ||
|
||
kirby-dropdown + kirby-dropdown { | ||
margin-top: utils.size('s'); | ||
} | ||
} | ||
|
||
p { | ||
margin-top: utils.size('s'); | ||
} | ||
|
||
.comment { | ||
font-style: italic; | ||
color: utils.get-text-color('semi-dark'); | ||
|
||
&.small { | ||
font-size: smaller; | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@use '../utils'; | ||
|
||
@mixin apply-dark-theme { | ||
--kirby-interactive-element-background-color: #{utils.get-color('white-overlay')}; | ||
--kirby-interactive-element-color: #{utils.get-color('white')}; | ||
} | ||
|
||
@mixin apply-white-theme { | ||
--kirby-interactive-element-background-color: #{utils.get-color('dark-overlay')}; | ||
--kirby-interactive-element-color: #{utils.get-color('black')}; | ||
} | ||
|
||
@mixin apply-light-theme { | ||
--kirby-interactive-element-background-color: #{utils.get-color('white')}; | ||
--kirby-interactive-element-color: #{utils.get-color('white-contrast')}; | ||
--kirby-interactive-elevation: #{utils.get-elevation(2)}; | ||
} |
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 @@ | ||
@forward 'component-themes'; |
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
Oops, something went wrong.