conflict fix

Conflicts:
	dist/ionic.css
	scss/ionic/_structure-variables.scss
This commit is contained in:
Adam Bradley
2013-09-09 19:09:52 -05:00
6 changed files with 63 additions and 84 deletions

58
dist/ionic.css vendored
View File

@ -435,29 +435,22 @@ a {
-webkit-user-select: none; -webkit-user-select: none;
-moz-user-select: -moz-none; -moz-user-select: -moz-none;
user-select: none; user-select: none;
display: -webkit-box;
display: box;
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;
z-index: 10; z-index: 10;
width: 100%; width: 100%;
height: 44px; height: 44px;
padding: 8px; padding: 5px;
box-sizing: border-box; box-sizing: border-box; }
/*
.title + .button:last-child,
.button + .button:last-child,
.button.pull-right {
position: absolute;
top: 5px;
right: 5px;
}
*/ }
.bar .title { .bar .title {
position: absolute; position: absolute;
z-index: 0; z-index: 0;
width: 100%;
top: 0; top: 0;
left: 0; left: 0;
right: 0;
line-height: 44px; line-height: 44px;
margin: 0; margin: 0;
min-width: 30px; min-width: 30px;
@ -467,23 +460,22 @@ a {
font-size: 18px; } font-size: 18px; }
.bar .title a { .bar .title a {
color: inherit; } color: inherit; }
.bar .button {
.buttons { box-flex: 1;
position: absolute; -webkit-box-flex: 0;
z-index: 1; -moz-box-flex: 0;
padding: 8px; line-height: 23px;
line-height: 6px; } font-size: 12px; }
.buttons .button { .bar .button-bar {
padding: 6px 12px; line-height: 18px; }
line-height: 14px; } .bar .button-bar + .button, .bar .button + .button-bar {
margin-left: 5px; }
.buttons:first-child { .bar .title + .button:last-child,
left: 0; .bar > .button + .button:last-child,
top: 0; } .bar > .button.pull-right {
position: absolute;
.buttons:last-child { top: 5px;
right: 0; right: 5px; }
top: 0; }
.bar-header { .bar-header {
top: 0; } top: 0; }
@ -595,15 +587,15 @@ a {
box-flex: 1; box-flex: 1;
-webkit-box-flex: 1; -webkit-box-flex: 1;
-moz-box-flex: 1; -moz-box-flex: 1;
width: 0; line-height: 15px;
line-height: 8px;
border-radius: 0; border-radius: 0;
overflow: hidden; overflow: hidden;
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
display: block; display: block;
text-overflow: ellipsis; text-overflow: ellipsis;
border-width: 1px 0px 1px 1px; } border-width: 1px 0px 1px 1px;
padding: 8px 16px; }
.button-bar > .button:last-child { .button-bar > .button:last-child {
border-right-width: 1px; } border-right-width: 1px; }
@ -1985,7 +1977,7 @@ main {
border-radius: 2px; border-radius: 2px;
border-width: 1px; border-width: 1px;
border-style: solid; border-style: solid;
padding: 10px 15px; } padding: 4px 12px; }
.button.button-default { .button.button-default {
color: #333333; color: #333333;
background-color: white; background-color: white;

View File

@ -20,36 +20,25 @@
<section> <section>
<header class="bar bar-header bar-dark"> <header class="bar bar-header bar-dark">
<div class="buttons"> <a class="button">Back</a>
<a class="button button-clear">Back</a>
<a class="button button-clear">This</a>
</div>
<h1 class="title">Really really really really really really really really long title!</h1> <h1 class="title">Really really really really really really really really long title!</h1>
<div class="buttons"> <a class="button">This</a>
<a class="button">Forward</a>
</div>
</header> </header>
<div class="bar bar-header-secondary bar-dark"> <div class="bar bar-header-secondary bar-success">
<div class="button-bar"> <div class="button-bar">
<a class="button">Success</a> <a class="button">Success</a>
<a class="button">Warning</a> <a class="button">Warning</a>
<a class="button">Danger</a> <a class="button">Danger</a>
</div> </div>
</div> </div>
<header class="bar bar-header bar-dark"> <header class="bar bar-header bar-default">
<div class="buttons"> <a class="button">Back</a>
<a class="button button-clear">Back</a>
<a class="button button-clear">This</a>
</div>
<div class="button-bar"> <div class="button-bar">
<a class="button">Success</a> <a class="button">Success</a>
<a class="button">Warning</a> <a class="button">Warning</a>
<a class="button">Danger</a> <a class="button">Danger</a>
</div> </div>
<div class="buttons"> <a class="button">This</a>
<a class="button button-clear">Back</a>
<a class="button button-clear">This</a>
</div>
</header> </header>
<main class="content content-padded has-header"> <main class="content content-padded has-header">

View File

@ -20,14 +20,19 @@ $roundedRadius: 5px;
// ------------------------------- // -------------------------------
$barHeight: 44px !default; $barHeight: 44px !default;
$barLineHeight: 44px !default; $barLineHeight: 44px !default;
$barButtonsLineHeight: 6px !default; $barButtonLineHeight: 23px !default;
$barButtonBarLineHeight: 18px !default;
$barTitleFontSize: $fontSizeLarge; $barTitleFontSize: $fontSizeLarge;
$barTitleLineHeightComputed: 26px;//$barHeight - 2; $barTitleLineHeightComputed: 26px;//$barHeight - 2;
$barPaddingVertical: (($barHeight - $baseLineHeightComputed) / 2); $barPaddingPortrait: 5px;
$barPaddingPortrait: 8px;
$barPaddingLandscape: 5px; $barPaddingLandscape: 5px;
// Button bar stuff
// -------------------------------
$buttonBarButtonLineHeight: 15px !default;
// Forms // Forms
// ------------------------------- // -------------------------------
$textInputBorderRadius: 2px; $textInputBorderRadius: 2px;

View File

@ -65,7 +65,7 @@ $darkColor: #333;
// Buttons // Buttons
// ------------------------------- // -------------------------------
$buttonColor: #222; $buttonColor: #222;
$buttonPadding: 10px 15px; $buttonPadding: 4px 12px;
$buttonClearPadding: 10px 0px; $buttonClearPadding: 10px 0px;
$buttonBorderRadius: 2px; $buttonBorderRadius: 2px;
$buttonBorderWidth: 1px; $buttonBorderWidth: 1px;

View File

@ -3,6 +3,9 @@
.bar { .bar {
@include disable-user-select(); @include disable-user-select();
display: -webkit-box;
display: box;
position: fixed; position: fixed;
left: 0; left: 0;
right: 0; right: 0;
@ -19,9 +22,9 @@
position: absolute; position: absolute;
z-index: 0; z-index: 0;
width: 100%;
top: 0; top: 0;
left: 0; left: 0;
right: 0;
line-height: $barHeight; line-height: $barHeight;
@ -44,41 +47,30 @@
color: inherit; color: inherit;
} }
.button {
@include box-flex(0);
line-height: $barButtonLineHeight;
font-size: 12px;
}
.button-bar {
line-height: $barButtonBarLineHeight;
}
.button-bar + .button, .button + .button-bar {
margin-left: 5px;
}
// Place the last button in a bar on the right of the bar // Place the last button in a bar on the right of the bar
/*
.title + .button:last-child, .title + .button:last-child,
.button + .button:last-child, > .button + .button:last-child,
.button.pull-right { > .button.pull-right {
position: absolute; position: absolute;
top: 5px; top: 5px;
right: 5px; right: 5px;
} }
*/
} }
.buttons {
position: absolute;
// Lift the buttons container above the title
z-index: 1;
padding: $barPaddingPortrait;
line-height: $barButtonsLineHeight;
.button {
padding: 6px 12px;
line-height: 14px;
}
}
.buttons:first-child {
left: 0;
top: 0;
}
.buttons:last-child {
right: 0;
top: 0;
}
// Header at top // Header at top
.bar-header { .bar-header {

View File

@ -75,9 +75,8 @@
.button-bar > .button { .button-bar > .button {
@include box-flex(1); @include box-flex(1);
// Fix for box-flex width issue // Fix for box-flex width issue
width: 0;
line-height: 8px; line-height: $buttonBarButtonLineHeight;
border-radius: 0; border-radius: 0;
overflow: hidden; overflow: hidden;
@ -88,6 +87,8 @@
border-width: 1px 0px 1px 1px; border-width: 1px 0px 1px 1px;
padding: 8px 16px;
&:last-child { &:last-child {
border-right-width: 1px; border-right-width: 1px;
} }