octopress-solarized 1.0.0.alpha.3 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3aaedc717bf59afb5296517ebc694ec61e4e8f6b
4
- data.tar.gz: 6142d265e1c9bace75b1fde8a82dbb9927ceefd1
3
+ metadata.gz: 5905fefe4c1736111ef5f1d571b263dcbd36e9b0
4
+ data.tar.gz: 68d7ab908e7eb1972e53ddab591e3ce43b6dd7b3
5
5
  SHA512:
6
- metadata.gz: c642b74cc8718dd7542a223575977a763a0900c8913f267c3c23a246d9134d2d7cb3a46546267d34bde2cdb89a9868be5652dd4997fd0d4ee6ef172a7425ecc8
7
- data.tar.gz: 55d3b9c6189b0588f3845427675c816e9891a6ecd263dbf3d1ebaf9284a6a1bc35f799efa7b56fcf7d6ebd4c311504e940c046e3717b8b371f357c821f94ea61
6
+ metadata.gz: d9f4dc824bbee1e94182001b35c12d2f259be3c371fd7771d46b5e90edf776ada7987482bcbe1de307544087d93cd62861b75065fce14f875a8033e738b5cbe3
7
+ data.tar.gz: ee536ca3df1df22e8e842ea3d13b641014782105ec365f39406bceb67820102c04b17c1b8f792d4e921bc25080a28498939778ab1c7717ad60e83024e31d36a7
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ script: cd test && bundle exec ruby test.rb
data/Rakefile CHANGED
@@ -1 +1,23 @@
1
1
  require "bundler/gem_tasks"
2
+ require "autoprefixer-rails"
3
+
4
+ desc "Generate CSS build"
5
+ task :build_css do
6
+
7
+ light_css_file = 'build/solarized-light.min.css'
8
+ dark_css_file = 'build/solarized-dark.min.css'
9
+
10
+ system "sass --no-cache --style compressed build/sass/solarized-light.scss #{light_css_file}"
11
+ system "sass --no-cache --style compressed build/sass/solarized-dark.scss #{dark_css_file}"
12
+
13
+ # post process with Autoprefixer
14
+ #
15
+ prefix_css(light_css_file)
16
+ prefix_css(dark_css_file)
17
+ end
18
+
19
+ def prefix_css(css_file)
20
+ css = File.open(css_file).read
21
+ css = AutoprefixerRails.process(css)
22
+ File.open(css_file, 'w') { |f| f.write css }
23
+ end
@@ -1,15 +1,104 @@
1
+ @include solarized-theme($solarized);
2
+
3
+ // Inilne <code> element styles
4
+ //
5
+ code,
6
+ kbd,
7
+ samp,
8
+ tt {
9
+ color: inherit;
10
+ background-color: $code-bg;
11
+ border: 1px solid $code-border;
12
+ font-family: $code-font-family;
13
+ border-radius: 3px;
14
+ font-size: $code-font-size;
15
+ &:before, &:after {
16
+ content: "\00a0";
17
+ letter-spacing: -0.2em;
18
+ }
19
+ }
20
+
21
+ // Overide <code> styles beneath <pre>
22
+ //
23
+ pre code {
24
+ &:before, &:after {
25
+ content: none;
26
+ }
27
+ border: none;
28
+ background-color: none;
29
+ border-raidus: 0;
30
+ font-size: inherit;
31
+ }
32
+
33
+ // Basic pre styles
34
+ //
35
+ pre, pre code {
36
+ * { box-sizing: border-box; }
37
+ font-size: $pre-font-size;
38
+ font-family: $pre-font-family;
39
+ }
40
+
41
+ // Styles for pre's which aren't highlighted by Octopress's highlighter
42
+ //
43
+ .highlight pre,
44
+ pre:not(.code-highlight-pre),
1
45
  .code-highlight {
2
- @include octopress-highlight-style;
3
- @include octopress-solarized-code;
46
+ span { font-style: normal; font-weight: normal; }
47
+
48
+ overflow: scroll;
49
+ overflow-y: hidden;
50
+ overflow-x: auto;
51
+ line-height: 1.45em;
4
52
  }
5
53
 
