Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 62f6847

Browse files
committed
Custom design added
1 parent 3fb4705 commit 62f6847

File tree

146 files changed

+4757
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

146 files changed

+4757
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
octopress-design
22
================
33

4-
Multi-purpose design for Octopress
4+
Multi-purpose design for Octopress based of the design used on GeeksOfLondon.com and BarCampBerkshire.com

sass/_base.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
@import "base/utilities";
2+
@import "base/solarized";
3+
@import "base/theme";
4+
@import "base/typography";
5+
@import "base/layout";

sass/_partials.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
@import "partials/header";
2+
@import "partials/navigation";
3+
@import "partials/blog";
4+
@import "partials/sharing";
5+
@import "partials/syntax";
6+
@import "partials/archive";
7+
@import "partials/sidebar";
8+
@import "partials/footer";
9+
@import "partials/frontpage";
10+
@import "partials/events";
11+
@import "partials/newsletter";

sass/base/_layout.scss

Lines changed: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,190 @@
1+
$max-width: 960px !default;
2+
3+
// Padding used for layout margins
4+
$pad-min: 18px !default;
5+
$pad-narrow: 25px !default;
6+
$pad-medium: 35px !default;
7+
$pad-wide: 55px !default;
8+
9+
// Sidebar widths used in media queries
10+
$sidebar-width-medium: 240px !default;
11+
$sidebar-pad-medium: 15px !default;
12+
$sidebar-pad-wide: 20px !default;
13+
$sidebar-width-wide: 300px !default;
14+
15+
$indented-lists: false !default;
16+
17+
$header-font-size: 1em !default;
18+
$header-padding-top: 1.5em !default;
19+
$header-padding-bottom: 1.5em !default;
20+
21+
.group { @include pie-clearfix; }
22+
23+
@mixin collapse-sidebar {
24+
float: none;
25+
width: auto;
26+
clear: left;
27+
margin: 0;
28+
padding: 0 $pad-medium 1px;
29+
background-color: lighten($sidebar-bg, 2);
30+
section {
31+
&.odd, &.even { float: left; width: 48%; }
32+
&.odd { margin-left: 0; }
33+
&.even { margin-left: 4%; }
34+
}
35+
&.thirds section {
36+
width: 30%;
37+
margin-left: 5%;
38+
&.first {
39+
margin-left: 0;
40+
clear: both;
41+
}
42+
}
43+
}
44+
45+
body {
46+
-webkit-text-size-adjust: none;
47+
max-width: $max-width;
48+
position: relative;
49+
margin: 0 auto;
50+
> header, > nav, > footer, #content > article, #content > div > article, #content > div > section {
51+
@extend .group;
52+
padding-left: $pad-min;
53+
padding-right: $pad-min;
54+
@media only screen and (min-width: 480px) {
55+
padding-left: $pad-narrow;
56+
padding-right: $pad-narrow;
57+
}
58+
@media only screen and (min-width: 768px) {
59+
padding-left: $pad-medium;
60+
padding-right: $pad-medium;
61+
}
62+
@media only screen and (min-width: 992px) {
63+
padding-left: $pad-wide;
64+
padding-right: $pad-wide;
65+
}
66+
}
67+
div.pagination {
68+
@extend .group;
69+
margin-left: $pad-min;
70+
margin-right: $pad-min;
71+
@media only screen and (min-width: 480px) {
72+
margin-left: $pad-narrow;
73+
margin-right: $pad-narrow;
74+
}
75+
@media only screen and (min-width: 768px) {
76+
margin-left: $pad-medium;
77+
margin-right: $pad-medium;
78+
}
79+
@media only screen and (min-width: 992px) {
80+
margin-left: $pad-wide;
81+
margin-right: $pad-wide;
82+
}
83+
}
84+
> header {
85+
font-size: $header-font-size;
86+
padding-top: $header-padding-top;
87+
padding-bottom: $header-padding-bottom;
88+
}
89+
}
90+
91+
#content {
92+
overflow: hidden;
93+
> div, > article { width: 100%; }
94+
}
95+
96+
aside.sidebar {
97+
float: none;
98+
padding: 0 $pad-min 1px;
99+
background-color: lighten($sidebar-bg, 2);
100+
@extend .group;
101+
}
102+
103+
.flex-content { max-width: 100%; height: auto; }
104+
105+
.basic-alignment {
106+
&.left { float: left; margin-right: 1.5em; }
107+
&.right { float: right; margin-left: 1.5em; }
108+
&.center { display:block; margin: 0 auto 1.5em; }
109+
&.left, &.right { margin-bottom: .8em; }
110+
}
111+
112+
.toggle-sidebar { &, .no-sidebar & { display: none; }}
113+
114+
body.sidebar-footer {
115+
@media only screen and (min-width: 750px) {
116+
aside.sidebar{ @include collapse-sidebar; }
117+
}
118+
#content { margin-right: 0px; }
119+
.toggle-sidebar { display: none; }
120+
}
121+
122+
@media only screen and (min-width: 550px) {
123+
body > header { font-size: $header-font-size; }
124+
}
125+
@media only screen and (min-width: 750px) {
126+
aside.sidebar { @include collapse-sidebar; }
127+
}
128+
#main, #content, .sidebar {
129+
@extend .group;
130+
}
131+
@media only screen and (min-width: 768px) {
132+
body { -webkit-text-size-adjust: auto; }
133+
body > header { font-size: $header-font-size * 1.2; }
134+
#main {
135+
padding: 0;
136+
margin: 0 auto;
137+
}
138+
#content {
139+
overflow: visible;
140+
margin-right: $sidebar-width-medium;
141+
position: relative;
142+
.no-sidebar & { margin-right: 0; border-right: 0; }
143+
.collapse-sidebar & { margin-right: 20px; }
144+
> div, > article {
145+
padding-top: $pad-medium/2;
146+
padding-bottom: $pad-medium/2;
147+
float: left;
148+
}
149+
}
150+
aside.sidebar {
151+
width: $sidebar-width-medium - $sidebar-pad-medium*2;
152+
padding: 0 $sidebar-pad-medium $sidebar-pad-medium;
153+
background: none;
154+
clear: none;
155+
float: left;
156+
margin: 0 -100% 0 0;
157+
section {
158+
width: auto; margin-left: 0;
159+
&.odd, &.even { float: none; width: auto; margin-left: 0; }
160+
}
161+
.collapse-sidebar & {
162+
@include collapse-sidebar;
163+
}
164+
}
165+
}
166+
167+
@media only screen and (min-width: 992px) {
168+
body > header { font-size: $header-font-size * 1.3; }
169+
#content { margin-right: $sidebar-width-wide; }
170+
#content {
171+
> div, > article {
172+
padding-top: $pad-wide/2;
173+
padding-bottom: $pad-wide/2;
174+
}
175+
}
176+
aside.sidebar {
177+
width: $sidebar-width-wide - $sidebar-pad-wide*2;
178+
padding: 1.2em $sidebar-pad-wide $sidebar-pad-wide;
179+
.collapse-sidebar & {
180+
padding: { left: $pad-wide; right: $pad-wide; }
181+
}
182+
}
183+
}
184+
185+
@if $indented-lists == false {
186+
@media only screen and (min-width: 768px) {
187+
ul, ol { margin-left: 0; }
188+
}
189+
}
190+

