-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
37d87cd
commit 62ae862
Showing
38 changed files
with
177 additions
and
337 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
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,2 +1,2 @@ | ||
<span class="aui-button__content"><ng-content></ng-content></span> | ||
<aui-icon *ngIf="loading" icon="spinner"></aui-icon> | ||
<aui-icon *ngIf="loading" class="aui-button__spinner" icon="spinner"></aui-icon> |
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
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
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 |
---|---|---|
@@ -1,50 +1,17 @@ | ||
@import '../../theme/var'; | ||
@import '../../theme/mixin'; | ||
|
||
@mixin option-group-divider { | ||
border-top: get-size(border-m) solid get-color(n-8); | ||
} | ||
|
||
@mixin option-group($block) { | ||
$title-height: calc( | ||
#{get-size(line-height-s)} + #{get-size(select-options-padding)} | ||
); | ||
.#{$block} { | ||
&__title { | ||
font-size: get-size(font-size-s); | ||
line-height: get-size(line-height-s); | ||
padding: calc(#{get-size(select-options-padding)} / 2) | ||
get-size(select-options-padding); | ||
color: get-text-color(help); | ||
width: 100%; | ||
background-color: get-color(n-10); | ||
position: relative; | ||
z-index: 1; | ||
} | ||
|
||
&__title-wrapper { | ||
position: sticky; | ||
top: 0; | ||
margin-top: get-size(border-m); | ||
height: calc(#{$title-height} + #{get-size(border-m)}); | ||
&:after { | ||
position: sticky; | ||
content: ' '; | ||
width: 100%; | ||
height: get-size(border-m); | ||
display: block; | ||
background-color: get-color(n-8); | ||
top: $title-height; | ||
margin-top: -1px; | ||
} | ||
padding: 4px 8px; | ||
@include text-set(s, help); | ||
} | ||
} | ||
|
||
#{$block}:not(:first-child) .#{$block} { | ||
padding-top: get-size(select-options-padding); | ||
@include option-group-divider; | ||
} | ||
#{$block}:not(:last-child) .#{$block} { | ||
padding-bottom: get-size(select-options-padding); | ||
margin-top: 8px; | ||
padding-top: 8px; | ||
border-top: 1px solid get-color(n-8); | ||
} | ||
} |
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,6 +1,4 @@ | ||
<div [hidden]="!(hasVisibleOption$ | async)" class="aui-option-group"> | ||
<div class="aui-option-group__title-wrapper" [hidden]="!groupTitle"> | ||
<ng-content select="[auiOptionGroupTitle]"></ng-content> | ||
</div> | ||
<ng-content select="[auiOptionGroupTitle]"></ng-content> | ||
<div class="aui-option-group__content"><ng-content></ng-content></div> | ||
</div> |
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.