Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 3 commits
  • 17 files changed
  • 0 comments
  • 1 contributor
8  CssMinify.yml
... ...
@@ -0,0 +1,8 @@
  1
+files: [
  2
+    'static/css/lib/normalize.css'
  3
+  , 'static/css/typography.css'
  4
+  , 'static/css/lib/syntax.css'
  5
+  , 'static/css/layout.css'
  6
+  , 'static/css/article.css'
  7
+  , 'static/css/print.css'
  8
+]
14  _layouts/category_index.html
@@ -2,11 +2,9 @@
2 2
 layout: default
3 3
 ---
4 4
 
5  
-<div id="posts">
6  
-	<h1 id="page-title">{{ page.title }}</h1>
7  
-	<ul>
8  
-		{% for post in site.categories[page.category] %}
9  
-			<li><a href="{{ post.url }}">{{ post.title }}</a></li>
10  
-		{% endfor %}
11  
-	</ul>
12  
-</div>
  5
+<h1 id="page-title">{{ page.title }}</h1>
  6
+<ul class="post-list">
  7
+	{% for post in site.categories[page.category] %}
  8
+		<li><a href="{{ post.url }}">{{ post.title }}</a></li>
  9
+	{% endfor %}
  10
+</ul>
2  _layouts/default.html
@@ -15,7 +15,7 @@
15 15
 		<link rel="alternate" type="application/atom+xml" href="/atom.xml">
16 16
 
17 17
 		<!-- css -->
18  
-		<link href="/static/css/min.css" type="text/css" rel="stylesheet">
  18
+		<link rel="stylesheet" type="text/css" href="{% minified_css_file %}">
19 19
 
20 20
 		<!-- google analytics -->
21 21
 		<script type="text/javascript">
77  _plugins/CssMinify.rb
... ...
@@ -0,0 +1,77 @@
  1
+module Jekyll
  2
+  MINIFIED_FILENAME = Time.new.strftime("%Y%m%d%H%M") + '.min.css'
  3
+
  4
+  # use this as a workaround for getting cleaned up
  5
+  # reference: https://gist.github.com/920651
  6
+  class CssMinifyFile < StaticFile
  7
+    def write(dest)
  8
+      # do nothing
  9
+    end
  10
+  end
  11
+
  12
+  # minify css files
  13
+  class CssMinifyGenerator < Generator
  14
+    safe true
  15
+
  16
+    def generate(site)
  17
+      config = Jekyll::CssMinifyGenerator.get_config
  18
+
  19
+      files_to_minify = config['files'] || get_css_files(site, config['css_source'])
  20
+
  21
+      output_dir = File.join(site.config['destination'], config['css_destination'])
  22
+      output_file = File.join(output_dir, MINIFIED_FILENAME)
  23
+      # need to create destination dir if it doesn't exist
  24
+      FileUtils.mkdir_p(output_dir)
  25
+      minify_css(files_to_minify, output_file)
  26
+      site.static_files << CssMinifyFile.new(site, site.source, config['css_destination'], MINIFIED_FILENAME)
  27
+    end
  28
+
  29
+    # read the css dir for the css files to compile
  30
+    def get_css_files(site, relative_dir)
  31
+      # not sure if we need to do this, but keep track of the current dir
  32
+      pwd = Dir.pwd
  33
+      Dir.chdir(File.join(site.config['source'], relative_dir))
  34
+      # read css files
  35
+      css_files = Dir.glob('*.css').map{ |f| File.join(relative_dir, f) }
  36
+      Dir.chdir(pwd)
  37
+
  38
+      return css_files
  39
+    end
  40
+
  41
+    def minify_css(css_files, output_file)
  42
+      css_files = css_files.join(' ')
  43
+      juice_cmd = "juicer merge -f #{css_files} -o #{output_file}"
  44
+      puts juice_cmd
  45
+      system(juice_cmd)
  46
+    end
  47
+
  48
+    # Load configuration from CssMinify.yml
  49
+    def self.get_config
  50
+      if @config == nil
  51
+        @config = {
  52
+          'css_source' => 'css', # relative to the route
  53
+          'css_destination' => '/css' # relative to site.config['destination']
  54
+        }
  55
+        config = YAML.load_file('CssMinify.yml') rescue nil
  56
+        if config.is_a?(Hash)
  57
+          @config = @config.merge(config)
  58
+        end
  59
+      end
  60
+
  61
