cirrus-bootstrap-css
Version:
customized bootstrap css for the cirrus project
399 lines (325 loc) • 8.54 kB
text/less
/* -------------------------------------------------------------------------
Style Guide Boilerplate v2.0.1
Repo: https://github.com/bjankord/Style-Guide-Boilerplate
Author: Brett Jankord
License: MIT
---------------------------------------------------------------------------- */
// Core variables and mixins
@import "variables.less";
@import "mixins.less";
/* -------------------------------------------------------------------------
Layout
---------------------------------------------------------------------------- */
body {margin: 0;
padding-top: 50px;}
/* -------------------------------------------------------------------------
Utility Classes
---------------------------------------------------------------------------- */
.sg-container {
overflow: hidden;
padding: 16px 24px; /* For older browsers */
padding: 1rem 1.5rem;
}
.sg-animated {
-webkit-transition: all 0.6s ease-out;
-moz-transition: all 0.6s ease-out;
-ms-transition: all 0.6s ease-out;
-o-transition: all 0.6s ease-out;
transition: all 0.6s ease-out;
}
/* -------------------------------------------------------------------------
Modules
---------------------------------------------------------------------------- */
/* Headings
---------------------------------------------------------------------------- */
.sg-h1,
.sg-h2,
.sg-h3 {
border-bottom: 1px solid #ddd;
//font-family: sans-serif;
font-weight: normal;
margin-bottom: 1em;
margin-top: 0;
}
.sg-h1 {
font-weight: bold;
padding-bottom: .2em;
margin-top: 1.5em;
}
.sg-h2 {
margin-bottom: .5em;
padding-bottom: .5em;
text-transform: capitalize;
margin-top: 1.5em;
}
.sg-about{
margin-top: 2em;
}
/* Buttons
---------------------------------------------------------------------------- */
.sg-btn {
float: left;
text-shadow: none;
}
.sg-btn--top {
float: right;
}
ul.scroll-menu {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
-moz-overflow-scrolling: touch;
-ms-overflow-scrolling: touch;
-o-overflow-scrolling: touch;
overflow-scrolling: touch;
width: 100%;
max-height: 500px;
}
.dropdown-header{
text-transform: uppercase;
}
.sg-btn--select {
border-radius: 0 0.3em;
position: absolute;
right: 5px;
top: 14px;
}
.sg-btn--select.is-active:hover:after{
background:#111;
background:rgba(0,0,0,.8);
border-radius:5px;
top:45px;
color:#fff;
content:"Selected code ready to be copied";
font-size: .8em;
display:block;
right:5px;
padding:5px 15px;
position:absolute;
white-space:nowrap;
z-index:98
}
.sg-btn--select.is-active:hover:before{
border:solid;
border-color:#111 transparent;
border-width:0 6px 6px 6px;
top:40px;
content:"";
display:block;
left:75%;
position:absolute;
z-index:99
}
/* Hide specific buttons for use with JS */
.sg-btn--source{
clear: both;
}
.sg-btn--source,
.sg-btn--select {
display: none;
}
/* Show specific buttons if JS enabled */
.js .sg-btn--source,
.js .sg-btn--select {
display: block;
}
/* Hide specific buttons conditionally */
.operamini .sg-btn--source,
.legacy .sg-btn--source {
display: none;
}
/* Sections
---------------------------------------------------------------------------- */
.sg-section {
margin-bottom: 32px; /* For older browsers */
margin-bottom: 3rem;
overflow: hidden;
}
.sg-anchor {
display: block;
padding-top: 1em;
}
/* Colors
---------------------------------------------------------------------------- */
.sg-color {
background: #fff;
border: 1px solid lighten(@gray-light, 20%);
display: inline-block;
height: 80px;
margin: 0 .5em .5em 0;
padding: 5px;
position: relative;
width: 100px;
}
.sg-lg{
width: 140px;
height: 100px;
}
.sg-color-swatch {
display: block;
height: 100%;
width: 100%;
}
.sg-color-swatch span {
background: #000;
background: rgba(0,0,0,.7);
bottom: 5px;
color: #fff;
font-size: .8em;
margin: 0;
opacity: 0;
padding: 5px 0;
position: absolute;
text-align: center;
text-transform: uppercase;
width: 88px;
}
.sg-lg .sg-color-swatch span{
width: 128px;
}
.sg-color-swatch:hover span {
opacity: 1;
}
/* -------------------------------------------------------------------------
Colors
---------------------------------------------------------------------------- */
.sg-link-color .sg-color-swatch {background:@link-color;}
//main
.sg-bg-dark-1 .sg-color-swatch {background: @bg-dark-1;}
.sg-bg-dark-2 .sg-color-swatch {background: @bg-dark-2;}
.sg-bg-light-1 .sg-color-swatch {background: @bg-light-1;}
.sg-bg-light-2 .sg-color-swatch {background: @bg-light-2;}
.sg-type-dark .sg-color-swatch { background: @type-dark; }
.sg-type-med .sg-color-swatch { background: @type-med; }
.sg-type-light .sg-color-swatch { background: @type-light; }
//risk
.sg-low-risk .sg-color-swatch { background: @risk-low; }
.sg-mod-risk .sg-color-swatch { background: @risk-mod; }
.sg-high-risk .sg-color-swatch { background: @risk-high; }
//charts
.sg-chart-1 .sg-color-swatch { background: @chart-1; }
.sg-chart-2 .sg-color-swatch { background: @chart-2; }
.sg-chart-3 .sg-color-swatch { background: @chart-3; }
.sg-chart-4 .sg-color-swatch { background: @chart-4; }
.sg-chart-5 .sg-color-swatch { background: @chart-5; }
.sg-brand-success .sg-color-swatch {background: @brand-success;}
.sg-brand-info .sg-color-swatch {background: @brand-info;}
.sg-brand-warning .sg-color-swatch {background: @brand-warning;}
.sg-brand-danger .sg-color-swatch {background: @brand-danger;}
/* Fonts
---------------------------------------------------------------------------- */
.sg-font {
font-size: 1.8em;
padding: 0 0 .2em 0;
}
.sg-font-primary {
font-family: @font-family-base;
}
.sg-font-secondary {
font-family: @font-family-serif;
}
/* Grid
---------------------------------------------------------------------------- */
.show-grid {
padding: .5em 0;
div{ background-color: @gray-lighter;
border: 1px solid @gray-light;
padding: .5em}
}
/* Markup
---------------------------------------------------------------------------- */
.sg-markup {}
.sg-markup-controls {
overflow: hidden;
padding-top: 1.5em;
clear: both;
}
.sg-source {
position: relative;
}
.sg-source pre {
background: #333;
border-radius: .5em;
border: 1px solid #ddd;
color: #fff;
overflow-x: scroll;
padding: .5em .3em;
}
.sg-source pre code {
background: transparent;
}
.js .sg-source {
max-height: 0;
overflow: hidden;
}
.js .sg-source.is-active,
.operamini .sg-source,
.legacy .sg-source {
max-height: 2400px;
}
/* -------------------------------------------------------------------------
Prettyprint
---------------------------------------------------------------------------- */
.pln {color: #fff} /* plain text */
@media screen {
.str,
.string {color: #E6DB74;} /* string content */
.kwd,
.keyword {color: #66D9EF;} /* a keyword */
.com,
.comment {color: #75715E;} /* a comment */
.typ {color: #A6E22E;} /* a type name */
.lit,
.number {color: #AE81FF;} /* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
/* .pun, .opn, .clo { color: #660 } */
.tag {color: #F92672;} /* a markup tag name */
.atn {color: #A6E22E;} /* a markup attribute name */
.atv {color: #E6DB74;} /* a markup attribute value */
/*.dec, .var { color: #606 }*/ /* a declaration; a variable name */
.fun {color: #FF0000;} /* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print, projection {
.str {color: #060}
.kwd {color: #006; font-weight: bold }
.com {color: #600; font-style: italic }
.typ {color: #404; font-weight: bold }
.lit {color: #044}
.pun,
.opn,
.clo {color: #440}
.tag {color: #006; font-weight: bold }
.atn {color: #404}
.atv {color: #060}
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
border-left:1px solid #444;
margin: 0 0 0 3.3em; /* IE indents via margin-left */
padding: 0;
}
ol.linenums li {
color: #bebec5;
line-height: 1.5;
padding-left: .8em;
}
/* -------------------------------------------------------------------------
Legacy IE
---------------------------------------------------------------------------- */
/**
* IE 7 Fixes
*/
.sg-color {
*display: inline;
zoom: 1;
}
/* End IE 7 Fixes */
/**
* IE 6 Fixes
*/
pre{
_white-space: pre;
_white-space: pre-wrap;
_word-wrap: break-word;
}
/* End IE 6 Fixes */