54
+
55
+ // Styles for Octopress highlighted code blocks.
56
+ //
6
57
  .code-highlight-figure {
7
- font-size: 13px;
58
+ margin: 1.8em 0;
59
+ font-size: 14px;
8
60
  * { box-sizing: border-box; }
61
+ background: none;
62
+ padding: 0;
63
+ border: 0;
64
+
65
+ pre { margin: { top: 0; bottom: 0; } }
66
+
67
+ }
68
+
69
+ .code-highlight-caption {
70
+ position: relative;
71
+ text-align: center;
72
+ line-height: 2em;
73
+ text-shadow: rgba(#fff, .8) 0 1px 0;
74
+ color: #474747;
75
+ font-weight: normal;
76
+ margin-bottom: 0;
77
+ background-color: #ccc;
78
+ background-image: linear-gradient(#ffffff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);
79
+ border-top-left-radius: 5px;
80
+ border-top-right-radius: 5px;
81
+ font-family: "Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
82
+ border: 1px solid #cbcbcb;
83
+ + .code-highlight { border-top: 0; }
84
+ }
85
+
86
+ .code-highlight-caption-link {
87
+ position: absolute; right: .8em;
88
+ color: #666;
89
+ z-index: 1;
90
+ text-shadow: rgba(#fff, .8) 0 1px 0;
91
+ padding-left: 3em;
92
+ }
93
+
94
+ .highlight pre,
95
+ pre:not(.code-highlight-pre) {
96
+ padding: 1em .8rem;
97
+ border-radius: .4em;
98
+ margin: 1.8em 0;
9
99
  }
10
100
 
11
101
  .code-highlight-pre {
12
- background: darken($base03, 1);
13
102
  width: 100%;
14
103
  margin-bottom: 0;
15
104
  display: table;
@@ -18,39 +107,31 @@
18
107
  .code-highlight-row {
19
108
  display: table-row;
20
109
  width: 100%;
21
- }
22
110
 
23
- .code-highlight-row {
24
111
  &:before, .code-highlight-line {
25
112
  padding: {left: $pre-line-padding + .8; right: $pre-line-padding + .8 }
26
113
  }
114
+
27
115
  &:first-child {
28
116
  &:before, .code-highlight-line { padding-top: $pre-line-padding; }
29
117
  }
118
+
30
119
  &:last-child {
31
120
  &:before, .code-highlight-line { padding-bottom: $pre-line-padding; }
32
121
  }
122
+
33
123
  &.numbered {
124
+
34
125
  &:before, .code-highlight-line {
35
126
  padding: {left: $pre-line-padding; right: $pre-line-padding }
36
127
  }
128
+
37
129
  &:before {
38
130
  display: table-cell;
39
131
  content: attr(data-line);
40
132
  min-width: 1.2em;
41
- color: $base01;
42
133
  text-align: right;
43
134
  line-height: 1.45em;
44
- @if $solarized == light {
45
- background: lighten($base03, 1);
46
- border-right: 1px solid darken($base02, 2);
47
- text-shadow: lighten($base02, 2) 0 -1px;
48
- } @else {
49
- background: $base02;
50
- border-right: 1px solid darken($base03, 2);
51
- box-shadow: lighten($base02, 2) -1px 0 inset;
52
- text-shadow: darken($base02, 10) 0 -1px;
53
- }
54
135
  }
55
136
  }
56
137
  }
@@ -62,82 +143,33 @@
62
143
  z-index: 1;
63
144
  }
64
145
 
146
+
65
147
  .marked-line {
66
148
  position: relative;
67
- &.unnumbered {
68
- }
69
149
  .code-highlight-line {
70
150
  &:before {
71
151
  content: "";
72
152
  position: absolute;
73
- background: $marker-bg;
74
153
  left: 0; top: 0; bottom: 0; right: 0;
75
- border-right: 1px solid $marker-border;
154
+ border-right: 1px solid $pre-marker-border;
76
155
  }
77
156
  }
78
157
  &.unnumbered .code-highlight-line:before {
79
- border-left: 3px solid $marker-border-left;
158
+ border-left: 3px solid $pre-marker-border-left;
80
159
  }
81
160
  &.numbered:before {
82
- background: $marker-bg;
83
- border-left: 3px solid $marker-border-left;
84
- border-right-color: darken($marker-bg, 20);
161
+ border-left: 3px solid $pre-marker-border-left;
85
162
  }
86
163
  }
87
164
 
88
165
  .start-marked-line {
89
166
  &:before, .code-highlight-line:before {
90
- border-top: 1px solid $marker-border;
167
+ border-top: 1px solid $pre-marker-border;
91
168
  }
92
169
  }
170
+
93
171
  .end-marked-line {
94
172
  &:before, .code-highlight-line:before {
95
- border-bottom: 1px solid $marker-border;
96
- }
97
- }
98
-
99
- .code-highlight-table {
100
- margin-bottom: 0;
101
- background: $base03;
102
- pre {
103
- padding: .8em;
104
- background: none;
105
- border-radius: 0;
106
- border: none;
107
- margin-bottom: 0;
173
+ border-bottom: 1px solid $pre-marker-border;
108
174
  }
109
175
  }
110
-
111
- .code-highlight-figure {
112
- margin: {left: 0; right: 0;}
113
- background: none;
114
- padding: 0;
115
- border: 0;
116
- pre { margin: { top: 0; bottom: 0; } }
117
- }
118
-
119
- .code-highlight-caption {
120
- position: relative;
121
- text-align: center;
122
- line-height: 2em;
123
- text-shadow: #fff 0 1px 0;
124
- color: #474747;
125
- font-weight: normal;
126
- margin-bottom: 0;
127
- background-color: #ccc;
128
- background-image: linear-gradient(#ffffff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);
129
- border-top-left-radius: 5px;
130
- border-top-right-radius: 5px;
131
- font-family: "Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;
132
- border: 1px solid #cbcbcb;
133
- + .code-highlight { border-top: 0; }
134
- }
135
-
136
- .code-highlight-caption-link {
137
- position: absolute; right: .8em;
138
- color: #666;
139
- z-index: 1;
140
- text-shadow: #cbcccc 0 1px 0;
141
- padding-left: 3em;
142
- }
143
-
@@ -0,0 +1,161 @@
1
+ $pre-line-padding: .8em !default;
2
+ $pre-font-family: "Source Code Pro", Inconsolata-dz, Inconsolata, Menlo, Monaco, Consolas, "Liberation Mono", Courier, monospace !default;
3
+ $pre-font-size: 13px !default;
4
+
5
+ $code-font-family: $pre-font-family;
6
+ $code-font-size: .85em !default;
7
+
8
+ %octopress-diff-bg {
9
+ content: "";
10
+ position: absolute;
11
+ z-index: -1;
12
+ left: 0; right: 0; top: 0; bottom: 0;
13
+ }
14
+
15
+ @mixin octopress-diff-bg($bg) {
16
+ &:after {
17
+ background: $bg;
18
+ @extend %octopress-diff-bg;
19
+ }
20
+ }
21
+
22
+ @mixin solarized-theme($s: dark) {
23
+ // Core colors
24
+ $base03: if($s == light, $solar-base3, $solar-base03);
25
+ $base02: if($s == light, $solar-base2, $solar-base02);
26
+ $base01: if($s == light, $solar-base1, $solar-base01);
27
+ $base00: if($s == light, $solar-base0, $solar-base00);
28
+ $base0: if($s == light, $solar-base00, $solar-base0);
29
+ $base1: if($s == light, $solar-base01, $solar-base1);
30
+ $base2: if($s == light, $solar-base02, $solar-base2);
31
+ $base3: if($s == light, $solar-base03, $solar-base3);
32
+
33
+ $pre-marker-bg: if($s == light, rgba($pre-marker, .05), rgba($pre-marker, .13));
34
+
35
+ $pre-bg: $base03;
36
+ $pre-color: $base1;
37
+ $pre-border: darken($base02, 5);
38
+ $code-highlight-border: $pre-border;
39
+
40
+ .code-highlight-pre {
41
+ background: darken($base03, 1);
42
+ }
43
+
44
+ .code-highlight-row.numbered:before {
45
+ color: $base01;
46
+ @if $solarized == light {
47
+ background: lighten($base03, 1);
48
+ border-right: 1px solid darken($base02, 2);
49
+ text-shadow: lighten($base02, 2) 0 -1px;
50
+ } @else {
51
+ background: $base02;
52
+ border-right: 1px solid darken($base03, 2);
53
+ box-shadow: lighten($base02, 2) -1px 0 inset;
54
+ text-shadow: darken($base02, 10) 0 -1px;
55
+ }
56
+ }
57
+
58
+ .marked-line {
59
+ .code-highlight-line:before {
60
+ background: $pre-marker-bg;
61
+ }
62
+
63
+ &.numbered:before {
64
+ background: $pre-marker-bg;
65
+ border-right-color: darken($pre-marker-bg, 20);
66
+ }
67
+ }
68
+
69
+ .highlight pre,
70
+ pre:not(.code-highlight-pre),
71
+ .code-highlight {
72
+ border: 1px solid $code-highlight-border;
73
+ background: $pre-bg;
74
+ color: $base1;
75
+ }
76
+
77
+ pre {
78
+ span { color: $base1; }
79
+
80
+ .c { color: $base01; font-style: italic; } /* Comment */
81
+ .cm { color: $base01; font-style: italic; } /* Comment.Multiline */
82
+ .cp { color: $base01; font-style: italic; } /* Comment.Preproc */
83
+ .c1 { color: $base01; font-style: italic; } /* Comment.Single */
84
+ .cs { /* Comment.Special */
85
+ color: $base01;
86
+ font-weight: bold;
87
+ font-style: italic; }
88
+ .err { color: $solar-red; background: none; } /* Error */
89
+ .k { color: $solar-orange; } /* Keyword */
90
+ .o { color: $base1; font-weight: bold; } /* Operator */
91
+ .p { color: $base1; } /* Operator */
92
+ .ow { color: $solar-cyan; font-weight: bold; } /* Operator.Word */
93
+ .gd {
94
+ color: $base1; /* Generic.Deleted */
95
+ @include octopress-diff-bg(mix($solar-red, $base03, 25%));
96
+ }
97
+ .gd .x { /* Generic.Deleted.Specific */
98
+ color: $base1;
99
+ @include octopress-diff-bg(mix($solar-red, $base03, 35%));
100
+ }
101
+ .ge { /* Generic.Emph */
102
+ color: $base1;
103
+ font-style: italic; }
104
+ //.gr { color: #aa0000 } /* Generic.Error */
105
+ .gh { color: $base01; } /* Generic.Heading */
106
+ .gi { /* Generic.Inserted */
107
+ color: $base1;
108
+ @include octopress-diff-bg(mix($solar-green, $base03, 20%));
109
+ }
110
+ .gi .x { /* Generic.Inserted.Specific */
111
+ color: $base1;
112
+ @include octopress-diff-bg(mix($solar-green, $base03, 40%));
113
+ }
114
+ .go { color: $base0; } /* Generic.Output */
115
+ .gp { color: $solar-cyan; } /* Generic.Prompt */
116
+ .gs { color: $base1; font-weight: bold; } /* Generic.Strong */
117
+ .gu { color: $solar-violet; } /* Generic.Subheading */
118
+ .gt { color: $solar-red; } /* Generic.Traceback */
119
+ .kc { color: $solar-green; font-weight: bold; } /* Keyword.Constant */
120
+ .kd { color: $solar-blue; } /* Keyword.Declaration */
121
+ .kp { color: $solar-orange; font-weight: bold; } /* Keyword.Pseudo */
122
+ .kr { color: $solar-magenta; font-weight: bold; } /* Keyword.Reserved */
123
+ .kt { color: $solar-cyan; } /* Keyword.Type */
124
+ .n { color: $solar-blue; }
125
+ .na { color: $solar-blue; } /* Name.Attribute */
126
+ .nb { color: $solar-green; } /* Name.Builtin */
127
+ .nc { color: $solar-magenta;} /* Name.Class */
128
+ .no { color: $solar-yellow; } /* Name.Constant */
129
+ .ni { color: $solar-magenta; } /* Name.Entity */
130
+ .nl { color: $solar-green; }
131
+ .ne { color: $solar-blue; font-weight: bold; } /* Name.Exception */
132
+ .nf { color: $solar-blue; font-weight: bold; } /* Name.Function */
133
+ .nn { color: $solar-yellow; } /* Name.Namespace */
134
+ .nt { color: $solar-blue; font-weight: bold; } /* Name.Tag */
135
+ .nx { color: $solar-yellow; }
136
+ .bp { color: $base1; } /* Name.Builtin.Pseudo */
137
+ .vc { color: $solar-green; } /* Name.Variable.Class */
138
+ .vg { color: $solar-blue; } /* Name.Variable.Global */
139
+ .vi { color: $solar-blue; } /* Name.Variable.Instance */
140
+ .nv { color: $solar-blue; } /* Name.Variable */
141
+ .w { color: $base00; } /* Text.Whitespace */
142
+ .mf { color: $solar-cyan; } /* Literal.Number.Float */
143
+ .m { color: $solar-cyan; } /* Literal.Number */
144
+ .mh { color: $solar-cyan; } /* Literal.Number.Hex */
145
+ .mi { color: $solar-cyan; } /* Literal.Number.Integer */
146
+ .mo { color: $solar-cyan; } /* Literal.Number.Oct */
147
+ .s { color: $solar-cyan; } /* Literal.String */
148
+ .sb { color: $solar-green; } /* Literal.String.Backtick */
149
+ .sc { color: $solar-green; } /* Literal.String.Char */
150
+ .sd { color: $solar-cyan; } /* Literal.String.Doc */
151
+ .s2 { color: $solar-cyan; } /* Literal.String.Double */
152
+ .se { color: $solar-red; } /* Literal.String.Escape */
153
+ .sh { color: $solar-green; } /* Literal.String.Heredoc */
154
+ .si { color: $solar-blue; } /* Literal.String.Interpol */
155
+ .sx { color: $solar-green; } /* Literal.String.Other */
156
+ .sr { color: $solar-cyan; } /* Literal.String.Regex */
157
+ .s1 { color: $solar-cyan; } /* Literal.String.Single */
158
+ .ss { color: $solar-orange; } /* Literal.String.Symbol */
159
+ .il { color: $solar-yellow; } /* Literal.Number.Integer.Long */
160
+ }
161
+ }
@@ -1,58 +1,25 @@
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: #f2f2f2 !default; //very light gray
8
- $base3: #ffffff !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
- $marker: rgba(#00baff, .5) !default;
19
- $marker-bg: rgba($marker, .13) !default;
20
- $marker-border: rgba($marker, .13) !default;
21
- $marker-border-left: $marker !default;
22
-
23
- $solarized: light !default;
24
-
25
- $solar-scroll-bg: rgba(#fff, .15);
26
- $solar-scroll-thumb: rgba(#fff, .2);
27
-
28
- @if $solarized == light {
29
-
30
- $_base03: $base03 !global;
31
- $_base02: $base02 !global;
32
- $_base01: $base01 !global;
33
- $_base00: $base00 !global;
34
- $_base0: $base0 !global;
35
- $_base1: $base1 !global;
36
- $_base2: $base2 !global;
37
- $_base3: $base3 !global;
38
-
39
- $base03: $_base3 !global;
40
- $base02: $_base2 !global;
41
- $base01: $_base1 !global;
42
- $base00: $_base0 !global;
43
- $base0: $_base00 !global;
44
- $base1: $_base01 !global;
45
- $base2: $_base02 !global;
46
- $base3: $_base03 !global;
47
-
48
- $solar-scroll-bg: rgba(#000, .15) !global;
49
- $solar-scroll-thumb: rgba(#000, .15) !global;
50
-
51
- $marker-bg: rgba($marker, .05) !global;
52
- }
53
-
54
- $pre-bg: $base03 !default;
55
- $pre-border: darken($base02, 5) !default;
56
- $pre-color: $base1 !default;
57
- $code-highlight-border: $pre-border;
58
-
1
+ $solar-base03: #002b36; //darkest blue
2
+ $solar-base02: #073642; //dark blue
3
+ $solar-base01: #586e75; //darkest gray
4
+ $solar-base00: #657b83; //dark gray
5
+ $solar-base0: #839496; //medium gray
6
+ $solar-base1: #93a1a1; //medium light gray
7
+ $solar-base2: #f2f2f2; //very light gray
8
+ $solar-base3: #ffffff; //white
9
+ $solar-yellow: #b58900;
10
+ $solar-orange: #cb4b16;
11
+ $solar-red: #dc322f;
12
+ $solar-magenta: #d33682;
13
+ $solar-violet: #6c71c4;
14
+ $solar-blue: #268bd2;
15
+ $solar-cyan: #2aa198;
16
+ $solar-green: #859900;
17
+
18
+ $pre-marker: rgba(#00baff, .5) !default;
19
+ $pre-marker-border: rgba($pre-marker, .13) !default;
20
+ $pre-marker-border-left: $pre-marker;
21
+
22
+ $code-bg: rgba(#fff, .3);
23
+ $code-border: rgba(#000, .1);
24
+
25
+ $solarized: dark;
@@ -1,2 +1 @@
1
- $pre-line-padding: .8em;
2
1
 
@@ -1,6 +1,4 @@
1
- @import 'vars';
2
1
  @import 'solarized';
3
- @import 'code-style';
2
+ @import 'vars';
3
+ @import 'code-mixins';
4
4
  @import 'code-highlight';
5
- @import 'standard-highlight';
6
-
@@ -0,0 +1,2 @@
1
+ $solarized: dark;
2
+ @import '../../assets/stylesheets/index';
@@ -0,0 +1,2 @@
1
+ $solarized: light;
2
+ @import '../../assets/stylesheets/index';
@@ -0,0 +1 @@
1
+ pre .gd:after,pre .gd .x:after,pre .gi:after,pre .gi .x:after{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;bottom:0}.code-highlight-pre{background:#002731}.code-highlight-row.numbered:before{color:#586e75;background:#073642;border-right:1px solid #00232c;-webkit-box-shadow:#083e4b -1px 0 inset;box-shadow:#083e4b -1px 0 inset;text-shadow:#021014 0 -1px}.marked-line .code-highlight-line:before{background:rgba(0,186,255,0.13)}.marked-line.numbered:before{background:rgba(0,186,255,0.13);border-right-color:rgba(0,112,153,0.13)}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{border:1px solid #05232b;background:#002b36;color:#93a1a1}pre span{color:#93a1a1}pre .c{color:#586e75;font-style:italic}pre .cm{color:#586e75;font-style:italic}pre .cp{color:#586e75;font-style:italic}pre .c1{color:#586e75;font-style:italic}pre .cs{color:#586e75;font-weight:bold;font-style:italic}pre .err{color:#dc322f;background:none}pre .k{color:#cb4b16}pre .o{color:#93a1a1;font-weight:bold}pre .p{color:#93a1a1}pre .ow{color:#2aa198;font-weight:bold}pre .gd{color:#93a1a1}pre .gd:after{background:#372c34}pre .gd .x{color:#93a1a1}pre .gd .x:after{background:#4d2d33}pre .ge{color:#93a1a1;font-style:italic}pre .gh{color:#586e75}pre .gi{color:#93a1a1}pre .gi:after{background:#1a412b}pre .gi .x{color:#93a1a1}pre .gi .x:after{background:#355720}pre .go{color:#839496}pre .gp{color:#2aa198}pre .gs{color:#93a1a1;font-weight:bold}pre .gu{color:#6c71c4}pre .gt{color:#dc322f}pre .kc{color:#859900;font-weight:bold}pre .kd{color:#268bd2}pre .kp{color:#cb4b16;font-weight:bold}pre .kr{color:#d33682;font-weight:bold}pre .kt{color:#2aa198}pre .n{color:#268bd2}pre .na{color:#268bd2}pre .nb{color:#859900}pre .nc{color:#d33682}pre .no{color:#b58900}pre .ni{color:#d33682}pre .nl{color:#859900}pre .ne{color:#268bd2;font-weight:bold}pre .nf{color:#268bd2;font-weight:bold}pre .nn{color:#b58900}pre .nt{color:#268bd2;font-weight:bold}pre .nx{color:#b58900}pre .bp{color:#93a1a1}pre .vc{color:#859900}pre .vg{color:#268bd2}pre .vi{color:#268bd2}pre .nv{color:#268bd2}pre .w{color:#657b83}pre .mf{color:#2aa198}pre .m{color:#2aa198}pre .mh{color:#2aa198}pre .mi{color:#2aa198}pre .mo{color:#2aa198}pre .s{color:#2aa198}pre .sb{color:#859900}pre .sc{color:#859900}pre .sd{color:#2aa198}pre .s2{color:#2aa198}pre .se{color:#dc322f}pre .sh{color:#859900}pre .si{color:#268bd2}pre .sx{color:#859900}pre .sr{color:#2aa198}pre .s1{color:#2aa198}pre .ss{color:#cb4b16}pre .il{color:#b58900}code,kbd,samp,tt{color:inherit;background-color:rgba(255,255,255,0.3);border:1px solid rgba(0,0,0,0.1);font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace;border-radius:3px;font-size:0.85em}code:before,code:after,kbd:before,kbd:after,samp:before,samp:after,tt:before,tt:after{content:"\00a0";letter-spacing:-0.2em}pre code{border:none;background-color:none;border-raidus:0;font-size:inherit}pre code:before,pre code:after{content:none}pre,pre code{font-size:13px;font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace}pre *,pre code *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{overflow:scroll;overflow-y:hidden;overflow-x:auto;line-height:1.45em}.highlight pre span,pre:not(.code-highlight-pre) span,.code-highlight span{font-style:normal;font-weight:normal}.code-highlight-figure{margin:1.8em 0;font-size:14px;background:none;padding:0;border:0}.code-highlight-figure *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.code-highlight-figure pre{margin-top:0;margin-bottom:0}.code-highlight-caption{position:relative;text-align:center;line-height:2em;text-shadow:rgba(255,255,255,0.8) 0 1px 0;color:#474747;font-weight:normal;margin-bottom:0;background-color:#ccc;background-image:-webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(6%, #f0f0f0), color-stop(90%, #e5e5e5), to(#e5e5e5));background-image:-webkit-linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);background-image:linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);border-top-left-radius:5px;border-top-right-radius:5px;font-family:"Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;border:1px solid #cbcbcb}.code-highlight-caption+.code-highlight{border-top:0}.code-highlight-caption-link{position:absolute;right:.8em;color:#666;z-index:1;text-shadow:rgba(255,255,255,0.8) 0 1px 0;padding-left:3em}.highlight pre,pre:not(.code-highlight-pre){padding:1em .8rem;border-radius:.4em;margin:1.8em 0}.code-highlight-pre{width:100%;margin-bottom:0;display:table}.code-highlight-row{display:table-row;width:100%}.code-highlight-row:before,.code-highlight-row .code-highlight-line{padding-left:1.6em;padding-right:1.6em}.code-highlight-row:first-child:before,.code-highlight-row:first-child .code-highlight-line{padding-top:0.8em}.code-highlight-row:last-child:before,.code-highlight-row:last-child .code-highlight-line{padding-bottom:0.8em}.code-highlight-row.numbered:before,.code-highlight-row.numbered .code-highlight-line{padding-left:0.8em;padding-right:0.8em}.code-highlight-row.numbered:before{display:table-cell;content:attr(data-line);min-width:1.2em;text-align:right;line-height:1.45em}.code-highlight-line{display:table-cell;width:100%;position:relative;z-index:1}.marked-line{position:relative}.marked-line .code-highlight-line:before{content:"";position:absolute;left:0;top:0;bottom:0;right:0;border-right:1px solid rgba(0,186,255,0.13)}.marked-line.unnumbered .code-highlight-line:before{border-left:3px solid rgba(0,186,255,0.5)}.marked-line.numbered:before{border-left:3px solid rgba(0,186,255,0.5)}.start-marked-line:before,.start-marked-line .code-highlight-line:before{border-top:1px solid rgba(0,186,255,0.13)}.end-marked-line:before,.end-marked-line .code-highlight-line:before{border-bottom:1px solid rgba(0,186,255,0.13)}
@@ -0,0 +1 @@
1
+ pre .gd:after,pre .gd .x:after,pre .gi:after,pre .gi .x:after{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;bottom:0}.code-highlight-pre{background:#002731}.code-highlight-row.numbered:before{color:#586e75;background:#073642;border-right:1px solid #00232c;-webkit-box-shadow:#083e4b -1px 0 inset;box-shadow:#083e4b -1px 0 inset;text-shadow:#021014 0 -1px}.marked-line .code-highlight-line:before{background:rgba(0,186,255,0.13)}.marked-line.numbered:before{background:rgba(0,186,255,0.13);border-right-color:rgba(0,112,153,0.13)}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{border:1px solid #05232b;background:#002b36;color:#93a1a1}pre span{color:#93a1a1}pre .c{color:#586e75;font-style:italic}pre .cm{color:#586e75;font-style:italic}pre .cp{color:#586e75;font-style:italic}pre .c1{color:#586e75;font-style:italic}pre .cs{color:#586e75;font-weight:bold;font-style:italic}pre .err{color:#dc322f;background:none}pre .k{color:#cb4b16}pre .o{color:#93a1a1;font-weight:bold}pre .p{color:#93a1a1}pre .ow{color:#2aa198;font-weight:bold}pre .gd{color:#93a1a1}pre .gd:after{background:#372c34}pre .gd .x{color:#93a1a1}pre .gd .x:after{background:#4d2d33}pre .ge{color:#93a1a1;font-style:italic}pre .gh{color:#586e75}pre .gi{color:#93a1a1}pre .gi:after{background:#1a412b}pre .gi .x{color:#93a1a1}pre .gi .x:after{background:#355720}pre .go{color:#839496}pre .gp{color:#2aa198}pre .gs{color:#93a1a1;font-weight:bold}pre .gu{color:#6c71c4}pre .gt{color:#dc322f}pre .kc{color:#859900;font-weight:bold}pre .kd{color:#268bd2}pre .kp{color:#cb4b16;font-weight:bold}pre .kr{color:#d33682;font-weight:bold}pre .kt{color:#2aa198}pre .n{color:#268bd2}pre .na{color:#268bd2}pre .nb{color:#859900}pre .nc{color:#d33682}pre .no{color:#b58900}pre .ni{color:#d33682}pre .nl{color:#859900}pre .ne{color:#268bd2;font-weight:bold}pre .nf{color:#268bd2;font-weight:bold}pre .nn{color:#b58900}pre .nt{color:#268bd2;font-weight:bold}pre .nx{color:#b58900}pre .bp{color:#93a1a1}pre .vc{color:#859900}pre .vg{color:#268bd2}pre .vi{color:#268bd2}pre .nv{color:#268bd2}pre .w{color:#657b83}pre .mf{color:#2aa198}pre .m{color:#2aa198}pre .mh{color:#2aa198}pre .mi{color:#2aa198}pre .mo{color:#2aa198}pre .s{color:#2aa198}pre .sb{color:#859900}pre .sc{color:#859900}pre .sd{color:#2aa198}pre .s2{color:#2aa198}pre .se{color:#dc322f}pre .sh{color:#859900}pre .si{color:#268bd2}pre .sx{color:#859900}pre .sr{color:#2aa198}pre .s1{color:#2aa198}pre .ss{color:#cb4b16}pre .il{color:#b58900}code,kbd,samp,tt{color:inherit;background-color:rgba(255,255,255,0.3);border:1px solid rgba(0,0,0,0.1);font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace;border-radius:3px;font-size:0.85em}code:before,code:after,kbd:before,kbd:after,samp:before,samp:after,tt:before,tt:after{content:"\00a0";letter-spacing:-0.2em}pre code{border:none;background-color:none;border-raidus:0;font-size:inherit}pre code:before,pre code:after{content:none}pre,pre code{font-size:13px;font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace}pre *,pre code *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{overflow:scroll;overflow-y:hidden;overflow-x:auto;line-height:1.45em}.highlight pre span,pre:not(.code-highlight-pre) span,.code-highlight span{font-style:normal;font-weight:normal}.code-highlight-figure{margin:1.8em 0;font-size:14px;background:none;padding:0;border:0}.code-highlight-figure *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.code-highlight-figure pre{margin-top:0;margin-bottom:0}.code-highlight-caption{position:relative;text-align:center;line-height:2em;text-shadow:rgba(255,255,255,0.8) 0 1px 0;color:#474747;font-weight:normal;margin-bottom:0;background-color:#ccc;background-image:-webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(6%, #f0f0f0), color-stop(90%, #e5e5e5), to(#e5e5e5));background-image:-webkit-linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);background-image:linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);border-top-left-radius:5px;border-top-right-radius:5px;font-family:"Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;border:1px solid #cbcbcb}.code-highlight-caption+.code-highlight{border-top:0}.code-highlight-caption-link{position:absolute;right:.8em;color:#666;z-index:1;text-shadow:rgba(255,255,255,0.8) 0 1px 0;padding-left:3em}.highlight pre,pre:not(.code-highlight-pre){padding:1em .8rem;border-radius:.4em;margin:1.8em 0}.code-highlight-pre{width:100%;margin-bottom:0;display:table}.code-highlight-row{display:table-row;width:100%}.code-highlight-row:before,.code-highlight-row .code-highlight-line{padding-left:1.6em;padding-right:1.6em}.code-highlight-row:first-child:before,.code-highlight-row:first-child .code-highlight-line{padding-top:0.8em}.code-highlight-row:last-child:before,.code-highlight-row:last-child .code-highlight-line{padding-bottom:0.8em}.code-highlight-row.numbered:before,.code-highlight-row.numbered .code-highlight-line{padding-left:0.8em;padding-right:0.8em}.code-highlight-row.numbered:before{display:table-cell;content:attr(data-line);min-width:1.2em;text-align:right;line-height:1.45em}.code-highlight-line{display:table-cell;width:100%;position:relative;z-index:1}.marked-line{position:relative}.marked-line .code-highlight-line:before{content:"";position:absolute;left:0;top:0;bottom:0;right:0;border-right:1px solid rgba(0,186,255,0.13)}.marked-line.unnumbered .code-highlight-line:before{border-left:3px solid rgba(0,186,255,0.5)}.marked-line.numbered:before{border-left:3px solid rgba(0,186,255,0.5)}.start-marked-line:before,.start-marked-line .code-highlight-line:before{border-top:1px solid rgba(0,186,255,0.13)}.end-marked-line:before,.end-marked-line .code-highlight-line:before{border-bottom:1px solid rgba(0,186,255,0.13)}
data/demo/Gemfile CHANGED
@@ -2,10 +2,10 @@ source 'https://rubygems.org'
2
2
 
3
3
  group :octopress do
4
4
  gem "octopress"
5
- gem "octopress-ink", path: "../../ink"
6
5
  gem "octopress-solarized", path: "../"
7
- gem "octopress-code-highlighter", path: "../../code-highlighter"
8
- gem "octopress-codefence", path: "../../codefence"
6
+ gem "octopress-ink"
7
+ gem "octopress-code-highlighter"
8
+ gem "octopress-codefence"
9
9
  end
10
10
 
11
11
  gem "pry-debugger"
data/demo/_config.yml CHANGED
@@ -6,5 +6,3 @@ gems:
6
6
  - octopress-codefence
7
7
  - octopress-solarized
8
8
 
9
- code_aliases:
10
- fooooo: ruby
@@ -5,6 +5,7 @@
5
5
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
6
  <title>{{ page.title }}</title>
7
7
  <meta name="viewport" content="width=device-width">
8
+ {% octopress_css %}
8
9
  </head>
9
10
  <body>
10
11
  {{ content }}
@@ -0,0 +1,2 @@
1
+ code_aliases:
2
+ fooooo: ruby
@@ -1,5 +1,5 @@
1
1
  module Octopress
2
2
  module Solarized
3
- VERSION = "1.0.0.alpha.3"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -5,8 +5,8 @@ module Octopress
5
5
  class Plugin < Octopress::Ink::Plugin
6
6
  def configuration
7
7
  {
8
- name: "Octopress Solarized code",
9
- slug: "solarized",
8
+ name: "Octopress Solarized",
9
+ slug: "octopress-solarized",
10
10
  description: "Style code snippets with Ethan Schoonover's Solarized theme (tweaked a bit).",
11
11
  version: Octopress::Solarized::VERSION,
12
12
  assets_path: File.expand_path(File.join(File.dirname(__FILE__), '../assets'))
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
8
8
  spec.version = Octopress::Solarized::VERSION
9
9
  spec.authors = ["Brandon Mathis"]
10
10
  spec.email = ["brandon@imathis.com"]
11
- spec.description = %q{Ethan Schoonover's solarized theme (with tweaks) for Octopress's code highlighter.}
12
- spec.summary = %q{Ethan Schoonover's solarized theme (with tweaks) for Octopress's code highlighter.}
11
+ spec.description = %q{Ethan Schoonover's solarized theme (with tweaks) for Octopress Ink.}
12
+ spec.summary = %q{Ethan Schoonover's solarized theme (with tweaks) for Octopress Ink.}
13
13
  spec.homepage = "https://github.com/octopress/solarized"
14
14
  spec.license = "MIT"
15
15
 
@@ -18,8 +18,13 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "octopress-ink", "~> 1.0.0.alpha.41"
21
+ spec.add_runtime_dependency "octopress-ink", "~> 1.0.0.rc.11"
22
22
 
23
+ spec.add_development_dependency "pry-debugger"
24
+ spec.add_development_dependency "autoprefixer-rails"
25
+ spec.add_development_dependency "octopress"
26
+ spec.add_development_dependency "octopress-code-highlighter"
27
+ spec.add_development_dependency "octopress-codefence"
23
28
  spec.add_development_dependency "bundler", "~> 1.3"
24
29
  spec.add_development_dependency "rake"
25
30
  end
@@ -0,0 +1 @@
1
+ pre .gd:after,pre .gd .x:after,pre .gi:after,pre .gi .x:after{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;bottom:0}.code-highlight-pre{background:#002731}.code-highlight-row.numbered:before{color:#586e75;background:#073642;border-right:1px solid #00232c;-webkit-box-shadow:#083e4b -1px 0 inset;box-shadow:#083e4b -1px 0 inset;text-shadow:#021014 0 -1px}.marked-line .code-highlight-line:before{background:rgba(0,186,255,0.13)}.marked-line.numbered:before{background:rgba(0,186,255,0.13);border-right-color:rgba(0,112,153,0.13)}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{border:1px solid #05232b;background:#002b36;color:#93a1a1}pre span{color:#93a1a1}pre .c{color:#586e75;font-style:italic}pre .cm{color:#586e75;font-style:italic}pre .cp{color:#586e75;font-style:italic}pre .c1{color:#586e75;font-style:italic}pre .cs{color:#586e75;font-weight:bold;font-style:italic}pre .err{color:#dc322f;background:none}pre .k{color:#cb4b16}pre .o{color:#93a1a1;font-weight:bold}pre .p{color:#93a1a1}pre .ow{color:#2aa198;font-weight:bold}pre .gd{color:#93a1a1}pre .gd:after{background:#372c34}pre .gd .x{color:#93a1a1}pre .gd .x:after{background:#4d2d33}pre .ge{color:#93a1a1;font-style:italic}pre .gh{color:#586e75}pre .gi{color:#93a1a1}pre .gi:after{background:#1a412b}pre .gi .x{color:#93a1a1}pre .gi .x:after{background:#355720}pre .go{color:#839496}pre .gp{color:#2aa198}pre .gs{color:#93a1a1;font-weight:bold}pre .gu{color:#6c71c4}pre .gt{color:#dc322f}pre .kc{color:#859900;font-weight:bold}pre .kd{color:#268bd2}pre .kp{color:#cb4b16;font-weight:bold}pre .kr{color:#d33682;font-weight:bold}pre .kt{color:#2aa198}pre .n{color:#268bd2}pre .na{color:#268bd2}pre .nb{color:#859900}pre .nc{color:#d33682}pre .no{color:#b58900}pre .ni{color:#d33682}pre .nl{color:#859900}pre .ne{color:#268bd2;font-weight:bold}pre .nf{color:#268bd2;font-weight:bold}pre .nn{color:#b58900}pre .nt{color:#268bd2;font-weight:bold}pre .nx{color:#b58900}pre .bp{color:#93a1a1}pre .vc{color:#859900}pre .vg{color:#268bd2}pre .vi{color:#268bd2}pre .nv{color:#268bd2}pre .w{color:#657b83}pre .mf{color:#2aa198}pre .m{color:#2aa198}pre .mh{color:#2aa198}pre .mi{color:#2aa198}pre .mo{color:#2aa198}pre .s{color:#2aa198}pre .sb{color:#859900}pre .sc{color:#859900}pre .sd{color:#2aa198}pre .s2{color:#2aa198}pre .se{color:#dc322f}pre .sh{color:#859900}pre .si{color:#268bd2}pre .sx{color:#859900}pre .sr{color:#2aa198}pre .s1{color:#2aa198}pre .ss{color:#cb4b16}pre .il{color:#b58900}code,kbd,samp,tt{color:inherit;background-color:rgba(255,255,255,0.3);border:1px solid rgba(0,0,0,0.1);font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace;border-radius:3px;font-size:0.85em}code:before,code:after,kbd:before,kbd:after,samp:before,samp:after,tt:before,tt:after{content:"\00a0";letter-spacing:-0.2em}pre code{border:none;background-color:none;border-raidus:0;font-size:inherit}pre code:before,pre code:after{content:none}pre,pre code{font-size:13px;font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace}pre *,pre code *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{overflow:scroll;overflow-y:hidden;overflow-x:auto;line-height:1.45em}.highlight pre span,pre:not(.code-highlight-pre) span,.code-highlight span{font-style:normal;font-weight:normal}.code-highlight-figure{margin:1.8em 0;font-size:14px;background:none;padding:0;border:0}.code-highlight-figure *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.code-highlight-figure pre{margin-top:0;margin-bottom:0}.code-highlight-caption{position:relative;text-align:center;line-height:2em;text-shadow:rgba(255,255,255,0.8) 0 1px 0;color:#474747;font-weight:normal;margin-bottom:0;background-color:#ccc;background-image:-webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(6%, #f0f0f0), color-stop(90%, #e5e5e5), to(#e5e5e5));background-image:-webkit-linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);background-image:linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);border-top-left-radius:5px;border-top-right-radius:5px;font-family:"Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;border:1px solid #cbcbcb}.code-highlight-caption+.code-highlight{border-top:0}.code-highlight-caption-link{position:absolute;right:.8em;color:#666;z-index:1;text-shadow:rgba(255,255,255,0.8) 0 1px 0;padding-left:3em}.highlight pre,pre:not(.code-highlight-pre){padding:1em .8rem;border-radius:.4em;margin:1.8em 0}.code-highlight-pre{width:100%;margin-bottom:0;display:table}.code-highlight-row{display:table-row;width:100%}.code-highlight-row:before,.code-highlight-row .code-highlight-line{padding-left:1.6em;padding-right:1.6em}.code-highlight-row:first-child:before,.code-highlight-row:first-child .code-highlight-line{padding-top:0.8em}.code-highlight-row:last-child:before,.code-highlight-row:last-child .code-highlight-line{padding-bottom:0.8em}.code-highlight-row.numbered:before,.code-highlight-row.numbered .code-highlight-line{padding-left:0.8em;padding-right:0.8em}.code-highlight-row.numbered:before{display:table-cell;content:attr(data-line);min-width:1.2em;text-align:right;line-height:1.45em}.code-highlight-line{display:table-cell;width:100%;position:relative;z-index:1}.marked-line{position:relative}.marked-line .code-highlight-line:before{content:"";position:absolute;left:0;top:0;bottom:0;right:0;border-right:1px solid rgba(0,186,255,0.13)}.marked-line.unnumbered .code-highlight-line:before{border-left:3px solid rgba(0,186,255,0.5)}.marked-line.numbered:before{border-left:3px solid rgba(0,186,255,0.5)}.start-marked-line:before,.start-marked-line .code-highlight-line:before{border-top:1px solid rgba(0,186,255,0.13)}.end-marked-line:before,.end-marked-line .code-highlight-line:before{border-bottom:1px solid rgba(0,186,255,0.13)}
@@ -0,0 +1 @@
1
+ pre .gd:after,pre .gd .x:after,pre .gi:after,pre .gi .x:after{content:"";position:absolute;z-index:-1;left:0;right:0;top:0;bottom:0}.code-highlight-pre{background:#002731}.code-highlight-row.numbered:before{color:#586e75;background:#073642;border-right:1px solid #00232c;-webkit-box-shadow:#083e4b -1px 0 inset;box-shadow:#083e4b -1px 0 inset;text-shadow:#021014 0 -1px}.marked-line .code-highlight-line:before{background:rgba(0,186,255,0.13)}.marked-line.numbered:before{background:rgba(0,186,255,0.13);border-right-color:rgba(0,112,153,0.13)}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{border:1px solid #05232b;background:#002b36;color:#93a1a1}pre span{color:#93a1a1}pre .c{color:#586e75;font-style:italic}pre .cm{color:#586e75;font-style:italic}pre .cp{color:#586e75;font-style:italic}pre .c1{color:#586e75;font-style:italic}pre .cs{color:#586e75;font-weight:bold;font-style:italic}pre .err{color:#dc322f;background:none}pre .k{color:#cb4b16}pre .o{color:#93a1a1;font-weight:bold}pre .p{color:#93a1a1}pre .ow{color:#2aa198;font-weight:bold}pre .gd{color:#93a1a1}pre .gd:after{background:#372c34}pre .gd .x{color:#93a1a1}pre .gd .x:after{background:#4d2d33}pre .ge{color:#93a1a1;font-style:italic}pre .gh{color:#586e75}pre .gi{color:#93a1a1}pre .gi:after{background:#1a412b}pre .gi .x{color:#93a1a1}pre .gi .x:after{background:#355720}pre .go{color:#839496}pre .gp{color:#2aa198}pre .gs{color:#93a1a1;font-weight:bold}pre .gu{color:#6c71c4}pre .gt{color:#dc322f}pre .kc{color:#859900;font-weight:bold}pre .kd{color:#268bd2}pre .kp{color:#cb4b16;font-weight:bold}pre .kr{color:#d33682;font-weight:bold}pre .kt{color:#2aa198}pre .n{color:#268bd2}pre .na{color:#268bd2}pre .nb{color:#859900}pre .nc{color:#d33682}pre .no{color:#b58900}pre .ni{color:#d33682}pre .nl{color:#859900}pre .ne{color:#268bd2;font-weight:bold}pre .nf{color:#268bd2;font-weight:bold}pre .nn{color:#b58900}pre .nt{color:#268bd2;font-weight:bold}pre .nx{color:#b58900}pre .bp{color:#93a1a1}pre .vc{color:#859900}pre .vg{color:#268bd2}pre .vi{color:#268bd2}pre .nv{color:#268bd2}pre .w{color:#657b83}pre .mf{color:#2aa198}pre .m{color:#2aa198}pre .mh{color:#2aa198}pre .mi{color:#2aa198}pre .mo{color:#2aa198}pre .s{color:#2aa198}pre .sb{color:#859900}pre .sc{color:#859900}pre .sd{color:#2aa198}pre .s2{color:#2aa198}pre .se{color:#dc322f}pre .sh{color:#859900}pre .si{color:#268bd2}pre .sx{color:#859900}pre .sr{color:#2aa198}pre .s1{color:#2aa198}pre .ss{color:#cb4b16}pre .il{color:#b58900}code,kbd,samp,tt{color:inherit;background-color:rgba(255,255,255,0.3);border:1px solid rgba(0,0,0,0.1);font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace;border-radius:3px;font-size:0.85em}code:before,code:after,kbd:before,kbd:after,samp:before,samp:after,tt:before,tt:after{content:"\00a0";letter-spacing:-0.2em}pre code{border:none;background-color:none;border-raidus:0;font-size:inherit}pre code:before,pre code:after{content:none}pre,pre code{font-size:13px;font-family:"Source Code Pro",Inconsolata-dz,Inconsolata,Menlo,Monaco,Consolas,"Liberation Mono",Courier,monospace}pre *,pre code *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.highlight pre,pre:not(.code-highlight-pre),.code-highlight{overflow:scroll;overflow-y:hidden;overflow-x:auto;line-height:1.45em}.highlight pre span,pre:not(.code-highlight-pre) span,.code-highlight span{font-style:normal;font-weight:normal}.code-highlight-figure{margin:1.8em 0;font-size:14px;background:none;padding:0;border:0}.code-highlight-figure *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.code-highlight-figure pre{margin-top:0;margin-bottom:0}.code-highlight-caption{position:relative;text-align:center;line-height:2em;text-shadow:rgba(255,255,255,0.8) 0 1px 0;color:#474747;font-weight:normal;margin-bottom:0;background-color:#ccc;background-image:-webkit-gradient(linear, left top, left bottom, from(#fff), color-stop(6%, #f0f0f0), color-stop(90%, #e5e5e5), to(#e5e5e5));background-image:-webkit-linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);background-image:linear-gradient(#fff, #f0f0f0 6%, #e5e5e5 90%, #e5e5e5);border-top-left-radius:5px;border-top-right-radius:5px;font-family:"Helvetica Neue", Arial, "Lucida Grande", "Lucida Sans Unicode", Lucida, sans-serif;border:1px solid #cbcbcb}.code-highlight-caption+.code-highlight{border-top:0}.code-highlight-caption-link{position:absolute;right:.8em;color:#666;z-index:1;text-shadow:rgba(255,255,255,0.8) 0 1px 0;padding-left:3em}.highlight pre,pre:not(.code-highlight-pre){padding:1em .8rem;border-radius:.4em;margin:1.8em 0}.code-highlight-pre{width:100%;margin-bottom:0;display:table}.code-highlight-row{display:table-row;width:100%}.code-highlight-row:before,.code-highlight-row .code-highlight-line{padding-left:1.6em;padding-right:1.6em}.code-highlight-row:first-child:before,.code-highlight-row:first-child .code-highlight-line{padding-top:0.8em}.code-highlight-row:last-child:before,.code-highlight-row:last-child .code-highlight-line{padding-bottom:0.8em}.code-highlight-row.numbered:before,.code-highlight-row.numbered .code-highlight-line{padding-left:0.8em;padding-right:0.8em}.code-highlight-row.numbered:before{display:table-cell;content:attr(data-line);min-width:1.2em;text-align:right;line-height:1.45em}.code-highlight-line{display:table-cell;width:100%;position:relative;z-index:1}.marked-line{position:relative}.marked-line .code-highlight-line:before{content:"";position:absolute;left:0;top:0;bottom:0;right:0;border-right:1px solid rgba(0,186,255,0.13)}.marked-line.unnumbered .code-highlight-line:before{border-left:3px solid rgba(0,186,255,0.5)}.marked-line.numbered:before{border-left:3px solid rgba(0,186,255,0.5)}.start-marked-line:before,.start-marked-line .code-highlight-line:before{border-top:1px solid rgba(0,186,255,0.13)}.end-marked-line:before,.end-marked-line .code-highlight-line:before{border-bottom:1px solid rgba(0,186,255,0.13)}
data/test/test.rb ADDED
@@ -0,0 +1,12 @@
1
+ require 'colorator'
2
+ has_failed = false
3
+
4
+ system('rake css_build')
5
+
6
+ diff1 = `diff ../build/solarized-dark.min.css expected/solarized-dark.min.css`
7
+ diff2 = `diff ../build/solarized-light.min.css expected/solarized-light.min.css`
8
+
9
+ abort "Failed with diff: #{diff1}" if diff1.size > 0
10
+ abort "Failed with diff: #{diff2}" if diff2.size > 0
11
+
12
+ puts "passed".green
metadata CHANGED
@@ -1,85 +1,161 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopress-solarized
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octopress-ink
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.0.alpha.41
19
+ version: 1.0.0.rc.11
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.0.alpha.41
26
+ version: 1.0.0.rc.11
27
+ - !ruby/object:Gem::Dependency
28
+ name: pry-debugger
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: autoprefixer-rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: octopress
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: octopress-code-highlighter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: octopress-codefence
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
27
97
  - !ruby/object:Gem::Dependency
28
98
  name: bundler
29
99
  requirement: !ruby/object:Gem::Requirement
30
100
  requirements:
31
- - - ~>
101
+ - - "~>"
32
102
  - !ruby/object:Gem::Version
33
103
  version: '1.3'
34
104
  type: :development
35
105
  prerelease: false
36
106
  version_requirements: !ruby/object:Gem::Requirement
37
107
  requirements:
38
- - - ~>
108
+ - - "~>"
39
109
  - !ruby/object:Gem::Version
40
110
  version: '1.3'
41
111
  - !ruby/object:Gem::Dependency
42
112
  name: rake
43
113
  requirement: !ruby/object:Gem::Requirement
44
114
  requirements:
45
- - - '>='
115
+ - - ">="
46
116
  - !ruby/object:Gem::Version
47
117
  version: '0'
48
118
  type: :development
49
119
  prerelease: false
50
120
  version_requirements: !ruby/object:Gem::Requirement
51
121
  requirements:
52
- - - '>='
122
+ - - ">="
53
123
  - !ruby/object:Gem::Version
54
124
  version: '0'
55
- description: Ethan Schoonover's solarized theme (with tweaks) for Octopress's code
56
- highlighter.
125
+ description: Ethan Schoonover's solarized theme (with tweaks) for Octopress Ink.
57
126
  email:
58
127
  - brandon@imathis.com
59
128
  executables: []
60
129
  extensions: []
61
130
  extra_rdoc_files: []
62
131
  files:
63
- - .gitignore
132
+ - ".gitignore"
133
+ - ".travis.yml"
64
134
  - Gemfile
65
135
  - LICENSE.txt
66
136
  - README.md
67
137
  - Rakefile
68
138
  - assets/stylesheets/_code-highlight.scss
69
- - assets/stylesheets/_code-style.scss
139
+ - assets/stylesheets/_code-mixins.scss
70
140
  - assets/stylesheets/_solarized.scss
71
- - assets/stylesheets/_standard-highlight.scss
72
141
  - assets/stylesheets/_vars.scss
73
- - assets/stylesheets/code.scss
142
+ - assets/stylesheets/index.scss
143
+ - build/sass/solarized-dark.scss
144
+ - build/sass/solarized-light.scss
145
+ - build/solarized-dark.min.css
146
+ - build/solarized-light.min.css
74
147
  - demo/.gitignore
75
148
  - demo/Gemfile
76
149
  - demo/_config.yml
77
150
  - demo/_layouts/default.html
78
- - demo/_plugins/bundler.rb
151
+ - demo/_octopress.yml
79
152
  - demo/index.html
80
153
  - lib/octopress-solarized.rb
81
154
  - lib/octopress-solarized/version.rb
82
155
  - octopress-solarized.gemspec
156
+ - test/expected/solarized-dark.min.css
157
+ - test/expected/solarized-light.min.css
158
+ - test/test.rb
83
159
  homepage: https://github.com/octopress/solarized
84
160
  licenses:
85
161
  - MIT
@@ -90,18 +166,21 @@ require_paths:
90
166
  - lib
91
167
  required_ruby_version: !ruby/object:Gem::Requirement
92
168
  requirements:
93
- - - '>='
169
+ - - ">="
94
170
  - !ruby/object:Gem::Version
95
171
  version: '0'
96
172
  required_rubygems_version: !ruby/object:Gem::Requirement
97
173
  requirements:
98
- - - '>'
174
+ - - ">="
99
175
  - !ruby/object:Gem::Version
100
- version: 1.3.1
176
+ version: '0'
101
177
  requirements: []
102
178
  rubyforge_project:
103
- rubygems_version: 2.1.11
179
+ rubygems_version: 2.2.2
104
180
  signing_key:
105
181
  specification_version: 4
106
- summary: Ethan Schoonover's solarized theme (with tweaks) for Octopress's code highlighter.
107
- test_files: []
182
+ summary: Ethan Schoonover's solarized theme (with tweaks) for Octopress Ink.
183
+ test_files:
184
+ - test/expected/solarized-dark.min.css
185
+ - test/expected/solarized-light.min.css
186
+ - test/test.rb
@@ -1,112 +0,0 @@
1
- $pre-line-padding: .8em;
2
-
3
- %octopress-diff-bg {
4
- content: "";
5
- position: absolute;
6
- z-index: -1;
7
- left: 0; right: 0; top: 0; bottom: 0;
8
- }
9
-
10
- @mixin octopress-diff-bg($bg) {
11
- &:after {
12
- background: $bg;
13
- @extend %octopress-diff-bg;
14
- }
15
- }
16
-
17
- @mixin octopress-highlight-style {
18
- border: 1px solid $code-highlight-border;
19
- background: $pre-bg;
20
- color: $base1;
21
- span { color: $base1; }
22
- span { font-style: normal; font-weight: normal; }
23
-
24
- overflow: scroll;
25
- overflow-y: hidden;
26
- overflow-x: auto;
27
- line-height: 1.45em;
28
- }
29
-
30
- @mixin octopress-solarized-code {
31
- .c { color: $base01; font-style: italic; } /* Comment */
32
- .cm { color: $base01; font-style: italic; } /* Comment.Multiline */
33
- .cp { color: $base01; font-style: italic; } /* Comment.Preproc */
34
- .c1 { color: $base01; font-style: italic; } /* Comment.Single */
35
- .cs { /* Comment.Special */
36
- color: $base01;
37
- font-weight: bold;
38
- font-style: italic; }
39
- .err { color: $solar-red; background: none; } /* Error */
40
- .k { color: $solar-orange; } /* Keyword */
41
- .o { color: $base1; font-weight: bold; } /* Operator */
42
- .p { color: $base1; } /* Operator */
43
- .ow { color: $solar-cyan; font-weight: bold; } /* Operator.Word */
44
- .gd {
45
- color: $base1; /* Generic.Deleted */
46
- @include octopress-diff-bg(mix($solar-red, $base03, 25%));
47
- }
48
- .gd .x { /* Generic.Deleted.Specific */
49
- color: $base1;
50
- @include octopress-diff-bg(mix($solar-red, $base03, 35%));
51
- }
52
- .ge { /* Generic.Emph */
53
- color: $base1;
54
- font-style: italic; }
55
- //.gr { color: #aa0000 } /* Generic.Error */
56
- .gh { color: $base01; } /* Generic.Heading */
57
- .gi { /* Generic.Inserted */
58
- color: $base1;
59
- @include octopress-diff-bg(mix($solar-green, $base03, 20%));
60
- }
61
- .gi .x { /* Generic.Inserted.Specific */
62
- color: $base1;
63
- @include octopress-diff-bg(mix($solar-green, $base03, 40%));
64
- }
65
- //.go { color: #888888 } /* Generic.Output */
66
- //.gp { color: #555555 } /* Generic.Prompt */
67
- .gs { color: $base1; font-weight: bold; } /* Generic.Strong */
68
- .gu { color: $solar-violet; } /* Generic.Subheading */
69
- //.gt { color: #aa0000 } /* Generic.Traceback */
70
- .kc { color: $solar-green; font-weight: bold; } /* Keyword.Constant */
71
- .kd { color: $solar-blue; } /* Keyword.Declaration */
72
- .kp { color: $solar-orange; font-weight: bold; } /* Keyword.Pseudo */
73
- .kr { color: $solar-magenta; font-weight: bold; } /* Keyword.Reserved */
74
- .kt { color: $solar-cyan; } /* Keyword.Type */
75
- .n { color: $solar-blue; }
76
- .na { color: $solar-blue; } /* Name.Attribute */
77
- .nb { color: $solar-green; } /* Name.Builtin */
78
- .nc { color: $solar-magenta;} /* Name.Class */
79
- .no { color: $solar-yellow; } /* Name.Constant */
80
- //.ni { color: #800080 } /* Name.Entity */
81
- .nl { color: $solar-green; }
82
- .ne { color: $solar-blue; font-weight: bold; } /* Name.Exception */
83
- .nf { color: $solar-blue; font-weight: bold; } /* Name.Function */
84
- .nn { color: $solar-yellow; } /* Name.Namespace */
85
- .nt { color: $solar-blue; font-weight: bold; } /* Name.Tag */
86
- .nx { color: $solar-yellow; }
87
- //.bp { color: #999999 } /* Name.Builtin.Pseudo */
88
- //.vc { color: #008080 } /* Name.Variable.Class */
89
- .vg { color: $solar-blue; } /* Name.Variable.Global */
90
- .vi { color: $solar-blue; } /* Name.Variable.Instance */
91
- .nv { color: $solar-blue; } /* Name.Variable */
92
- //.w { color: #bbbbbb } /* Text.Whitespace */
93
- .mf { color: $solar-cyan; } /* Literal.Number.Float */
94
- .m { color: $solar-cyan; } /* Literal.Number */
95
- .mh { color: $solar-cyan; } /* Literal.Number.Hex */
96
- .mi { color: $solar-cyan; } /* Literal.Number.Integer */
97
- //.mo { color: #009999 } /* Literal.Number.Oct */
98
- .s { color: $solar-cyan; } /* Literal.String */
99
- //.sb { color: #d14 } /* Literal.String.Backtick */
100
- //.sc { color: #d14 } /* Literal.String.Char */
101
- .sd { color: $solar-cyan; } /* Literal.String.Doc */
102
- .s2 { color: $solar-cyan; } /* Literal.String.Double */
103
- .se { color: $solar-red; } /* Literal.String.Escape */
104
- //.sh { color: #d14 } /* Literal.String.Heredoc */
105
- .si { color: $solar-blue; } /* Literal.String.Interpol */
106
- //.sx { color: #d14 } /* Literal.String.Other */
107
- .sr { color: $solar-cyan; } /* Literal.String.Regex */
108
- .s1 { color: $solar-cyan; } /* Literal.String.Single */
109
- //.ss { color: #990073 } /* Literal.String.Symbol */
110
- //.il { color: #009999 } /* Literal.Number.Integer.Long */
111
- }
112
-
@@ -1,15 +0,0 @@
1
- .highlight {
2
- font-size: 13px;
3
- * { box-sizing: border-box; }
4
- pre {
5
- @include octopress-highlight-style;
6
- padding: .8em;
7
- }
8
- @include octopress-solarized-code;
9
- }
10
-
11
- pre {
12
- font-size: 13px;
13
- font-family: Inconsolata, Menlo, Monaco, 'Andale Mono', 'lucida console', 'Courier New', monospace;
14
- }
15
-
@@ -1,6 +0,0 @@
1
- begin
2
- require "bundler/setup"
3
- Bundler.require(:jekyll_plugins)
4
- rescue LoadError
5
- end
6
-