+      return @config
  62
+    end
  63
+  end
  64
+
  65
+  class CssMinifyLinkTag < Liquid::Tag
  66
+    def initialize(tag_name, text, tokens)
  67
+      super
  68
+    end
  69
+
  70
+    def render(context)
  71
+      config = Jekyll::CssMinifyGenerator.get_config
  72
+      File.join(config['css_destination'], MINIFIED_FILENAME)
  73
+    end
  74
+  end
  75
+end
  76
+
  77
+Liquid::Template.register_tag('minified_css_file', Jekyll::CssMinifyLinkTag)
5  _tasks/deploy
... ...
@@ -1,11 +1,6 @@
1 1
 #!/bin/bash
2 2
 
3 3
 echo ==================
4  
-echo Minify css
5  
-echo ==================
6  
-juicer merge -i --force -o static/css/min.css static/css/master.css
7  
-
8  
-echo ==================
9 4
 echo Building site
10 5
 echo ==================
11 6
 jekyll
13  _tasks/preview
... ...
@@ -1,13 +0,0 @@
1  
-#!/bin/bash
2  
-
3  
-echo ==================
4  
-echo Minify css
5  
-echo ==================
6  
-juicer merge -i --force -o static/css/min.css static/css/master.css
7  
-
8  
-echo ==================
9  
-echo Start jekyll server
10  
-echo ==================
11  
-jekyll --server --auto
12  
-
13  
-exit 0
3  about-me.html
@@ -4,4 +4,5 @@
4 4
 ---
5 5
 
6 6
 <h1 id="page-title">{{ page.title }}</h1>
7  
-<p>My name is Dominic Watson and I am a web developer who primarily codes in ColdFusion Markup Language (CFML). Phew! I feel I'm on the road to recovery already.</p>
  7
+<p>My name is Dominic Watson and I am a web developer who primarily codes in ColdFusion Markup Language (CFML). Phew! I feel I'm on the road to recovery already.</p>
  8
+<p>I am the proud father of Greta, guardian and best buddy of Will and lucky partner of <a href="http://twitter.com/#!/theimagegarden">Greta and Will's mum</a>.</p>
14  index.html
@@ -3,11 +3,9 @@
3 3
 title: Blog posts
4 4
 ---
5 5
 
6  
-<div id="posts">
7  
-	<h1 id="page-title">{{ page.title }}</h1>
8  
-	<ul>
9  
-		{% for post in site.posts %}
10  
-			 <li><a href="{{ post.url }}">{{ post.title }}</a></li>
11  
-		{% endfor %}
12  
-	</ul>
13  
-</div>
  6
+<h1 id="page-title">{{ page.title }}</h1>
  7
+<ul class="post-list">
  8
+	{% for post in site.posts %}
  9
+		 <li><a href="{{ post.url }}">{{ post.title }}</a></li>
  10
+	{% endfor %}
  11
+</ul>
38  static/css/article.css
... ...
@@ -0,0 +1,38 @@
  1
+article time {
  2
+	display        : block;
  3
+	text-transform : uppercase;
  4
+	font-size      : 1.1em;
  5
+	color          : #666;
  6
+	margin         : 0.5em 0;
  7
+}
  8
+
  9
+article #page-title {
  10
+	margin        : 0.1em 0;
  11
+	font-size     : 2.4em;
  12
+	border-bottom : 1px solid;
  13
+}
  14
+
  15
+article #published-in {
  16
+	color      : #555555;
  17
+	text-align : right;
  18
+	margin     : 1em 0;
  19
+}
  20
+
  21
+article h1 {
  22
+	font-size     : 2em;
  23
+	margin        : 0.1em 0;
  24
+}
  25
+article h2 {
  26
+	font-size     : 1.6em;
  27
+	line-height   : 1;
  28
+	margin-bottom : 0.5em;
  29
+	border-bottom : 1px dotted;
  30
+}
  31
+article h3 {
  32
+	font-size: 1.2em;
  33
+}
  34
+
  35
+article #comments-container {
  36
+	border-top  : 3px double #e4e1e1;
  37
+	padding-top : 1em;
  38
