compass-theme 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.gitignore +4 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.markdown +29 -0
  4. data/README.markdown +2 -0
  5. data/Rakefile +1 -0
  6. data/compass-theme.gemspec +26 -0
  7. data/lib/compass-theme.rb +10 -0
  8. data/lib/compass-theme/fonts/examples/bgrove.otf +0 -0
  9. data/lib/compass-theme/fonts/examples/bgrove.ttf +0 -0
  10. data/lib/compass-theme/fonts/museosans-web.eot +0 -0
  11. data/lib/compass-theme/fonts/museosans-web.svg +241 -0
  12. data/lib/compass-theme/fonts/museosans-web.ttf +0 -0
  13. data/lib/compass-theme/fonts/museosans-web.woff +0 -0
  14. data/lib/compass-theme/images/bg-light.jpg +0 -0
  15. data/lib/compass-theme/images/compass-logo-small-dark.png +0 -0
  16. data/lib/compass-theme/images/compass-logo-small-light.png +0 -0
  17. data/lib/compass-theme/images/compass-logo.png +0 -0
  18. data/lib/compass-theme/images/compass.app.png +0 -0
  19. data/lib/compass-theme/images/compass.png +0 -0
  20. data/lib/compass-theme/images/compass_icon.png +0 -0
  21. data/lib/compass-theme/images/examples/css3/bg-origin/bg.png +0 -0
  22. data/lib/compass-theme/images/sites/addons.heroku.jpg +0 -0
  23. data/lib/compass-theme/images/sites/busyconf.jpg +0 -0
  24. data/lib/compass-theme/images/sites/caring.jpg +0 -0
  25. data/lib/compass-theme/images/sites/cofamilies.jpg +0 -0
  26. data/lib/compass-theme/images/sites/cornell.jpg +0 -0
  27. data/lib/compass-theme/images/sites/dailymile.jpg +0 -0
  28. data/lib/compass-theme/images/sites/hubblesite.jpg +0 -0
  29. data/lib/compass-theme/images/sites/jumpstartlab.jpg +0 -0
  30. data/lib/compass-theme/images/sites/memberhub.jpg +0 -0
  31. data/lib/compass-theme/images/sites/sencha.jpg +0 -0
  32. data/lib/compass-theme/railtie.rb +10 -0
  33. data/lib/compass-theme/stylesheets/core/_base-classes.sass +70 -0
  34. data/lib/compass-theme/stylesheets/core/_clearing-classes.sass +17 -0
  35. data/lib/compass-theme/stylesheets/core/_extensions.scss +10 -0
  36. data/lib/compass-theme/stylesheets/home.scss +17 -0
  37. data/lib/compass-theme/stylesheets/ie.scss +5 -0
  38. data/lib/compass-theme/stylesheets/partials/_blog.scss +6 -0
  39. data/lib/compass-theme/stylesheets/partials/_code.scss +113 -0
  40. data/lib/compass-theme/stylesheets/partials/_example.scss +29 -0
  41. data/lib/compass-theme/stylesheets/partials/_home.scss +99 -0
  42. data/lib/compass-theme/stylesheets/partials/_install.scss +10 -0
  43. data/lib/compass-theme/stylesheets/partials/_layout.scss +21 -0
  44. data/lib/compass-theme/stylesheets/partials/_main.scss +63 -0
  45. data/lib/compass-theme/stylesheets/partials/_nav.scss +96 -0
  46. data/lib/compass-theme/stylesheets/partials/_sidebar.scss +31 -0
  47. data/lib/compass-theme/stylesheets/partials/_theme.scss +290 -0
  48. data/lib/compass-theme/stylesheets/partials/_typography.scss +47 -0
  49. data/lib/compass-theme/stylesheets/screen.scss +28 -0
  50. data/lib/compass-theme/stylesheets/syntax/_shCore.scss +216 -0
  51. data/lib/compass-theme/stylesheets/syntax/_shThemeRDark.scss +113 -0
  52. data/lib/compass-theme/stylesheets/syntax/_syntax-theme.scss +8 -0
  53. data/lib/compass-theme/stylesheets/syntax/_theme_template.scss +120 -0
  54. data/lib/compass-theme/templates/.keep +0 -0
  55. data/lib/compass-theme/version.rb +5 -0
  56. metadata +134 -0
