mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
reorder css properties via CSScomb
This commit is contained in:
@ -3,17 +3,17 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
.alert {
|
.alert {
|
||||||
padding: 8px 35px 8px 14px;
|
|
||||||
margin-bottom: $line-height-base;
|
margin-bottom: $line-height-base;
|
||||||
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
padding: 8px 35px 8px 14px;
|
||||||
background-color: $warning-bg;
|
|
||||||
border: 1px solid $warning-border;
|
border: 1px solid $warning-border;
|
||||||
|
background-color: $warning-bg;
|
||||||
|
text-shadow: 0 1px 0 rgba(255,255,255,.5);
|
||||||
}
|
}
|
||||||
.alert,
|
.alert,
|
||||||
.alert h4 {
|
.alert h4 {
|
||||||
|
margin: 0;
|
||||||
// Specified for the h4 to prevent conflicts of changing $headingsColor
|
// Specified for the h4 to prevent conflicts of changing $headingsColor
|
||||||
color: $warning-text;
|
color: $warning-text;
|
||||||
margin: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.alert .close {
|
.alert .close {
|
||||||
@ -36,8 +36,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.alert-success {
|
.alert-success {
|
||||||
background-color: $success-bg;
|
|
||||||
border-color: $success-border;
|
border-color: $success-border;
|
||||||
|
background-color: $success-bg;
|
||||||
color: $success-text;
|
color: $success-text;
|
||||||
}
|
}
|
||||||
.alert-success h4 {
|
.alert-success h4 {
|
||||||
@ -45,8 +45,8 @@
|
|||||||
}
|
}
|
||||||
.alert-danger,
|
.alert-danger,
|
||||||
.alert-error {
|
.alert-error {
|
||||||
background-color: $error-bg;
|
|
||||||
border-color: $error-border;
|
border-color: $error-border;
|
||||||
|
background-color: $error-bg;
|
||||||
color: $error-text;
|
color: $error-text;
|
||||||
}
|
}
|
||||||
.alert-danger h4,
|
.alert-danger h4,
|
||||||
@ -54,8 +54,8 @@
|
|||||||
color: $error-text;
|
color: $error-text;
|
||||||
}
|
}
|
||||||
.alert-info {
|
.alert-info {
|
||||||
background-color: $info-bg;
|
|
||||||
border-color: $info-border;
|
border-color: $info-border;
|
||||||
|
background-color: $info-bg;
|
||||||
color: $info-text;
|
color: $info-text;
|
||||||
}
|
}
|
||||||
.alert-info h4 {
|
.alert-info h4 {
|
||||||
|
|||||||
@ -2,24 +2,23 @@
|
|||||||
|
|
||||||
// Make sure iOS Safari doesn't scale fonts on orientation changes
|
// Make sure iOS Safari doesn't scale fonts on orientation changes
|
||||||
html {
|
html {
|
||||||
-webkit-text-size-adjust: 100%;
|
|
||||||
@include user-select(none);
|
@include user-select(none);
|
||||||
|
-webkit-text-size-adjust: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-size: 14px;
|
|
||||||
line-height: 1.25;
|
|
||||||
font-family: $base-font-family;
|
|
||||||
|
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
overflow: hidden;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: $base-font-family;
|
||||||
|
line-height: 1.25;
|
||||||
text-rendering: optimizeLegibility;
|
text-rendering: optimizeLegibility;
|
||||||
|
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
@ -36,10 +35,10 @@ body {
|
|||||||
|
|
||||||
.content {
|
.content {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
overflow: auto;
|
|
||||||
right: 0;
|
right: 0;
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
overflow: auto;
|
||||||
}
|
}
|
||||||
/* Hack to force all relatively and absolutely positioned elements still render while scrolling
|
/* Hack to force all relatively and absolutely positioned elements still render while scrolling
|
||||||
Note: This is a bug for "-webkit-overflow-scrolling: touch" (via ratchet) */
|
Note: This is a bug for "-webkit-overflow-scrolling: touch" (via ratchet) */
|
||||||
@ -72,9 +71,9 @@ a {
|
|||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
|
overflow: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: auto;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,30 +64,30 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button-bar {
|
.button-bar {
|
||||||
display: -webkit-box;
|
|
||||||
display: box;
|
|
||||||
|
|
||||||
@include box-flex(1);
|
@include box-flex(1);
|
||||||
@include box-orient(horizontal);
|
@include box-orient(horizontal);
|
||||||
|
display: -webkit-box;
|
||||||
|
display: box;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.button-bar > .button {
|
.button-bar > .button {
|
||||||
@include box-flex(1);
|
@include box-flex(1);
|
||||||
|
display: block;
|
||||||
|
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
padding: 8px 16px;
|
||||||
|
|
||||||
|
border-width: 1px 0px 1px 1px;
|
||||||
|
border-radius: 0;
|
||||||
|
text-align: center;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
// Fix for box-flex width issue
|
// Fix for box-flex width issue
|
||||||
|
|
||||||
line-height: $button-bar-button-line-height;
|
line-height: $button-bar-button-line-height;
|
||||||
border-radius: 0;
|
|
||||||
|
|
||||||
overflow: hidden;
|
|
||||||
text-align: center;
|
|
||||||
white-space: nowrap;
|
|
||||||
display: block;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
|
|
||||||
border-width: 1px 0px 1px 1px;
|
|
||||||
|
|
||||||
padding: 8px 16px;
|
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-right-width: 1px;
|
border-right-width: 1px;
|
||||||
@ -98,8 +98,8 @@
|
|||||||
// to pull a set of buttons to the right side of a header
|
// to pull a set of buttons to the right side of a header
|
||||||
// bar, for example.
|
// bar, for example.
|
||||||
.buttons {
|
.buttons {
|
||||||
display: -webkit-box;
|
|
||||||
display: box;
|
|
||||||
@include box-flex(1);
|
@include box-flex(1);
|
||||||
@include box-orient(horizontal);
|
@include box-orient(horizontal);
|
||||||
|
display: -webkit-box;
|
||||||
|
display: box;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,26 +1,25 @@
|
|||||||
.button {
|
.button {
|
||||||
color: $button-color;
|
|
||||||
border-radius: $button-border-radius;
|
|
||||||
border-width: $button-border-width;
|
|
||||||
border-style: solid;
|
|
||||||
padding: $button-padding;
|
|
||||||
font-size: $button-font-size;
|
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
margin: 0;
|
||||||
|
padding: $button-padding;
|
||||||
|
border-width: $button-border-width;
|
||||||
|
border-style: solid;
|
||||||
|
border-radius: $button-border-radius;
|
||||||
|
color: $button-color;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
font-size: $button-font-size;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 0;
|
|
||||||
|
|
||||||
&.button-icon {
|
&.button-icon {
|
||||||
background: none;
|
|
||||||
border: none;
|
border: none;
|
||||||
|
background: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.button-block {
|
&.button-block {
|
||||||
margin: $button-block-margin;
|
|
||||||
display: block;
|
display: block;
|
||||||
|
margin: $button-block-margin;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,14 +49,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
&.button-clear {
|
&.button-clear {
|
||||||
background: none;
|
|
||||||
border: none;
|
border: none;
|
||||||
|
background: none;
|
||||||
padding: $button-clear-padding;
|
padding: $button-clear-padding;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.button-icon {
|
&.button-icon {
|
||||||
background: none;
|
|
||||||
border: none;
|
border: none;
|
||||||
|
background: none;
|
||||||
&:active, &.active {
|
&:active, &.active {
|
||||||
text-shadow: 0px 0px 10px #fff;
|
text-shadow: 0px 0px 10px #fff;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
|
|||||||
@ -8,27 +8,27 @@ form {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Groups of fields with labels on top (legends)
|
// Groups of fields with labels on top (legends)
|
||||||
legend {
|
legend {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
|
||||||
padding: 0;
|
|
||||||
margin-bottom: $line-height-base;
|
margin-bottom: $line-height-base;
|
||||||
font-size: $font-size-base * 1.5;
|
padding: 0;
|
||||||
line-height: $line-height-base * 2;
|
width: 100%;
|
||||||
color: $gray-dark;
|
|
||||||
border: 0;
|
border: 0;
|
||||||
border-bottom: 1px solid #e5e5e5;
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
color: $gray-dark;
|
||||||
|
font-size: $font-size-base * 1.5;
|
||||||
|
line-height: $line-height-base * 2;
|
||||||
|
|
||||||
// Small
|
// Small
|
||||||
small {
|
small {
|
||||||
font-size: $line-height-base * .75;
|
|
||||||
color: $gray-light;
|
color: $gray-light;
|
||||||
|
font-size: $line-height-base * .75;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,16 +48,16 @@ textarea {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.input-group {
|
.input-group {
|
||||||
|
overflow: hidden;
|
||||||
border-top: $input-border-width solid $input-border-color;
|
border-top: $input-border-width solid $input-border-color;
|
||||||
border-bottom: $input-border-width solid $input-border-color;
|
border-bottom: $input-border-width solid $input-border-color;
|
||||||
background-color: $input-bg;
|
background-color: $input-bg;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
.content-padded > .input-group,
|
.content-padded > .input-group,
|
||||||
.input-group.inset {
|
.input-group.inset {
|
||||||
border-left: $input-border-width solid $input-border-color;
|
|
||||||
border-right: $input-border-width solid $input-border-color;
|
|
||||||
@include border-radius($input-border-radius);
|
@include border-radius($input-border-radius);
|
||||||
|
border-right: $input-border-width solid $input-border-color;
|
||||||
|
border-left: $input-border-width solid $input-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group .input-wrapper + .input-wrapper {
|
.input-group .input-wrapper + .input-wrapper {
|
||||||
@ -70,14 +70,14 @@ textarea {
|
|||||||
|
|
||||||
.input-wrapper {
|
.input-wrapper {
|
||||||
display: block;
|
display: block;
|
||||||
padding: 6px 8px 5px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
padding: 6px 8px 5px;
|
||||||
|
|
||||||
input {
|
input {
|
||||||
background-color: transparent;
|
|
||||||
margin: 0;
|
|
||||||
-webkit-appearance: none;
|
|
||||||
@include border-radius(0);
|
@include border-radius(0);
|
||||||
|
margin: 0;
|
||||||
|
background-color: transparent;
|
||||||
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-label {
|
.input-label {
|
||||||
@ -88,24 +88,24 @@ textarea {
|
|||||||
|
|
||||||
.input-group.stacked-label,
|
.input-group.stacked-label,
|
||||||
.input-group.stacked-label .input-wrapper {
|
.input-group.stacked-label .input-wrapper {
|
||||||
background-color: transparent;
|
|
||||||
border: 0;
|
border: 0;
|
||||||
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-group.stacked-label input {
|
.input-group.stacked-label input {
|
||||||
|
@include border-radius($input-border-radius);
|
||||||
|
overflow: hidden;
|
||||||
|
padding: 4px 8px 3px;
|
||||||
border: $input-border-width solid $input-border-color;
|
border: $input-border-width solid $input-border-color;
|
||||||
background-color: $input-bg;
|
background-color: $input-bg;
|
||||||
padding: 4px 8px 3px;
|
|
||||||
overflow: hidden;
|
|
||||||
@include border-radius($input-border-radius);
|
|
||||||
}
|
}
|
||||||
.input-wrapper.row {
|
.input-wrapper.row {
|
||||||
margin-left: 0;
|
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
|
||||||
[class*='col-'] {
|
[class*='col-'] {
|
||||||
padding-left: 0;
|
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,10 +133,10 @@ input[type="color"],
|
|||||||
.uneditable-input {
|
.uneditable-input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: $line-height-computed + $font-size-base;
|
height: $line-height-computed + $font-size-base;
|
||||||
font-size: $font-size-base;
|
|
||||||
line-height: $line-height-computed;
|
|
||||||
color: $gray;
|
color: $gray;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
font-size: $font-size-base;
|
||||||
|
line-height: $line-height-computed;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
@ -245,8 +245,8 @@ textarea[disabled],
|
|||||||
input[readonly],
|
input[readonly],
|
||||||
select[readonly],
|
select[readonly],
|
||||||
textarea[readonly] {
|
textarea[readonly] {
|
||||||
cursor: not-allowed;
|
|
||||||
background-color: $input-bg-disabled;
|
background-color: $input-bg-disabled;
|
||||||
|
cursor: not-allowed;
|
||||||
}
|
}
|
||||||
// Explicitly reset the colors here
|
// Explicitly reset the colors here
|
||||||
input[type="radio"][disabled],
|
input[type="radio"][disabled],
|
||||||
|
|||||||
@ -63,11 +63,11 @@
|
|||||||
.col-lg-11,
|
.col-lg-11,
|
||||||
.col-lg-12 {
|
.col-lg-12 {
|
||||||
position: relative;
|
position: relative;
|
||||||
// Prevent columns from collapsing when empty
|
padding-right: ($grid-gutter-width / 2);
|
||||||
min-height: 1px;
|
|
||||||
// Inner gutter via padding
|
// Inner gutter via padding
|
||||||
padding-left: ($grid-gutter-width / 2);
|
padding-left: ($grid-gutter-width / 2);
|
||||||
padding-right: ($grid-gutter-width / 2);
|
// Prevent columns from collapsing when empty
|
||||||
|
min-height: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -10,9 +10,9 @@
|
|||||||
.list-item {
|
.list-item {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 15px 15px;
|
|
||||||
// Place the border on the list items and negative margin up for better styling
|
// Place the border on the list items and negative margin up for better styling
|
||||||
margin-bottom: -1px;
|
margin-bottom: -1px;
|
||||||
|
padding: 15px 15px;
|
||||||
|
|
||||||
//background-color: $list-group-bg;
|
//background-color: $list-group-bg;
|
||||||
border: $list-item-border;
|
border: $list-item-border;
|
||||||
@ -75,10 +75,10 @@ a.list-item {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.list-divider {
|
.list-divider {
|
||||||
|
padding: 5px 15px;
|
||||||
background-color: $list-divider-bg;
|
background-color: $list-divider-bg;
|
||||||
color: $list-divider-color;
|
color: $list-divider-color;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 5px 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom content options
|
// Custom content options
|
||||||
|
|||||||
@ -3,18 +3,18 @@
|
|||||||
// Author: Adam Bradley <adam@drifty.com>
|
// Author: Adam Bradley <adam@drifty.com>
|
||||||
|
|
||||||
.menu {
|
.menu {
|
||||||
min-height: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
width: $menu-width;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
|
|
||||||
background-color: #fff;
|
|
||||||
|
|
||||||
// has to be scroll, not auto
|
// has to be scroll, not auto
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
min-height: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
width: $menu-width;
|
||||||
|
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
-webkit-overflow-scrolling: touch;
|
-webkit-overflow-scrolling: touch;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,8 +9,8 @@
|
|||||||
}
|
}
|
||||||
.tab-item {
|
.tab-item {
|
||||||
a {
|
a {
|
||||||
font-family: $light-sans-font-family;
|
|
||||||
font-weight: 200;
|
font-weight: 200;
|
||||||
|
font-family: $light-sans-font-family;
|
||||||
|
|
||||||
.active, &:active {
|
.active, &:active {
|
||||||
//box-shadow: inset 0 0 10px rgba(0, 0, 0, .12);
|
//box-shadow: inset 0 0 10px rgba(0, 0, 0, .12);
|
||||||
@ -22,29 +22,29 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.tabs-inner {
|
.tabs-inner {
|
||||||
|
@include box-orient(horizontal);
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: box;
|
display: box;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
list-style: none;
|
list-style: none;
|
||||||
@include box-orient(horizontal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Navigational tab */
|
/* Navigational tab */
|
||||||
.tab-item {
|
.tab-item {
|
||||||
height: 100%;
|
|
||||||
text-align: center;
|
|
||||||
box-sizing: border-box;
|
|
||||||
|
|
||||||
@include box-flex(1);
|
@include box-flex(1);
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
// Required to force box elements to be the same size;
|
// Required to force box elements to be the same size;
|
||||||
width: 0;
|
width: 0;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration: none;
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,7 +63,7 @@
|
|||||||
/* Label for tab */
|
/* Label for tab */
|
||||||
.tab-label {
|
.tab-label {
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
font-size: 10px;
|
|
||||||
font-weight: bold;
|
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user