+}
8  static/css/base.css
... ...
@@ -1,8 +0,0 @@
1  
-/*
2  
-Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3  
-Code licensed under the BSD License:
4  
-http://developer.yahoo.com/yui/license.html
5  
-version: 3.3.0
6  
-build: 3167
7  
-*/
8  
-h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong{font-weight:bold;}abbr,acronym{border-bottom:1px dotted #000;cursor:help;}em{font-style:italic;}blockquote,ul,ol,dl{margin:1em;}ol,ul,dl{margin-left:2em;}ol li{list-style:decimal outside;}ul li{list-style:disc outside;}dl dd{margin-left:1em;}th,td{border:1px solid #000;padding:.5em;}th{font-weight:bold;text-align:center;}caption{margin-bottom:.5em;text-align:center;}p,fieldset,table,pre{margin-bottom:1em;}input[type=text],input[type=password],textarea{width:12.25em;*width:11.9em;}
55  static/css/layout.css
@@ -81,6 +81,10 @@ nav {
81 81
 	font-family : Verdana, "sans serif";
82 82
 }
83 83
 
  84
+	nav ul {
  85
+		padding : 0;
  86
+	}
  87
+
84 88
 	nav li {
85 89
 		margin-right : 1em;
86 90
 		display      : inline;
@@ -109,59 +113,18 @@ nav {
109 113
 	margin-top : 0.2em;
110 114
 }
111 115
 
112  
-#posts ul {
113  
-	margin : 0;
  116
+.post-list {
  117
+	margin  : 0;
  118
+	padding : 0;
114 119
 }
115 120
 
116  
-	#posts ul li {
  121
+	.post-list li {
117 122
 		list-style     : none;
118 123
 		font-size      : 1.2em;
119 124
 		letter-spacing : 0.1em;
120 125
 		line-height    : 2;
121 126
 	}
122 127
 
123  
-	#posts a {
  128
+	.post-list a {
124 129
 		text-decoration : none;
125  
-	}
126  
-
127  
-article {
128  
-}
129  
-
130  
-	article time {
131  
-		display        : block;
132  
-		text-transform : uppercase;
133  
-		font-size      : 1.1em;
134  
-		color          : #666;
135  
-		margin         : 0.5em 0;
136  
-	}
137  
-
138  
-	article #page-title {
139  
-		margin        : 0.1em 0;
140  
-		font-size     : 2.4em;
141  
-		border-bottom : 1px solid;
142  
-	}
143  
-
144  
-	article #published-in {
145  
-		color      : #555555;
146  
-		text-align : right;
147  
-		margin     : 1em 0;
148  
-	}
149  
-
150  
-	article h1 {
151  
-		font-size     : 2em;
152  
-		margin        : 0.1em 0;
153  
-	}
154  
-	article h2 {
155  
-		font-size     : 1.6em;
156  
-		line-height   : 1;
157  
-		margin-bottom : 0.5em;
158  
-		border-bottom : 1px dotted;
159  
-	}
160  
-	article h3 {
161  
-		font-size: 1.2em;
162  
-	}
163  
-
164  
-	article #comments-container {
165  
-		border-top  : 3px double #e4e1e1;
166  
-		padding-top : 1em;
167 130
 	}
504  static/css/lib/normalize.css
... ...
@@ -0,0 +1,504 @@
  1
+/*! normalize.css 2012-03-11T12:53 UTC - http://github.com/necolas/normalize.css */
  2
+
  3
+/* =============================================================================
  4
+   HTML5 display definitions
  5
+   ========================================================================== */
  6
+
  7
+/*
  8
+ * Corrects block display not defined in IE6/7/8/9 & FF3
  9
+ */
  10
+
  11
+article,
  12
+aside,
  13
+details,
  14
+figcaption,
  15
+figure,
  16
+footer,
  17
+header,
  18
+hgroup,
  19
+nav,
  20
+section,
  21
+summary {
  22
+    display: block;
  23
+}
  24
+
  25
+/*
  26
+ * Corrects inline-block display not defined in IE6/7/8/9 & FF3
  27
+ */
  28
+
  29
+audio,
  30
+canvas,
  31
+video {
  32
+    display: inline-block;
  33
+    *display: inline;
  34
+    *zoom: 1;
  35
+}
  36
+
  37
+/*
  38
+ * Prevents modern browsers from displaying 'audio' without controls
  39
+ * Remove excess height in iOS5 devices
  40
+ */
  41
+
  42
+audio:not([controls]) {
  43
+    display: none;
  44
+    height: 0;
  45
+}
  46
+
  47
+/*
  48
+ * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
  49
+ * Known issue: no IE6 support
  50
+ */
  51
+
  52
