Skip to content

Commit

Permalink
Update with latest changes to UI Framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcenizal committed Dec 13, 2016
1 parent fe5bab1 commit a44140a
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@

&:last-child {
.localBreadcrumb__link {
pointer-events: none;
color: $localNavTextColor;
cursor: default;

&:hover {
text-decoration: none;
}

@include darkTheme {
color: $localNavTextColor--darkTheme;
Expand Down
23 changes: 23 additions & 0 deletions src/ui_framework/components/local_nav/_local_dropdown.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

.localDropdown {
position: relative;
padding: 10px $localNavSideSpacing 14px;
background-color: $localDropdownBackgroundColor;
line-height: 20px;
Expand All @@ -9,6 +10,28 @@
}
}

.localDropdownCloseButton {
appearance: none;
background-color: transparent;
padding: 4px;
border: none;
position: absolute;
top: 1px;
right: 5px;
font-size: 16px;
color: $localNavTextColor;
cursor: pointer;
opacity: 0.35;

&:hover {
opacity: 1;
}

@include darkTheme {
color: $localNavTextColor--darkTheme;
}
}

.localDropdownPanels {
display: flex;
}
Expand Down
13 changes: 12 additions & 1 deletion src/ui_framework/components/local_nav/_local_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@
&.localMenuItem-isDisabled {
opacity: 0.5;
cursor: default;
pointer-events: none;

&:hover {
background-color: $localNavButtonBackgroundColor;
color: $localNavButtonTextColor;
}
}

@include darkTheme {
Expand All @@ -42,6 +46,13 @@
&.localMenuItem-isSelected {
background-color: $localNavButtonBackgroundColor-isSelected--darkTheme;
}

&.localMenuItem-isDisabled {
&:hover {
background-color: transparent;
color: $localNavButtonTextColor--darkTheme;
}
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
</div>

<div class="localDropdown">
<!-- Dropdown close button -->
<button class="localDropdownCloseButton">
<span class="fa fa-chevron-circle-up"></span>
</button>

<!-- Title -->
<div class="localDropdownTitle">Dropdown title</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@
</div>

<div class="localDropdown">
<!-- Dropdown close button -->
<button class="localDropdownCloseButton">
<span class="fa fa-chevron-circle-up"></span>
</button>

<div class="localDropdownPanels">
<!-- Left panel -->
<div class="localDropdownPanel localDropdownPanel--left">
Expand Down

0 comments on commit a44140a

Please sign in to comment.