feat(tab-button): add default styles (#29647)
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.2 KiB |
@ -1,5 +1,3 @@
|
|||||||
@import "../../themes/native/native.globals";
|
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
/**
|
/**
|
||||||
* @prop --background: Background of the tab button
|
* @prop --background: Background of the tab button
|
||||||
@ -38,11 +36,6 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
.button-native {
|
.button-native {
|
||||||
@include border-radius(inherit);
|
|
||||||
@include margin(0);
|
|
||||||
@include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start));
|
|
||||||
@include text-inherit();
|
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
@ -67,10 +60,6 @@
|
|||||||
-webkit-user-drag: none;
|
-webkit-user-drag: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-native::after {
|
|
||||||
@include button-state();
|
|
||||||
}
|
|
||||||
|
|
||||||
.button-inner {
|
.button-inner {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -1,5 +1,5 @@
|
|||||||
@use "../../foundations/ionic.vars.scss" as globals;
|
@use "../../themes/ionic/ionic.globals.scss" as globals;
|
||||||
@import "./tab-button";
|
@use "./tab-button.common";
|
||||||
|
|
||||||
// Ionic Tab Button
|
// Ionic Tab Button
|
||||||
// --------------------------------------------------------------
|
// --------------------------------------------------------------
|
||||||
@ -8,17 +8,43 @@
|
|||||||
--focus-ring-color: #{globals.$ionic-state-focus-1};
|
--focus-ring-color: #{globals.$ionic-state-focus-1};
|
||||||
--focus-ring-width: #{globals.$ionic-border-radius-050};
|
--focus-ring-width: #{globals.$ionic-border-radius-050};
|
||||||
|
|
||||||
@include border-radius(globals.$ionic-border-radius-200);
|
@include globals.border-radius(globals.$ionic-border-radius-200);
|
||||||
|
|
||||||
|
align-content: center;
|
||||||
|
|
||||||
|
min-height: globals.$ionic-scale-1200;
|
||||||
|
max-height: globals.$ionic-scale-1800;
|
||||||
|
|
||||||
|
font-size: globals.$ionic-font-size-300;
|
||||||
|
font-weight: globals.$ionic-font-weight-medium;
|
||||||
|
|
||||||
|
line-height: globals.$ionic-line-height-500;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Tab Button: Native
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
.button-native {
|
||||||
|
@include globals.border-radius(inherit);
|
||||||
|
@include globals.margin(0);
|
||||||
|
@include globals.padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start));
|
||||||
|
@include globals.text-inherit();
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-native::after {
|
||||||
|
@include globals.button-state();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tab Button Focused
|
// Tab Button Focused
|
||||||
// -------------------------------------------------------------------------------
|
// -------------------------------------------------------------------------------
|
||||||
|
|
||||||
.button-native {
|
.button-native {
|
||||||
|
min-width: globals.$ionic-scale-1200;
|
||||||
|
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
|
|
||||||
&::after {
|
&::after {
|
||||||
@include border-radius(inherit);
|
@include globals.border-radius(inherit);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -37,3 +63,13 @@
|
|||||||
|
|
||||||
opacity: var(--background-activated-opacity);
|
opacity: var(--background-activated-opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Tab Button Slots
|
||||||
|
// -------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
// Icon
|
||||||
|
|
||||||
|
::slotted(ion-icon) {
|
||||||
|
width: globals.$ionic-scale-600;
|
||||||
|
height: globals.$ionic-scale-600;
|
||||||
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
@import "./tab-button";
|
@import "./tab-button.native";
|
||||||
@import "./tab-button.ios.vars";
|
@import "./tab-button.ios.vars";
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
@import "./tab-button";
|
@import "./tab-button.native";
|
||||||
@import "./tab-button.md.vars";
|
@import "./tab-button.md.vars";
|
||||||
|
|
||||||
// Material Design Tab Button
|
// Material Design Tab Button
|
||||||
|
|||||||
16
core/src/components/tab-button/tab-button.native.scss
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
@import "./tab-button.common";
|
||||||
|
@import "../../themes/native/native.globals";
|
||||||
|
|
||||||
|
// Tab Button: Native
|
||||||
|
// --------------------------------------------------
|
||||||
|
|
||||||
|
.button-native {
|
||||||
|
@include border-radius(inherit);
|
||||||
|
@include margin(0);
|
||||||
|
@include padding(var(--padding-top), var(--padding-end), var(--padding-bottom), var(--padding-start));
|
||||||
|
@include text-inherit();
|
||||||
|
}
|
||||||
|
|
||||||
|
.button-native::after {
|
||||||
|
@include button-state();
|
||||||
|
}
|
||||||