+[hidden] {
  53
+    display: none;
  54
+}
  55
+
  56
+
  57
+/* =============================================================================
  58
+   Base
  59
+   ========================================================================== */
  60
+
  61
+/*
  62
+ * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
  63
+ *    http://clagnut.com/blog/348/#c790
  64
+ * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
  65
+ *    www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
  66
+ */
  67
+
  68
+html {
  69
+    font-size: 100%; /* 1 */
  70
+    -webkit-text-size-adjust: 100%; /* 2 */
  71
+    -ms-text-size-adjust: 100%; /* 2 */
  72
+}
  73
+
  74
+/*
  75
+ * Addresses font-family inconsistency between 'textarea' and other form elements.
  76
+ */
  77
+
  78
+html,
  79
+button,
  80
+input,
  81
+select,
  82
+textarea {
  83
+    font-family: sans-serif;
  84
+}
  85
+
  86
+/*
  87
+ * Addresses margins handled incorrectly in IE6/7
  88
+ */
  89
+
  90
+body {
  91
+    margin: 0;
  92
+}
  93
+
  94
+
  95
+/* =============================================================================
  96
+   Links
  97
+   ========================================================================== */
  98
+
  99
+/*
  100
+ * Addresses outline displayed oddly in Chrome
  101
+ */
  102
+
  103
+a:focus {
  104
+    outline: thin dotted;
  105
+}
  106
+
  107
+/*
  108
+ * Improves readability when focused and also mouse hovered in all browsers
  109
+ * people.opera.com/patrickl/experiments/keyboard/test
  110
+ */
  111
+
  112
+a:hover,
  113
+a:active {
  114
+    outline: 0;
  115
+}
  116
+
  117
+
  118
+/* =============================================================================
  119
+   Typography
  120
+   ========================================================================== */
  121
+
  122
+/*
  123
+ * Addresses font sizes and margins set differently in IE6/7
  124
+ * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
  125
+ */
  126
+
  127
+h1 {
  128
+    font-size: 2em;
  129
+    margin: 0.67em 0;
  130
+}
  131
+
  132
+h2 {
  133
+    font-size: 1.5em;
  134
+    margin: 0.83em 0;
  135
+}
  136
+
  137
+h3 {
  138
+    font-size: 1.17em;
  139
+    margin: 1em 0;
  140
+}
  141
+
  142
+h4 {
  143
+    font-size: 1em;
  144
+    margin: 1.33em 0;
  145
+}
  146
+
  147
+h5 {
  148
+    font-size: 0.83em;
  149
+    margin: 1.67em 0;
  150
+}
  151
+
  152
+h6 {
  153
+    font-size: 0.75em;
  154
+    margin: 2.33em 0;
  155
+}
  156
+
  157
+/*
  158
+ * Addresses styling not present in IE7/8/9, S5, Chrome
  159
+ */
  160
+
  161
+abbr[title] {
  162
+    border-bottom: 1px dotted;
  163
+}
  164
+
  165
+/*
  166
+ * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
  167
+*/
  168
+
  169
+b,
  170
+strong {
  171
+    font-weight: bold;
  172
+}
  173
+
  174
+blockquote {
  175
+    margin: 1em 40px;
  176
+}
  177
+
  178
+/*
  179
+ * Addresses styling not present in S5, Chrome
  180
+ */
  181
+
  182
+dfn {
  183
+    font-style: italic;
  184
+}
  185
+
  186
+/*
  187
+ * Addresses styling not present in IE6/7/8/9
  188
+ */
  189
+
  190
+mark {
  191
+    background: #ff0;
  192
+    color: #000;
  193
+}
  194
+
  195
+/*
  196
+ * Addresses margins set differently in IE6/7
  197
+ */
  198
+
  199
+p,
  200
+pre {
  201
+    margin: 1em 0;
  202
+}
  203
+
  204
+/*
  205
+ * Corrects font family set oddly in IE6, S4/5, Chrome
  206
+ * en.wikipedia.org/wiki/User:Davidgothberg/Test59
  207
+ */
  208
+
  209
+pre,
  210
+code,
  211
+kbd,
  212
+samp {
  213
+    font-family: monospace, serif;
  214
+    _font-family: 'courier new', monospace;
  215
+    font-size: 1em;
  216
+}
  217
+
  218
+/*
  219
+ * Improves readability of pre-formatted text in all browsers
  220
+ */
  221
+
  222
