-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(toolbox): the color of the toolbox can be chosen
- Loading branch information
Showing
5 changed files
with
77 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './tool.interface'; | ||
export * from './tool.service'; | ||
export * from './tool-component'; | ||
export * from './toolbox.enums'; | ||
export * from './toolbox'; |
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,5 @@ | ||
export enum ToolboxColor { | ||
White = 'white', | ||
Grey = 'grey', | ||
Primary = 'primary' | ||
} |
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 |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
} | ||
|
||
.igo-tool-container-with-toolbar { | ||
left: 51px; | ||
left: 50px; | ||
} | ||
|
||
igo-actionbar { | ||
|
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 |
---|---|---|
@@ -1,13 +1,50 @@ | ||
@mixin igo-toolbox-theming($theme) { | ||
$primary: map-get($theme, primary); | ||
$accent: map-get($theme, accent); | ||
|
||
|
||
igo-toolbox > igo-actionbar igo-actionbar-item mat-list-item.tool-activated { | ||
background-color: mat-color($accent); | ||
igo-toolbox > igo-actionbar mat-list.mat-list-base igo-actionbar-item mat-list-item { | ||
&:hover { | ||
background-color: mat-color($accent, lighter); | ||
} | ||
|
||
&.tool-activated, | ||
&.children-tool-activated { | ||
background-color: mat-color($accent); | ||
cursor: default; | ||
button { | ||
cursor: default; | ||
} | ||
} | ||
} | ||
|
||
|
||
igo-toolbox.color-primary > igo-actionbar:not(.with-title) { | ||
box-shadow: unset; | ||
background-color: mat-color($primary) | ||
} | ||
|
||
igo-toolbox > igo-actionbar igo-actionbar-item mat-list-item.children-tool-activated { | ||
background-color: mat-color($accent); | ||
igo-toolbox.color-grey > igo-actionbar:not(.with-title) { | ||
box-shadow: unset; | ||
background-color: #737475; | ||
} | ||
|
||
|
||
igo-toolbox.color-primary, | ||
igo-toolbox.color-grey { | ||
& > igo-actionbar:not(.with-title) mat-list.mat-list-base { | ||
.mat-list-item.mat-list-item-with-avatar { | ||
color: white; | ||
&:hover { | ||
color: black; | ||
} | ||
|
||
&.tool-activated, | ||
&.children-tool-activated { | ||
background-color: white; | ||
color: black; | ||
} | ||
} | ||
} | ||
} | ||
|
||
} |