Skip to content

Commit

Permalink
New: Dropdown added $dropdown-action-toggle-color, `$dropdown-actio…
Browse files Browse the repository at this point in the history
…n-toggle-hover-color`, and added component `.dropdown-action`
  • Loading branch information
pat270 committed Aug 9, 2017
1 parent 1672d88 commit 6481ecd
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/scss/atlas-theme/variables/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ $dropdown-link-active-bg: $dropdown-link-hover-bg !default;
$dropdown-link-active-font-weight: 500 !default;
$dropdown-link-disabled-color: lighten($body-color, 52%) !default;

$dropdown-divider-bg: $dropdown-border-color !default;
$dropdown-divider-bg: $dropdown-border-color !default;

// Dropdown Action

$dropdown-action-toggle-color: map-get($theme-colors, secondary) !default;
$dropdown-action-toggle-hover-color: $dropdown-action-toggle-color !default;
33 changes: 33 additions & 0 deletions src/scss/lexicon-base/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,39 @@
}
}

.dropdown-action {
display: inline-block;
vertical-align: middle;

> .dropdown-toggle {
color: $dropdown-action-toggle-color;
display: block;

@include hover-focus {
color: $dropdown-action-toggle-hover-color;
}

.lexicon-icon {
display: block;
margin-top: 0;

@include monospace($icon-monospaced-size);

padding: lx-icon-padding($icon-monospaced-size, $lexicon-icon-size);
}
}

> button.dropdown-toggle {
background-color: transparent;
border-width: 0;
padding: 0;
}

&.show button.dropdown-toggle {
outline: none;
}
}

// Dropdown Menu Horizontal

.dropdown-menu-horizontal {
Expand Down
5 changes: 5 additions & 0 deletions src/scss/lexicon-base/variables/_dropdowns.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ $dropdown-item-indicator-spacer-x: 1rem !default;

$dropdown-horizontal-min-height: 50px !default;

// Dropdown Action

$dropdown-action-toggle-color: $link-color !default;
$dropdown-action-toggle-hover-color: $link-hover-color !default;

// Alert inside Dropdowns

$dropdown-alert-font-size: null !default;
Expand Down

0 comments on commit 6481ecd

Please sign in to comment.