si_core_styles 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ffb4d1eee8cbe630fcb5c4b5debe280f0d8cf69c
4
+ data.tar.gz: 4c4f077ff60edb5194020157b19aac6bb5547742
5
+ SHA512:
6
+ metadata.gz: c47dfc42c17134fffb1fc7de54b351b8e4a5d5a514a4467a461190dbf591120e1a254b5d133945f80e32e8d987a218950532402c133e7fc7be4bfe112ac03bcd
7
+ data.tar.gz: 6dce7940aba79f6a8219447a577565a1bade350549d0838a660e0b951d1ddb9c965b57a000779a5e3a4e277370e7b4e4349997d060d4d3f2c35b353ad12f8aec
Binary file
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in si_core_styles.gemspec
4
+ gemspec
5
+ compass
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Paul Northup
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,29 @@
1
+ # SiCoreStyles
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem "si_core_styles", :git => "git@github.com:paulnorthup/si_core_styles.git"
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install si_core_styles
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
Binary file
@@ -0,0 +1,9 @@
1
+ require "si_core_styles/version"
2
+ require "compass"
3
+
4
+ base_directory = File.join(File.dirname(__FILE__))
5
+ Compass::Frameworks.register('si_core_styles', :path => base_directory)
6
+
7
+ module SiCoreStyles
8
+ # Your code goes here...
9
+ end
@@ -0,0 +1,3 @@
1
+ module SiCoreStyles
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1 @@
1
+ // This is your framework's main stylesheet. Use it to import all default modules.
@@ -0,0 +1,443 @@
1
+ /* TODO
2
+ buttons: add conditional box shadows on buttons for dark backgrounds
3
+ toggles: rework mixin to account for a light or dark version
4
+ menus: rework mixin to accept args for background, border colors
5
+ */
6
+
7
+ // Helper Mixins
8
+ @mixin centering {
9
+ margin-left: auto;
10
+ margin-right: auto;
11
+ width: 1050px;
12
+ }
13
+ @mixin grayscale-image {
14
+ filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+ */
15
+ filter: gray; /* IE5+ */
16
+ -webkit-filter: grayscale(1); /* Webkit Nightlies & Chrome Canary */
17
+ }
18
+ @mixin greyscale-image {
19
+ filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale"); /* Firefox 10+ */
20
+ filter: gray; /* IE5+ */
21
+ -webkit-filter: grayscale(1); /* Webkit Nightlies & Chrome Canary */
22
+ }
23
+ @mixin circular-image {
24
+ @include border-radius( 100% );
25
+ }
26
+ @mixin dark-background {
27
+ h1, h2, h3, h4, h5, h6, p, ol, ul, li, pre, blockquote {
28
+ color: $white;
29
+ }
30
+ }
31
+
32
+ // Typography
33
+ @mixin headline {
34
+ font-family: 'Open Sans Condensed', sans-serif;
35
+ font-weight: 700;
36
+ color: $color-text-headline;
37
+ }
38
+ @mixin dividing-headline ($line-color, $background-color) {
39
+ font-family: 'Open Sans', sans-serif;
40
+ text-transform: uppercase;
41
+ text-align: center;
42
+ letter-spacing: 1px;
43
+ border-bottom: solid 1px $line-color;
44
+ /* adjust font size */
45
+ @include adjust-font-size-to( $h5-font-size );
46
+ /* pull the border up*/
47
+ height: 0.9em;
48
+ /* push the paragraph down */
49
+ margin-bottom: 1.4em;
50
+ /* line cover */
51
+ &:first-line{
52
+ background-color: $background-color;
53
+ padding-left: 4em;
54
+ }
55
+ /* additional padding */
56
+ &:before,
57
+ &:after{
58
+ content: '\00a0 \00a0 \00a0 \00a0 \00a0 \00a0';
59
+ }
60
+ }
61
+ @mixin hero-text {
62
+ font-family: 'Open Sans', sans-serif;
63
+ font-weight: 300;
64
+ color: $color-text-headline;
65
+ @include adjust-font-size-to( $hero-font-size );
66
+ }
67
+ @mixin lead-text {
68
+ font-family: 'Open Sans', sans-serif;
69
+ font-weight: 300;
70
+ color: $color-text-headline;
71
+ line-height: 1.3333 * $base-line-height;
72
+ font-size: $lead-font-size;
73
+ }
74
+ // Forms
75
+ @mixin text-input {
76
+ @include border-radius;
77
+ border: none;
78
+ @include box-shadow( 0 1px 1px $black inset );
79
+ background: $off-white;
80
+ color: $grey;
81
+ padding: 0.75em 1.25em;
82
+ }
83
+
84
+ // Buttons
85
+ @mixin button-primary {
86
+ @include transition(none);
87
+ font-size: $btn-font-size;
88
+ letter-spacing: 1px;
89
+ text-transform: uppercase;
90
+ text-decoration: none;
91
+ font-weight:700;
92
+ color: $btn-primary-text;
93
+ padding: 0.7em 4em 0.75em;
94
+ display: inline-block;
95
+ border-radius: $default-border-radius;
96
+ background: $btn-primary-gradient-bottom;
97
+ @include background-image( $btn-primary-background );
98
+ border-bottom: 3px solid $btn-primary-border;
99
+ border-top: 3px solid $btn-primary-gradient-top;
100
+ border-right: none;
101
+ border-left: none;
102
+ &:after {
103
+ content: "\2192";
104
+ position: absolute;
105
+ margin-left: 20px;
106
+ }
107
+ &:hover {
108
+ background: $btn-primary-background-hover;
109
+ border-top: 3px solid $btn-primary-background-hover;
110
+ }
111
+ &:active {
112
+ border-top: 3px solid $btn-primary-border;
113
+ border-bottom: 3px solid $btn-primary-gradient-bottom;
114
+ @include background-image( $btn-primary-background-active );
115
+ }
116
+ }
117
+
118
+ @mixin button-secondary {
119
+ font-size: $btn-font-size;
120
+ letter-spacing: 1px;
121
+ text-transform: uppercase;
122
+ text-decoration: none;
123
+ font-weight:700;
124
+ padding: 0.7em 4em 0.75em;
125
+ color: $btn-secondary-text;
126
+ display: inline-block;
127
+ border-radius: $default-border-radius;
128
+ background: $btn-secondary-background;
129
+ border: 1px solid $btn-secondary-border;
130
+ &:hover {
131
+ border: 1px solid $btn-secondary-border-hover;
132
+ }
133
+ &:active {
134
+ background: $btn-secondary-background-active;
135
+ }
136
+ }
137
+ @mixin button-strong {
138
+ @include transition(none);
139
+ font-size: $btn-font-size;
140
+ letter-spacing: 1px;
141
+ text-transform: uppercase;
142
+ text-decoration: none;
143
+ font-weight:700;
144
+ color: $btn-strong-text;
145
+ padding: 0.7em 4em 0.75em;
146
+ display: inline-block;
147
+ border-radius: $default-border-radius;
148
+ background: $btn-strong-gradient-bottom;
149
+ @include background-image( $btn-strong-background );
150
+ border-bottom: 3px solid $btn-strong-border;
151
+ border-top: none;
152
+ border-right: none;
153
+ border-left: none;
154
+ &:hover {
155
+ background: $btn-strong-background-hover;
156
+ }
157
+ &:active {
158
+ border-bottom: none;
159
+ border-top: 3px solid $btn-strong-border-active;
160
+ @include background-image( $btn-strong-background-active );
161
+ }
162
+ }
163
+
164
+ @mixin button-disabled {
165
+ font-size: $btn-font-size;
166
+ letter-spacing: 1px;
167
+ text-transform: uppercase;
168
+ text-decoration: none;
169
+ font-weight:700;
170
+ color: $btn-disabled-text;
171
+ padding: 1em 4em;
172
+ display: inline-block;
173
+ border-radius: $default-border-radius;
174
+ background: $btn-disabled-gradient-bottom;
175
+ @include background-image( $btn-disabled-background );
176
+ border-bottom: 3px solid $btn-disabled-border;
177
+ border-top: none;
178
+ border-right: none;
179
+ border-left: none;
180
+ }
181
+
182
+
183
+ // Toggle Links
184
+ @mixin toggle-links-light { // apply to <ul> element
185
+ display: inline-block;
186
+ @include border-radius;
187
+ overflow: hidden;
188
+ @include horizontal-list;
189
+ li {
190
+ margin: 0;
191
+ padding: 0;
192
+ white-space: normal;
193
+ text-align: center;
194
+ border-bottom: 1px solid $tl-border;
195
+ border-top: 1px solid $white;
196
+ }
197
+ a {
198
+ width: 190px;
199
+ height: 55px;
200
+ @include background-image( $tl-background );
201
+ padding: 1em 0.25em;
202
+ display: table-cell;
203
+ vertical-align: middle;
204
+ text-decoration: none;
205
+ color: $white;
206
+ border-left: 1px solid $tl-link-border;
207
+ border-right: 1px solid transparent;
208
+ &:hover {
209
+ @include background-image( $tl-background-hover );
210
+ }
211
+ &:active, &.active {
212
+ @include background-image( $tl-background-active );
213
+ border-left: 1px solid $tl-link-border-active;
214
+ border-right: 1px solid $tl-link-border-active;
215
+ }
216
+ }
217
+ li:first-child a {
218
+ border-left:1px solid transparent;
219
+ }
220
+ }
221
+
222
+ @mixin toggle-links-dark{ // apply to <ul> element
223
+ display: inline-block;
224
+ @include border-radius;
225
+ overflow: hidden;
226
+ @include horizontal-list;
227
+ li {
228
+ margin: 0;
229
+ padding: 0;
230
+ white-space: normal;
231
+ text-align: center;
232
+ border-bottom: 1px solid $tl-dark-border;
233
+ border-top: 1px solid hsla(205,12%,41%,1);
234
+ }
235
+ a {
236
+ width: 190px;
237
+ height: 55px;
238
+ @include background-image( $tl-dark-background );
239
+ padding: 1em 0.25em;
240
+ display: table-cell;
241
+ vertical-align: middle;
242
+ text-decoration: none;
243
+ color: $white;
244
+ border-left: 1px solid $tl-dark-link-border;
245
+ border-right: 1px solid transparent;
246
+ &:hover {
247
+ @include background-image( $tl-dark-background-hover );
248
+ }
249
+ &:active, &.active {
250
+ @include background-image( $tl-dark-background-active );
251
+ border-left: 1px solid $tl-dark-link-border-active;
252
+ border-right: 1px solid $tl-dark-link-border-active;
253
+ }
254
+ }
255
+ li:first-child a {
256
+ border-left:1px solid transparent;
257
+ }
258
+ }
259
+
260
+ // Menu Items
261
+
262
+ @mixin button( $text-color, $background-color, $hover-text-color, $hover-background-color ) {
263
+ color: $text-color;
264
+ @include transition();
265
+ @include border-radius;
266
+ text-transform: uppercase;
267
+ letter-spacing: 1px;
268
+ @include adjust-font-size-to( 0.75 * $base-font-size );
269
+ line-height: 2.5em;
270
+ display: block;
271
+ padding: 0 0.75em;
272
+ font-weight: 700;
273
+ background: $background-color;
274
+ &.active, &.active-trail, &:hover {
275
+ color: $hover-text-color;
276
+ background: $hover-background-color;
277
+ text-decoration: none;
278
+ }
279
+ }
280
+
281
+ @mixin vertical-menu {
282
+ margin-left: 0;
283
+ margin-right: 0;
284
+ padding: 0;
285
+ ul {
286
+ margin: 1em 0;
287
+ padding: 0 ;
288
+ @include no-bullets;
289
+ li {
290
+ margin:0 0 0.5em 0;
291
+ padding:0;
292
+ a {
293
+ @include button( $grey, $white, $grey, $off-white );
294
+ }
295
+ }
296
+ }
297
+ }
298
+
299
+ @mixin horizontal-menu {
300
+ ul {
301
+ margin: 1em 0;
302
+ padding: 0;
303
+ text-align: right;
304
+ li {
305
+ margin:0;
306
+ padding:0;
307
+ vertical-align: top;
308
+ display: inline-block;
309
+ overflow: visible;
310
+ width: 160px;
311
+ text-align: center;
312
+ &.is-expanded ul {
313
+ display: none;
314
+ }
315
+ &.expanded {
316
+ a.dropdown:after {
317
+ content: " \25BC";
318
+ font-size: 8px;
319
+ color: $color-text-link;
320
+ position: relative;
321
+ top: -2px;
322
+ left: 2px;
323
+ }
324
+ }
325
+ a {
326
+ @include button( $grey, $off-white, $grey, $white );
327
+ border: 1px solid $off-white;
328
+ &:hover, &.active, &.active-trail {
329
+ border: 1px solid $off-white-dark;
330
+ }
331
+ }
332
+ ul {
333
+ padding: 0;
334
+ text-align: center;
335
+ @include border-radius;
336
+ border: 5px solid hsla(197,13%,89%,1);
337
+ background: $white;
338
+ width: 200px;
339
+ position: absolute;
340
+ margin-left: -30px;
341
+ margin-top: 15px;
342
+ z-index: 10;
343
+ &:after, &:before {
344
+ bottom: 100%;
345
+ border: solid transparent;
346
+ content: " ";
347
+ height: 0;
348
+ width: 0;
349
+ position: absolute;
350
+ pointer-events: none;
351
+ }
352
+ &:after {
353
+ border-color: rgba(255, 255, 255, 0);
354
+ border-bottom-color: #ffffff;
355
+ border-width: 14px;
356
+ left: 50%;
357
+ margin-left: -14px;
358
+ }
359
+ &:before {
360
+ border-color: rgba(223, 229, 231, 0);
361
+ border-bottom-color: #DFE5E7;
362
+ border-width: 22px;
363
+ left: 50%;
364
+ margin-left: -22px;
365
+ @include border-radius;
366
+ }
367
+ li {
368
+ display: block;
369
+ width: auto;
370
+ border-top: 1px solid $off-white;
371
+ &:first-child {
372
+ border-top: none;
373
+ }
374
+ a {
375
+ @include button( $grey, $white, $grey, $off-white );
376
+ @include border-radius(0px);
377
+ border: none;
378
+ text-transform: capitalize;
379
+ font-weight: 400;
380
+ letter-spacing: 0;
381
+ padding: 10px 0;
382
+ &:hover, &.active, &.active-trail {
383
+ border: none;
384
+ }
385
+ &:active {
386
+ background: darken( $off-white, 10% );
387
+ }
388
+ }
389
+ }
390
+ }
391
+ }
392
+ }
393
+ }
394
+ // Mixins from Drupal Defaults
395
+ // element-invisible as defined by http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
396
+ @mixin element-invisible {
397
+ position: absolute !important;
398
+ height: 1px;
399
+ width: 1px;
400
+ overflow: hidden;
401
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
402
+ clip: rect(1px 1px 1px 1px); // IE6 and IE7 use the wrong syntax.
403
+ }
404
+ clip: rect(1px, 1px, 1px, 1px);
405
+ }
406
+
407
+ // Turns off the element-invisible effect.
408
+ @mixin element-invisible-off {
409
+ position: static !important;
410
+ clip: auto;
411
+ height: auto;
412
+ width: auto;
413
+ overflow: auto;
414
+ }
415
+
416
+ @mixin element-focusable {
417
+ @include element-invisible;
418
+
419
+ &:active,
420
+ &:focus {
421
+ @include element-invisible-off;
422
+ }
423
+ }
424
+
425
+ // The word "Unpublished" displayed underneath unpublished nodes and comments.
426
+ @mixin unpublished-div {
427
+ height: 0;
428
+ overflow: visible;
429
+ color: #d8d8d8;
430
+ font-size: 75px;
431
+ line-height: 1;
432
+ font-family: Impact, "Arial Narrow", Helvetica, sans-serif;
433
+ font-weight: bold;
434
+ text-transform: uppercase;
435
+ text-align: center;
436
+ word-wrap: break-word; // A very nice CSS3 property
437
+
438
+ @if $legacy-support-for-ie6 or $legacy-support-for-ie7 {
439
+ .lt-ie8 &>* {
440
+ position: relative; // Otherwise these elements will appear below the "Unpublished" text.
441
+ }
442
+ }
443
+ }