-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(windows): add tabs component and clean up windows UI
references #5565
- Loading branch information
1 parent
8a1e450
commit fa2e4b2
Showing
6 changed files
with
107 additions
and
8 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
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,98 @@ | ||
@import "../../globals.wp"; | ||
@import "./tabs"; | ||
|
||
// Windows Tabs | ||
// -------------------------------------------------- | ||
|
||
$tabbar-wp-background: $toolbar-wp-background !default; | ||
$tabbar-wp-item-padding: 12px 10px 5px 10px !default; | ||
$tabbar-wp-item-font-size: 1.4rem !default; | ||
$tabbar-wp-item-font-weight: 500 !default; | ||
$tabbar-wp-item-icon-size: 2.4rem !default; | ||
$tabbar-wp-item-height: 4.8rem !default; | ||
|
||
$tab-button-wp-active-color: $toolbar-wp-active-color !default; | ||
$tab-button-wp-inactive-color: $toolbar-wp-inactive-color !default; | ||
|
||
|
||
tabbar { | ||
background: $tabbar-wp-background; | ||
} | ||
|
||
|
||
.tab-button { | ||
padding: $tabbar-wp-item-padding; | ||
min-height: $tabbar-wp-item-height; | ||
font-size: $tabbar-wp-item-font-size; | ||
font-weight: $tabbar-wp-item-font-weight; | ||
opacity: 0.7; | ||
|
||
box-shadow: none; | ||
border-radius: 0; | ||
border-bottom: 2px solid transparent; | ||
color: $tab-button-wp-inactive-color; | ||
|
||
&[aria-selected=true] { | ||
opacity: 1.0; | ||
color: $tab-button-wp-active-color; | ||
} | ||
} | ||
|
||
.tab-button-text { | ||
margin-top: 5px; | ||
margin-bottom: 5px; | ||
text-transform: uppercase; | ||
} | ||
|
||
.tab-button-icon { | ||
font-size: $tabbar-wp-item-icon-size; | ||
min-width: $tabbar-wp-item-icon-size + 5; | ||
} | ||
|
||
[tabbarIcons=bottom] .tab-button { | ||
padding-top: 8px; | ||
padding-bottom: 8px; | ||
} | ||
|
||
[tabbarIcons=right] .tab-button, | ||
[tabbarIcons=left] .tab-button { | ||
padding-bottom: 10px; | ||
|
||
ion-icon { | ||
min-width: 24px; | ||
} | ||
} | ||
|
||
.tab-button.icon-only, | ||
.tab-button.has-title-only { | ||
padding: 6px 10px 6px 10px; | ||
} | ||
|
||
|
||
// Windows Tabbar Color Mixin | ||
// -------------------------------------------------- | ||
|
||
@mixin tabbar-wp($color-name, $color-value) { | ||
|
||
ion-tabs[#{$color-name}] tabbar { | ||
background-color: $color-value; | ||
|
||
.tab-button { | ||
color: color-inverse($color-value); | ||
} | ||
|
||
.tab-button:hover:not(.disable-hover), | ||
.tab-button[aria-selected=true] { | ||
color: color-inverse($color-value); | ||
} | ||
} | ||
|
||
} | ||
|
||
|
||
// Windows Tabbar Color Generation | ||
// -------------------------------------------------- | ||
|
||
@each $color-name, $color-value in $colors-wp { | ||
@include tabbar-wp($color-name, $color-value); | ||
} |
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