Sassifaction 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/Sassifaction.rb +6 -0
- data/sass/_Sassifaction.scss +1 -0
- data/sass/_variables.scss +91 -0
- data/sass/base/_bizarro.scss +248 -0
- data/sass/base/_debug.scss +170 -0
- data/sass/base/_fonts.scss +20 -0
- data/sass/base/_helpers.scss +60 -0
- data/sass/base/_mixins.scss +18 -0
- data/sass/base/_print.scss +75 -0
- data/sass/base/mixins/_BEM.scss +16 -0
- data/sass/base/mixins/_IE7-padding.scss +31 -0
- data/sass/base/mixins/_border-radius.scss +32 -0
- data/sass/base/mixins/_children-of-ie.scss +11 -0
- data/sass/base/mixins/_colors.scss +58 -0
- data/sass/base/mixins/_maths.scss +34 -0
- data/sass/base/mixins/_media-queries.scss +67 -0
- data/sass/base/mixins/_misc.scss +40 -0
- data/sass/base/mixins/_placeholder.scss +14 -0
- data/sass/base/mixins/_rwd-padding-margin.scss +52 -0
- data/sass/base/mixins/_shapes.scss +24 -0
- data/sass/base/mixins/_tint-and-shade.scss +39 -0
- data/sass/base/mixins/_triangles.scss +23 -0
- data/sass/base/mixins/_typography.scss +91 -0
- data/sass/partials/buttons/_buttons.scss +137 -0
- data/sass/partials/colors/_colors.scss +58 -0
- data/sass/partials/components/_alerts.scss +59 -0
- data/sass/partials/components/_horizontal-rules.scss +46 -0
- data/sass/partials/components/_labels.scss +53 -0
- data/sass/partials/components/_tooltips.scss +0 -0
- data/sass/partials/components/_wells.scss +20 -0
- data/sass/partials/forms/_big-form.scss +125 -0
- data/sass/partials/forms/_search-form.scss +35 -0
- data/sass/partials/images/_base64.scss +17 -0
- data/sass/partials/images/_figure.scss +23 -0
- data/sass/partials/images/_images.scss +25 -0
- data/sass/partials/layout/_aside.scss +12 -0
- data/sass/partials/layout/_base.scss +22 -0
- data/sass/partials/layout/_footer.scss +12 -0
- data/sass/partials/layout/_grids.scss +8 -0
- data/sass/partials/layout/_header.scss +12 -0
- data/sass/partials/layout/_main.scss +12 -0
- data/sass/partials/lists/_dl.scss +26 -0
- data/sass/partials/lists/_ol.scss +34 -0
- data/sass/partials/lists/_ul.scss +35 -0
- data/sass/partials/media-object/_media-object.scss +34 -0
- data/sass/partials/modules/_modules.scss +8 -0
- data/sass/partials/modules/_skipnav.scss +21 -0
- data/sass/partials/navigation/_breadcrumbs.scss +30 -0
- data/sass/partials/navigation/_nav.scss +43 -0
- data/sass/partials/navigation/_pagination.scss +32 -0
- data/sass/partials/site-specific/_scratch.scss +8 -0
- data/sass/partials/site-specific/_shame.scss +29 -0
- data/sass/partials/tables/_table.scss +51 -0
- data/sass/partials/typography/_blockquotes.scss +25 -0
- data/sass/partials/typography/_body-copy.scss +24 -0
- data/sass/partials/typography/_code.scss +24 -0
- data/sass/partials/typography/_copy-classes.scss +37 -0
- data/sass/partials/typography/_headings.scss +41 -0
- data/sass/partials/typography/_links.scss +30 -0
- data/sass/partials/typography/_misc.scss +54 -0
- data/sass/partials/typography/_scoped.scss +55 -0
- data/sass/partials/widgets/_widgets.scss +8 -0
- data/sass/styles.scss +122 -0
- metadata +80 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8da85ec12c89210378102cdacb5e2914dd8e4c83
|
4
|
+
data.tar.gz: d68ab670cac05b89ebd2f8c6125e843bbe0994cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37a5b40fcba1c2fe2a2e291ed6d088d345f00220243391e0bee8b8a32a29e3e332381173e3174fd1706d06cd8c0046e94a26643294e9f3595051b31a01a99b64
|
7
|
+
data.tar.gz: 619806022526b1645e0cbef49c572b69724624279a577b5909841bf8306cacde2b94b6b1706506defac1edfef66b0cba07cf974defc654e15a0921a4fb9b6bfe
|
data/lib/Sassifaction.rb
ADDED
@@ -0,0 +1,6 @@
|
|
1
|
+
require 'compass'
|
2
|
+
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
3
|
+
# stylesheets_dir = File.join(base_directory, 'my', 'stylesheets')
|
4
|
+
|
5
|
+
Compass::Frameworks.register('stipe', :stylesheets_directory => File.join(extension_path, 'sass'), :path => extension_path)
|
6
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
@import 'styles';
|
@@ -0,0 +1,91 @@
|
|
1
|
+
// -------------------------------------
|
2
|
+
// variables
|
3
|
+
// -------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
// -- max-page-width -------------------
|
8
|
+
|
9
|
+
@mixin page-width{
|
10
|
+
max-width: 1200px;
|
11
|
+
margin: 0 auto;
|
12
|
+
}
|
13
|
+
|
14
|
+
// -- document font declarations -------
|
15
|
+
|
16
|
+
$doc-font-size: 16;
|
17
|
+
$doc-line-height: 24;
|
18
|
+
|
19
|
+
// -- branding -------------------------
|
20
|
+
|
21
|
+
$base-color: orange;
|
22
|
+
$comp-color: green;
|
23
|
+
$tertiary-color: red;
|
24
|
+
$alt-1: #777777;
|
25
|
+
$alt-2: #CCCCCC;
|
26
|
+
$white: #FFFFFF;
|
27
|
+
$black: #000000;
|
28
|
+
|
29
|
+
// -- typography -----------------------
|
30
|
+
|
31
|
+
$body-font: Georgia, serif;
|
32
|
+
$header-font: $body-font;
|
33
|
+
|
34
|
+
// -- links ----------------------------
|
35
|
+
|
36
|
+
$link-color: red;
|
37
|
+
$link-color-hover: darken($link-color, 10);
|
38
|
+
$link-color-visited: $link-color-hover;
|
39
|
+
$link-color-focus: darken($link-color-hover, 10);
|
40
|
+
|
41
|
+
// -- errors & info --------------------
|
42
|
+
|
43
|
+
$success-color: #5CB85C;
|
44
|
+
$info-color: #5BC0DE;
|
45
|
+
$warning-color: #F0AD4E;
|
46
|
+
$danger-color: #D9534F;
|
47
|
+
|
48
|
+
// -- labels, copy-classes, alerts -----
|
49
|
+
|
50
|
+
$default-color: #999999;
|
51
|
+
$muted-color: #F3F3F3;
|
52
|
+
$primary-color: #428BCA;
|
53
|
+
|
54
|
+
// --- selection colours ---------------
|
55
|
+
|
56
|
+
$selection: $link-color;
|
57
|
+
$selection-text: #FFF;
|
58
|
+
|
59
|
+
// -- button colors --------------------
|
60
|
+
|
61
|
+
$button-color: $white;
|
62
|
+
$button-bg-color: $base-color;
|
63
|
+
|
64
|
+
// -- Border Radius --------------------
|
65
|
+
|
66
|
+
$radius-sml: 4px;
|
67
|
+
$radius-med: 8px;
|
68
|
+
$radius-lrg: 12px;
|
69
|
+
|
70
|
+
// -- Media Queries --------------------
|
71
|
+
|
72
|
+
$tiny : 320;
|
73
|
+
$smaller : 480;
|
74
|
+
$small : 600;
|
75
|
+
$medium : 760;
|
76
|
+
$regular : 900;
|
77
|
+
$large : 1100;
|
78
|
+
$extra-large : 1300;
|
79
|
+
|
80
|
+
// -- flow -----------------------------
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
@@ -0,0 +1,248 @@
|
|
1
|
+
// -------------------------------------
|
2
|
+
// El Captain Bizarro CSS Reset
|
3
|
+
// -------------------------------------
|
4
|
+
|
5
|
+
html {
|
6
|
+
font-size: $doc-font-size+px;
|
7
|
+
-webkit-text-size-adjust: 100%;
|
8
|
+
-ms-text-size-adjust: 100%;
|
9
|
+
}
|
10
|
+
|
11
|
+
@-webkit-viewport { width : device-width; }
|
12
|
+
@-moz-viewport { width : device-width; }
|
13
|
+
@-ms-viewport { width : device-width; }
|
14
|
+
@-o-viewport { width : device-width; }
|
15
|
+
@viewport { width : device-width; }
|
16
|
+
|
17
|
+
*, *:before, *:after {
|
18
|
+
-webkit-box-sizing: border-box;
|
19
|
+
-moz-box-sizing: border-box;
|
20
|
+
box-sizing: border-box;
|
21
|
+
}
|
22
|
+
|
23
|
+
article, aside, details, figcaption, figure, footer, header, main, nav, section, summary {
|
24
|
+
display: block;
|
25
|
+
}
|
26
|
+
|
27
|
+
audio, canvas, video {
|
28
|
+
display: inline-block;
|
29
|
+
*display: inline;
|
30
|
+
*zoom: 1;
|
31
|
+
}
|
32
|
+
|
33
|
+
audio:not([controls]) {
|
34
|
+
display: none;
|
35
|
+
height: 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
[hidden] {
|
39
|
+
display: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
html, button, input, select, textarea {
|
43
|
+
font-family: sans-serif;
|
44
|
+
}
|
45
|
+
|
46
|
+
body {
|
47
|
+
margin: 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
// -------------------------------------
|
51
|
+
// Links
|
52
|
+
// -------------------------------------
|
53
|
+
|
54
|
+
a:focus {
|
55
|
+
outline: thin dotted;
|
56
|
+
}
|
57
|
+
|
58
|
+
a:active,
|
59
|
+
a:hover {
|
60
|
+
outline: 0;
|
61
|
+
}
|
62
|
+
|
63
|
+
// -------------------------------------
|
64
|
+
// Typography
|
65
|
+
// -------------------------------------
|
66
|
+
|
67
|
+
ul, ol, dd, menu, dl, figure, pre, table, fieldset, legend, hr,
|
68
|
+
h1, h2, h3, h4, h5, h6, p, a
|
69
|
+
{ margin: 0; padding: 0; }
|
70
|
+
|
71
|
+
b, strong {
|
72
|
+
font-weight: bold;
|
73
|
+
}
|
74
|
+
|
75
|
+
pre {
|
76
|
+
white-space: pre;
|
77
|
+
white-space: pre-wrap;
|
78
|
+
word-wrap: break-word;
|
79
|
+
}
|
80
|
+
|
81
|
+
q {
|
82
|
+
quotes: none;
|
83
|
+
}
|
84
|
+
|
85
|
+
q:before, q:after {
|
86
|
+
content: '';
|
87
|
+
content: none;
|
88
|
+
}
|
89
|
+
|
90
|
+
sub, sup {
|
91
|
+
font-size: 75%;
|
92
|
+
line-height: 0;
|
93
|
+
position: relative;
|
94
|
+
vertical-align: baseline;
|
95
|
+
}
|
96
|
+
sup {
|
97
|
+
top: -0.5em;
|
98
|
+
}
|
99
|
+
sub {
|
100
|
+
bottom: -0.25em;
|
101
|
+
}
|
102
|
+
|
103
|
+
// -------------------------------------
|
104
|
+
// lists
|
105
|
+
// -------------------------------------
|
106
|
+
|
107
|
+
nav ul, nav ol {
|
108
|
+
list-style: none;
|
109
|
+
list-style-image: none;
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
li{
|
114
|
+
> ul,
|
115
|
+
> ol{
|
116
|
+
margin-bottom:0;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
// -------------------------------------
|
121
|
+
// embedded content
|
122
|
+
// -------------------------------------
|
123
|
+
|
124
|
+
img {
|
125
|
+
border: 0;
|
126
|
+
-ms-interpolation-mode: bicubic;
|
127
|
+
max-width: 100%;
|
128
|
+
min-height: auto;
|
129
|
+
vertical-align: middle;
|
130
|
+
}
|
131
|
+
|
132
|
+
svg:not(:root) {
|
133
|
+
overflow: hidden;
|
134
|
+
}
|
135
|
+
|
136
|
+
// -------------------------------------
|
137
|
+
// figure
|
138
|
+
// -------------------------------------
|
139
|
+
|
140
|
+
figure {
|
141
|
+
margin: 0;
|
142
|
+
}
|
143
|
+
|
144
|
+
figure > img{
|
145
|
+
display:block;
|
146
|
+
}
|
147
|
+
|
148
|
+
// -------------------------------------
|
149
|
+
// forms
|
150
|
+
// -------------------------------------
|
151
|
+
|
152
|
+
form {
|
153
|
+
margin: 0;
|
154
|
+
}
|
155
|
+
|
156
|
+
fieldset {
|
157
|
+
border: 1px solid #c0c0c0;
|
158
|
+
margin: 0 2px;
|
159
|
+
padding: 0.35em 0.625em 0.75em;
|
160
|
+
}
|
161
|
+
|
162
|
+
legend {
|
163
|
+
border: 0;
|
164
|
+
padding: 0;
|
165
|
+
white-space: normal;
|
166
|
+
*margin-left: -7px;
|
167
|
+
}
|
168
|
+
|
169
|
+
button,
|
170
|
+
input,
|
171
|
+
select,
|
172
|
+
textarea {
|
173
|
+
font-size: 100%;
|
174
|
+
margin: 0;
|
175
|
+
vertical-align: baseline;
|
176
|
+
*vertical-align: middle;
|
177
|
+
}
|
178
|
+
|
179
|
+
button,
|
180
|
+
input {
|
181
|
+
line-height: normal;
|
182
|
+
}
|
183
|
+
|
184
|
+
button,
|
185
|
+
html input[type="button"],
|
186
|
+
input[type="reset"],
|
187
|
+
input[type="submit"] {
|
188
|
+
-webkit-appearance: button;
|
189
|
+
cursor: pointer;
|
190
|
+
*overflow: visible;
|
191
|
+
}
|
192
|
+
|
193
|
+
button[disabled],
|
194
|
+
input[disabled] {
|
195
|
+
cursor: default;
|
196
|
+
}
|
197
|
+
|
198
|
+
input[type="checkbox"],
|
199
|
+
input[type="radio"] {
|
200
|
+
box-sizing: border-box;
|
201
|
+
padding: 0;
|
202
|
+
*height: 13px;
|
203
|
+
*width: 13px;
|
204
|
+
}
|
205
|
+
|
206
|
+
input[type="search"] {
|
207
|
+
-webkit-appearance: textfield;
|
208
|
+
-moz-box-sizing: content-box;
|
209
|
+
-webkit-box-sizing: content-box;
|
210
|
+
box-sizing: content-box;
|
211
|
+
}
|
212
|
+
|
213
|
+
input[type="search"]::-webkit-search-cancel-button,
|
214
|
+
input[type="search"]::-webkit-search-decoration {
|
215
|
+
-webkit-appearance: none;
|
216
|
+
}
|
217
|
+
|
218
|
+
button::-moz-focus-inner,
|
219
|
+
input::-moz-focus-inner {
|
220
|
+
border: 0;
|
221
|
+
padding: 0;
|
222
|
+
}
|
223
|
+
|
224
|
+
textarea {
|
225
|
+
overflow: auto;
|
226
|
+
vertical-align: top;
|
227
|
+
resize: vertical;
|
228
|
+
}
|
229
|
+
|
230
|
+
// -------------------------------------
|
231
|
+
// tables
|
232
|
+
// -------------------------------------
|
233
|
+
|
234
|
+
table {
|
235
|
+
border-collapse: collapse;
|
236
|
+
border-spacing: 0;
|
237
|
+
}
|
238
|
+
|
239
|
+
// -------------------------------------
|
240
|
+
// 'other'
|
241
|
+
// -------------------------------------
|
242
|
+
|
243
|
+
.chromeframe {
|
244
|
+
background: #ccc;
|
245
|
+
color: #000;
|
246
|
+
margin: 0.2em 0;
|
247
|
+
padding: 0.2em 0;
|
248
|
+
}
|
@@ -0,0 +1,170 @@
|
|
1
|
+
// via inuit.css - https://github.com/csswizardry/inuit.css
|
2
|
+
|
3
|
+
@if $debugMode == true{
|
4
|
+
/*------------------------------------*\
|
5
|
+
$DEBUG
|
6
|
+
\*------------------------------------*/
|
7
|
+
/**
|
8
|
+
* Enable this stylesheet to visually detect any improperly nested or
|
9
|
+
* potentially invalid markup, or any potentially inaccessible code.
|
10
|
+
*
|
11
|
+
* Red == definite error
|
12
|
+
* Yellow == double-check
|
13
|
+
* None == should be fine
|
14
|
+
*
|
15
|
+
* Please note that this method of checking markup quality should not be relied
|
16
|
+
* upon entirely. Validate your markup!
|
17
|
+
*/
|
18
|
+
|
19
|
+
|
20
|
+
/**
|
21
|
+
* Are there any empty elements in your page?
|
22
|
+
*/
|
23
|
+
:empty{
|
24
|
+
outline:5px solid yellow;
|
25
|
+
}
|
26
|
+
|
27
|
+
|
28
|
+
/**
|
29
|
+
* Images require `alt` attributes, empty `alt`s are fine but should be
|
30
|
+
* double-checked, no `alt` is bad and is flagged red.
|
31
|
+
*/
|
32
|
+
img{
|
33
|
+
outline:5px solid red;
|
34
|
+
}
|
35
|
+
img[alt]{
|
36
|
+
outline:none;
|
37
|
+
}
|
38
|
+
img[alt=""]{
|
39
|
+
outline:5px solid yellow;
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
/**
|
44
|
+
* Links sometimes, though not always, benefit from `title` attributes. Links
|
45
|
+
* without are never invalid but it’s a good idea to check.
|
46
|
+
*/
|
47
|
+
a{
|
48
|
+
outline:5px solid yellow;
|
49
|
+
}
|
50
|
+
a[title]{
|
51
|
+
outline:none;
|
52
|
+
}
|
53
|
+
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Double-check any links whose `href` is something questionable.
|
57
|
+
*/
|
58
|
+
a[href="#"],
|
59
|
+
a[href*="javascript"]{
|
60
|
+
outline:5px solid yellow;
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
/**
|
65
|
+
* The `target` attribute ain’t too nice...
|
66
|
+
*/
|
67
|
+
a[target]{
|
68
|
+
outline:5px solid yellow;
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Ensure any lists only contain `li`s as children.
|
74
|
+
*/
|
75
|
+
ul,
|
76
|
+
ol{
|
77
|
+
> *:not(li){
|
78
|
+
outline:5px solid red;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
/**
|
84
|
+
* It’s always nice to give `th`s `scope` attributes.
|
85
|
+
*/
|
86
|
+
th{
|
87
|
+
outline:5px solid yellow;
|
88
|
+
}
|
89
|
+
th[scope]{
|
90
|
+
outline:none;
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
/**
|
95
|
+
* `tr`s as children of `table`s ain’t great, did you need a `thead`/`tbody`?
|
96
|
+
*/
|
97
|
+
table > tr{
|
98
|
+
outline:5px solid yellow;
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
/**
|
103
|
+
* `tfoot` needs to come *before* `tbody`.
|
104
|
+
*/
|
105
|
+
tbody + tfoot{
|
106
|
+
outline:5px solid yellow;
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
/**
|
111
|
+
* Forms require `action` attributes
|
112
|
+
*/
|
113
|
+
form{
|
114
|
+
outline:5px solid red;
|
115
|
+
}
|
116
|
+
form[action]{
|
117
|
+
outline:none;
|
118
|
+
}
|
119
|
+
|
120
|
+
|
121
|
+
/**
|
122
|
+
* Various form-field types have required attributes. `input`s need `type`
|
123
|
+
* attributes, `textarea`s need `rows` and `cols` attributes and submit buttons
|
124
|
+
* need a `value` attribute.
|
125
|
+
*/
|
126
|
+
textarea,
|
127
|
+
input{
|
128
|
+
outline:5px solid red;
|
129
|
+
}
|
130
|
+
input[type]{
|
131
|
+
outline:none;
|
132
|
+
}
|
133
|
+
textarea[rows][cols]{
|
134
|
+
outline:none;
|
135
|
+
}
|
136
|
+
input[type=submit]{
|
137
|
+
outline:5px solid red;
|
138
|
+
}
|
139
|
+
input[type=submit][value]{
|
140
|
+
outline:none;
|
141
|
+
}
|
142
|
+
|
143
|
+
|
144
|
+
/**
|
145
|
+
* Avoid inline styles where possible.
|
146
|
+
*/
|
147
|
+
[style]{
|
148
|
+
outline:5px solid yellow;
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
/**
|
153
|
+
* You should avoid using IDs for CSS, is this doing any styling?
|
154
|
+
*/
|
155
|
+
[id]{
|
156
|
+
outline:5px solid yellow;
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
/**
|
161
|
+
* Are you using the grid system correctly?
|
162
|
+
*/
|
163
|
+
.gw > :not(.g),
|
164
|
+
.grid-wrapper > :not(.grid),
|
165
|
+
.gw--rev > :not(.g),
|
166
|
+
.grid-wrapper--rev > :not(.grid){
|
167
|
+
outline:5px solid red;
|
168
|
+
}
|
169
|
+
|
170
|
+
}/* endif */
|