app/assets/stylesheets/bootstrap_and_overrides.css.scss
@import "bootstrap";
// Font Awesome - http://fortawesome.github.com/Font-Awesome
@import "font-awesome";
/* Variables, mixins, etc. */
$grayMediumLight: hsl(0, 0%, 92%);
@mixin heading($font-size) {
font-size: $font-size;
letter-spacing: -2px;
margin-bottom: 30px;
text-align: center;
}
@mixin box_sizing {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* Universal */
html {
// How content overflowing its box is handled
overflow-y: scroll;
}
body {
// accommodate the “Bootstrap black bar” heading created by
// the navbar-fixed-top class in the header tag
padding-top: 60px;
}
section {
overflow: auto;
}
textarea {
// Automatically resizes text areas based on amount of text
resize: vertical;
}
/* Typography */
h1, h2, h3, h4, h5, h6 {
line-height: 1;
}
h1 {
@include heading(3em);
}
h2 {
@include heading(1.7em);
font-weight: normal;
color: $grayLight;
}
p {
font-size: 1.1em;
line-height: 1.7em;
}
/* Header */
#logo {
float: left;
margin-right: 10px;
font-size: 1.7em;
color: $grayLight;
text-transform: uppercase;
letter-spacing: -1px;
padding-top: 9px;
font-weight: bold;
line-height: 1;
&:hover {
color: $white;
text-decoration: none;
}
}
/* Sidebar */
aside {
section {
padding: 10px 0;
border-top: 1px solid $grayLighter;
&:first-child {
border: 0;
padding-top: 0;
}
span {
display: block;
margin-bottom: 3px;
line-height: 1;
}
h1 {
font-size: 1.4em;
text-align: left;
letter-spacing: -1px;
margin-bottom: 3px;
margin-top: 0px;
}
}
}
.stats {
overflow: auto;
a {
float: left;
padding: 0 10px;
border-left: 1px solid $grayLighter;
color: gray;
&:first-child {
padding-left: 0;
border: 0;
}
&:hover {
text-decoration: none;
color: $blue;
}
}
strong {
display: block;
}
}
/* Forms */
input, textarea, select, .uneditable-input {
border: 1px solid hsl(0, 0%, 73%);
width: 100%;
padding: 10px;
margin-bottom: 15px;
// @include box-sizing;
}
input {
height: auto !important;
}
textarea, select, .uneditable-input {
@include box-sizing;
}
#error_explanation {
color: hsl(0, 100%, 50%);
ul {
list-style: none;
margin: 0 0 18px 0;
}
}
.field_with_errors {
@extend .control-group;
@extend .error;
}
/* Footer */
footer {
margin-top: 45px;
padding-top: 5px;
border-top: 1px solid $grayMediumLight;
color: $grayLight;
a {
color: $gray;
&:hover {
color: $grayDarker;
}
}
small {
float: left;
}
ul {
float: right;
list-style: none;
li {
float: left;
margin-left: 10px;
}
}
}
/* Microposts */
.microposts {
list-style: none;
margin: 10px 0 0 0;
li {
padding: 10px 0;
border-top: 1px solid hsl(0, 0%, 91%)
}
}
.content, .best_in_place {
display: block;
@include box-sizing;
}
.timestamp {
color: $grayLight;
}
.gravatar {
float: left;
margin-right: 10px;
}
aside {
textarea {
height: 100px;
margin-bottom: 5px;
}
}
/* Micropost character countdown */
.countdown {
display: inline;
color: $grayLight;
float: right;
}
.overlimit {
color: $red;
}
.almostlimit {
color: hsl(360, 57%, 21%);
}
.nearlimit {
color: $gray;
}
/* Best in place */
// .purr {
// position: fixed;
// top: 30px;
// right: 100px;
// width: 250px;
// padding: 20px;
// background-color: #FCC;
// border: solid 2px #C66;
// &:first-letter { text-transform: uppercase; }
// }
/* Miscellaneous */
.debug_dump {
clear: both;
float: left;
width: 100%;
margin-top: 45px;
@include box-sizing;
}