1
0
mirror of https://github.com/arsenetar/pelican-red.git synced 2026-01-23 15:11:38 +00:00

Update styles for new components and add code highlighting container styles

Container styles needed a javascript hack as of now since a block style
element is needed for overflow to work correctly.  app.js adds a div
wrapper around the highlighed code (with line numbers) to allow overflow
to work correctly.
This commit is contained in:
2013-07-29 05:53:34 -04:00
parent 725cb8893f
commit b5bdbaf332
5 changed files with 191 additions and 20 deletions

View File

@@ -30,7 +30,7 @@ $default-float: left;
$body-bg: #fbfbfb;
// $body-font-color: #222;
// $body-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
$body-font-family: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
// $body-font-weight: normal;
// $body-font-style: normal;
@@ -136,13 +136,13 @@ $total-columns: 16;
// Heading font styles
// $header-font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
$header-font-family: "Open Sans", "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
// $header-font-weight: bold;
// $header-font-style: normal;
// $header-font-color: #222;
// $header-line-height: 1.4;
// $header-top-margin: .2em;
// $header-bottom-margin: .5em;
$header-bottom-margin: .4em;
// $header-text-rendering: optimizeLegibility;
// Heading font sizes
@@ -160,7 +160,7 @@ $total-columns: 16;
// $subheader-font-color: lighten($header-font-color, 30%);
// $subheader-font-weight: 300;
// $subheader-top-margin: .2em;
// $subheader-bottom-margin: .5em;
$subheader-bottom-margin: .3em;
// <small> styling
@@ -173,7 +173,7 @@ $total-columns: 16;
// $paragraph-font-weight: normal;
// $paragraph-font-size: 1em;
// $paragraph-line-height: 1.6;
// $paragraph-margin-bottom: emCalc(20px);
$paragraph-margin-bottom: emCalc(18px);
// $paragraph-aside-font-size: emCalc(14px);
// $paragraph-aside-line-height: 1.35;
// $paragraph-aside-font-style: italic;

View File

@@ -14,7 +14,7 @@
// @import "foundation/components/forms"; // *requires components/buttons
// @import "foundation/components/custom-forms"; // *requires components/buttons, components/forms
// @import "foundation/components/button-groups"; // *requires components/buttons
// @import "foundation/components/dropdown-buttons"; // *requires components/buttons
@import "foundation/components/dropdown-buttons"; // *requires components/buttons
// @import "foundation/components/split-buttons"; // *requires components/buttons
// @import "foundation/components/flex-video";
// @import "foundation/components/section";
@@ -37,18 +37,20 @@
// @import "foundation/components/switch";
// @import "foundation/components/magellan";
@import "foundation/components/tables";
// @import "foundation/components/thumbs";
@import "foundation/components/thumbs";
// @import "foundation/components/tooltips";
// @import "foundation/components/dropdown";
// VoltaicIdeas Imports
$set: 'pelican-red';
@import "voltaicideas/pelican-red/icons"; // icon fonts
@import "voltaicideas/pelican-red/pygments-github"; // pygments css
@import "voltaicideas/pelican-red/_pygments.scss"; // pygments css
@import "voltaicideas/pelican-red/pygments-github"; // pygments style css
@import "compass/css3/box-shadow";
@import "compass/css3/border-radius";
@import "compass/css3/text-shadow";
@import "compass/css3/images";
html{ height: 100%; }
body{ height: 100%; }
@@ -80,6 +82,7 @@ body{ background-color: #fff; }
#main section, #mainAside aside {
background-color: #fff;
@include box-shadow(0 2px 5px rgba(0,0,0,0.2));
margin-bottom: emCalc(10px);
}
#main section {
@@ -87,9 +90,50 @@ body{ background-color: #fff; }
header {
overflow: hidden;
margin-bottom: emCalc(7px);
h1 { margin-top: 0; margin-bottom: 0; }
h1, h2, h3 { margin-top: 0; margin-bottom: 0; }
border-bottom: 1px solid darken(#fff, 5%);
}
ul.article-list {
@extend .no-bullet;
margin-bottom: 0;
margin-left: 0;
li .article {
border: 1px solid darken(#fff, 5%);
padding: emCalc(7px);
margin: emCalc(7px);
overflow: hidden;
clear: both;
&:after { clear: both }
@include border-radius($global-radius);
@include background-image(linear-gradient(top,#fff,#f8f8f8));
.summary { font-size: 0.9em; padding-bottom: emCalc(7px); }
footer{
border-top: 1px solid darken(#fff, 5%);
ul { margin-left: 0; }
font-size: 0.8em;
color: darken($secondary-color, 10%);
abbr{
color: darken($secondary-color, 10%);
}
a{ color: lighten($primary-color, 5%); }
}
header {
.tag-list{
font-size: 0.7em;
margin-bottom: 0;
display: inline-block;
vertical-align: middle;
li a{ padding: emCalc(4px) emCalc(7px); }
}
span{ font-size: 0.8em; }
}
}
}
dl.article-list {
dt{ border-top: 1px solid darken(#fff, 5%); }
dt:first-child{ border: none; }
dd{ margin-bottom: emCalc(8px); }
}
}
#mainAside {
@@ -103,7 +147,10 @@ body{ background-color: #fff; }
}
#mainFooter {
text-align: right;
margin-right: emCalc(10px);
margin-top: emCalc(10px);
margin-bottom: emCalc(7px);
color: #888;
font-size: 0.8em;
}
@@ -114,6 +161,14 @@ body{ background-color: #fff; }
padding: 0 10px;
}
}
// Google Search
.gsc-control-cse{ padding: 0 !important;
.gsc-input{ padding: 0 !important; }
.gsc-search-button {
display: none;
}
}
.tag-list {
@include inline-list;

View File

@@ -0,0 +1,52 @@
.codehilite{
font-size: emCalc(14px);
padding: emCalc(7px);
background-color: lighten($secondary-color, 8%);
border: 1px solid $secondary-color;
font-family: 'Source Code Pro', 'Consolas', Monaco, monospace;
overflow: auto;
margin-bottom: emCalc(16px);
pre{
tab-size: 4;
white-space: pre;
font-family: inherit;
}
}
div.codehilitewrapper{
overflow-x: auto;
overflow-y: hidden;
border: 1px solid $secondary-color;
margin-bottom: 1.25em;
table.codehilitetable{
margin: 0;
border: none;
}
}
table.codehilitetable{
td{ font-size: 1em; }
width: 100%;
.linenos{
width: emCalc(30px);
padding: 0;
.linenodiv{
padding: emCalc(7px);
overflow: auto;
font-family: 'Source Code Pro', 'Consolas', Monaco, monospace;
pre{
font-family: inherit;
}
}
}
.code{
padding: 0;
.codehilite{
border-bottom: none;
border-top: none;
border-right: none;
margin: 0;
}
}
}