@@ -0,0 +1,31 @@
1
+ aside {
2
+ padding-top: 15px;
3
+ text-align: right;
4
+ padding-right: 22px;
5
+ h2, h3 {
6
+ text-align: left;
7
+ font-size: 1.3em;
8
+ line-height: 1.45em;
9
+ padding-bottom: .2em;
10
+ margin-bottom: .4em;
11
+ @extend .clear-border-radius;
12
+ }
13
+ h3 {
14
+ padding: 0 0 .5em; line-height: 1.1em;
15
+ }
16
+ a {
17
+ font-size: .85em;
18
+ }
19
+ ul ul a {
20
+ &.selected, &.selected:hover {
21
+ font-weight: bold;
22
+ text-decoration: underline;
23
+ }
24
+ }
25
+ .deprecated {
26
+ text-decoration: line-through;
27
+ }
28
+ .beta span:after {
29
+ content: " (\3B2)";
30
+ }
31
+ }
@@ -0,0 +1,290 @@
1
+ @mixin site-theme($theme, $page-bg, $text, $strong-text, $heading, $link, $code, $search, $nav-link, $main-nav, $main-nav-selected, $option-panel-border, $option-panel-bg){
2
+ background: $page-bg;
3
+ body { background: $page-bg; color: $text;
4
+ a { color: $link; } }
5
+
6
+ #page { @extend .horizontal-rule-#{$theme}; }
7
+ header { @extend .horizontal-rule-#{$theme}; border-width: 4px; }
8
+
9
+ nav a { color: $nav-link; }
10
+ #main-nav a { color: $main-nav;}
11
+
12
+ body#home #main-nav a[rel=home],
13
+ body#help #main-nav a[rel=help],
14
+ body.tutorial #main-nav a[rel=help],
15
+ body.reference #main-nav a[rel=documentation],
16
+ body#changelog #main-nav a[rel=documentation],
17
+ body.demo #main-nav a[rel=documentation],
18
+ body#get-involved #main-nav a[rel=get-involved]{ color: $main-nav-selected; }
19
+
20
+ #search-docs input {
21
+ @extend .inset-panel-#{$theme}; color: $search;
22
+ &::-webkit-input-placeholder { color: $search; } }
23
+ #{headings()}{ color: $heading;
24
+ strong { color: $main-nav-selected; }
25
+ em { color: $code; } }
26
+
27
+ #page > article h2 { @extend .horizontal-rule-top-#{$theme}; }
28
+ hr { @extend .horizontal-rule-#{$theme};
29
+ border-bottom-width: 8px}
30
+ body#home h2 { @extend .horizontal-rule-#{$theme}; }
31
+
32
+ #page aside + article { @extend .vertical-rule-left-#{$theme}; }
33
+
34
+ aside {
35
+ h2 a { color: $strong-text; }
36
+ h2, h3 { @extend .horizontal-rule-#{$theme}; }
37
+ }
38
+
39
+ footer .links li { @extend .vertical-rule-#{$theme}; }
40
+ code { @extend .code-block-#{$theme}; color: $code; }
41
+
42
+ #theme_pref { @extend .theme-switch-#{$theme}; }
43
+ #docs_panel div, .syntax_pref { background: $option-panel-bg; border-color: $option-panel-border; }
44
+
45
+ body#home .overview div { @extend .inset-panel-#{$theme};
46
+ h4 { @extend .horizontal-rule-#{$theme}; } }
47
+ #featured_sites li { @extend .inset-panel-#{$theme}; }
48
+
49
+ body.tutorial #page article img {
50
+ @extend .image-border-#{$theme};
51
+ }
52
+
53
+ }
54
+ @mixin docs-theme($theme, $heading, $code, $nav-link, $docs-nav-selected, $module-nav-selected){
55
+
56
+ #page > article {
57
+ h1 { @extend .horizontal-rule-#{$theme}; }
58
+ h2 { @extend .horizontal-rule-top-#{$theme}; }
59
+ h3 { @extend .heading-panel-#{$theme}; }
60
+ h1 + h2, hr + h2 {
61
+ @extend .clear-box-shadow; border-top: 0;
62
+ margin-top: 0;}
63
+ }
64
+
65
+ #sub-nav { @extend .horizontal-rule-#{$theme}; }
66
+ #docs-nav { @extend .vertical-rule-#{$theme}; }
67
+ body.core a[rel=core], body.blueprint a[rel=blueprint]{ @extend .inset-panel-#{$theme}; color: $docs-nav-selected; @extend .round-corners-4;}
68
+ #main-nav a[rel=home] { @include replace-text-with-dimensions("compass-logo-small-#{$theme}.png"); display: inline-block; float: left; }
69
+
70
+ #module-nav {
71
+ ul { overflow: visible; }}
72
+ body.getting-started #module-nav li.getting-started,
73
+ body.tutorial #module-nav li.tutorials,
74
+ body.support #module-nav li.support,
75
+ #module-nav li.selected { @extend .selected-marker-#{$theme};
76
+ a { color: $module-nav-selected; } }
77
+
78
+ a[rel=sass], a[rel=scss], a[rel=css], a[rel=html], a[rel=haml] { @extend .syntax-switch-#{$theme}; }
79
+ &.sass a[rel=sass], &.scss a[rel=scss], &.css a[rel=css], &.html a[rel=html], &.haml a[rel=haml] { color: $heading; color: rgba($heading, .7); @extend .round-corners-em; @extend .inset-panel-#{$theme}; }
80
+
81
+ #version { color: rgba($heading, .3); a { color: rgba($nav-link, .7); } }
82
+ .mixin-source, .example-source, .function-source { @extend .mixin-panel-#{$theme};
83
+ .container textarea { color: $code; }
84
+ }
85
+ h2 a.help { color: $heading;}
86
+
87
+ .source-documentation { @extend .doc-panel-#{$theme}; }
88
+
89
+ #demo { @extend .demo-#{$theme}; }
90
+
91
+ .arg { color: $code; }
92
+ .arg[data-default-value] { color: rgba($code, .7); }
93
+ a[rel="view source"]{ color: rgba($heading, .5); &:hover{ color: rgba($heading, .8);} }
94
+
95
+ }
96
+
97
+ // Dark theme
98
+ .inset-panel-dark {
99
+ @include box-shadow(rgba(#fff, .1) 0 1px 0, rgba(#000, .8) 0 1px 7px 0px inset);
100
+ background: darken(#2f2f2f, 6); background-color: rgba(#000, .3); }
101
+
102
+ .horizontal-rule-dark {
103
+ @include box-shadow(rgba(#fff, .07) 0 1px 0);
104
+ border-bottom: 1px solid #121212; }
105
+
106
+ .horizontal-rule-top-dark {
107
+ @include box-shadow(rgba(#fff, .07) 0 1px 0 inset);
108
+ border-top: 1px solid #121212; }
109
+
110
+ .vertical-rule-dark {
111
+ @include box-shadow(rgba(#fff, .07) 1px 0 0);
112
+ border-right: 1px solid #121212; }
113
+
114
+ .vertical-rule-left-dark {
115
+ @include box-shadow(rgba(#fff, .07) 1px 0 0 inset);
116
+ border-left: 1px solid #121212; }
117
+
118
+ .code-block-dark { @extend .code-block; @extend .inset-panel-dark; }
119
+
120
+ .demo-dark {
121
+ @include box-shadow(rgba(#000, .5) 0 2px 10px inset, rgba(#fff, .3) 0 1px 2px 0px, rgba(#000, .8) 0 0 0 1px inset); }
122
+
123
+ .heading-panel-dark {
124
+ background: darken(#2f2f2f, 6);
125
+ background: rgba(#000, .2);
126
+ @include box-shadow(rgba(#000, .2) 0 0 0 1px inset);
127
+ a:hover { color: #fff;
128
+ .arg { color: rgba(#fff, .6);}
129
+ }
130
+ }
131
+ .doc-panel-dark {
132
+ background: darken(#2f2f2f, 4);
133
+ background: rgba(#000, .1);
134
+ @include box-shadow(rgba(#000, .2) 0 0 0 1px inset);
135
+ }
136
+
137
+ .syntax-switch-dark {
138
+ color: #000; text-shadow: rgba(#fff, .08) 0 1px 0;
139
+ &:hover { color: #fff; text-shadow: #000 0 1px 0; } }
140
+
141
+ .theme-switch-dark {
142
+ cursor: pointer;
143
+ a { color: #000; color: rgba(#000, .8); text-shadow: rgba(#fff, .08) 0 1px 0; }
144
+ &:hover a { color: #eee; text-shadow: #000 0 1px 0; } }
145
+
146
+ .selected-marker-dark {
147
+ a:before{ border-bottom-color: #121212; }
148
+ &:before { border-bottom-color: #414141; }
149
+ &:after { border-bottom-color: #323232; }
150
+ }
151
+ .mixin-panel-dark {
152
+ @extend .inset-panel-dark;
153
+ td.gutter { background: rgba(#fff, .05); .line { border-right: 2px solid rgba(#fff, .15); color: rgba(#fff, .5); }}
154
+ .container textarea { background: darken(#2f2f2f, 6); }
155
+ }
156
+
157
+ .image-border-dark {
158
+ border:2px solid #BFBFBF;
159
+ @extend .round-corners-4;
160
+ }
161
+
162
+ @mixin dark-theme($docs: false) {
163
+ $page-bg: #2f2f2f;
164
+
165
+ $text: #c6c6c6;
166
+ $heading: white;
167
+ $strong-text: #dbdbdb;
168
+
169
+ $search: #6e6e6e;
170
+
171
+ $code: #dadbb1;
172
+ $nav-link: #bfbfbf;
173
+ $link: saturate(lighten(#85AFC9, 4), 19);
174
+
175
+ $main-nav: white;
176
+ $main-nav-selected: #fb292d;
177
+ $docs-nav-selected: $strong-text;
178
+ $module-nav-selected: $link;
179
+
180
+ $option-panel-border: rgba(#000, .5);
181
+ $option-panel-bg: rgba(#fff, .06);
182
+
183
+ @include site-theme(dark, $page-bg, $text, $strong-text, $heading, $link, $code, $search, $nav-link, $main-nav, $main-nav-selected, $option-panel-border, $option-panel-bg);
184
+
185
+ @if($docs){
186
+ @include docs-theme(dark, $heading, $code, $nav-link, $docs-nav-selected, $module-nav-selected);
187
+ .syntaxhighlighter, pre, pre .code-block:first-child {
188
+ &::-webkit-scrollbar-track-piece { -webkit-box-shadow: rgba(#000, .5) 0 0 3px 1px inset; background: rgba(#000, .2); }
189
+ }
190
+ .syntaxhighlighter, pre, pre .code-block:first-child {
191
+ &::-webkit-scrollbar-thumb:horizontal { background: -webkit(linear-gradient(rgba(#fff, .3), rgba(#fff, 0))) #000; -webkit-box-shadow: rgba(black, 0.8) 0px 0 0 1px inset; }
192
+ }
193
+ }
194
+ }
195
+
196
+ // Light Theme
197
+ .inset-panel-light {
198
+ @include box-shadow(rgba(#fff, 1) 0 1px 0, rgba(#000, .5) 0 1px 3px 0px inset);
199
+ text-shadow: 0 1px 1px #fff;
200
+ background: darken(#fff, .04); background-color: rgba(#000, .04); }
201
+
202
+ .horizontal-rule-light {
203
+ @include box-shadow(#fff 0 1px 0);
204
+ border-bottom: 1px solid #bbb; }
205
+
206
+ .horizontal-rule-top-light {
207
+ @include box-shadow(#fff 0 1px 0 inset);
208
+ border-top: 1px solid #bbb; }
209
+
210
+ .vertical-rule-light {
211
+ @include single-box-shadow(rgba(#fff, 1), 1px, 0, 0);
212
+ border-right: 1px solid #bbb; }
213
+
214
+ .vertical-rule-left-light {
215
+ @include single-box-shadow(rgba(#fff, 1), 1px, 0, 0 inset);
216
+ border-left: 1px solid #bbb; }
217
+
218
+ .code-block-light { @extend .code-block; @extend .inset-panel-light; background: rgba(#fff, .5); }
219
+
220
+ .demo-light { @include box-shadow(rgba(#000, .3) 0 2px 10px inset, #fff 0 1px 2px 0px, rgba(#000, .05) 0 0 0 1px inset); }
221
+
222
+ .syntax-switch-light {
223
+ color: rgba(#000, .3); text-shadow: rgba(#fff, .08) 0 1px 0;
224
+ &:hover { color: #000; text-shadow: #fff 0 1px 0; }}
225
+
226
+ .theme-switch-light {
227
+ cursor: pointer;
228
+ a {color: rgba(#000, .2); text-shadow: rgba(#fff, 1) 0 1px 0;}
229
+ &:hover a { color: #000; } }
230
+
231
+ .heading-panel-light {
232
+ background: rgba(#fff, .5);
233
+ @include box-shadow(rgba(#000, .13) 0 0 0 1px inset);
234
+ a:hover { color: #000;
235
+ .arg { color: rgba(#000, .6); } }
236
+ }
237
+
238
+ .selected-marker-light {
239
+ a:before{ border-bottom-color: #bbbbbb; }
240
+ &:before { border-bottom-color: #fff; }
241
+ &:after { border-bottom-color: #e5e5e5; }
242
+ }
243
+
244
+ .doc-panel-light {
245
+ background: rgba(#000, .03);
246
+ text-shadow: rgba(#fff, .9) 0 1px 1px;
247
+ @include box-shadow(rgba(#000, .15) 0 0 0 1px inset);
248
+ }
249
+
250
+ .mixin-panel-light {
251
+ @extend .inset-panel-light;
252
+ background: rgba(#fff, .8);
253
+ td.gutter { background: rgba(#000, .08); .line { border-right: 2px solid rgba(#000, .2); color: rgba(#000, .4); } }
254
+ .container textarea { background: darken(#fff, .04); }
255
+ }
256
+
257
+ .image-border-light {
258
+ border:2px solid #444444;
259
+ @extend .round-corners-4;
260
+ }
261
+
262
+ @mixin light-theme($docs: false) {
263
+ $page-bg: #ececec; // image-url('bg-light.jpg');
264
+
265
+ $text: #111;
266
+ $heading: #222;
267
+ $strong-text: #000;
268
+
269
+ $search: #666;
270
+
271
+ $link: #307eb6;
272
+ $nav-link: #444;
273
+ $code: #222;
274
+
275
+ $main-nav: #000;
276
+ $main-nav-selected: darken(#fb292d, 15);
277
+ $docs-nav-selected: $strong-text;
278
+ $module-nav-selected: $link;
279
+
280
+ $option-panel-border: rgba(#000, .2);
281
+ $option-panel-bg: #fff;
282
+
283
+ @include site-theme(light, $page-bg, $text, $strong-text, $heading, $link, $code, $search, $nav-link, $main-nav, $main-nav-selected, $option-panel-border, $option-panel-bg);
284
+
285
+ @if($docs){
286
+ @include docs-theme(light, $heading, $code, $nav-link, $docs-nav-selected, $module-nav-selected);
287
+ .syntaxhighlighter::-webkit-scrollbar-track-piece { -webkit-box-shadow: rgba(#000, .3) 0 0 3px 1px inset; background: rgba(#ddd, .8); }
288
+ .syntaxhighlighter::-webkit-scrollbar-thumb:horizontal { background: -webkit(linear-gradient(rgba(#000, 0) 40%, rgba(#000, .2))) #fff; -webkit-box-shadow: rgba(black, 0.2) 0px 0 0 1px inset; }
289
+ }
290
+ }
@@ -0,0 +1,47 @@
1
+ @font-face {
2
+ font-family: "pictos-web";
3
+ src: url('/otherfonts/pictos-web.eot');
4
+ src: local("?"), url('/otherfonts/pictos-web.woff') format('woff'), url('/otherfonts/pictos-web.ttf') format('truetype'), url('/otherfonts/pictos-web.svg#webfontIyfZbseF') format('svg');}
5
+
6
+ @include font-face("museosans-web", font-files("museosans-web.woff", woff, "museosans-web.ttf", truetype, "museosans-web.svg#webfontJHBEijmD", svg), 'museosans-web.eot');
7
+
8
+
9
+ .sans-font { font-family: 'Lucida Grande', Arial, sans-serif; }
10
+ .heading-font { font-family: 'Museo Sans', "museosans-web", 'serif'; }
11
+ .pictos { font-family: pictos, pictos-web; font-weight: normal; font-style: normal;}
12
+ .fixed-font { font-family: menlo, monaco, "andale mono", "courier new", fixed;}
13
+
14
+ #page {
15
+ line-height: 1.45em;
16
+ ol { list-style: outside decimal; padding-left: 2.5em; }
17
+ ol ol { list-style: outside lower-alpha; padding-left: 2.5em; }
18
+ ul, ol, dl { margin-bottom: 1.5em;}
19
+ p { margin-bottom: 1.2em;}
20
+ #{headings(1,2)}{ @extend .heading-font; line-height: 1.2em; }
21
+ h1 { font-size: 35px; margin-bottom: 15px; padding-bottom: 6px; }
22
+ h2 { font-size: 26px; margin: 1em 0 15px; padding-bottom: 6px; }
23
+ h3 { font-size: 18px; }
24
+ h4 { font-size: 18px; margin: .4em 0; }
25
+ ul { list-style: inside disc; }
26
+ dt { font-weight: bold; }
27
+ }
28
+ #page aside {
29
+ ul { list-style: none; margin-bottom: 1em;}
30
+ h2 { line-height: 1.3em; margin-top: 0; padding-top: 3px;}
31
+ }
32
+ em { font-style: italic; }
33
+ strong { font-weight: bold; }
34
+
35
+ #page > article {
36
+ ul ul { padding-left: 1em; }
37
+ position: relative;
38
+ h2 { font-size: 26px; margin: .5em 0 .6em;
39
+ padding: 1em 0 6px;}
40
+ hr + h2 { padding-top: 0; }
41
+ hr + h3, h4, h5 { margin-top: 0; }
42
+ }
43
+
44
+ dl.table dt, dl.table dd { display: inline-block; }
45
+ dg { display: block; margin-bottom: 1.5em; }
46
+
47
+ .warning { color: #c00; }
@@ -0,0 +1,28 @@
1
+ @import "compass";
2
+ @import "compass/layout";
3
+ @import "core/extensions";
4
+
5
+ @include global-reset;
6
+ @include reset-html5;
7
+
8
+ @import "core/base-classes";
9
+
10
+ @import "partials/theme";
11
+ @import "partials/layout";
12
+ @import "partials/typography";
13
+
14
+ @import "partials/nav";
15
+ @import "partials/sidebar";
16
+ @import "partials/main";
17
+ @import "partials/code";
18
+ @import "partials/example";
19
+ @import "partials/install";
20
+ @import "partials/blog";
21
+
22
+ @import "syntax/syntax-theme";
23
+
24
+ @import "core/clearing-classes";
25
+
26
+
27
+ html.dark { @include dark-theme(true); }
28
+ html.light { @include light-theme(true); }
@@ -0,0 +1,216 @@
1
+ @mixin round_corners_custom($top, $right, $bottom, $left) {
2
+ -moz-border-radius: $top $right $bottom $left !important;
3
+ -webkit-border-radius: $top $right $bottom $left !important;
4
+ }
5
+
6
+ @mixin round_corners($radius) {
7
+ @include round_corners_custom($radius, $radius, $radius, $radius);
8
+ }
9
+
10
+ .syntaxhighlighter {
11
+ a,
12
+ div,
13
+ code,
14
+ table,
15
+ table td,
16
+ table tr,
17
+ table tbody,
18
+ table thead,
19
+ table caption,
20
+ textarea {
21
+ @include round_corners(0);
22
+
23
+ background: none !important;
24
+ border: 0 !important;
25
+ bottom: auto !important;
26
+ float: none !important;
27
+ height: auto !important;
28
+ left: auto !important;
29
+ line-height: 1.1em !important;
30
+ margin: 0 !important;
31
+ outline: 0 !important;
32
+ overflow: visible !important;
33
+ padding: 0 !important;
34
+ position: static !important;
35
+ right: auto !important;
36
+ text-align: left !important;
37
+ top: auto !important;
38
+ vertical-align: baseline !important;
39
+ width: auto !important;
40
+ box-sizing: content-box !important;
41
+ font: {
42
+ family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
43
+ weight: normal !important;
44
+ style: normal !important;
45
+ size: 1em !important;
46
+ }
47
+ min: {
48
+ // For IE8, FF & WebKit
49
+ height: inherit !important;
50
+ // For IE7
51
+ height: auto !important;
52
+ }
53
+ }
54
+ }
55
+
56
+ .syntaxhighlighter {
57
+ width: 100% !important;
58
+ margin: 1em 0 1em 0 !important;
59
+
60
+ position: relative !important;
61
+ overflow: auto !important;
62
+ font-size: 1em !important;
63
+
64
+ &.source { overflow: hidden !important; }
65
+
66
+ // set up bold and italic
67
+ .bold { font-weight: bold !important; }
68
+ .italic { font-style: italic !important; }
69
+
70
+ .line { white-space: pre !important; }
71
+
72
+ // main table and columns
73
+ table {
74
+ width: 100% !important;
75
+ caption {
76
+ text-align: left !important;
77
+ padding: .5em 0 0.5em 1em !important;
78
+ }
79
+
80
+ td.code {
81
+ width: 100% !important;
82
+
83
+ .container {
84
+ position: relative !important;
85
+
86
+ textarea {
87
+ box-sizing: border-box !important;
88
+ position: absolute !important;
89
+ left: 0 !important;
90
+ top: 0 !important;
91
+ width: 100% !important;
92
+ height: 100% !important;
93
+ border: none !important;
94
+ background: white !important;
95
+ padding-left: 1em !important;
96
+ overflow: hidden !important;
97
+ white-space: pre !important;
98
+ }
99
+ }
100
+ }
101
+
102
+ // middle spacing between line numbers and lines
103
+ td.gutter .line {
104
+ text-align: right !important;
105
+ padding: 0 0.5em 0 1em !important;
106
+ }
107
+
108
+ td.code .line {
109
+ padding: 0 1em !important;
110
+ }
111
+ }
112
+
113
+ &.nogutter {
114
+ td.code {
115
+ .container textarea, .line { padding-left: 0em !important; }
116
+ }
117
+ }
118
+
119
+ &.show { display: block !important; }
120
+
121
+ // Adjust some properties when collapsed
122
+ &.collapsed {
123
+ table { display: none !important; }
124
+
125
+ .toolbar {
126
+ padding: 0.1em 0.8em 0em 0.8em !important;
127
+ font-size: 1em !important;
128
+ position: static !important;
129
+ width: auto !important;
130
+ height: auto !important;
131
+
132
+ span {
133
+ display: inline !important;
134
+ margin-right: 1em !important;
135
+
136
+ a {
137
+ padding: 0 !important;
138
+ display: none !important;
139
+ &.expandSource { display: inline !important; }
140
+ }
141
+ }
142
+ }
143
+ }
144
+
145
+ // Styles for the toolbar
146
+ .toolbar {
147
+ position: absolute !important;
148
+ right: 1px !important;
149
+ top: 1px !important;
150
+ width: 11px !important;
151
+ height: 11px !important;
152
+ font-size: 10px !important;
153
+ z-index: 10 !important;
154
+
155
+ span.title { display: inline !important; }
156
+
157
+ a {
158
+ display: block !important;
159
+ text-align: center !important;
160
+ text-decoration: none !important;
161
+ padding-top: 1px !important;
162
+
163
+ &.expandSource { display: none !important; }
164
+ }
165
+ }
166
+
167
+ &.ie {
168
+ font-size: .9em !important;
169
+ padding: 1px 0 1px 0 !important;
170
+
171
+ .toolbar {
172
+ line-height: 8px !important;
173
+ a {
174
+ padding-top: 0px !important;
175
+ }
176
+ }
177
+ }
178
+
179
+ // Print view.
180
+ // Colors are based on the default theme without background.
181
+ &.printing {
182
+ .line.alt1 .content,
183
+ .line.alt2 .content,
184
+ .line.highlighted .number,
185
+ .line.highlighted.alt1 .content,
186
+ .line.highlighted.alt2 .content { background: none !important; }
187
+
188
+ // Gutter line numbers
189
+ .line {
190
+ .number { color: #bbbbbb !important; }
191
+ // Add border to the lines
192
+ .content { color: black !important; }
193
+ }
194
+
195
+ // Toolbar when visible
196
+ .toolbar { display: none !important; }
197
+ a { text-decoration: none !important; }
198
+ .plain, .plain a { color: black !important; }
199
+ .comments, .comments a { color: #008200 !important; }
200
+ .string, .string a { color: blue !important; }
201
+ .keyword {
202
+ color: #006699 !important;
203
+ font-weight: bold !important;
204
+ }
205
+ .preprocessor { color: gray !important; }
206
+ .variable { color: #aa7700 !important; }
207
+ .value { color: #009900 !important; }
208
+ .functions { color: #ff1493 !important; }
209
+ .constants { color: #0066cc !important; }
210
+ .script { font-weight: bold !important; }
211
+ .color1, .color1 a { color: gray !important; }
212
+ .color2, .color2 a { color: #ff1493 !important; }
213
+ .color3, .color3 a { color: red !important; }
214
+ .break, .break a { color: black !important; }
215
+ }
216
+ }