mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
Box flex mixings and fix for tab item siz
This commit is contained in:
7
dist/ionic.css
vendored
7
dist/ionic.css
vendored
@ -1099,16 +1099,19 @@ a.list-item {
|
||||
display: box;
|
||||
height: 100%;
|
||||
list-style: none;
|
||||
box-orient: horizontal;
|
||||
-webkit-box-orient: horizontal;
|
||||
box-orient: horizontal; }
|
||||
-moz-box-orient: horizontal; }
|
||||
|
||||
/* Navigational tab */
|
||||
.tab-item {
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
box-flex: 1;
|
||||
-webkit-box-flex: 1;
|
||||
box-flex: 1; }
|
||||
-moz-box-flex: 1;
|
||||
width: 0; }
|
||||
.tab-item a {
|
||||
text-decoration: none;
|
||||
display: block;
|
||||
|
||||
@ -22,24 +22,24 @@
|
||||
</header>
|
||||
|
||||
<main class="content-padded has-header">
|
||||
<p><a class="button button-default" href="alerts.html">Alerts</a></p>
|
||||
<p><a class="button button-default" href="buttons.html">Buttons</a></p>
|
||||
<p><a class="button button-default" href="button-groups.html">Button Groups</a></p>
|
||||
<p><a class="button button-default" href="events.html">Events</a></p>
|
||||
<p><a class="button button-default" href="footers.html">Footers</a></p>
|
||||
<p><a class="button button-default" href="forms.html">Forms</a></p>
|
||||
<p><a class="button button-default" href="grids.html">Grids</a></p>
|
||||
<p><a class="button button-default" href="headers.html">Headers</a></p>
|
||||
<p><a class="button button-default" href="image-swipe.html">Image Swipe</a></p>
|
||||
<p><a class="button button-default" href="input-slider.html">Input: Slider</a></p>
|
||||
<p><a class="button button-default" href="input-text.html">Input: Text</a></p>
|
||||
<p><a class="button button-default" href="input-toggle.html">Input: Toggle</a></p>
|
||||
<p><a class="button button-default" href="lists.html">Lists</a></p>
|
||||
<p><a class="button button-default" href="modals.html">Modals</a></p>
|
||||
<p><a class="button button-default" href="panels.html">Panels</a></p>
|
||||
<p><a class="button button-default" href="popovers.html">Popovers</a></p>
|
||||
<p><a class="button button-default" href="pull-to-refresh.html">Pull To Refresh</a></p>
|
||||
<p><a class="button button-default" href="tab-bars.html">Tab Bars</a></p>
|
||||
<p><a class="button button-block button-default" href="alerts.html">Alerts</a></p>
|
||||
<p><a class="button button-block button-default" href="buttons.html">Buttons</a></p>
|
||||
<p><a class="button button-block button-default" href="button-groups.html">Button Groups</a></p>
|
||||
<p><a class="button button-block button-default" href="events.html">Events</a></p>
|
||||
<p><a class="button button-block button-default" href="footers.html">Footers</a></p>
|
||||
<p><a class="button button-block button-default" href="forms.html">Forms</a></p>
|
||||
<p><a class="button button-block button-default" href="grids.html">Grids</a></p>
|
||||
<p><a class="button button-block button-default" href="headers.html">Headers</a></p>
|
||||
<p><a class="button button-block button-default" href="image-swipe.html">Image Swipe</a></p>
|
||||
<p><a class="button button-block button-default" href="input-slider.html">Input: Slider</a></p>
|
||||
<p><a class="button button-block button-default" href="input-text.html">Input: Text</a></p>
|
||||
<p><a class="button button-block button-default" href="input-toggle.html">Input: Toggle</a></p>
|
||||
<p><a class="button button-block button-default" href="lists.html">Lists</a></p>
|
||||
<p><a class="button button-block button-default" href="modals.html">Modals</a></p>
|
||||
<p><a class="button button-block button-default" href="panels.html">Panels</a></p>
|
||||
<p><a class="button button-block button-default" href="popovers.html">Popovers</a></p>
|
||||
<p><a class="button button-block button-default" href="pull-to-refresh.html">Pull To Refresh</a></p>
|
||||
<p><a class="button button-block button-default" href="tab-bars.html">Tab Bars</a></p>
|
||||
</main>
|
||||
|
||||
</section>
|
||||
|
||||
@ -1,3 +1,7 @@
|
||||
// _mixins.scss
|
||||
//
|
||||
// Useful utilities and mixins for SCSS files.
|
||||
|
||||
@mixin button-style($bgColor, $borderColor, $color) {
|
||||
color: $color;
|
||||
background-color: $bgColor;
|
||||
@ -405,6 +409,18 @@
|
||||
filter: alpha(opacity=$opacity);
|
||||
}
|
||||
|
||||
@mixin box-orient($orientation) {
|
||||
box-orient: $orientation;
|
||||
-webkit-box-orient: $orientation;
|
||||
-moz-box-orient: $orientation;
|
||||
}
|
||||
|
||||
@mixin box-flex($flex) {
|
||||
box-flex: 1;
|
||||
-webkit-box-flex: $flex;
|
||||
-moz-box-flex: $flex;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// BACKGROUNDS
|
||||
|
||||
@ -14,8 +14,7 @@
|
||||
display: box;
|
||||
height: 100%;
|
||||
list-style: none;
|
||||
-webkit-box-orient: horizontal;
|
||||
box-orient: horizontal;
|
||||
@include box-orient(horizontal);
|
||||
}
|
||||
|
||||
/* Navigational tab */
|
||||
@ -23,8 +22,11 @@
|
||||
height: 100%;
|
||||
text-align: center;
|
||||
box-sizing: border-box;
|
||||
-webkit-box-flex: 1;
|
||||
box-flex: 1;
|
||||
|
||||
@include box-flex(1);
|
||||
|
||||
// Required to force box elements to be the same size;
|
||||
width: 0;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
|
||||
Reference in New Issue
Block a user