+pre {
  223
+    white-space: pre;
  224
+    white-space: pre-wrap;
  225
+    word-wrap: break-word;
  226
+}
  227
+
  228
+/*
  229
+ * 1. Addresses CSS quotes not supported in IE6/7
  230
+ * 2. Addresses quote property not supported in S4
  231
+ */
  232
+
  233
+/* 1 */
  234
+
  235
+q {
  236
+    quotes: none;
  237
+}
  238
+
  239
+/* 2 */
  240
+
  241
+q:before,
  242
+q:after {
  243
+    content: '';
  244
+    content: none;
  245
+}
  246
+
  247
+small {
  248
+    font-size: 75%;
  249
+}
  250
+
  251
+/*
  252
+ * Prevents sub and sup affecting line-height in all browsers
  253
+ * gist.github.com/413930
  254
+ */
  255
+
  256
+sub,
  257
+sup {
  258
+    font-size: 75%;
  259
+    line-height: 0;
  260
+    position: relative;
  261
+    vertical-align: baseline;
  262
+}
  263
+
  264
+sup {
  265
+    top: -0.5em;
  266
+}
  267
+
  268
+sub {
  269
+    bottom: -0.25em;
  270
+}
  271
+
  272
+
  273
+/* =============================================================================
  274
+   Lists
  275
+   ========================================================================== */
  276
+
  277
+/*
  278
+ * Addresses margins set differently in IE6/7
  279
+ */
  280
+
  281
+dl,
  282
+menu,
  283
+ol,
  284
+ul {
  285
+    margin: 1em 0;
  286
+}
  287
+
  288
+dd {
  289
+    margin: 0 0 0 40px;
  290
+}
  291
+
  292
+/*
  293
+ * Addresses paddings set differently in IE6/7
  294
+ */
  295
+
  296
+menu,
  297
+ol,
  298
+ul {
  299
+    padding: 0 0 0 40px;
  300
+}
  301
+
  302
+/*
  303
+ * Corrects list images handled incorrectly in IE7
  304
+ */
  305
+
  306
+nav ul,
  307
+nav ol {
  308
+    list-style: none;
  309
+    list-style-image: none;
  310
+}
  311
+
  312
+
  313
+/* =============================================================================
  314
+   Embedded content
  315
+   ========================================================================== */
  316
+
  317
+/*
  318
+ * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
  319
+ * 2. Improves image quality when scaled in IE7
  320
+ *    code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
  321
+ */
  322
+
  323
+img {
  324
+    border: 0; /* 1 */
  325
+    -ms-interpolation-mode: bicubic; /* 2 */
  326
+}
  327
+
  328
+/*
  329
+ * Corrects overflow displayed oddly in IE9
  330
+ */
  331
+
  332
+svg:not(:root) {
  333
+    overflow: hidden;
  334
+}
  335
+
  336
+
  337
+/* =============================================================================
  338
+   Figures
  339
+   ========================================================================== */
  340
+
  341
+/*
  342
+ * Addresses margin not present in IE6/7/8/9, S5, O11
  343
+ */
  344
+
  345
+figure {
  346
+    margin: 0;
  347
+}
  348
+
  349
+
  350
+/* =============================================================================
  351
+   Forms
  352
+   ========================================================================== */
  353
+
  354
+/*
  355
+ * Corrects margin displayed oddly in IE6/7
  356
+ */
  357
+
  358
+form {
  359
+    margin: 0;
  360
+}
  361
+
  362
+/*
  363
+ * Define consistent border, margin, and padding
  364
+ */
  365
+
  366
+fieldset {
  367
+    border: 1px solid #c0c0c0;
  368
+    margin: 0 2px;
  369
+    padding: 0.35em 0.625em 0.75em;
  370
+}
  371
+
  372
+/*
  373
+ * 1. Corrects color not being inherited in IE6/7/8/9
  374
+ * 2. Corrects text not wrapping in FF3
  375
+ * 3. Corrects alignment displayed oddly in IE6/7
  376
+ */
  377
+
  378
+legend {
  379
+    border: 0; /* 1 */
  380
+    padding: 0;
  381
+    white-space: normal; /* 2 */
  382
+    *margin-left: -7px; /* 3 */
  383
+}
  384
+
  385
+/*
  386
+ * 1. Corrects font size not being inherited in all browsers
  387
+ * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
  388
+ * 3. Improves appearance and consistency in all browsers
  389
+ */
  390
