mirror of https://github.com/twbs/ratchet.git
Build mobile apps with simple HTML, CSS, and JS components.
http://goratchet.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
170 lines
3.0 KiB
170 lines
3.0 KiB
11 years ago
|
//
|
||
|
// Variable overrides
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
// Color overrides
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
// Main theme colors
|
||
|
$primary-color: #1eb0e9;
|
||
|
$chrome-color: rgba(30,176,233,.98);
|
||
|
|
||
|
// Action colors
|
||
|
$default-color: rgba(0, 0, 0, .3);
|
||
|
$positive-color: #34ba15;
|
||
|
$negative-color: #e71e1e;
|
||
|
|
||
|
|
||
|
// Bars
|
||
|
// --------------------------------------------------
|
||
|
[class*="bar-"] {
|
||
|
background-color: $chrome-color;
|
||
|
|
||
|
&.bar-standard,
|
||
|
&.bar-footer-secondary {
|
||
|
background-color: rgba(238,238,238,.98);
|
||
|
}
|
||
|
}
|
||
|
.title {
|
||
|
color: #fff;
|
||
|
}
|
||
|
.tab-label {
|
||
|
color: rgba(255,255,255,.5);
|
||
|
}
|
||
|
.tab-item.active .tab-label {
|
||
|
color: rgba(255,255,255,1);
|
||
|
}
|
||
|
|
||
|
// Buttons
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
[class*="button"] {
|
||
|
color: $default-color;
|
||
|
border-color: $default-color;
|
||
|
|
||
|
&:active,
|
||
|
&.active,
|
||
|
&.button-filled {
|
||
|
background-color: $default-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Primary button (Default color is blue)
|
||
|
.button-primary {
|
||
|
color: $primary-color;
|
||
|
border-color: $primary-color;
|
||
|
|
||
|
&:active,
|
||
|
&.active,
|
||
|
&.button-filled {
|
||
|
background-color: $primary-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Positive button (Default color is green)
|
||
|
.button-positive {
|
||
|
color: $positive-color;
|
||
|
border-color: $positive-color;
|
||
|
|
||
|
&:active,
|
||
|
&.active,
|
||
|
&.button-filled {
|
||
|
background-color: $positive-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Negative button (Default color is red)
|
||
|
.button-negative {
|
||
|
color: $negative-color;
|
||
|
border-color: $negative-color;
|
||
|
|
||
|
&:active,
|
||
|
&.active,
|
||
|
&.button-filled {
|
||
|
background-color: $negative-color;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.bar-title {
|
||
|
|
||
|
// Generic style for all buttons in .bar-title
|
||
|
[class*="button"] {
|
||
|
color: #fff;
|
||
|
}
|
||
|
|
||
|
// Override standard button active states
|
||
|
.button:active,
|
||
|
.button.active,
|
||
|
.button-prev:active,
|
||
|
.button-prev.active,
|
||
|
.button-next:active,
|
||
|
.button-next.active,
|
||
|
.button-primary:active,
|
||
|
.button-primary.active {
|
||
|
color: #fff;
|
||
|
}
|
||
|
|
||
|
|
||
|
// Directional buttons in nav bars
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
.button-prev:before,
|
||
|
.button-prev:after,
|
||
|
.button-next:before,
|
||
|
.button-next:after {
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
// Segmented controllers
|
||
|
// --------------------------------------------------
|
||
|
|
||
|
.segmented-controller {
|
||
|
border:-color $primary-color;
|
||
|
|
||
|
li {
|
||
|
border-color: $primary-color;
|
||
|
|
||
|
// Link that fills each section
|
||
|
> a {
|
||
|
color: $primary-color;
|
||
|
}
|
||
|
|
||
|
// Active segment of controller
|
||
|
&.active {
|
||
|
background-color: $primary-color;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Segmented controller in all bars
|
||
|
// --------------------------------------------------
|
||
|
.bar-title .segmented-controller {
|
||
|
border-color: #fff;
|
||
|
|
||
|
li {
|
||
|
border-color: #fff;
|
||
|
|
||
|
// Link that fills each section
|
||
|
> a {
|
||
|
color: #fff;
|
||
|
}
|
||
|
|
||
|
// Active segment of controller
|
||
|
&.active {
|
||
|
background-color: rgba(255,255,255,.4);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
// Forms
|
||
|
// --------------------------------------------------
|
||
|
// Fully round search input
|
||
|
input[type=search] {
|
||
|
color: #555;
|
||
|
background-color: rgba(0,0,0,.1);
|
||
|
border-radius: 17px;
|
||
|
}
|