re-order base css

This commit is contained in:
Adam Bradley
2013-08-26 15:46:03 -05:00
parent a3839beae1
commit 8a8dab2598
8 changed files with 156 additions and 134 deletions

263
dist/framework.css vendored
View File

@ -1,27 +1,4 @@
@charset "UTF-8"; @charset "UTF-8";
.alert {
padding: 8px 35px 8px 14px; }
.alert h4 {
margin: 0; }
.alert .close {
position: relative;
top: -2px;
right: -21px;
line-height: 1.42857; }
.alert-block {
padding-top: 14px;
padding-bottom: 14px; }
.alert-block > p,
.alert-block > ul {
margin-bottom: 0; }
.alert-block p + p {
margin-top: 5px; }
html { html {
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%; } -ms-text-size-adjust: 100%; }
@ -32,8 +9,7 @@ body {
right: 0; right: 0;
bottom: 0; bottom: 0;
left: 0; left: 0;
margin: 0; margin: 0; }
font: 14px/1.25 "Helvetica Neue", sans-serif; }
a { a {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0); } -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
@ -59,7 +35,6 @@ main {
bottom: 0; bottom: 0;
left: 0; left: 0;
overflow: auto; overflow: auto;
background-color: #fff;
-webkit-overflow-scrolling: touch; } -webkit-overflow-scrolling: touch; }
/* 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
@ -71,59 +46,35 @@ main > * {
.content-padded { .content-padded {
padding: 10px; } padding: 10px; }
.ptr-capable { .alert {
-webkit-user-drag: element; } padding: 8px 35px 8px 14px; }
.ptr-content { .alert h4 {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
height: 0; }
.ptr-content .pulling {
display: none; }
.ptr-content .refreshing {
display: none; }
/* the page content the panel should move around */
.panel-page-container {
left: 100px; }
/* the container of panel content to show */
.panel-content {
width: 17em;
min-height: 100%;
max-height: 100%;
border-width: 0;
position: absolute;
top: 0;
display: block; }
.panel-reveal {
z-index: 0;
left: -17em; }
.button {
position: relative;
display: block;
vertical-align: middle;
text-align: center;
cursor: pointer;
margin: 0; } margin: 0; }
.button.button-inline {
display: inline-block; } .alert .close {
.button.button-borderless { position: relative;
border: none; } top: -2px;
right: -21px;
line-height: 1.42857; }
.alert-block {
padding-top: 14px;
padding-bottom: 14px; }
.alert-block > p,
.alert-block > ul {
margin-bottom: 0; }
.alert-block p + p {
margin-top: 5px; }
.bar { .bar {
position: fixed; position: fixed;
right: 0; right: 0;
left: 0; left: 0;
z-index: 10; z-index: 10;
width: 100%;
display: -webkit-box; display: -webkit-box;
display: box; display: box;
-webkit-box-orient: horizontal; -webkit-box-orient: horizontal;
@ -177,52 +128,17 @@ main > * {
.has-footer { .has-footer {
bottom: 44px; } bottom: 44px; }
/* Bar docked to bottom used for primary app navigation */ .button {
.tabs { position: relative;
right: 0; display: block;
left: 0; vertical-align: middle;
bottom: 0;
height: 50px;
padding: 0;
box-sizing: border-box;
position: fixed; }
.tabs-inner {
display: -webkit-box;
display: box;
height: 100%;
list-style: none;
-webkit-box-orient: horizontal;
box-orient: horizontal; }
/* Navigational tab */
.tab-item {
height: 100%;
text-align: center; text-align: center;
box-sizing: border-box; cursor: pointer;
-webkit-box-flex: 1; margin: 0; }
box-flex: 1; } .button.button-inline {
.tab-item a { display: inline-block; }
text-decoration: none; .button.button-borderless {
display: block; border: none; }
width: 100%;
height: 100%; }
/* Active state for tab */
.tab-item.active, .tab-item:active {
background-color: rgba(0, 0, 0, 0.2); }
/* Icon for tab */
.tab-item i {
display: block;
margin: 0 auto; }
/* Label for tab */
.tab-label {
margin-top: 1px;
font-size: 10px;
font-weight: bold;
color: #fff; }
.button-group { .button-group {
position: relative; position: relative;
@ -309,6 +225,97 @@ a.list-item {
margin-bottom: 0; margin-bottom: 0;
line-height: 1.3; } line-height: 1.3; }
/* the page content the panel should move around */
.panel-page-container {
left: 100px; }
/* the container of panel content to show */
.panel-content {
width: 17em;
min-height: 100%;
max-height: 100%;
border-width: 0;
position: absolute;
top: 0;
display: block; }
.panel-reveal {
z-index: 0;
left: -17em; }
.ptr-capable {
-webkit-user-drag: element; }
.ptr-content {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
height: 0; }
.ptr-content .pulling {
display: none; }
.ptr-content .refreshing {
display: none; }
/* Bar docked to bottom used for primary app navigation */
.tabs {
right: 0;
left: 0;
bottom: 0;
height: 50px;
padding: 0;
box-sizing: border-box;
position: fixed; }
.tabs-inner {
display: -webkit-box;
display: box;
height: 100%;
list-style: none;
-webkit-box-orient: horizontal;
box-orient: horizontal; }
/* Navigational tab */
.tab-item {
height: 100%;
text-align: center;
box-sizing: border-box;
-webkit-box-flex: 1;
box-flex: 1; }
.tab-item a {
text-decoration: none;
display: block;
width: 100%;
height: 100%; }
/* Active state for tab */
.tab-item.active, .tab-item:active {
background-color: rgba(0, 0, 0, 0.2); }
/* Icon for tab */
.tab-item i {
display: block;
margin: 0 auto; }
/* Label for tab */
.tab-label {
margin-top: 1px;
font-size: 10px;
font-weight: bold;
color: #fff; }
body {
font-size: 14px;
line-height: 1.25;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
main {
background-color: white; }
.alert { .alert {
margin-bottom: 1.42857; margin-bottom: 1.42857;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
@ -408,16 +415,6 @@ a.list-item {
.bar.bar-dark .tab-item a { .bar.bar-dark .tab-item a {
color: white; } color: white; }
.tabs {
font-size: 16px;
height: 60px; }
.tab-item a {
font-family: "Helvetica Neue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 200; }
.tab-item i {
font-size: 25px; }
.button { .button {
color: #222222; color: #222222;
border-radius: 2px; border-radius: 2px;
@ -529,8 +526,18 @@ a.list-item {
a.list-item { a.list-item {
color: #333333; } color: #333333; }
.panel-content {
background: #eeeeee; }
.ptr-content { .ptr-content {
background: #eee; } background: #eee; }
.panel-content { .tabs {
background: #eeeeee; } font-size: 16px;
height: 60px; }
.tab-item a {
font-family: "Helvetica Neue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: 200; }
.tab-item i {
font-size: 25px; }

View File

@ -6,9 +6,10 @@
"framework/structure-variables", "framework/structure-variables",
"framework/structure/mixins", "framework/structure/mixins",
"framework/structure/base",
"framework/structure/alerts", "framework/structure/alerts",
"framework/structure/bar", "framework/structure/bar",
"framework/structure/base",
"framework/structure/button", "framework/structure/button",
"framework/structure/button-group", "framework/structure/button-group",
"framework/structure/form", "framework/structure/form",

View File

@ -5,6 +5,8 @@
@import @import
"framework/theme-variables", "framework/theme-variables",
"framework/theme/base",
"framework/theme/alerts", "framework/theme/alerts",
"framework/theme/bar", "framework/theme/bar",
"framework/theme/button", "framework/theme/button",

View File

@ -1,7 +1,6 @@
$baseFontSize: 14px !default; $baseFontSize: 14px !default;
$baseFontFamily: $sansFontFamily;
$fontSizeLarge: ceil($baseFontSize * 1.25); $fontSizeLarge: ceil($baseFontSize * 1.25);

View File

@ -1,9 +1,14 @@
// Fonts // Fonts
$sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default; $sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
$lightSansFontFamily: "Helvetica Neue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif !default; $lightSansFontFamily: "Helvetica Neue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, sans-serif !default;
$serifFontFamily: Georgia, "Times New Roman", Times, serif !default; $serifFontFamily: Georgia, "Times New Roman", Times, serif !default;
$monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace !default; $monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace !default;
// Base
$baseFontFamily: $sansFontFamily;
$baseBackgroundColor: #fff;
// Typography // Typography
$lightColor: #fff; $lightColor: #fff;

View File

@ -5,6 +5,7 @@
right: 0; right: 0;
left: 0; left: 0;
z-index: 10; z-index: 10;
width: 100%;
display: -webkit-box; display: -webkit-box;
display: box; display: box;

View File

@ -12,7 +12,6 @@ body {
bottom: 0; bottom: 0;
left: 0; left: 0;
margin: 0; margin: 0;
font: 14px/1.25 "Helvetica Neue", sans-serif;
} }
// Remove tap highlight color on Safari // Remove tap highlight color on Safari
@ -40,8 +39,6 @@ main {
bottom: 0; bottom: 0;
left: 0; left: 0;
overflow: auto; overflow: auto;
background-color: #fff;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }

View File

@ -0,0 +1,10 @@
body {
font-size: 14px;
line-height: 1.25;
font-family: $baseFontFamily;
}
main {
background-color: $baseBackgroundColor;
}