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.
77 lines
1.6 KiB
77 lines
1.6 KiB
12 years ago
|
//
|
||
12 years ago
|
// Base styles
|
||
|
// --------------------------------------------------
|
||
12 years ago
|
|
||
12 years ago
|
// Use box sizing on all the things!
|
||
|
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
|
||
|
|
||
12 years ago
|
body {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
12 years ago
|
font-family: $font-family-default;
|
||
|
font-size: $font-size-default;
|
||
|
line-height: $line-height-default;
|
||
12 years ago
|
color: #000;
|
||
12 years ago
|
background-color: #fff;
|
||
|
}
|
||
|
|
||
12 years ago
|
// Universal link styling
|
||
12 years ago
|
a {
|
||
12 years ago
|
color: $primary-color;
|
||
12 years ago
|
text-decoration: none;
|
||
11 years ago
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); // Removes the dark touch outlines on links
|
||
11 years ago
|
|
||
|
&:active {
|
||
|
color: darken($primary-color, 10%);
|
||
|
}
|
||
12 years ago
|
}
|
||
12 years ago
|
strong {
|
||
|
font-weight: $font-weight;
|
||
|
}
|
||
12 years ago
|
|
||
12 years ago
|
// Wrapper to be used around all content not in .bar-title and .bar-tab
|
||
12 years ago
|
.content {
|
||
|
position: fixed;
|
||
|
top: 0;
|
||
|
right: 0;
|
||
|
bottom: 0;
|
||
|
left: 0;
|
||
|
overflow: auto;
|
||
11 years ago
|
background-color: #fff;
|
||
12 years ago
|
-webkit-overflow-scrolling: touch;
|
||
|
}
|
||
|
|
||
12 years ago
|
// Hack to force all relatively and absolutely positioned elements still render while scrolling
|
||
|
// Note: This is a bug for "-webkit-overflow-scrolling: touch"
|
||
12 years ago
|
.content > * {
|
||
|
-webkit-transform: translateZ(0px);
|
||
|
transform: translateZ(0px);
|
||
|
}
|
||
|
|
||
12 years ago
|
// Pad top/bottom of content so it doesn't hide behind .bar-title and .bar-tab.
|
||
|
// Note: For these to work, content must come after both bars in the markup
|
||
12 years ago
|
.bar-nav ~ .content {
|
||
11 years ago
|
padding-top: $bar-base-height;
|
||
12 years ago
|
}
|
||
|
.bar-tab ~ .content {
|
||
11 years ago
|
padding-bottom: $bar-tab-height;
|
||
12 years ago
|
}
|
||
|
.bar-header-secondary ~ .content {
|
||
11 years ago
|
padding-top: $bar-base-height*2;
|
||
12 years ago
|
}
|
||
11 years ago
|
|
||
|
// Utility classes
|
||
11 years ago
|
.container {
|
||
|
padding-right: 15px;
|
||
|
padding-left: 15px;
|
||
|
}
|
||
11 years ago
|
.pull-left {
|
||
|
float: left;
|
||
|
}
|
||
|
.pull-right {
|
||
|
float: right;
|
||
|
}
|