... | ... |
@@ -37,7 +37,7 @@ google_analytics: true |
37 | 37 |
%script(src="/javascripts/twitter.js" type="text/javascript") |
38 | 38 |
- if page.respond_to? :google_analytics |
39 | 39 |
%script(src="http://www.google-analytics.com/ga.js" type="text/javascript") |
40 |
- %body |
|
40 |
+ %body(id="#{(page.respond_to?(:body_id) ? page.body_id : nil)}") |
|
41 | 41 |
#header |
42 | 42 |
.page_width |
43 | 43 |
%a.title(href="/")=page.blog_title |
... | ... |
@@ -60,11 +60,13 @@ google_analytics: true |
60 | 60 |
.page_width |
61 | 61 |
#main |
62 | 62 |
- if page.respond_to? :date |
63 |
- %h2= page.title |
|
64 |
- = preserve rp(content) |
|
65 |
- %p.pubdate |
|
66 |
- Published: |
|
67 |
- =page.date.strftime("%d %b, %Y") |
|
63 |
+ .blog |
|
64 |
+ .article |
|
65 |
+ %h2= page.title |
|
66 |
+ = preserve rp(content) |
|
67 |
+ %p.pubdate |
|
68 |
+ Published: |
|
69 |
+ =page.date.strftime("%d %b, %Y") |
|
68 | 70 |
- if page.respond_to? :disqus_short_name |
69 | 71 |
#disqus_thread |
70 | 72 |
:javascript |
... | ... |
@@ -12,112 +12,9 @@ html body |
12 | 12 |
a |
13 | 13 |
color= !link_color |
14 | 14 |
|
15 |
-#header |
|
16 |
- background-color= !header_bg |
|
17 |
- border-bottom= "1px solid" !header_border |
|
18 |
- padding: 30px 0 |
|
19 |
- .page_width |
|
20 |
- position: relative |
|
21 |
- a.title |
|
22 |
- font-size= !h1 |
|
23 |
- +heading-font |
|
24 |
- display: inline-block |
|
25 |
- color= !title_color |
|
26 |
- text-decoration: none |
|
27 |
- |
|
28 |
-#nav |
|
29 |
- +clearfix |
|
30 |
- position: relative |
|
31 |
- z-index: 1 |
|
32 |
- padding: 6px 0 |
|
33 |
- background: |
|
34 |
- color= !nav_bg |
|
35 |
- image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4)) |
|
36 |
- image: -moz-linear-gradient(left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4)) |
|
37 |
- border: |
|
38 |
- top= "1px solid" !nav_border_top |
|
39 |
- bottom= "1px solid" !nav_border_bottom |
|
40 |
- ul |
|
41 |
- position: relative |
|
42 |
- +horizontal-list |
|
43 |
- margin: 0 auto |
|
44 |
- overflow: visible |
|
45 |
- li |
|
46 |
- padding: 0 15px |
|
47 |
- border-left= "1px solid" !nav_border_left |
|
48 |
- border-right= "1px solid" !nav_border_right |
|
49 |
- &.alpha |
|
50 |
- border-left: none |
|
51 |
- padding-left: 0 |
|
52 |
- &.omega |
|
53 |
- border-right: 0 |
|
54 |
- &.subscribe |
|
55 |
- position: absolute |
|
56 |
- left= !page_width - !sidebar_width - !sidebar_margin/2 |
|
57 |
- border: none |
|
58 |
- a |
|
59 |
- display: inline-block |
|
60 |
- padding-left: 28px |
|
61 |
- background: url("/images/rss.png") left top no-repeat |
|
62 |
- a |
|
63 |
- display: inline-block |
|
64 |
- color= !nav_color |
|
65 |
- line-height: 150% |
|
66 |
- text-decoration: none |
|
67 |
- &:hover |
|
68 |
- color= !nav_color_hover |
|
69 |
- |
|
70 | 15 |
.page_width |
71 | 16 |
width= !page_width |
72 | 17 |
margin: 0 auto |
73 | 18 |
padding: |
74 | 19 |
left= !page_pad |
75 |
- right= !page_pad |
|
76 |
- |
|
77 |
-#page |
|
78 |
- +clearfix |
|
79 |
- background-color= !page_bg |
|
80 |
- .page_width |
|
81 |
- +clearfix |
|
82 |
- position: relative |
|
83 |
- padding: |
|
84 |
- top: 25px |
|
85 |
- bottom: 25px |
|
86 |
- background-color= !blog_bg |
|
87 |
- +easy-box-shadow(#ccc) |
|
88 |
- border: |
|
89 |
- left= "1px solid" !page_border_sides |
|
90 |
- right= "1px solid" !page_border_sides |
|
91 |
-#main |
|
92 |
- width= !main_width |
|
93 |
- float: left |
|
94 |
- &.expanded |
|
95 |
- width: 100% |
|
96 |
- |
|
97 |
-#sidebar |
|
98 |
- float: left |
|
99 |
- width= !sidebar_width |
|
100 |
- margin-left= !sidebar_margin |
|
101 |
- font-size: 80% |
|
102 |
- line-height: 1.625em |
|
103 |
- h4 |
|
104 |
- margin: 20px 0 0 |
|
105 |
- &:first-child |
|
106 |
- margin-top: 10px |
|
107 |
- .small |
|
108 |
- +sans-font |
|
109 |
- font-size: 50% |
|
110 |
- |
|
111 |
-#footer |
|
112 |
- position: relative |
|
113 |
- z-index: 2 |
|
114 |
- font-size= !base_font_size_small |
|
115 |
- clear: both |
|
116 |
- padding= !base_font_size * 1.5 0 |
|
117 |
- color= !footer_color |
|
118 |
- +h-linear-gradient(darken(!body_bg, 25), !body_bg) |
|
119 |
- border-top= "14px solid" !footer_bg |
|
120 |
- a |
|
121 |
- color= #ddd |
|
122 |
- &:hover |
|
123 |
- color = #fff |
|
124 | 20 |
\ No newline at end of file |
21 |
+ right= !page_pad |
|
125 | 22 |
\ No newline at end of file |
... | ... |
@@ -1,6 +1,13 @@ |
1 | 1 |
@import partials/shared.sass |
2 |
-@import partials/blog.sass |
|
3 | 2 |
@import partials/syntax.sass |
4 | 3 |
@import partials/search.sass |
5 | 4 |
@import partials/sidebar.sass |
6 |
-@import partials/twitter.sass |
|
7 | 5 |
\ No newline at end of file |
6 |
+@import partials/twitter.sass |
|
7 |
+ |
|
8 |
+/* layout partials */ |
|
9 |
+@import partials/header.sass |
|
10 |
+@import partials/navigation.sass |
|
11 |
+@import partials/page.sass |
|
12 |
+@import partials/sidebar.sass |
|
13 |
+@import partials/blog.sass |
|
14 |
+@import partials/footer.sass |
|
8 | 15 |
\ No newline at end of file |
9 | 16 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,13 @@ |
0 |
+#footer |
|
1 |
+ position: relative |
|
2 |
+ z-index: 2 |
|
3 |
+ font-size= !base_font_size_small |
|
4 |
+ clear: both |
|
5 |
+ padding= !base_font_size * 1.5 0 |
|
6 |
+ color= !footer_color |
|
7 |
+ +h-linear-gradient(darken(!body_bg, 25), !body_bg) |
|
8 |
+ border-top= "14px solid" !footer_bg |
|
9 |
+ a |
|
10 |
+ color= #ddd |
|
11 |
+ &:hover |
|
12 |
+ color = #fff |
|
0 | 13 |
\ No newline at end of file |
1 | 14 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,12 @@ |
0 |
+#header |
|
1 |
+ background-color= !header_bg |
|
2 |
+ border-bottom= "1px solid" !header_border |
|
3 |
+ padding: 30px 0 |
|
4 |
+ .page_width |
|
5 |
+ position: relative |
|
6 |
+ a.title |
|
7 |
+ font-size= !h1 |
|
8 |
+ +heading-font |
|
9 |
+ display: inline-block |
|
10 |
+ color= !title_color |
|
11 |
+ text-decoration: none |
|
0 | 12 |
\ No newline at end of file |
1 | 13 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,41 @@ |
0 |
+#nav |
|
1 |
+ +clearfix |
|
2 |
+ position: relative |
|
3 |
+ z-index: 1 |
|
4 |
+ padding: 6px 0 |
|
5 |
+ background: |
|
6 |
+ color= !nav_bg |
|
7 |
+ image: -webkit-gradient(linear, left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4)) |
|
8 |
+ image: -moz-linear-gradient(left top, left bottom, from(#fcfcfc), to(#ddd), color-stop(0.3, #f4f4f4)) |
|
9 |
+ border: |
|
10 |
+ top= "1px solid" !nav_border_top |
|
11 |
+ bottom= "1px solid" !nav_border_bottom |
|
12 |
+ ul |
|
13 |
+ position: relative |
|
14 |
+ +horizontal-list |
|
15 |
+ margin: 0 auto |
|
16 |
+ overflow: visible |
|
17 |
+ li |
|
18 |
+ padding: 0 15px |
|
19 |
+ border-left= "1px solid" !nav_border_left |
|
20 |
+ border-right= "1px solid" !nav_border_right |
|
21 |
+ &.alpha |
|
22 |
+ border-left: none |
|
23 |
+ padding-left: 0 |
|
24 |
+ &.omega |
|
25 |
+ border-right: 0 |
|
26 |
+ &.subscribe |
|
27 |
+ position: absolute |
|
28 |
+ left= !page_width - !sidebar_width - !sidebar_margin/2 |
|
29 |
+ border: none |
|
30 |
+ a |
|
31 |
+ display: inline-block |
|
32 |
+ padding-left: 28px |
|
33 |
+ background: url("/images/rss.png") left top no-repeat |
|
34 |
+ a |
|
35 |
+ display: inline-block |
|
36 |
+ color= !nav_color |
|
37 |
+ line-height: 150% |
|
38 |
+ text-decoration: none |
|
39 |
+ &:hover |
|
40 |
+ color= !nav_color_hover |
|
0 | 41 |
\ No newline at end of file |
1 | 42 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,19 @@ |
0 |
+#page |
|
1 |
+ +clearfix |
|
2 |
+ background-color= !page_bg |
|
3 |
+ .page_width |
|
4 |
+ +clearfix |
|
5 |
+ position: relative |
|
6 |
+ padding: |
|
7 |
+ top: 25px |
|
8 |
+ bottom: 25px |
|
9 |
+ background-color= !blog_bg |
|
10 |
+ +easy-box-shadow(#ccc) |
|
11 |
+ border: |
|
12 |
+ left= "1px solid" !page_border_sides |
|
13 |
+ right= "1px solid" !page_border_sides |
|
14 |
+#main |
|
15 |
+ width= !main_width |
|
16 |
+ float: left |
|
17 |
+ &.expanded |
|
18 |
+ width: 100% |
|
0 | 19 |
\ No newline at end of file |
... | ... |
@@ -1,3 +1,17 @@ |
1 |
+#sidebar |
|
2 |
+ float: left |
|
3 |
+ width= !sidebar_width |
|
4 |
+ margin-left= !sidebar_margin |
|
5 |
+ font-size: 80% |
|
6 |
+ line-height: 1.625em |
|
7 |
+ h4 |
|
8 |
+ margin: 20px 0 0 |
|
9 |
+ &:first-child |
|
10 |
+ margin-top: 10px |
|
11 |
+ .small |
|
12 |
+ +sans-font |
|
13 |
+ font-size: 50% |
|
14 |
+ |
|
1 | 15 |
#twitter, #delicious |
2 | 16 |
+border-radius |
3 | 17 |
background: #f8f8f8 |