ReUse Bootstrap plus some fixes

This commit is contained in:
LeoColomb 2014-02-16 12:43:16 +01:00
parent 817ac08091
commit 163dca128a
3 changed files with 581 additions and 515 deletions

View File

@ -12,6 +12,7 @@ a {
.kill-box-shadow; .kill-box-shadow;
background-color: @sidebar-hover; background-color: @sidebar-hover;
border: none; border: none;
.icon-bar { .icon-bar {
display: block; display: block;
width: 18px; width: 18px;
@ -21,9 +22,11 @@ a {
background-color: @dark; background-color: @dark;
.kill-box-shadow; .kill-box-shadow;
} }
&:hover { &:hover {
.kill-box-shadow; .kill-box-shadow;
background-color: @dark; background-color: @dark;
.icon-bar { .icon-bar {
background-color: @light; background-color: @light;
.kill-box-shadow; .kill-box-shadow;
@ -31,6 +34,7 @@ a {
} }
} }
} }
code { code {
color: @light; color: @light;
} }
@ -38,39 +42,44 @@ code {
//Navbar //Navbar
.navbar { .navbar {
.box-shadow(); .box-shadow();
z-index: 1;
margin-bottom: 0px; margin-bottom: 0px;
z-index: 200; z-index: 200;
.navbar-inner { .navbar-inner {
.kill-background-image; .kill-background-image;
background-color: @dark; background-color: @dark;
border-bottom: none; border-bottom: none;
padding: 6px 20px; padding: 6px 20px;
.brand { .brand {
color: @light; color: @light;
text-shadow: none; text-shadow: none;
.roboto-slab.bold; .roboto-slab.bold;
} }
.navbar-text { .navbar-text {
color: @light; color: @light;
a { a {
color: @light; color: @light;
} }
} }
@media (max-width: 767px) { @media (max-width: 767px) {
padding: 6px 10px; padding: 6px 10px; .navbar-text {
.navbar-text {
line-height: 16px; line-height: 16px;
margin: 12px 6px; margin: 12px 6px;
font-size: 12px; font-size: 12px;
} }
} }
} }
@media (min-width: 768px) and (max-width: 979px) { @media (min-width: 768px) and (max-width: 979px) {
&.navbar-fixed-top { &.navbar-fixed-top {
position: fixed; position: fixed;
} }
} }
@media (max-width: 767px) { @media (max-width: 767px) {
&.navbar-fixed-top { &.navbar-fixed-top {
margin-left: 0px; margin-left: 0px;
@ -83,6 +92,7 @@ code {
.nav.nav-list { .nav.nav-list {
padding-left: 0px; padding-left: 0px;
padding-right: 0px; padding-right: 0px;
li { li {
a { a {
margin: 0px; margin: 0px;
@ -92,30 +102,36 @@ code {
font-size: 15px; font-size: 15px;
text-shadow: none; text-shadow: none;
border-top: 1px solid @lines; border-top: 1px solid @lines;
&:hover { &:hover {
color: @dark; color: @dark;
text-shadow: none; text-shadow: none;
background-color: @sidebar-hover; background-color: @sidebar-hover;
} }
} }
&.active { &.active {
a { a {
background-color: @sidebar-hover; background-color: @sidebar-hover;
} }
} }
&.open { &.open {
> ul { > ul {
display: block; display: block;
} }
} }
&:last-child { &:last-child {
&.open { &.open {
//border-bottom: none; //border-bottom: none;
} }
} }
ul { ul {
display: none; display: none;
margin-left: 15px; margin-left: 15px;
li { li {
a { a {
.sans-serif(normal, 14px); .sans-serif(normal, 14px);
@ -125,11 +141,13 @@ code {
border: none; border: none;
color: @text; color: @text;
.opacity(0.70); .opacity(0.70);
&:hover { &:hover {
.opacity(1.0); .opacity(1.0);
background-color: transparent; background-color: transparent;
} }
} }
&.active { &.active {
a { a {
color: @dark; color: @dark;
@ -143,22 +161,27 @@ code {
.page-header { .page-header {
margin: 10px 0px; margin: 10px 0px;
padding: 0px; padding: 0px;
h1 { h1 {
margin-top: 0px; margin-top: 0px;
display: inline-block;
} }
sub-heading { sub-heading {
padding: 0px, 0px, 20px; padding: 0px, 0px, 20px;
} }
} }
pre { pre {
border: none; border: none;
background-color: @light; background-color: @light;
.border-radius(0px); border-radius: 0;
padding: 10px; padding: 10px;
margin-left: -20px; margin-left: -20px;
padding-left: 30px; padding-left: 30px;
margin-right: -20px; margin-right: -20px;
padding-right: 30px; padding-right: 30px;
code { code {
background: transparent; background: transparent;
border: none; border: none;
@ -181,6 +204,7 @@ pre {
overflow: auto; overflow: auto;
position: relative; position: relative;
z-index: 1; z-index: 1;
&:before { &:before {
content: ""; content: "";
width: 50%; width: 50%;
@ -193,9 +217,11 @@ pre {
z-index: -1; z-index: -1;
} }
} }
.hideCode:before { .hideCode:before {
width: 100% !important; width: 100% !important;
} }
table { table {
float: left; float: left;
clear: left; clear: left;
@ -204,13 +230,16 @@ pre {
margin-right: 1.5%; margin-right: 1.5%;
background-color: white; background-color: white;
white-space: normal; white-space: normal;
pre, code { pre, code {
white-space: normal; white-space: normal;
} }
} }
.page-header { .page-header {
padding: 0px; padding: 0px;
} }
.page-header, .page-header,
p, ul, ol, dl, h2, h3, h4, h5, h6 { p, ul, ol, dl, h2, h3, h4, h5, h6 {
float: left; float: left;
@ -219,6 +248,7 @@ pre {
margin-left: 1.5%; margin-left: 1.5%;
margin-right: 1.5%; margin-right: 1.5%;
background-color: white; background-color: white;
&:before { &:before {
content: ""; content: "";
width: 100%; width: 100%;
@ -227,20 +257,24 @@ pre {
clear: both; clear: both;
//border-top: 1px solid @dark; //border-top: 1px solid @dark;
} }
p, ul, ol, dl, h2, h3, h4, h5, h6, pre { p, ul, ol, dl, h2, h3, h4, h5, h6, pre {
float: none; float: none;
display: block; display: block;
} }
} }
.hideCode2 { .hideCode2 {
width: 900px !important; width: 900px !important;
width: calc(100% - 130px) !important; width: calc(100% - 130px) !important;
} }
ul, ol { ul, ol {
li { li {
margin-left: 30px; margin-left: 30px;
} }
} }
pre { pre {
float: left; float: left;
clear: right; clear: right;
@ -250,6 +284,7 @@ pre {
margin: 0px 0px 10px 0px; margin: 0px 0px 10px 0px;
padding: 0px 0px 0px 10px; padding: 0px 0px 0px 10px;
} }
hideCode3 { hideCode3 {
display: none; display: none;
} }
@ -262,6 +297,7 @@ table {
width: 100%; width: 100%;
border-bottom: 1px solid @lines; border-bottom: 1px solid @lines;
margin-bottom: 10px; margin-bottom: 10px;
tr { tr {
th, td { th, td {
padding: 8px; padding: 8px;
@ -271,6 +307,7 @@ table {
border-top: 1px solid @lines; border-top: 1px solid @lines;
border-left: 1px solid @lines; border-left: 1px solid @lines;
border-color: @lines !important; border-color: @lines !important;
&:last-child { &:last-child {
border-right: 1px solid @lines; border-right: 1px solid @lines;
} }
@ -298,14 +335,16 @@ table {
&.well-sidebar { &.well-sidebar {
.kill-box-shadow; .kill-box-shadow;
background-color: transparent; background-color: transparent;
.border-radius(0px); border-radius: 0;
border: none; border: none;
a { a {
font-size: 13px; font-size: 13px;
.roboto-slab.regular; .roboto-slab.regular;
color: @light; color: @light;
line-height: 28px; line-height: 28px;
} }
.twitter { .twitter {
hr { hr {
border-bottom: none; border-bottom: none;
@ -315,4 +354,3 @@ table {
} }
} }
} }

View File

@ -4,20 +4,21 @@ Base CSS
//Fonts //Fonts
.roboto-slab { .roboto-slab {
font-family: 'Roboto Slab', @font-family-sans-serif;
&.light { &.light {
font-family: 'Roboto Slab', serif;
font-weight: 100; font-weight: 100;
} }
&.book { &.book {
font-family: 'Roboto Slab', serif;
font-weight: 300; font-weight: 300;
} }
&.regular { &.regular {
font-family: 'Roboto Slab', serif;
font-weight: 400; font-weight: 400;
} }
&.bold { &.bold {
font-family: 'Roboto Slab', serif;
font-weight: 700; font-weight: 700;
} }
} }
@ -26,9 +27,7 @@ Base CSS
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
.roboto-slab.book; .roboto-slab.book;
} }
a {
}
pre { pre {
padding: 0; padding: 0;
} }
@ -41,50 +40,55 @@ Homepage
padding-top: 50px !important; padding-top: 50px !important;
background-color: @light; background-color: @light;
.kill-box-shadow; .kill-box-shadow;
.border-radius(0px); border-radius: 0px;
border: none; border: none;
color: @dark; color: @dark;
overflow: hidden; overflow: hidden;
@media (max-width: 767px) { @media (max-width: 767px) {
padding-top: 0px !important; padding-top: 0px !important;
} }
.text-center { .text-center {
.roboto-slab.bold; .roboto-slab.bold;
margin: 10px 0px; margin: 10px 0px;
} }
h2 { h2 {
margin: 20px 0px; margin: 20px 0px;
} }
.homepage-image {
//.box-shadow(10px, rgba(0,0,0,0.20), 0px, 0px);
}
} }
.hero-buttons.container-fluid { .hero-buttons.container-fluid {
padding: 20px 0px; padding: 20px 0px;
background-color: @sidebar-hover; background-color: @sidebar-hover;
.btn-hero.btn { .btn-hero.btn {
.roboto-slab.bold; .roboto-slab.bold;
padding: 20px 30px; padding: 20px 30px;
.kill-background-image; .kill-background-image;
.kill-box-shadow; .kill-box-shadow;
.border-radius(0px); border-radius: 0px;
text-shadow: none; text-shadow: none;
border: none; border: none;
.opacity(0.80); .opacity(0.80);
margin: 0px 10px; margin: 0px 10px;
text-transform: uppercase; text-transform: uppercase;
border: 5px solid @dark; border: 5px solid @dark;
@media (max-width: 767px) { @media (max-width: 767px) {
display: block; display: block; margin-bottom: 10px;
margin-bottom: 10px;
} }
&:hover { &:hover {
.opacity(1.0); .opacity(1.0);
} }
&.btn-secondary { &.btn-secondary {
background-color: @sidebar-hover; background-color: @sidebar-hover;
color: @dark; color: @dark;
} }
&.btn-primary { &.btn-primary {
background-color: @dark; background-color: @dark;
color: @sidebar-background; color: @sidebar-background;
@ -97,15 +101,19 @@ Homepage
// background-color: @text; // background-color: @text;
background-color: white; background-color: white;
padding: 40px 0px; padding: 40px 0px;
.lead { .lead {
.roboto-slab.regular; .roboto-slab.regular;
} }
ul, ol { ul, ol {
padding: 20px 0px; padding: 20px 0px;
margin: 0 0 10px 0px; margin: 0 0 10px 0px;
li { li {
list-style: none; list-style: none;
padding-bottom: 5px; padding-bottom: 5px;
&:before { &:before {
content: ''; content: '';
width: 0px; width: 0px;
@ -127,20 +135,25 @@ Homepage
.homepage-footer.container-fluid { .homepage-footer.container-fluid {
background-color: @dark; background-color: @dark;
.kill-box-shadow; .kill-box-shadow;
.border-radius(0px); border-radius: 0px;
color: light; color: light;
border: none; border: none;
@media (max-width: 767px) { @media (max-width: 767px) {
padding: 0 20px; padding: 0 20px;
} }
.footer-nav { .footer-nav {
margin: 40px 0px; margin: 40px 0px;
li { li {
list-style: none; list-style: none;
a { a {
.roboto-slab.bold; .roboto-slab.bold;
font-size: 16px; font-size: 16px;
line-height: 32px; line-height: 32px;
&:hover { &:hover {
color: @light; color: @light;
text-decoration: underline; text-decoration: underline;
@ -148,9 +161,11 @@ Homepage
} }
} }
} }
.twitter { .twitter {
margin-top: 20px; margin-top: 20px;
} }
.twitter:first-child { .twitter:first-child {
margin-top: 40px; margin-top: 40px;
} }
@ -175,34 +190,40 @@ html, body {
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
&.fluid-height { &.fluid-height {
height: 100%; height: 100%;
} }
} }
.columns { .columns {
height: 100%; height: 100%;
.left-column, .left-column,
.right-column { .right-column {
padding-top: 50px; padding-top: 50px;
@media (max-width: 767px) { @media (max-width: 767px) {
width: 100% !important; width: 100% !important; padding-top: 0px; height: auto;
padding-top: 0px;
height: auto;
} }
} }
.left-column { .left-column {
background-color: @sidebar-background; background-color: @sidebar-background;
border-right: 1px solid @lines; border-right: 1px solid @lines;
overflow-x: hidden; overflow-x: hidden;
} }
.right-column { .right-column {
&.span9 { &.span9 {
width: 76.4866339334%; width: 76.4866339334%;
margin-left: 0px; margin-left: 0px;
@media (min-width: 1200px) { @media (min-width: 1200px) {
width: 76.8866339334%; width: 76.8866339334%;
} }
} }
.content-page { .content-page {
padding: 20px; padding: 20px;
min-height: 100%; min-height: 100%;
@ -210,6 +231,7 @@ html, body {
} }
} }
} }
.content-area, .article-tree { .content-area, .article-tree {
overflow: auto; overflow: auto;
height: 100%; height: 100%;
@ -222,14 +244,17 @@ html, body {
display: none; display: none;
background-color: @lines; background-color: @lines;
border-bottom: 1px solid @lines; border-bottom: 1px solid @lines;
@media (max-width: 767px) { @media (max-width: 767px) {
display: block; display: block;
} }
} }
.sub-nav-collapse { .sub-nav-collapse {
@media (max-width: 768px) { @media (max-width: 768px) {
display: none; display: none;
} }
@media (min-width: 768px) { @media (min-width: 768px) {
display: block; display: block;
} }
@ -259,6 +284,7 @@ html, body {
tr { tr {
margin-bottom: 10px; margin-bottom: 10px;
border-bottom: 2px solid #ccc; border-bottom: 2px solid #ccc;
td, th { td, th {
border: 1px solid #ccc; border: 1px solid #ccc;
border-bottom: none; border-bottom: none;
@ -288,8 +314,8 @@ html, body {
font-weight: bold; font-weight: bold;
} }
/* /* Label the data */
Label the data td:before {
*/ content: attr(data-title);
td:before { content: attr(data-title); } }
} }

View File

@ -13,9 +13,11 @@ Markdown editor
min-height: 100%; min-height: 100%;
height: auto; height: auto;
display: none; display: none;
h3 { h3 {
width: 100% !important; width: 100% !important;
} }
&.paddingTop { &.paddingTop {
padding-top: 50px; padding-top: 50px;
} }