+
  391
+button,
  392
+input,
  393
+select,
  394
+textarea {
  395
+    font-size: 100%; /* 1 */
  396
+    margin: 0; /* 2 */
  397
+    vertical-align: baseline; /* 3 */
  398
+    *vertical-align: middle; /* 3 */
  399
+}
  400
+
  401
+/*
  402
+ * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
  403
+ */
  404
+
  405
+button,
  406
+input {
  407
+    line-height: normal; /* 1 */
  408
+}
  409
+
  410
+/*
  411
+ * 1. Improves usability and consistency of cursor style between image-type 'input' and others
  412
+ * 2. Corrects inability to style clickable 'input' types in iOS
  413
+ * 3. Removes inner spacing in IE7 without affecting normal text inputs
  414
+ *    Known issue: inner spacing remains in IE6
  415
+ */
  416
+
  417
+button,
  418
+input[type="button"],
  419
+input[type="reset"],
  420
+input[type="submit"] {
  421
+    cursor: pointer; /* 1 */
  422
+    -webkit-appearance: button; /* 2 */
  423
+    *overflow: visible;  /* 3 */
  424
+}
  425
+
  426
+/*
  427
+ * Re-set default cursor for disabled elements
  428
+ */
  429
+
  430
+button[disabled],
  431
+input[disabled] {
  432
+    cursor: default;
  433
+}
  434
+
  435
+/*
  436
+ * 1. Addresses box sizing set to content-box in IE8/9
  437
+ * 2. Removes excess padding in IE8/9
  438
+ * 3. Removes excess padding in IE7
  439
+      Known issue: excess padding remains in IE6
  440
+ */
  441
+
  442
+input[type="checkbox"],
  443
+input[type="radio"] {
  444
+    box-sizing: border-box; /* 1 */
  445
+    padding: 0; /* 2 */
  446
+    *height: 13px; /* 3 */
  447
+    *width: 13px; /* 3 */
  448
+}
  449
+
  450
+/*
  451
+ * 1. Addresses appearance set to searchfield in S5, Chrome
  452
+ * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
  453
+ */
  454
+
  455
+input[type="search"] {
  456
+    -webkit-appearance: textfield; /* 1 */
  457
+    -moz-box-sizing: content-box;
  458
+    -webkit-box-sizing: content-box; /* 2 */
  459
+    box-sizing: content-box;
  460
+}
  461
+
  462
+/*
  463
+ * Removes inner padding and search cancel button in S5, Chrome on OS X
  464
+ */
  465
+
  466
+input[type="search"]::-webkit-search-decoration,
  467
+input[type="search"]::-webkit-search-cancel-button {
  468
+    -webkit-appearance: none;
  469
+}
  470
+
  471
+/*
  472
+ * Removes inner padding and border in FF3+
  473
+ * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
  474
+ */
  475
+
  476
+button::-moz-focus-inner,
  477
+input::-moz-focus-inner {
  478
+    border: 0;
  479
+    padding: 0;
  480
+}
  481
+
  482
+/*
  483
+ * 1. Removes default vertical scrollbar in IE6/7/8/9
  484
+ * 2. Improves readability and alignment in all browsers
  485
+ */
  486
+
  487
+textarea {
  488
+    overflow: auto; /* 1 */
  489
+    vertical-align: top; /* 2 */
  490
+}
  491
+
  492
+
  493
+/* =============================================================================
  494
+   Tables
  495
+   ========================================================================== */
  496
+
  497
+/*
  498
+ * Remove most spacing between table cells
  499
+ */
  500
+
  501
+table {
  502
+    border-collapse: collapse;
  503
+    border-spacing: 0;
  504
+}
0  static/css/syntax.css → static/css/lib/syntax.css
File renamed without changes
6  static/css/master.css
... ...
@@ -1,6 +0,0 @@
1  
-@import reset.css
2  
-@import base.css
3  
-@import layout.css
4  
-@import typography.css
5  
-@import syntax.css
6  
-@import print.css
13  static/css/print.css
@@ -18,21 +18,22 @@
18 18
 		color:#444444;
19 19
 	}
20 20
 
21  
-	#social-links,
22  
-	#disqus_thread,
  21
+	#follow-me,
  22
+	#fork-me,
  23
+	#comments-container,
23 24
 	#powered-by,
24  
-	#post-categories,
25  
-	#ascii-art {
  25