sass/base/_solarized.scss

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
$base03: #002b36 !default; //darkest blue
2+
$base02: #073642 !default; //dark blue
3+
$base01: #586e75 !default; //darkest gray
4+
$base00: #657b83 !default; //dark gray
5+
$base0: #839496 !default; //medium gray
6+
$base1: #93a1a1 !default; //medium light gray
7+
$base2: #eee8d5 !default; //cream
8+
$base3: #fdf6e3 !default; //white
9+
$solar-yellow: #b58900 !default;
10+
$solar-orange: #cb4b16 !default;
11+
$solar-red: #dc322f !default;
12+
$solar-magenta: #d33682 !default;
13+
$solar-violet: #6c71c4 !default;
14+
$solar-blue: #268bd2 !default;
15+
$solar-cyan: #2aa198 !default;
16+
$solar-green: #859900 !default;
17+
18+
$solarized: dark !default;
19+
20+
@if $solarized == light {
21+
22+
$_base03: $base03;
23+
$_base02: $base02;
24+
$_base01: $base01;
25+
$_base00: $base00;
26+
$_base0: $base0;
27+
$_base1: $base1;
28+
$_base2: $base2;
29+
$_base3: $base3;
30+
31+
$base03: $_base3;
32+
$base02: $_base2;
33+
$base01: $_base1;
34+
$base00: $_base0;
35+
$base0: $_base00;
36+
$base1: $_base01;
37+
$base2: $_base02;
38+
$base3: $_base03;
39+
}
40+
41+
/* non highlighted code colors */
42+
$pre-bg: $base03 !default;
43+
$pre-border: darken($base02, 5) !default;
44+
$pre-color: $base1 !default;
45+
46+

