1
0
mirror of https://github.com/danbee/tube-status-server synced 2025-03-04 08:39:12 +00:00

Moved much into bourbon-mobile.

This commit is contained in:
Dan Barber 2013-02-11 11:14:02 +00:00
parent 39ae451ff0
commit edc1b4afaf
2 changed files with 69 additions and 96 deletions

View File

@ -19,7 +19,7 @@
Instead of a list of all class selectors, Instead of a list of all class selectors,
you can use the generic selector below, but it's slower: you can use the generic selector below, but it's slower:
[class*="icon-"]:before { [class*="icon-"]:before {
*/ */
.icon-repeat:before, .icon-time:before, .icon-glass:before { .icon-repeat:before, .icon-time:before, .icon-glass:before {
font-family: 'fontawesome'; font-family: 'fontawesome';
speak: none; speak: none;
@ -44,13 +44,6 @@ you can use the generic selector below, but it's slower:
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; } box-sizing: border-box; }
a {
text-decoration: none; }
body {
margin: 0;
font-family: "Helvetica Neue", "Arial", sans-serif; }
#loader { #loader {
position: fixed; position: fixed;
top: 45%; top: 45%;
@ -63,54 +56,64 @@ body {
opacity: 0.7; opacity: 0.7;
display: none; } display: none; }
header { .header, header {
position: fixed; position: fixed;
width: 100%; width: 100%;
-webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
color: white;
height: 2.5em;
padding-top: 0.45em; }
.header h1, header h1 {
text-align: center;
font-size: 1.3em;
font-weight: normal;
text-shadow: 0 0 4px rgba(0, 0, 0, 0.4); }
a {
text-decoration: none; }
body {
margin: 0;
font-family: "Helvetica Neue", "Arial", sans-serif; }
header {
background: #0019a8; background: #0019a8;
border-bottom: 1px solid #000e5b;
background-color: #758aff; background-color: #758aff;
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #758aff), color-stop(100%, #00158e)); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #758aff), color-stop(100%, #00158e));
background-image: -webkit-linear-gradient(top, #758aff, #00158e); background-image: -webkit-linear-gradient(top, #758aff, #00158e);
background-image: -moz-linear-gradient(top, #758aff, #00158e); background-image: -moz-linear-gradient(top, #758aff, #00158e);
background-image: -ms-linear-gradient(top, #758aff, #00158e); background-image: -ms-linear-gradient(top, #758aff, #00158e);
background-image: -o-linear-gradient(top, #758aff, #00158e); background-image: -o-linear-gradient(top, #758aff, #00158e);
background-image: linear-gradient(top, #758aff, #00158e); background-image: linear-gradient(top, #758aff, #00158e); }
-webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.5); #refresh {
position: absolute;
right: 1em;
top: 0.25em;
border-radius: 0.3em;
border: 1px solid rgba(0, 0, 0, 0.4);
background: rgba(255, 255, 255, 0.1);
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
padding: 0.3em 0.7em 0.4em;
color: white; color: white;
height: 2.5em; font-family: "fontawesome";
padding-top: 0.45em; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); }
border-bottom: 1px solid #0f0f64; } #refresh:hover, #refresh:focus {
header h1 { background: rgba(255, 255, 255, 0.2); }
text-align: center; #refresh:active {
font-size: 1.3em; padding: 0.4em 0.7em 0.3em;
font-weight: normal; background-color: rgba(255, 255, 255, 0);
text-shadow: 0 0 4px rgba(0, 0, 0, 0.4); } background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 0.15)));
header #refresh { background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
position: absolute; background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
right: 1em; background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
top: 0.25em; background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
border-radius: 0.3em; background-image: linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
border: 1px solid rgba(0, 0, 0, 0.4); -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(0, 0, 0, 0.4);
background: rgba(255, 255, 255, 0.1); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(0, 0, 0, 0.4); }
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.4);
padding: 0.3em 0.7em 0.4em;
color: white;
font-family: "fontawesome";
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5); }
header #refresh:hover, header #refresh:focus {
background: rgba(255, 255, 255, 0.2); }
header #refresh:active {
padding: 0.4em 0.7em 0.3em;
background-color: rgba(255, 255, 255, 0);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 0.15)));
background-image: -webkit-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
background-image: -moz-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
background-image: -ms-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
background-image: -o-linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
background-image: linear-gradient(top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(0, 0, 0, 0.4);
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(0, 0, 0, 0.4); }
footer { footer {
position: fixed; position: fixed;

View File

@ -3,11 +3,7 @@
$header-color: rgb(0, 25, 168); $header-color: rgb(0, 25, 168);
@import "bourbon/bourbon"; @import "bourbon/bourbon";
* { @import "bourbon-mobile/bourbon-mobile";
margin: 0;
padding: 0;
@include box-sizing(border-box);
}
a { a {
text-decoration: none; text-decoration: none;
} }
@ -16,55 +12,29 @@ body {
font-family: "Helvetica Neue", "Arial", sans-serif; font-family: "Helvetica Neue", "Arial", sans-serif;
} }
#loader { header {
position: fixed; @include header(rgb(0, 25, 168));
top: 45%;
left: 50%;
width: 52px;
height: 52px;
margin: -26px 0 0 -26px;
background: black url(../images/loader.gif) center center no-repeat;
border-radius: 26px;
opacity: 0.7;
display: none;
} }
header { #refresh {
position: fixed; position: absolute;
width: 100%; right: 1em;
background: rgb(0, 25, 168); top: 0.25em;
@include linear-gradient(lighten($header-color, 40%), darken($header-color, 5%)); border-radius: 0.3em;
@include box-shadow(0 2px 3px rgba(0, 0, 0, 0.5)); border: 1px solid rgba(0, 0, 0, 0.4);
background: rgba(255, 255, 255, 0.1);
@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.4));
padding: 0.3em 0.7em 0.4em;
color: white; color: white;
height: 2.5em; font-family: "fontawesome";
padding-top: 0.45em; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
border-bottom: 1px solid #0f0f64; &:hover, &:focus {
h1 { background: rgba(255, 255, 255, 0.2);
text-align: center;
font-size: 1.3em;
font-weight: normal;
text-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
} }
#refresh { &:active {
position: absolute; padding: 0.4em 0.7em 0.3em;
right: 1em; @include linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
top: 0.25em; @include box-shadow(0 1px 1px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(0, 0, 0, 0.4));
border-radius: 0.3em;
border: 1px solid rgba(0, 0, 0, 0.4);
background: rgba(255, 255, 255, 0.1);
@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.4));
padding: 0.3em 0.7em 0.4em;
color: white;
font-family: "fontawesome";
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
&:hover, &:focus {
background: rgba(255, 255, 255, 0.2);
}
&:active {
padding: 0.4em 0.7em 0.3em;
@include linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.15));
@include box-shadow(0 1px 1px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(0, 0, 0, 0.4));
}
} }
} }