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
@@ -0,0 +1,20 @@
|
|
1
|
+
// sans-serif
|
2
|
+
|
3
|
+
$arial: Arial, "Helvetica Neue", Helvetica, sans-serif;
|
4
|
+
$helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
5
|
+
$lucidagrande: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-serif;
|
6
|
+
$trebuchet: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Tahoma, sans-serif;
|
7
|
+
$verdana: Verdana, Geneva, sans-serif;
|
8
|
+
|
9
|
+
// serif
|
10
|
+
|
11
|
+
$baskerville: Baskerville, "Baskerville Old Face", "Hoefler Text", Garamond, "Times New Roman", serif;
|
12
|
+
$georgia: Georgia, Times, "Times New Roman", serif;
|
13
|
+
$lucidabright: "Lucida Bright", Georgia, serif;
|
14
|
+
$tnr: TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif;
|
15
|
+
|
16
|
+
// monospaced
|
17
|
+
|
18
|
+
$consolas: Consolas, monaco, monospace;
|
19
|
+
$courier: "Courier New", Courier, "Lucida Sans Typewriter", "Lucida Typewriter", monospace;
|
20
|
+
$monaco: Monaco, Consolas, "Lucida Console", monospace;
|
@@ -0,0 +1,60 @@
|
|
1
|
+
// -------------------------------------
|
2
|
+
// helpers
|
3
|
+
// -------------------------------------
|
4
|
+
|
5
|
+
%ir {
|
6
|
+
color: transparent;
|
7
|
+
font: 0/0 a;
|
8
|
+
text-shadow: none;
|
9
|
+
}
|
10
|
+
|
11
|
+
// hide from everything ----------------
|
12
|
+
|
13
|
+
%hidden {
|
14
|
+
display: none !important;
|
15
|
+
visibility: hidden;
|
16
|
+
}
|
17
|
+
|
18
|
+
%visually-hidden {
|
19
|
+
border: 0;
|
20
|
+
clip: rect(0 0 0 0);
|
21
|
+
height: 1px;
|
22
|
+
margin: -1px;
|
23
|
+
overflow: hidden;
|
24
|
+
padding: 0;
|
25
|
+
position: absolute;
|
26
|
+
width: 1px;
|
27
|
+
&.focusable:active,
|
28
|
+
&.focusable:focus {
|
29
|
+
clip: auto;
|
30
|
+
height: auto;
|
31
|
+
margin: 0;
|
32
|
+
overflow: visible;
|
33
|
+
position: static;
|
34
|
+
width: auto;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
%invisible {
|
39
|
+
visibility: hidden;
|
40
|
+
}
|
41
|
+
|
42
|
+
// clearfix ----------------------------
|
43
|
+
|
44
|
+
%cf {
|
45
|
+
&:before,
|
46
|
+
&:after {
|
47
|
+
content: "";
|
48
|
+
display: table;
|
49
|
+
}
|
50
|
+
&:after {
|
51
|
+
clear: both;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
// remove margin from nested lists -----
|
56
|
+
|
57
|
+
li > ul,
|
58
|
+
li > ol {
|
59
|
+
margin-bottom:0;
|
60
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// -------------------------------------
|
2
|
+
// mixins
|
3
|
+
// -------------------------------------
|
4
|
+
|
5
|
+
@import "mixins/_tint-and-shade.scss";
|
6
|
+
@import "mixins/_media-queries.scss";
|
7
|
+
@import "mixins/_maths.scss";
|
8
|
+
@import "mixins/_misc.scss";
|
9
|
+
@import "mixins/_triangles.scss";
|
10
|
+
@import "mixins/_shapes.scss";
|
11
|
+
@import "mixins/_colors.scss";
|
12
|
+
@import "mixins/_rwd-padding-margin.scss";
|
13
|
+
@import "mixins/_border-radius.scss";
|
14
|
+
@import "mixins/_children-of-ie.scss";
|
15
|
+
@import "mixins/_BEM.scss";
|
16
|
+
@import "mixins/_typography.scss";
|
17
|
+
@import "mixins/_placeholder.scss";
|
18
|
+
@import "mixins/_IE7-padding.scss";
|
@@ -0,0 +1,75 @@
|
|
1
|
+
// -------------------------------------
|
2
|
+
// print styles
|
3
|
+
// -------------------------------------
|
4
|
+
|
5
|
+
@media print {
|
6
|
+
* {
|
7
|
+
background: transparent !important;
|
8
|
+
color: #000 !important; /* Black prints faster: h5bp.com/s */
|
9
|
+
box-shadow:none !important;
|
10
|
+
text-shadow: none !important;
|
11
|
+
}
|
12
|
+
|
13
|
+
a,
|
14
|
+
a:visited {
|
15
|
+
text-decoration: underline;
|
16
|
+
}
|
17
|
+
|
18
|
+
a[href]:after {
|
19
|
+
content: " (" attr(href) ")";
|
20
|
+
}
|
21
|
+
|
22
|
+
abbr[title]:after {
|
23
|
+
content: " (" attr(title) ")";
|
24
|
+
}
|
25
|
+
|
26
|
+
// Don't show links for images, or javascript/internal links
|
27
|
+
|
28
|
+
.ir a:after,
|
29
|
+
a[href^="javascript:"]:after,
|
30
|
+
a[href^="#"]:after {
|
31
|
+
content: "";
|
32
|
+
}
|
33
|
+
|
34
|
+
pre,
|
35
|
+
blockquote {
|
36
|
+
border: 1px solid #999;
|
37
|
+
page-break-inside: avoid;
|
38
|
+
}
|
39
|
+
|
40
|
+
thead {
|
41
|
+
display: table-header-group; /* h5bp.com/t */
|
42
|
+
}
|
43
|
+
|
44
|
+
tr,
|
45
|
+
img {
|
46
|
+
page-break-inside: avoid;
|
47
|
+
}
|
48
|
+
|
49
|
+
img {
|
50
|
+
max-width: 100% !important;
|
51
|
+
}
|
52
|
+
|
53
|
+
@page {
|
54
|
+
margin: 0.5cm;
|
55
|
+
}
|
56
|
+
|
57
|
+
p,
|
58
|
+
h2,
|
59
|
+
h3 {
|
60
|
+
orphans: 3;
|
61
|
+
widows: 3;
|
62
|
+
}
|
63
|
+
|
64
|
+
h2,
|
65
|
+
h3 {
|
66
|
+
page-break-after: avoid;
|
67
|
+
}
|
68
|
+
img {
|
69
|
+
-webkit-filter: grayscale(100%);
|
70
|
+
-moz-filter: grayscale(100%);
|
71
|
+
-ms-filter: grayscale(100%);
|
72
|
+
-o-filter: grayscale(100%);
|
73
|
+
filter: grayscale(100%);
|
74
|
+
}
|
75
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
// Only works w/ Sass 3.3
|
2
|
+
|
3
|
+
// sub-components or elements get appended with "__" and the $name
|
4
|
+
|
5
|
+
@mixin e($element) {
|
6
|
+
&__#{$element} {
|
7
|
+
@content;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
// modifiers get appended with "--" and the $name
|
11
|
+
|
12
|
+
@mixin m($modifier) {
|
13
|
+
&--#{$modifier} {
|
14
|
+
@content;
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
// Creates IE7 and below specific widths as the library uses box-sizing: border-box;
|
2
|
+
// note it requires a conditional CSS comment to add a class to the <HTML>
|
3
|
+
|
4
|
+
@mixin IE7Padding($width: null, $unit: 1px, $paddingLeft: 0, $paddingRight: 0) {
|
5
|
+
@if $paddingLeft == 0 and $paddingRight != 0 {
|
6
|
+
padding-right: $paddingRight * $unit;
|
7
|
+
width: $width * $unit;
|
8
|
+
.lt-ie8 & {
|
9
|
+
padding-right: $paddingRight * $unit;
|
10
|
+
width: ($width - $paddingRight) * $unit;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
@else if $paddingRight == 0 and $paddingLeft != 0{
|
14
|
+
padding-left: $paddingLeft * $unit;
|
15
|
+
width: $width * $unit;
|
16
|
+
.lt-ie8 & {
|
17
|
+
padding-left: $paddingLeft * $unit;
|
18
|
+
width: ($width - $paddingLeft) * $unit;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
@else if $paddingRight !=0 and $paddingLeft != 0 {
|
22
|
+
padding-right: $paddingRight * $unit;
|
23
|
+
padding-left: $paddingLeft * $unit;
|
24
|
+
width: $width * $unit;
|
25
|
+
.lt-ie8 & {
|
26
|
+
padding-right: $paddingRight * $unit;
|
27
|
+
padding-left: $paddingLeft * $unit;
|
28
|
+
width: ($width - $paddingLeft - $paddingRight) * $unit;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
// Cross-browser border radius
|
2
|
+
|
3
|
+
@mixin border-radius($a: false, $b: false, $c: false, $d: false, $top-left: 0, $top-right: 0, $bottom-right: 0, $bottom-left: 0, $top: false, $bottom: false, $right: false, $left: false, $radius: false) {
|
4
|
+
|
5
|
+
// Handle shorthand notation like CSS3 would
|
6
|
+
// You shouldn't explictly set these variables when calling the mixin
|
7
|
+
@if $d { $radius: $a $b $c $d; }
|
8
|
+
@else if $c { $radius: $a $b $c; }
|
9
|
+
@else if $b { $radius: $a $b; }
|
10
|
+
@else if $a { $radius: $a; }
|
11
|
+
|
12
|
+
@else {
|
13
|
+
|
14
|
+
// Target individual corners (or groups) instead of using CSS3 shorthand
|
15
|
+
@if $top { $top-left: $top; $top-right: $top; }
|
16
|
+
@if $bottom { $bottom-right: $bottom; $bottom-left: $bottom; }
|
17
|
+
@if $left { $top-left: $left; $bottom-left: $left; }
|
18
|
+
@if $right { $top-right: $right; $bottom-right: $right; }
|
19
|
+
@if $top-left { $top-left: $top-left; }
|
20
|
+
@if $top-right { $top-right: $top-right; }
|
21
|
+
@if $bottom-left { $bottom-left: $bottom-left; }
|
22
|
+
@if $bottom-right { $bottom-right: $bottom-right; }
|
23
|
+
|
24
|
+
// Set the radius
|
25
|
+
$radius: $top-left $top-right $bottom-right $bottom-left;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Webkit, Mozilla, KHTML and standard CSS3
|
29
|
+
border-radius: $radius;
|
30
|
+
-moz-background-clip: padding;
|
31
|
+
background-clip: padding-box;
|
32
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
////////////////////////
|
2
|
+
// nth-child() support for IE 7 and 8
|
3
|
+
////////////////////////
|
4
|
+
|
5
|
+
@function nth-child($n) {
|
6
|
+
$nth-child: first-child;
|
7
|
+
@for $i from 2 through $n {
|
8
|
+
$nth-child: append($nth-child, #{"+*"});
|
9
|
+
}
|
10
|
+
@return #{":"}$nth-child;
|
11
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
@function colorize($color, $change: n) {
|
2
|
+
@if $change == l1 {
|
3
|
+
@return tint($color, 20%);
|
4
|
+
}
|
5
|
+
@else if $change == l2 {
|
6
|
+
@return tint($color, 40%);
|
7
|
+
}
|
8
|
+
@else if $change == l3 {
|
9
|
+
@return tint($color, 60%);
|
10
|
+
}
|
11
|
+
@else if $change == l4 {
|
12
|
+
@return tint($color, 80%);
|
13
|
+
}
|
14
|
+
@else if $change == d1 {
|
15
|
+
@return tint($color, 20%);
|
16
|
+
}
|
17
|
+
@else if $change == d2 {
|
18
|
+
@return tint($color, 40%);
|
19
|
+
}
|
20
|
+
@else if $change == d3 {
|
21
|
+
@return tint($color, 60%);
|
22
|
+
}
|
23
|
+
@else if $change == d4 {
|
24
|
+
@return tint($color, 80%);
|
25
|
+
}
|
26
|
+
@else {
|
27
|
+
@return ($color)
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@function trans($color, $percentage) {
|
32
|
+
@return lighten($color, (1-$percentage)*5%);
|
33
|
+
}
|
34
|
+
@function transd($color, $percentage) {
|
35
|
+
@return darken($color, (1-$percentage)*5%);
|
36
|
+
}
|
37
|
+
@mixin tran($type, $color, $percentage, $shade: ligthen) {
|
38
|
+
@if $shade == lighten {
|
39
|
+
@if $type == color {
|
40
|
+
color: trans($color, $percentage);
|
41
|
+
color: rgba($color, $percentage);
|
42
|
+
}
|
43
|
+
@if $type == bg {
|
44
|
+
background-color: trans($color, $percentage);
|
45
|
+
background-color: rgba($color, $percentage);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
@else {
|
49
|
+
@if $type == color {
|
50
|
+
color: transd($color, $percentage);
|
51
|
+
color: rgba($color, $percentage);
|
52
|
+
}
|
53
|
+
@if $type == bg {
|
54
|
+
background-color: transd($color, $percentage);
|
55
|
+
background-color: rgba($color, $percentage);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// rem size
|
2
|
+
|
3
|
+
@function rem($size) {
|
4
|
+
@return #{$size/$doc-font-size}rem;
|
5
|
+
}
|
6
|
+
|
7
|
+
// em size
|
8
|
+
|
9
|
+
@function em($size) {
|
10
|
+
@return #{$size/$doc-font-size}em;
|
11
|
+
}
|
12
|
+
|
13
|
+
// rem + px fallback
|
14
|
+
|
15
|
+
@mixin remit($property, $sizes) {
|
16
|
+
$rems: ();
|
17
|
+
$pxs: ();
|
18
|
+
|
19
|
+
@for $i from 1 through length($sizes) {
|
20
|
+
$size: nth($sizes, $i);
|
21
|
+
$pxs: join($pxs, #{$size}px);
|
22
|
+
$rems: join($rems, #{$size/$doc-font-size}rem);
|
23
|
+
}
|
24
|
+
|
25
|
+
#{$property}: $pxs;
|
26
|
+
#{$property}: $rems;
|
27
|
+
}
|
28
|
+
|
29
|
+
// making simple squares
|
30
|
+
|
31
|
+
@mixin size($width, $height: $width) {
|
32
|
+
width: $width;
|
33
|
+
height: $height;
|
34
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
A simpler media query mixin
|
4
|
+
|
5
|
+
This mixin allows you to quickly create a media query in your project. With the ability to define the breakpoint in PX (which get's converted into EMs).
|
6
|
+
There's also the ability to define min/max and width/height (with defaults to min-width).
|
7
|
+
|
8
|
+
There's also an option to duplicate the content into a OldIE conditionally classed bit of CSS.
|
9
|
+
|
10
|
+
You would use it like this
|
11
|
+
|
12
|
+
body {
|
13
|
+
@include (280) {
|
14
|
+
background-color: blue;
|
15
|
+
}
|
16
|
+
@include mq(600, false) {
|
17
|
+
background-color: red;
|
18
|
+
}
|
19
|
+
@include mq(1200, true, max) {
|
20
|
+
font-size: 110%;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
Which would give you this compiled CSS
|
25
|
+
|
26
|
+
@media (min-width: 17.5em) {
|
27
|
+
body {
|
28
|
+
background-color: blue;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
@media (min-width: 37.5em) {
|
32
|
+
body {
|
33
|
+
background-color: red;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
.lt-ie9 body {
|
37
|
+
font-size: 110%;
|
38
|
+
}
|
39
|
+
@media (max-width: 75em) {
|
40
|
+
body {
|
41
|
+
font-size: 110%;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
*/
|
46
|
+
|
47
|
+
|
48
|
+
@mixin mq($point, $IE9: false, $query1: min, $query2: width) {
|
49
|
+
@if $IE9 == true{
|
50
|
+
.lt-ie9 & {
|
51
|
+
@content;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
@media (#{$query1}-#{$query2}: $point / $doc-font-size +em) {
|
56
|
+
@content;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
// Orientation Media Query Mixin
|
62
|
+
|
63
|
+
@mixin orient($orientation: landscape) {
|
64
|
+
@media (orientation : $orientation) {
|
65
|
+
@content;
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
// inline-block
|
2
|
+
|
3
|
+
@mixin inline-block {
|
4
|
+
display: inline-block;
|
5
|
+
.lt-ie9 & {
|
6
|
+
zoom: 1;
|
7
|
+
*display: inline;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
// box-sizing with IE fallback and grid lovliness
|
12
|
+
|
13
|
+
@mixin box($width:'null', $padding:'null', $margin:$gutter, $first: false) {
|
14
|
+
|
15
|
+
@if $first == false {
|
16
|
+
float: left;
|
17
|
+
margin-right: 0% + $margin;
|
18
|
+
padding: 0% +$padding;
|
19
|
+
width: 0% + $width - $margin;
|
20
|
+
.lt-ie8 & {
|
21
|
+
margin-right: 0% + $margin;
|
22
|
+
padding: 0% + $padding;
|
23
|
+
width: 0% + $width - $padding - $padding - $margin;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
@else {
|
27
|
+
float: left;
|
28
|
+
margin-left: 0% + $first;
|
29
|
+
margin-right: 0% + $margin;
|
30
|
+
padding: 0% +$padding;
|
31
|
+
width: 0% + $width - $margin - $first;
|
32
|
+
.lt-ie7 & {
|
33
|
+
margin-left: 0% + $first;
|
34
|
+
margin-right: 0% + $margin;
|
35
|
+
padding: 0% + $padding;
|
36
|
+
width: 0% + $width - $padding - $padding - $margin - $first;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|