-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(stark-ui): implementation of minimap component #824
Merged
christophercr
merged 1 commit into
NationalBankBelgium:master
from
Mallikki:feature/stark-minimap
Nov 7, 2018
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./minimap/minimap.module"; | ||
export * from "./minimap/components"; |
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,3 @@ | ||
export * from "./components/minimap.component"; | ||
export * from "./components/item-properties.intf"; | ||
export * from "./components/item-visibility.intf"; |
118 changes: 118 additions & 0 deletions
118
packages/stark-ui/src/modules/minimap/components/_minimap-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,118 @@ | ||
/* ============================================================================== */ | ||
/* S t a r k M i n i m a p */ | ||
/* ============================================================================== */ | ||
/* stark-ui: src/modules/minimap/components/minimap-theme.scss */ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
||
.compact-minimap { | ||
& .stark-minimap-dots { | ||
& i { | ||
background-color: $secondary-dark-text-color; | ||
opacity: 0.2; | ||
} | ||
& li.selected i { | ||
opacity: 1; | ||
} | ||
} | ||
& .stark-minimap-dropdown-toggle { | ||
& .stark-minimap-dropdown-toggle-menu { | ||
box-shadow: $elevation-4; | ||
& mat-checkbox.mat-checked .mat-icon { | ||
background-color: $md-accent; | ||
} | ||
} | ||
& .mat-button.mat-icon-button { | ||
& svg { | ||
fill: #000; | ||
} | ||
border: 1px solid mat-color($grey-palette, 300); | ||
background-color: $md-primary-alpha-05; | ||
} | ||
& mat-icon { | ||
fill: $md-primary; | ||
} | ||
& .stark-minimap-dropdown-toggle-menu { | ||
border-color: mat-color($grey-palette, 500); | ||
box-shadow: 0 1px 2px mat-color($grey-palette, 300); | ||
background-color: #FFF; | ||
& mat-checkbox { | ||
&:hover { | ||
background: $md-primary-alpha-05; | ||
} | ||
& ._mat-icon { | ||
&::after { | ||
border-color: mat-color($grey-palette, 50); | ||
} | ||
} | ||
& .stark-minimap-dropdown { | ||
& mat-checkbox.stark-minimap-column-checkbox { | ||
&.mat-checked ._mat-icon { | ||
background-color: $md-primary-200-alpha-38; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
.full-minimap { | ||
& .stark-minimap-dots { | ||
& i { | ||
background-color: $secondary-dark-text-color; | ||
opacity: 0.2; | ||
} | ||
& li.selected i { | ||
opacity: 1; | ||
} | ||
} | ||
& .stark-minimap-dropdown-toggle { | ||
& .stark-minimap-dropdown-toggle-menu { | ||
box-shadow: $elevation-4; | ||
& mat-checkbox.mat-checked .mat-icon { | ||
background-color: $md-accent; | ||
} | ||
} | ||
& .mat-button.mat-icon-button { | ||
& svg { | ||
fill: #000; | ||
} | ||
border: 1px solid mat-color($grey-palette, 300); | ||
background-color: $md-primary-alpha-05; | ||
} | ||
& mat-icon { | ||
fill: $md-primary; | ||
} | ||
& .stark-minimap-dropdown-toggle-menu { | ||
border-color: mat-color($grey-palette, 500); | ||
box-shadow: 0 1px 2px mat-color($grey-palette, 300); | ||
background-color: #FFF; | ||
& mat-checkbox { | ||
&:hover { | ||
background: $md-primary-alpha-05; | ||
} | ||
& ._mat-icon { | ||
&::after { | ||
border-color: mat-color($grey-palette, 50); | ||
} | ||
} | ||
& .stark-minimap-dropdown { | ||
& mat-checkbox.stark-minimap-column-checkbox { | ||
&.mat-checked ._mat-icon { | ||
background-color: $md-primary-200-alpha-38; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
.stark-table { | ||
& .stark-minimap { | ||
& .stark-minimap-dropdown-toggle .stark-minimap-dropdown-toggle-menu { | ||
box-shadow: $elevation-2; | ||
} | ||
} | ||
} | ||
|
||
/* End stark-ui: src/modules/minimap/components/minimap-theme.scss */ |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
theme.scss
file should contain only "themable" properties, meaning that only colors, backgrounds, fill colors, foregrounds, etc should be defined in this fileSo let's move all the other CSS rules like top, left, right, etc to the
_minimap.component.scss
file ;)