sass/base/_theme.scss

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
$noise-bg: image-url('/images/noise.png') top left !default;
2+
$img-border: inline-image('dotted-border.png');
3+
4+
// Main Link Colors
5+
$link-color: darken(#67BD45, 10) !default;
6+
$link-color-hover: lighten($link-color, 20) !default;
7+
$link-color-visited: darken($link-color, 10) !default;
8+
$link-color-active: darken($link-color, 10) !default;
9+
10+
// Main Section Colors
11+
$main-bg: #fff !default;
12+
$page-bg: #fff !default;
13+
$article-border: #eeeeee !default;
14+
15+
$header-bg: url(/images/background.jpg) !default;
16+
$header-border: lighten(#418284, 15) !default;
17+
$title-color: #f2f2f2 !default;
18+
$subtitle-color: #ccc !default;
19+
20+
$text-color: #222 !default;
21+
$text-color-light: #aaa !default;
22+
$type-border: #ddd !default;
23+
24+
/* Navigation */
25+
$nav-bg: #2465AD !default;
26+
$nav-color: lighten($nav-bg, 38) !default;
27+
$nav-color-hover: lighten($nav-color, 25) !default;
28+
$nav-placeholder: desaturate(darken($nav-bg, 10), 15) !default;
29+
30+
/* Sidebar colors */
31+
$sidebar-bg: #f2f2f2 !default;
32+
$sidebar-link-color: $link-color !default;
33+
$sidebar-link-color-hover: $link-color-hover !default;
34+
$sidebar-link-color-active: $link-color-active !default;
35+
$sidebar-color: change-color(mix($text-color, $sidebar-bg, 80), $hue: hue($sidebar-bg), $saturation: saturation($sidebar-bg)/2) !default;
36+
$sidebar-border: $sidebar-bg !default;
37+
$sidebar-border-hover: darken($sidebar-bg, 7) !default;
38+
$sidebar-link-color-subdued: lighten($sidebar-color, 20) !default;
39+
$sidebar-link-color-subdued-hover: $sidebar-link-color-hover !default;
40+
$twitter-status-link: lighten($sidebar-link-color-subdued, 15) !default;
41+
42+
$footer-color: #888 !default;
43+
$footer-bg: #f2f2f2 !default;
44+
$footer-color: darken($footer-bg, 38) !default;
45+
$footer-color-hover: darken($footer-color, 10) !default;
46+
$footer-border-top: lighten($footer-bg, 15) !default;
47+
$footer-border-bottom: darken($footer-bg, 15) !default;
48+
$footer-link-color: darken($footer-bg, 38) !default;
49+
$footer-link-color-hover: darken($footer-color, 25) !default;
50+
$page-border-bottom: darken($footer-bg, 5) !default;
51+
52+
53+
/* Core theme application */
54+
55+
a {
56+
@include link-colors($link-color, $hover: $link-color-hover, $focus: $link-color-hover, $visited: $link-color-visited, $active: $link-color-active);
57+
}
58+
aside.sidebar a {
59+
@include link-colors($sidebar-link-color, $hover: $sidebar-link-color-hover, $focus: $sidebar-link-color-hover, $active: $sidebar-link-color-active);
60+
}
61+
a {
62+
@include transition(color .3s);
63+
}
64+
65+
html {
66+
background: $page-bg image-url('/images/line-tile.png') top left;
67+
}
68+
body {
69+
> div {
70+
background: $sidebar-bg $noise-bg;
71+
> div {
72+
background: $main-bg $noise-bg;
73+
// border-right: 1px solid $sidebar-border;
74+
}
75+
}
76+
}

0 commit comments

Comments
 (0)