mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00

Closes #229. Closes #236 Squashed commit of the following: commit f566321e54937b8d31a8d1f85948ab5d984b9e37 Author: mhartington <mikehartington@gmail.com> Date: Fri Oct 2 11:03:50 2015 -0400 feat(ionTabs): organize code and clean font sizes commit 9ee1e28f0b01e9e195bc24a65066a57d66e5ec50 Author: mhartington <mikehartington@gmail.com> Date: Fri Oct 2 10:51:36 2015 -0400 feat(ionTabs): move scss to tabs.scss commit 3eba74c27c8eefe6e61f8f3ac12742edb7181772 Author: mhartington <mikehartington@gmail.com> Date: Thu Oct 1 16:23:37 2015 -0400 feat(ionTabs): add test commit 34f61431d41283fc8e5ed2f64e0874659072660b Author: mhartington <mikehartington@gmail.com> Date: Thu Oct 1 16:13:05 2015 -0400 feat(ionTabs): reuse tabBarIcons commit 8c6f0edb17bcc6ff0c5f8b7be66f2be8a6775d48 Author: mhartington <mikehartington@gmail.com> Date: Thu Oct 1 15:56:29 2015 -0400 feat(ionTabs): hide tab icon for md
68 lines
1.3 KiB
SCSS
68 lines
1.3 KiB
SCSS
|
|
// Material Design Tabs
|
|
// --------------------------------------------------
|
|
|
|
$tab-bar-md-item-padding: 12px 10px 5px 10px !default;
|
|
$tab-bar-md-item-font-size: 1.4rem !default;
|
|
$tab-bar-md-item-font-weight: 500 !default;
|
|
$tab-bar-md-item-icon-size: 2.4rem !default;
|
|
$tab-bar-md-item-height: 4.8rem !default;
|
|
|
|
|
|
.tab-button {
|
|
padding: $tab-bar-md-item-padding;
|
|
min-height: $tab-bar-md-item-height;
|
|
font-size: $tab-bar-md-item-font-size;
|
|
font-weight: $tab-bar-md-item-font-weight;
|
|
|
|
box-shadow: none;
|
|
border-radius: 0;
|
|
border-bottom: 2px solid transparent;
|
|
}
|
|
|
|
.tab-button-text {
|
|
margin-top: 5px;
|
|
margin-bottom: 5px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.tab-button-icon {
|
|
font-size: $tab-bar-md-item-icon-size;
|
|
min-width: $tab-bar-md-item-icon-size + 5;
|
|
}
|
|
|
|
[tab-bar-icons=bottom] .tab-button {
|
|
padding-top: 8px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
[tab-bar-icons=right] .tab-button,
|
|
[tab-bar-icons=left] .tab-button {
|
|
padding-bottom: 10px;
|
|
|
|
icon {
|
|
min-width: 24px;
|
|
}
|
|
}
|
|
|
|
.tab-button.icon-only,
|
|
.tab-button.has-title-only {
|
|
padding: 6px 10px 6px 10px;
|
|
}
|
|
|
|
tab-highlight {
|
|
position: absolute;
|
|
display: block;
|
|
height: 2px;
|
|
width: 1px;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: $tab-button-active-color;
|
|
transform-origin: 0 0;
|
|
|
|
&.animate {
|
|
transition-duration: 300ms;
|
|
}
|
|
}
|
|
|