preboot-sass 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .sass-cache
3
+ Gemfile.lock
4
+ .rvmrc
@@ -0,0 +1,4 @@
1
+ # Changelog
2
+
3
+ # 0.1.0
4
+ * Initial commit, using Preboot 2 commit 161a3e01341a7e3a8ec88b59b65f300e79b36883
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2013 Mark Otto.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
+
11
+ Developer’s Certificate of Origin 1.1
12
+
13
+ By making a contribution to this project, I certify that:
14
+
15
+ (a) The contribution was created in whole or in part by me and I have the right to submit it under the open source license indicated in the file; or
16
+
17
+ (b) The contribution is based upon previous work that, to the best of my knowledge, is covered under an appropriate open source license and I have the right under that license to submit that work with modifications, whether created in whole or in part by me, under the same open source license (unless I am permitted to submit under a different license), as indicated in the file; or
18
+
19
+ (c) The contribution was provided directly to me by some other person who certified (a), (b) or (c) and I have not modified it.
20
+
21
+ (d) I understand and agree that this project and the contribution are public and that a record of the contribution (including all personal information I submit with it, including my sign-off) is maintained indefinitely and may be redistributed consistent with this project or the open source license(s) involved.
@@ -0,0 +1,26 @@
1
+ # Preboot 2 for Sass
2
+
3
+ `preboot-sass` is an Sass-powered version of [Mark Otto's Preboot 2](http://github.com/mdo/preboot), ready to drop right into your Sass powered applications.
4
+
5
+ ## Usage
6
+
7
+ ### Rails
8
+
9
+ In your Gemfile:
10
+
11
+ ```ruby
12
+ gem 'sass-rails', '~> 3.2'
13
+ gem 'preboot-sass', '~> 0.1.0'
14
+ ```
15
+
16
+ `bundle install` and restart your server to make the files available.
17
+
18
+ #### CSS
19
+
20
+ Preboot is separated into 3 Sass files. `preboot` holds all of the mixins and variables. `normalize` is from git.io/noramlize version 2.1.0. `pygments` is a theme for the Pygments, code hightlighting.
21
+
22
+ ```css
23
+ @import "preboot";
24
+ @import "normalize";
25
+ @import "pygments";
26
+ ```
@@ -0,0 +1,9 @@
1
+ desc 'Dumps output to a CSS file for testing'
2
+ task :dump do
3
+ require 'sass'
4
+ path = './vendor/assets/stylesheets'
5
+ %w(preboot).each do |file|
6
+ engine = Sass::Engine.for_file("#{path}/#{file}.scss", syntax: :scss, load_paths: [path])
7
+ File.open("./#{file}.css", 'w') { |f| f.write(engine.render) }
8
+ end
9
+ end
@@ -0,0 +1,5 @@
1
+ require "preboot-sass/engine"
2
+ require "preboot-sass/version"
3
+
4
+ module Preboot
5
+ end
@@ -0,0 +1,6 @@
1
+ module Preboot
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ module Preboot
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,18 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/preboot-sass/version', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "preboot-sass"
6
+ s.version = Preboot::VERSION
7
+ s.authors = ["Pete Brousalis, Mark Otto"]
8
+ s.email = "brousapg@gmail.com"
9
+ s.summary = "Mark Otto's Preboot 2, converted into sass"
10
+ s.homepage = "http://github.com/brousalis/preboot-sass"
11
+ s.license = "MIT"
12
+
13
+ s.add_development_dependency 'sass-rails', '~> 3.2'
14
+ s.add_runtime_dependency 'sass', '~> 3.2'
15
+
16
+ s.files = `git ls-files`.split($\)
17
+ s.require_paths = ["lib"]
18
+ end
@@ -0,0 +1,396 @@
1
+ /*! normalize.css v2.1.0 | MIT License | git.io/normalize */
2
+
3
+ /* ==========================================================================
4
+ HTML5 display definitions
5
+ ========================================================================== */
6
+
7
+ /**
8
+ * Correct `block` display not defined in IE 8/9.
9
+ */
10
+
11
+ article,
12
+ aside,
13
+ details,
14
+ figcaption,
15
+ figure,
16
+ footer,
17
+ header,
18
+ hgroup,
19
+ main,
20
+ nav,
21
+ section,
22
+ summary {
23
+ display: block;
24
+ }
25
+
26
+ /**
27
+ * Correct `inline-block` display not defined in IE 8/9.
28
+ */
29
+
30
+ audio,
31
+ canvas,
32
+ video {
33
+ display: inline-block;
34
+ }
35
+
36
+ /**
37
+ * Prevent modern browsers from displaying `audio` without controls.
38
+ * Remove excess height in iOS 5 devices.
39
+ */
40
+
41
+ audio:not([controls]) {
42
+ display: none;
43
+ height: 0;
44
+ }
45
+
46
+ /**
47
+ * Address styling not present in IE 8/9.
48
+ */
49
+
50
+ [hidden] {
51
+ display: none;
52
+ }
53
+
54
+ /* ==========================================================================
55
+ Base
56
+ ========================================================================== */
57
+
58
+ /**
59
+ * 1. Set default font family to sans-serif.
60
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
61
+ * user zoom.
62
+ */
63
+
64
+ html {
65
+ font-family: sans-serif; /* 1 */
66
+ -webkit-text-size-adjust: 100%; /* 2 */
67
+ -ms-text-size-adjust: 100%; /* 2 */
68
+ }
69
+
70
+ /**
71
+ * Remove default margin.
72
+ */
73
+
74
+ body {
75
+ margin: 0;
76
+ }
77
+
78
+ /* ==========================================================================
79
+ Links
80
+ ========================================================================== */
81
+
82
+ /**
83
+ * Address `outline` inconsistency between Chrome and other browsers.
84
+ */
85
+
86
+ a:focus {
87
+ outline: thin dotted;
88
+ }
89
+
90
+ /**
91
+ * Improve readability when focused and also mouse hovered in all browsers.
92
+ */
93
+
94
+ a:active,
95
+ a:hover {
96
+ outline: 0;
97
+ }
98
+
99
+ /* ==========================================================================
100
+ Typography
101
+ ========================================================================== */
102
+
103
+ /**
104
+ * Address variable `h1` font-size and margin within `section` and `article`
105
+ * contexts in Firefox 4+, Safari 5, and Chrome.
106
+ */
107
+
108
+ h1 {
109
+ font-size: 2em;
110
+ margin: 0.67em 0;
111
+ }
112
+
113
+ /**
114
+ * Address styling not present in IE 8/9, Safari 5, and Chrome.
115
+ */
116
+
117
+ abbr[title] {
118
+ border-bottom: 1px dotted;
119
+ }
120
+
121
+ /**
122
+ * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
123
+ */
124
+
125
+ b,
126
+ strong {
127
+ font-weight: bold;
128
+ }
129
+
130
+ /**
131
+ * Address styling not present in Safari 5 and Chrome.
132
+ */
133
+
134
+ dfn {
135
+ font-style: italic;
136
+ }
137
+
138
+ /**
139
+ * Address differences between Firefox and other browsers.
140
+ */
141
+
142
+ hr {
143
+ -moz-box-sizing: content-box;
144
+ box-sizing: content-box;
145
+ height: 0;
146
+ }
147
+
148
+ /**
149
+ * Address styling not present in IE 8/9.
150
+ */
151
+
152
+ mark {
153
+ background: #ff0;
154
+ color: #000;
155
+ }
156
+
157
+ /**
158
+ * Correct font family set oddly in Safari 5 and Chrome.
159
+ */
160
+
161
+ code,
162
+ kbd,
163
+ pre,
164
+ samp {
165
+ font-family: monospace, serif;
166
+ font-size: 1em;
167
+ }
168
+
169
+ /**
170
+ * Improve readability of pre-formatted text in all browsers.
171
+ */
172
+
173
+ pre {
174
+ white-space: pre-wrap;
175
+ }
176
+
177
+ /**
178
+ * Set consistent quote types.
179
+ */
180
+
181
+ q {
182
+ quotes: "\201C" "\201D" "\2018" "\2019";
183
+ }
184
+
185
+ /**
186
+ * Address inconsistent and variable font size in all browsers.
187
+ */
188
+
189
+ small {
190
+ font-size: 80%;
191
+ }
192
+
193
+ /**
194
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
195
+ */
196
+
197
+ sub,
198
+ sup {
199
+ font-size: 75%;
200
+ line-height: 0;
201
+ position: relative;
202
+ vertical-align: baseline;
203
+ }
204
+
205
+ sup {
206
+ top: -0.5em;
207
+ }
208
+
209
+ sub {
210
+ bottom: -0.25em;
211
+ }
212
+
213
+ /* ==========================================================================
214
+ Embedded content
215
+ ========================================================================== */
216
+
217
+ /**
218
+ * Remove border when inside `a` element in IE 8/9.
219
+ */
220
+
221
+ img {
222
+ border: 0;
223
+ }
224
+
225
+ /**
226
+ * Correct overflow displayed oddly in IE 9.
227
+ */
228
+
229
+ svg:not(:root) {
230
+ overflow: hidden;
231
+ }
232
+
233
+ /* ==========================================================================
234
+ Figures
235
+ ========================================================================== */
236
+
237
+ /**
238
+ * Address margin not present in IE 8/9 and Safari 5.
239
+ */
240
+
241
+ figure {
242
+ margin: 0;
243
+ }
244
+
245
+ /* ==========================================================================
246
+ Forms
247
+ ========================================================================== */
248
+
249
+ /**
250
+ * Define consistent border, margin, and padding.
251
+ */
252
+
253
+ fieldset {
254
+ border: 1px solid #c0c0c0;
255
+ margin: 0 2px;
256
+ padding: 0.35em 0.625em 0.75em;
257
+ }
258
+
259
+ /**
260
+ * 1. Correct `color` not being inherited in IE 8/9.
261
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
262
+ */
263
+
264
+ legend {
265
+ border: 0; /* 1 */
266
+ padding: 0; /* 2 */
267
+ }
268
+
269
+ /**
270
+ * 1. Correct font family not being inherited in all browsers.
271
+ * 2. Correct font size not being inherited in all browsers.
272
+ * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
273
+ */
274
+
275
+ button,
276
+ input,
277
+ select,
278
+ textarea {
279
+ font-family: inherit; /* 1 */
280
+ font-size: 100%; /* 2 */
281
+ margin: 0; /* 3 */
282
+ }
283
+
284
+ /**
285
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
286
+ * the UA stylesheet.
287
+ */
288
+
289
+ button,
290
+ input {
291
+ line-height: normal;
292
+ }
293
+
294
+ /**
295
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
296
+ * All other form control elements do not inherit `text-transform` values.
297
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
298
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
299
+ */
300
+
301
+ button,
302
+ select {
303
+ text-transform: none;
304
+ }
305
+
306
+ /**
307
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
308
+ * and `video` controls.
309
+ * 2. Correct inability to style clickable `input` types in iOS.
310
+ * 3. Improve usability and consistency of cursor style between image-type
311
+ * `input` and others.
312
+ */
313
+
314
+ button,
315
+ html input[type="button"], /* 1 */
316
+ input[type="reset"],
317
+ input[type="submit"] {
318
+ -webkit-appearance: button; /* 2 */
319
+ cursor: pointer; /* 3 */
320
+ }
321
+
322
+ /**
323
+ * Re-set default cursor for disabled elements.
324
+ */
325
+
326
+ button[disabled],
327
+ html input[disabled] {
328
+ cursor: default;
329
+ }
330
+
331
+ /**
332
+ * 1. Address box sizing set to `content-box` in IE 8/9.
333
+ * 2. Remove excess padding in IE 8/9.
334
+ */
335
+
336
+ input[type="checkbox"],
337
+ input[type="radio"] {
338
+ box-sizing: border-box; /* 1 */
339
+ padding: 0; /* 2 */
340
+ }
341
+
342
+ /**
343
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
344
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
345
+ * (include `-moz` to future-proof).
346
+ */
347
+
348
+ input[type="search"] {
349
+ -webkit-appearance: textfield; /* 1 */
350
+ -moz-box-sizing: content-box;
351
+ -webkit-box-sizing: content-box; /* 2 */
352
+ box-sizing: content-box;
353
+ }
354
+
355
+ /**
356
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
357
+ * on OS X.
358
+ */
359
+
360
+ input[type="search"]::-webkit-search-cancel-button,
361
+ input[type="search"]::-webkit-search-decoration {
362
+ -webkit-appearance: none;
363
+ }
364
+
365
+ /**
366
+ * Remove inner padding and border in Firefox 4+.
367
+ */
368
+
369
+ button::-moz-focus-inner,
370
+ input::-moz-focus-inner {
371
+ border: 0;
372
+ padding: 0;
373
+ }
374
+
375
+ /**
376
+ * 1. Remove default vertical scrollbar in IE 8/9.
377
+ * 2. Improve readability and alignment in all browsers.
378
+ */
379
+
380
+ textarea {
381
+ overflow: auto; /* 1 */
382
+ vertical-align: top; /* 2 */
383
+ }
384
+
385
+ /* ==========================================================================
386
+ Tables
387
+ ========================================================================== */
388
+
389
+ /**
390
+ * Remove most spacing between table cells.
391
+ */
392
+
393
+ table {
394
+ border-collapse: collapse;
395
+ border-spacing: 0;
396
+ }
@@ -0,0 +1,400 @@
1
+ /*!
2
+ * Preboot v2
3
+ *
4
+ * Open sourced under MIT license by @mdo.
5
+ * Converted to SASS by @brousalis
6
+ * Some variables and mixins from Bootstrap (Apache 2 license).
7
+ */
8
+
9
+ //
10
+ // Variables
11
+ // --------------------------------------------------
12
+
13
+ // Grayscale
14
+ $black-10: darken(#fff, 10%);
15
+ $black-20: darken(#fff, 20%);
16
+ $black-30: darken(#fff, 30%);
17
+ $black-40: darken(#fff, 40%);
18
+ $black-50: darken(#fff, 50%);
19
+ $black-60: darken(#fff, 60%);
20
+ $black-70: darken(#fff, 70%);
21
+ $black-80: darken(#fff, 80%);
22
+ $black-90: darken(#fff, 90%);
23
+
24
+ // Brand colors
25
+ $brand-primary: #428bca;
26
+ $brand-success: #5cb85c;
27
+ $brand-warning: #f0ad4e;
28
+ $brand-danger: #d9534f;
29
+ $brand-info: #5bc0de;
30
+
31
+ // Scaffolding
32
+ $body-background: #fff;
33
+ $text-color: $black-50;
34
+
35
+ // Links
36
+ $link-color: $brand-primary;
37
+ $link-color-hover: darken($link-color, 15%);
38
+
39
+ // Typography
40
+ $font-family-sans-serif: "Helvetica Neue", Helvetica, Arial, sans-serif;
41
+ $font-family-serif: Georgia, "Times New Roman", Times, serif;
42
+ $font-family-monospace: Monaco, Menlo, Consolas, "Courier New", monospace;
43
+ $font-family-base: $font-family-sans-serif;
44
+
45
+ $font-size-base: 14px;
46
+ $font-size-large: $font-size-base * 1.25; // ~18px
47
+ $font-size-small: $font-size-base * 0.85; // ~12px
48
+ $font-size-mini: $font-size-base * 0.75; // ~11px
49
+
50
+ $line-height-base: 1.4;
51
+
52
+ $headings-font-family: inherit; // empty to use BS default, $font-family-base
53
+ $headings-font-weight: 500;
54
+
55
+ // Forms
56
+ $input-color-placeholder: lighten($text-color, 25%);
57
+
58
+ // Grid
59
+ // Used with the grid mixins below
60
+ $grid-columns: 12;
61
+ $grid-column-padding: 15px; // Left and right inner padding
62
+ $grid-float-breakpoint: 768px;
63
+
64
+
65
+
66
+ //
67
+ // Grid system
68
+ // --------------------------------------------------
69
+
70
+ // Grid
71
+ @mixin make-row {
72
+ // Negative margin the row out to align the content of columns
73
+ margin-left: -$grid-column-padding;
74
+ margin-right: -$grid-column-padding;
75
+ // Then clear the floated columns
76
+ @include clearfix();
77
+ }
78
+ @mixin make-column($columns) {
79
+ @media (min-width: $grid-float-breakpoint) {
80
+ float: left;
81
+ // Calculate width based on number of columns available
82
+ width: percentage($columns / $grid-columns);
83
+ }
84
+ // Prevent columns from collapsing when empty
85
+ min-height: 1px;
86
+ // Set inner padding as gutters instead of margin
87
+ padding-left: $grid-column-padding;
88
+ padding-right: $grid-column-padding;
89
+ // Proper box-model (padding doesn't add to width)
90
+ @include box-sizing(border-box);
91
+ }
92
+ @mixin make-column-offset($columns) {
93
+ @media (min-width: $grid-float-breakpoint) {
94
+ margin-left: percentage($columns / $grid-columns);
95
+ }
96
+ }
97
+
98
+
99
+
100
+ //
101
+ // Mixins: vendor prefixes
102
+ // --------------------------------------------------
103
+
104
+ // Box sizing
105
+ @mixin box-sizing($box-model) {
106
+ -webkit-box-sizing: $box-model; // Safari <= 5
107
+ -moz-box-sizing: $box-model; // Firefox <= 19
108
+ box-sizing: $box-model;
109
+ }
110
+
111
+ // Single side border-radius
112
+ @mixin border-top-radius($radius) {
113
+ border-top-right-radius: $radius;
114
+ border-top-left-radius: $radius;
115
+ }
116
+ @mixin border-right-radius($radius) {
117
+ border-bottom-right-radius: $radius;
118
+ border-top-right-radius: $radius;
119
+ }
120
+ @mixin border-bottom-radius($radius) {
121
+ border-bottom-right-radius: $radius;
122
+ border-bottom-left-radius: $radius;
123
+ }
124
+ @mixin border-left-radius($radius) {
125
+ border-bottom-left-radius: $radius;
126
+ border-top-left-radius: $radius;
127
+ }
128
+
129
+ // Drop shadows
130
+ @mixin box-shadow($shadow) {
131
+ -webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
132
+ box-shadow: $shadow;
133
+ }
134
+
135
+ // Transitions
136
+ @mixin transition($transition) {
137
+ -webkit-transition: $transition;
138
+ -moz-transition: $transition;
139
+ -o-transition: $transition;
140
+ transition: $transition;
141
+ }
142
+ @mixin transition-delay($transition-delay) {
143
+ -webkit-transition-delay: $transition-delay;
144
+ -moz-transition-delay: $transition-delay;
145
+ -o-transition-delay: $transition-delay;
146
+ transition-delay: $transition-delay;
147
+ }
148
+ @mixin transition-duration($transition-duration) {
149
+ -webkit-transition-duration: $transition-duration;
150
+ -moz-transition-duration: $transition-duration;
151
+ -o-transition-duration: $transition-duration;
152
+ transition-duration: $transition-duration;
153
+ }
154
+
155
+ // Transformations
156
+ @mixin rotate($degrees) {
157
+ -webkit-transform: rotate($degrees);
158
+ -moz-transform: rotate($degrees);
159
+ -ms-transform: rotate($degrees);
160
+ -o-transform: rotate($degrees);
161
+ transform: rotate($degrees);
162
+ }
163
+ @mixin scale($ratio) {
164
+ -webkit-transform: scale($ratio);
165
+ -moz-transform: scale($ratio);
166
+ -ms-transform: scale($ratio);
167
+ -o-transform: scale($ratio);
168
+ transform: scale($ratio);
169
+ }
170
+ @mixin translate($x, $y) {
171
+ -webkit-transform: translate($x, $y);
172
+ -moz-transform: translate($x, $y);
173
+ -ms-transform: translate($x, $y);
174
+ -o-transform: translate($x, $y);
175
+ transform: translate($x, $y);
176
+ }
177
+ @mixin skew($x, $y) {
178
+ -webkit-transform: skew($x, $y);
179
+ -moz-transform: skew($x, $y);
180
+ -ms-transform: skewX($x) skewY($y); // See https://github.com/twitter/bootstrap/issues/4885
181
+ -o-transform: skew($x, $y);
182
+ transform: skew($x, $y);
183
+ -webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319
184
+ }
185
+ @mixin translate3d($x, $y, $z) {
186
+ -webkit-transform: translate3d($x, $y, $z);
187
+ -moz-transform: translate3d($x, $y, $z);
188
+ -o-transform: translate3d($x, $y, $z);
189
+ transform: translate3d($x, $y, $z);
190
+ }
191
+
192
+ // Backface visibility
193
+ //
194
+ // Prevent browsers from flickering when using CSS 3D transforms.
195
+ // Default value is `visible`, but can be changed to `hidden
196
+ // See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples
197
+ @mixin backface-visibility($visibility){
198
+ -webkit-backface-visibility: $visibility;
199
+ -moz-backface-visibility: $visibility;
200
+ backface-visibility: $visibility;
201
+ }
202
+
203
+ // User select
204
+ //
205
+ // For selecting text on the page
206
+ @mixin user-select($select) {
207
+ -webkit-user-select: $select;
208
+ -moz-user-select: $select;
209
+ -ms-user-select: $select;
210
+ -o-user-select: $select;
211
+ user-select: $select;
212
+ }
213
+
214
+ // Opacity
215
+ @mixin opacity($opacity) {
216
+ opacity: $opacity;
217
+ $opacity-ie: $opacity * 100;
218
+ filter: alpha(opacity=$opacity); //IE8
219
+ }
220
+
221
+ // Placeholder text
222
+ @mixin placeholder($color: $input-color-placeholder) {
223
+ &:-moz-placeholder { color: $color; } // Firefox 4-18
224
+ &::-moz-placeholder { color: $color; } // Firefox 19+
225
+ &:-ms-input-placeholder { color: $color; } // Internet Explorer 10+
226
+ &::-webkit-input-placeholder { color: $color; } // Safari and Chrome
227
+ }
228
+
229
+ // Resize anything
230
+ @mixin resizable($direction) {
231
+ resize: $direction; // Options: horizontal, vertical, both
232
+ overflow: auto; // Safari fix
233
+ }
234
+
235
+ // CSS3 Content Columns
236
+ @mixin content-columns($width, $count, $gap) {
237
+ -webkit-column-width: $width;
238
+ -moz-column-width: $width;
239
+ column-width: $width;
240
+ -webkit-column-count: $count;
241
+ -moz-column-count: $count;
242
+ column-count: $count;
243
+ -webkit-column-gap: $gap;
244
+ -moz-column-gap: $gap;
245
+ column-gap: $gap;
246
+ }
247
+
248
+ // Optional hyphenation
249
+ @mixin hyphens($mode: auto) {
250
+ word-wrap: break-word;
251
+ -webkit-hyphens: $mode;
252
+ -moz-hyphens: $mode;
253
+ -ms-hyphens: $mode;
254
+ -o-hyphens: $mode;
255
+ hyphens: $mode;
256
+ }
257
+
258
+ // Gradients
259
+ @mixin gradient-horizontal($startColor: #555, $endColor: #333) {
260
+ background-color: $endColor;
261
+ background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
262
+ background-image: -webkit-gradient(linear, 0 0, 100% 0, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
263
+ background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
264
+ background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
265
+ background-image: linear-gradient(to right, $startColor, $endColor); // Standard, IE10
266
+ background-repeat: repeat-x;
267
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=1); // IE9 and down
268
+ }
269
+ @mixin gradient-vertical($startColor: #555, $endColor: #333) {
270
+ background-color: $endColor;
271
+ background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
272
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), to($endColor)); // Safari 4+, Chrome 2+
273
+ background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
274
+ background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
275
+ background-image: linear-gradient(to bottom, $startColor, $endColor); // Standard, IE10
276
+ background-repeat: repeat-x;
277
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down
278
+ }
279
+ @mixin gradient-directional($startColor: #555, $endColor: #333, $deg: 45deg) {
280
+ background-color: $endColor;
281
+ background-repeat: repeat-x;
282
+ background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
283
+ background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
284
+ background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
285
+ background-image: linear-gradient($deg, $startColor, $endColor); // Standard, IE10
286
+ }
287
+ @mixin gradient-horizontal-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
288
+ background-color: mix($midColor, $endColor, 80%);
289
+ background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
290
+ background-image: -webkit-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
291
+ background-image: -moz-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
292
+ background-image: -o-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
293
+ background-image: linear-gradient(to right, $startColor, $midColor $colorStop, $endColor);
294
+ background-repeat: no-repeat;
295
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
296
+ }
297
+ @mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
298
+ background-color: mix($midColor, $endColor, 80%);
299
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
300
+ background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
301
+ background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor);
302
+ background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
303
+ background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
304
+ background-repeat: no-repeat;
305
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
306
+ }
307
+ @mixin radial($innerColor: #555, $outerColor: #333) {
308
+ background-color: $outerColor;
309
+ background-image: -webkit-gradient(radial, center center, 0, center center, 460, from($innerColor), to($outerColor));
310
+ background-image: -webkit-radial-gradient(circle, $innerColor, $outerColor);
311
+ background-image: -moz-radial-gradient(circle, $innerColor, $outerColor);
312
+ background-image: -o-radial-gradient(circle, $innerColor, $outerColor);
313
+ background-repeat: no-repeat;
314
+ }
315
+ @mixin striped($color: #555, $angle: 45deg) {
316
+ background-color: $color;
317
+ background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
318
+ background-image: -webkit-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
319
+ background-image: -moz-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
320
+ background-image: -o-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
321
+ background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
322
+ }
323
+
324
+ // Reset filters for IE
325
+ //
326
+ // Useful for when you want to remove a gradient from an element.
327
+ @mixin reset-filter {
328
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
329
+ }
330
+
331
+
332
+
333
+ //
334
+ // Mixins: utilities
335
+ // --------------------------------------------------
336
+
337
+ // Clearfix
338
+ //
339
+ // Source: http://nicolasgallagher.com/micro-clearfix-hack/
340
+ //
341
+ // For modern browsers
342
+ // 1. The space content is one way to avoid an Opera bug when the
343
+ // contenteditable attribute is included anywhere else in the document.
344
+ // Otherwise it causes space to appear at the top and bottom of elements
345
+ // that are clearfixed.
346
+ // 2. The use of `table` rather than `block` is only necessary if using
347
+ // `:before` to contain the top-margins of child elements.
348
+ @mixin clearfix {
349
+ &:before,
350
+ &:after {
351
+ content: " "; // 1
352
+ display: table; // 2
353
+ }
354
+ &:after {
355
+ clear: both;
356
+ }
357
+ }
358
+
359
+ // Center-align a block level element
360
+ @mixin center-block {
361
+ display: block;
362
+ margin-left: auto;
363
+ margin-right: auto;
364
+ }
365
+
366
+ // Sizing shortcuts
367
+ @mixin size($width, $height) {
368
+ width: $width;
369
+ height: $height;
370
+ }
371
+ @mixin square($size) {
372
+ @include size($size, $size);
373
+ }
374
+
375
+ // Text overflow
376
+ //
377
+ // Requires inline-block or block for proper styling
378
+ @mixin text-truncate {
379
+ overflow: hidden;
380
+ text-overflow: ellipsis;
381
+ white-space: nowrap;
382
+ }
383
+
384
+ // Retina images
385
+ //
386
+ // Retina background-image support with non-retina fall back
387
+ @mixin retina-image($file-1x, $file-2x, $width-1x, $height-1x) {
388
+ background-image: url($file-1x);
389
+
390
+ @media
391
+ only screen and (-webkit-min-device-pixel-ratio: 2),
392
+ only screen and ( min--moz-device-pixel-ratio: 2),
393
+ only screen and ( -o-min-device-pixel-ratio: 2/1),
394
+ only screen and ( min-device-pixel-ratio: 2),
395
+ only screen and ( min-resolution: 192dpi),
396
+ only screen and ( min-resolution: 2dppx) {
397
+ background-image: url($file-2x);
398
+ background-size: $width-1x $height-1x;
399
+ }
400
+ }
@@ -0,0 +1,66 @@
1
+ .hll { background-color: #ffffcc }
2
+ /*{ background: #f0f3f3; }*/
3
+ .c { color: #999; } /* Comment */
4
+ .err { color: #AA0000; background-color: #FFAAAA } /* Error */
5
+ .k { color: #006699; } /* Keyword */
6
+ .o { color: #555555 } /* Operator */
7
+ .cm { color: #0099FF; font-style: italic } /* Comment.Multiline */
8
+ .cp { color: #009999 } /* Comment.Preproc */
9
+ .c1 { color: #999; } /* Comment.Single */
10
+ .cs { color: #999; } /* Comment.Special */
11
+ .gd { background-color: #FFCCCC; border: 1px solid #CC0000 } /* Generic.Deleted */
12
+ .ge { font-style: italic } /* Generic.Emph */
13
+ .gr { color: #FF0000 } /* Generic.Error */
14
+ .gh { color: #003300; } /* Generic.Heading */
15
+ .gi { background-color: #CCFFCC; border: 1px solid #00CC00 } /* Generic.Inserted */
16
+ .go { color: #AAAAAA } /* Generic.Output */
17
+ .gp { color: #000099; } /* Generic.Prompt */
18
+ .gs { } /* Generic.Strong */
19
+ .gu { color: #003300; } /* Generic.Subheading */
20
+ .gt { color: #99CC66 } /* Generic.Traceback */
21
+ .kc { color: #006699; } /* Keyword.Constant */
22
+ .kd { color: #006699; } /* Keyword.Declaration */
23
+ .kn { color: #006699; } /* Keyword.Namespace */
24
+ .kp { color: #006699 } /* Keyword.Pseudo */
25
+ .kr { color: #006699; } /* Keyword.Reserved */
26
+ .kt { color: #007788; } /* Keyword.Type */
27
+ .m { color: #FF6600 } /* Literal.Number */
28
+ .s { color: #d44950 } /* Literal.String */
29
+ .na { color: #4f9fcf } /* Name.Attribute */
30
+ .nb { color: #336666 } /* Name.Builtin */
31
+ .nc { color: #00AA88; } /* Name.Class */
32
+ .no { color: #336600 } /* Name.Constant */
33
+ .nd { color: #9999FF } /* Name.Decorator */
34
+ .ni { color: #999999; } /* Name.Entity */
35
+ .ne { color: #CC0000; } /* Name.Exception */
36
+ .nf { color: #CC00FF } /* Name.Function */
37
+ .nl { color: #9999FF } /* Name.Label */
38
+ .nn { color: #00CCFF; } /* Name.Namespace */
39
+ .nt { color: #2f6f9f; } /* Name.Tag */
40
+ .nv { color: #003333 } /* Name.Variable */
41
+ .ow { color: #000000; } /* Operator.Word */
42
+ .w { color: #bbbbbb } /* Text.Whitespace */
43
+ .mf { color: #FF6600 } /* Literal.Number.Float */
44
+ .mh { color: #FF6600 } /* Literal.Number.Hex */
45
+ .mi { color: #FF6600 } /* Literal.Number.Integer */
46
+ .mo { color: #FF6600 } /* Literal.Number.Oct */
47
+ .sb { color: #CC3300 } /* Literal.String.Backtick */
48
+ .sc { color: #CC3300 } /* Literal.String.Char */
49
+ .sd { color: #CC3300; font-style: italic } /* Literal.String.Doc */
50
+ .s2 { color: #CC3300 } /* Literal.String.Double */
51
+ .se { color: #CC3300; } /* Literal.String.Escape */
52
+ .sh { color: #CC3300 } /* Literal.String.Heredoc */
53
+ .si { color: #AA0000 } /* Literal.String.Interpol */
54
+ .sx { color: #CC3300 } /* Literal.String.Other */
55
+ .sr { color: #33AAAA } /* Literal.String.Regex */
56
+ .s1 { color: #CC3300 } /* Literal.String.Single */
57
+ .ss { color: #FFCC33 } /* Literal.String.Symbol */
58
+ .bp { color: #336666 } /* Name.Builtin.Pseudo */
59
+ .vc { color: #003333 } /* Name.Variable.Class */
60
+ .vg { color: #003333 } /* Name.Variable.Global */
61
+ .vi { color: #003333 } /* Name.Variable.Instance */
62
+ .il { color: #FF6600 } /* Literal.Number.Integer.Long */
63
+
64
+ .css .o,
65
+ .css .o + .nt,
66
+ .css .nt + .nt { color: #999; }
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: preboot-sass
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Pete Brousalis, Mark Otto
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-04-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: sass-rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.2'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
30
+ - !ruby/object:Gem::Dependency
31
+ name: sass
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: '3.2'
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: '3.2'
46
+ description:
47
+ email: brousapg@gmail.com
48
+ executables: []
49
+ extensions: []
50
+ extra_rdoc_files: []
51
+ files:
52
+ - .gitignore
53
+ - CHANGELOG.md
54
+ - Gemfile
55
+ - LICENSE.md
56
+ - README.md
57
+ - Rakefile
58
+ - lib/preboot-sass.rb
59
+ - lib/preboot-sass/engine.rb
60
+ - lib/preboot-sass/version.rb
61
+ - preboot-sass.gemspec
62
+ - vendor/assets/stylesheets/normalize.scss
63
+ - vendor/assets/stylesheets/preboot.scss
64
+ - vendor/assets/stylesheets/pygments.less
65
+ homepage: http://github.com/brousalis/preboot-sass
66
+ licenses:
67
+ - MIT
68
+ post_install_message:
69
+ rdoc_options: []
70
+ require_paths:
71
+ - lib
72
+ required_ruby_version: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ required_rubygems_version: !ruby/object:Gem::Requirement
79
+ none: false
80
+ requirements:
81
+ - - ! '>='
82
+ - !ruby/object:Gem::Version
83
+ version: '0'
84
+ requirements: []
85
+ rubyforge_project:
86
+ rubygems_version: 1.8.25
87
+ signing_key:
88
+ specification_version: 3
89
+ summary: Mark Otto's Preboot 2, converted into sass
90
+ test_files: []