+	#published-in,
  26
+	nav {
26 27
 		display:none;
27 28
 	}
28 29
 
29  
-	#post, #posts {
  30
+	#post {
30 31
 		border:none;
31 32
 		padding:0;
32 33
 	}
33 34
 
34 35
 	#post-content {
35  
-		border-top:1px solid #444444;
  36
+		padding-top : 0.5em;
36 37
 	}
37 38
 
38 39
 	.highlight  { 
8  static/css/reset.css
... ...
@@ -1,8 +0,0 @@
1  
-/*
2  
-Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3  
-Code licensed under the BSD License:
4  
-http://developer.yahoo.com/yui/license.html
5  
-version: 3.3.0
6  
-build: 3167
7  
-*/
8  
-html{color:#000;background:#fff;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;}
65  static/css/typography.css
@@ -25,11 +25,6 @@ h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; height: 1.25em;
25 25
 h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
26 26
 h6 { font-size: 1em; font-weight: bold; }
27 27
 
28  
-h1 img, h2 img, h3 img, 
29  
-h4 img, h5 img, h6 img {
30  
-  margin: 0;
31  
-}
32  
-
33 28
 
34 29
 /* Text elements
35 30
 -------------------------------------------------------------- */
@@ -53,9 +48,11 @@ acronym     { border-bottom: 1px dotted #666; }
53 48
 address     { margin: 0 0 1.5em; font-style: italic; }
54 49
 del         { color:#666; }
55 50
 
  51
+/* Article text
  52
+--------------------------------------------------------------- */
56 53
 article {
57  
-	font-family : Verdana, "Sans serif";
58  
-	font-size   : 1em;
  54
+  font-family : Verdana, "Sans serif";
  55
+  font-size   : 1em;
59 56
 }
60 57
 
61 58
 article p {
@@ -76,63 +73,19 @@ article h3,
76 73
 article h4,
77 74
 article #post-content p:first-child,
78 75
 article #post-content p:first-child * {
79  
-	font-family : Georgia, serif;
  76
+  font-family : Georgia, serif;
80 77
 }
81 78
 
82 79
 article p:first-child {
83  
-	font-size   : 1.2em;
84  
-	font-style  : italic;
  80
+  font-size   : 1.2em;
  81
+  font-style  : italic;
85 82
 }
86 83
 
87 84
 article #post-content blockquote p {
88  
-	font-size   : 1.1em;
  85
+  font-size   : 1.1em;
89 86
 }
90 87
 
91 88
 #dsq-content .dsq-comment-text p {
92 89
   font-size  : 1em;
93 90
   font-style : normal;
94  
-}
95  
-
96  
-/* Lists
97  
--------------------------------------------------------------- */
98  
-
99  
-li ul, 
100  
-li ol       { margin:0 1.5em; }
101  
-ul, ol      { margin: 0 1.5em 1.5em 1.5em; }
102  
-
103  
-ul          { list-style-type: disc; }
104  
-ol          { list-style-type: decimal; }
105  
-
106  
-dl          { margin: 0 0 1.5em 0; }
107  
-dl dt       { font-weight: bold; }
108  
-dd          { margin-left: 1.5em;}
109  
-
110  
-
111  
-/* Tables
112  
--------------------------------------------------------------- */
113  
-
114  
-table       { margin-bottom: 1.4em; width:100%; }
115  
-th          { font-weight: bold; background: #C3D9FF; }
116  
-th,td       { padding: 4px 10px 4px 5px; }
117  
-tr.even td  { background: #E5ECF9; }
118  
-tfoot       { font-style: italic; }
119  
-caption     { background: #eee; }
120  
-
121  
-
122  
-/* Misc classes
123  
--------------------------------------------------------------- */
124  
-
125  
-.small      { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
126  
-.large      { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
127  
-.hide       { display: none; }
128  
-
129  
-.quiet      { color: #666; }
130  
-.loud       { color: #000; }
131  
-.highlight  { background:#ff0; }
132  
-.added      { background:#060; color: #fff; }
133  
-.removed    { background:#900; color: #fff; }
134  
-
135  
-.first      { margin-left:0; padding-left:0; }
136  
-.last       { margin-right:0; padding-right:0; }
137  
-.top        { margin-top:0; padding-top:0; }
138  
-.bottom     { margin-bottom:0; padding-bottom:0; }
  91
+}

No commit comments for this range

Something went wrong with that request. Please try again.