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,14 @@
|
|
1
|
+
@mixin placeholder ($placeholder-color) {
|
2
|
+
&::webkit-input-placeholder {
|
3
|
+
color: $placeholder-color;
|
4
|
+
}
|
5
|
+
&:-moz-placeholder {
|
6
|
+
color: $placeholder-color;
|
7
|
+
}
|
8
|
+
&::-moz-placeholder {
|
9
|
+
color: $placeholder-color;
|
10
|
+
}
|
11
|
+
&:-ms-input-placeholder {
|
12
|
+
color: $placeholder-color;
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
// *** pixeless padding
|
2
|
+
|
3
|
+
// vertical and horizontal pixeless padding
|
4
|
+
|
5
|
+
@mixin rwdpad($content, $paddingHEIGHT, $paddingWIDTH) {
|
6
|
+
padding: $paddingHEIGHT +px percentage($paddingWIDTH/$content);
|
7
|
+
padding: $paddingHEIGHT/$doc-font-size +rem percentage($paddingWIDTH/$content);
|
8
|
+
}
|
9
|
+
|
10
|
+
// horizontal pixeless padding
|
11
|
+
|
12
|
+
@mixin rwdpadhoz($content, $paddingLEFT, $paddingRIGHT: $paddingLEFT) {
|
13
|
+
padding-left: percentage($paddingLEFT/$content);
|
14
|
+
padding-right: percentage($paddingRIGHT/$content);
|
15
|
+
}
|
16
|
+
|
17
|
+
// vertical pixeless padding
|
18
|
+
|
19
|
+
@mixin rwdpadver($paddingHEIGHT) {
|
20
|
+
padding-top: $paddingHEIGHT +px;
|
21
|
+
padding-top: $paddingHEIGHT/$doc-font-size +rem;
|
22
|
+
padding-bottom: $paddingHEIGHT +px;
|
23
|
+
padding-bottom: $paddingHEIGHT/$doc-font-size +rem;
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
// *** pixeless margins
|
29
|
+
|
30
|
+
|
31
|
+
// vertical and horizontal pixeless margins
|
32
|
+
|
33
|
+
@mixin rwdmar($marginHEIGHT, $marginWIDTH, $content) {
|
34
|
+
margin: $marginHEIGHT +px percentage($marginWIDTH/$content);
|
35
|
+
margin: $marginHEIGHT/$doc-font-size +rem percentage($marginWIDTH/$content);
|
36
|
+
}
|
37
|
+
|
38
|
+
// horizontal pixeless margins
|
39
|
+
|
40
|
+
@mixin rwdmarhoz($content, $marginLEFT, $marginRIGHT: $marginLEFT) {
|
41
|
+
margin-left: percentage($marginLEFT/$content);
|
42
|
+
margin-right: percentage($marginRIGHT/$content);
|
43
|
+
}
|
44
|
+
|
45
|
+
// vertical pixeless margins
|
46
|
+
|
47
|
+
@mixin rwdmarver($marginHEIGHT) {
|
48
|
+
margin-top: $marginHEIGHT +px;
|
49
|
+
margin-top: $marginHEIGHT/$doc-font-size +rem;
|
50
|
+
margin-bottom: $marginHEIGHT +px;
|
51
|
+
margin-bottom: $marginHEIGHT/$doc-font-size +rem;
|
52
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// circles
|
2
|
+
|
3
|
+
@mixin circle($size: 0) {
|
4
|
+
border-radius: 50%;
|
5
|
+
height: auto;
|
6
|
+
padding-bottom: 0% + $size;
|
7
|
+
width: 0% + $size;
|
8
|
+
}
|
9
|
+
|
10
|
+
// square
|
11
|
+
|
12
|
+
@mixin square($size: 0) {
|
13
|
+
height: auto;
|
14
|
+
padding-bottom: 0% + $size;
|
15
|
+
width: 0% + $size;
|
16
|
+
}
|
17
|
+
|
18
|
+
// rectangle
|
19
|
+
|
20
|
+
@mixin rectangle($size: 0) {
|
21
|
+
height: 0;
|
22
|
+
padding-bottom: 0% + $size / 3 *2;
|
23
|
+
width: 0% + $size;
|
24
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Compass style tine & shade functions
|
4
|
+
////////////////////////////////////
|
5
|
+
|
6
|
+
Compass comes with two more colour functions that aren't available in 'bog standard' Sass.
|
7
|
+
These are the option to tint and shade a colour with white and black.
|
8
|
+
Tint & Shade are different to lighten and darken.
|
9
|
+
|
10
|
+
You would use these like you do any other Sass colour function.
|
11
|
+
|
12
|
+
body {
|
13
|
+
background-color: tint(red, 30%);
|
14
|
+
}
|
15
|
+
p {
|
16
|
+
color: shade(red, 70%);
|
17
|
+
}
|
18
|
+
|
19
|
+
Which would give the output
|
20
|
+
|
21
|
+
body {
|
22
|
+
background-color: #ff4c4c;
|
23
|
+
}
|
24
|
+
|
25
|
+
p {
|
26
|
+
color: #4c0000;
|
27
|
+
}
|
28
|
+
|
29
|
+
*/
|
30
|
+
|
31
|
+
// Add percentage of white to a colour to recreate Compass' tint
|
32
|
+
@function tint($color, $percent){
|
33
|
+
@return mix(white, $color, $percent);
|
34
|
+
}
|
35
|
+
|
36
|
+
// Add percentage of black to a colour to recreate Compass' shade
|
37
|
+
@function shade($color, $percent){
|
38
|
+
@return mix(black, $color, $percent);
|
39
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//==== Example: @include css-triangle ("up", 10px, #fff);
|
2
|
+
@mixin css-triangle ($direction: "down", $size: 20px, $color: #000) {
|
3
|
+
width: 0;
|
4
|
+
height: 0;
|
5
|
+
border-left: $size solid #{setTriangleColor($direction, "left", $color)};
|
6
|
+
border-right: $size solid #{setTriangleColor($direction, "right", $color)};
|
7
|
+
border-bottom: $size solid #{setTriangleColor($direction, "bottom", $color)};
|
8
|
+
border-top: $size solid #{setTriangleColor($direction, "top", $color)};
|
9
|
+
}
|
10
|
+
|
11
|
+
//Utility function to return the relevant colour depending on what type of arrow it is
|
12
|
+
@function setTriangleColor($direction, $side, $color) {
|
13
|
+
|
14
|
+
@if $direction == "left" and $side == "right"
|
15
|
+
or $direction == "right" and $side == "left"
|
16
|
+
or $direction == "down" and $side == "top"
|
17
|
+
or $direction == "up" and $side == "bottom" {
|
18
|
+
@return $color
|
19
|
+
} @else {
|
20
|
+
@return "transparent";
|
21
|
+
}
|
22
|
+
|
23
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
Vertical Rhythm Mixin
|
4
|
+
|
5
|
+
This mixin is to help create a typograhpical baseline grid but also to allow for specifying different line heights or bottom margins if you need to.
|
6
|
+
|
7
|
+
In this mixin you can specifiy the font size in PX and it will calculate the REM based on your $doc-font-size & $doc-line-height variables.
|
8
|
+
|
9
|
+
@include font-size(24);
|
10
|
+
|
11
|
+
It will also create a bottom margin based on the $doc-font-size & $doc-line-height variables unless you specify that it shouldn't have one -
|
12
|
+
|
13
|
+
@include font-size(24, no);
|
14
|
+
|
15
|
+
Or if you want to specify a different bottom margin to be generated -
|
16
|
+
|
17
|
+
@include font-size(24,32);
|
18
|
+
|
19
|
+
This mixin also generates a pixel-less line height by default unless you specify that you either don't want one where I'd suggest declaring 1 within the mixin -
|
20
|
+
|
21
|
+
@include font-size(24, yes, 1);
|
22
|
+
|
23
|
+
There's also the option to specify a different line-height for it to generate to, where you would specify the line-height in (effectively) it's pixel value -
|
24
|
+
|
25
|
+
@include font-size(24, yes, 40);
|
26
|
+
|
27
|
+
*/
|
28
|
+
|
29
|
+
// the magic mixin
|
30
|
+
//////////////////
|
31
|
+
|
32
|
+
@mixin font-size($size, $margin: yes, $line-height: $doc-line-height) {
|
33
|
+
|
34
|
+
// generates the font-size in REMs with a PX fallback
|
35
|
+
|
36
|
+
font-size: 0px + $size;
|
37
|
+
font-size: 0rem + $size / $doc-font-size;
|
38
|
+
|
39
|
+
// line-height functions
|
40
|
+
////////////////////////
|
41
|
+
|
42
|
+
// if you a line-height is specified in the mixin
|
43
|
+
@if $line-height != $doc-line-height and $line-height != 1 {
|
44
|
+
line-height: ceil($size / $line-height) * ($line-height / $size);
|
45
|
+
}
|
46
|
+
|
47
|
+
// if $line-height == 1 because, typing 1 is quicker than 16
|
48
|
+
@else if $line-height == 1 {
|
49
|
+
line-height: 1;
|
50
|
+
}
|
51
|
+
|
52
|
+
// normal $line-height if the line-height is left.
|
53
|
+
@else {
|
54
|
+
line-height: ceil($size / $doc-line-height) * ($doc-line-height / $size);
|
55
|
+
}
|
56
|
+
|
57
|
+
// margin-bottom functions
|
58
|
+
//////////////////////////
|
59
|
+
|
60
|
+
// if no is bottom margin is required
|
61
|
+
@if $margin == no {
|
62
|
+
margin-bottom: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
// if a specific bottom margin is required
|
66
|
+
@else if $margin != yes and $margin != no {
|
67
|
+
margin-bottom: 0px + $margin;
|
68
|
+
margin-bottom: 0rem + ($margin / $doc-font-size);
|
69
|
+
}
|
70
|
+
|
71
|
+
// if you're keeping the vertical rhythm with the margin
|
72
|
+
@else {
|
73
|
+
margin-bottom: 0px + $doc-line-height;
|
74
|
+
margin-bottom: 0rem + ($doc-line-height / $doc-font-size);
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
/*
|
79
|
+
|
80
|
+
REMs with PX fallback mixin
|
81
|
+
|
82
|
+
Sometimes you would only want to define the fonts' size on an element.
|
83
|
+
Rather than make the vertical rhythm mixin more convoluted here is a separate mixin
|
84
|
+
to be used to give REMs for modern browsers and PX for OldIE and Opera mini
|
85
|
+
|
86
|
+
*/
|
87
|
+
|
88
|
+
@mixin font-rem($size) {
|
89
|
+
font-size: 0px + $size;
|
90
|
+
font-size: $size / $doc-font-size +rem;
|
91
|
+
}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
// -------------------------------------
|
2
|
+
// beuticons
|
3
|
+
// -------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// beautons is a beautifully simple button toolkit.
|
7
|
+
//
|
8
|
+
// Copyright 2013 Harry Roberts
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
// - BASE -----------------------------
|
13
|
+
|
14
|
+
@mixin btn{
|
15
|
+
display:inline-block;
|
16
|
+
vertical-align:middle;
|
17
|
+
white-space:nowrap;
|
18
|
+
font-family:inherit;
|
19
|
+
font-size:100%;
|
20
|
+
cursor:pointer;
|
21
|
+
border:none;
|
22
|
+
margin:0;
|
23
|
+
background-color: $button-bg-color;
|
24
|
+
color: $button-color;
|
25
|
+
border-radius:4px;
|
26
|
+
overflow:visible;
|
27
|
+
text-decoration: none;
|
28
|
+
&:hover, &:active, &:focus, &:visited {
|
29
|
+
text-decoration: none;
|
30
|
+
}
|
31
|
+
&:hover{
|
32
|
+
box-shadow:0 0 5px rgba(0, 0, 0, 0.5);
|
33
|
+
}
|
34
|
+
&:active, &:focus {
|
35
|
+
outline:none;
|
36
|
+
box-shadow:0 0 5px rgba(0, 0, 0, 0.5) inset;
|
37
|
+
}
|
38
|
+
&::-moz-focus-inner {
|
39
|
+
border: 0;
|
40
|
+
padding: 0;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
@mixin btn-norm {
|
44
|
+
line-height:3;
|
45
|
+
height: 3em;
|
46
|
+
padding: 0 1em;
|
47
|
+
}
|
48
|
+
|
49
|
+
// - SIZES ----------------------------
|
50
|
+
|
51
|
+
@mixin btn--small{
|
52
|
+
padding: 0 0.5em;
|
53
|
+
line-height:2;
|
54
|
+
height: 2em;
|
55
|
+
}
|
56
|
+
|
57
|
+
@mixin btn--large{
|
58
|
+
padding: 0 1.5em;
|
59
|
+
line-height:4;
|
60
|
+
height: 4em;
|
61
|
+
}
|
62
|
+
|
63
|
+
@mixin btn--huge{
|
64
|
+
padding: 0 2em;
|
65
|
+
line-height:5;
|
66
|
+
height: 5em;
|
67
|
+
}
|
68
|
+
|
69
|
+
@mixin btn--full{
|
70
|
+
width:100%;
|
71
|
+
padding-right:0;
|
72
|
+
padding-left: 0;
|
73
|
+
text-align:center;
|
74
|
+
}
|
75
|
+
|
76
|
+
// - FONT SIZES -----------------------
|
77
|
+
|
78
|
+
@mixin btn--alpha{
|
79
|
+
font-size:3rem;
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin btn--beta{
|
83
|
+
font-size:2rem;
|
84
|
+
}
|
85
|
+
|
86
|
+
@mixin btn--gamma{
|
87
|
+
font-size:1rem;
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
@mixin btn--natural{
|
92
|
+
vertical-align:baseline;
|
93
|
+
font-size:inherit;
|
94
|
+
line-height:inherit;
|
95
|
+
height:auto;
|
96
|
+
padding-right:0.5em;
|
97
|
+
padding-left: 0.5em;
|
98
|
+
}
|
99
|
+
|
100
|
+
// - FUNCTIONS ------------------------
|
101
|
+
|
102
|
+
@mixin btn--primary{}
|
103
|
+
@mixin btn--secondary{}
|
104
|
+
@mixin btn--tertiary{}
|
105
|
+
|
106
|
+
|
107
|
+
@mixin btn--positive{
|
108
|
+
background-color:#4A993E;
|
109
|
+
color:#fff;
|
110
|
+
}
|
111
|
+
|
112
|
+
@mixin btn--negative{
|
113
|
+
background-color:#b33630;
|
114
|
+
color:#fff;
|
115
|
+
}
|
116
|
+
|
117
|
+
@mixin btn--inactive{
|
118
|
+
&:hover,
|
119
|
+
&:active,
|
120
|
+
&:focus{
|
121
|
+
background-color:#ddd;
|
122
|
+
color:#777;
|
123
|
+
cursor:default;
|
124
|
+
box-shadow:none;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
// - STYLES ---------------------------
|
129
|
+
|
130
|
+
|
131
|
+
@mixin btn--soft{
|
132
|
+
border-radius:5em;
|
133
|
+
}
|
134
|
+
|
135
|
+
@mixin btn--hard{
|
136
|
+
border-radius:0;
|
137
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
/*
|
2
|
+
|
3
|
+
## Colors
|
4
|
+
|
5
|
+
This is for a color-swatch, requires Compass at the moment.
|
6
|
+
|
7
|
+
<ul class="swatch theme-colors">
|
8
|
+
<li></li>
|
9
|
+
<li></li>
|
10
|
+
<li></li>
|
11
|
+
<li></li>
|
12
|
+
<li></li>
|
13
|
+
<li></li>
|
14
|
+
<li></li>
|
15
|
+
</ul>
|
16
|
+
|
17
|
+
*/
|
18
|
+
|
19
|
+
.swatch {
|
20
|
+
clear: both;
|
21
|
+
float: left;
|
22
|
+
max-width: 640px;
|
23
|
+
li {
|
24
|
+
border: 1px solid black;
|
25
|
+
border-radius: 8px;
|
26
|
+
float: left;
|
27
|
+
height: 120px;
|
28
|
+
list-style: none;
|
29
|
+
margin: 0 4px 4px 0;
|
30
|
+
width: 120px;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.theme-colors {
|
35
|
+
li {
|
36
|
+
background-color: $base-color;
|
37
|
+
&:nth-child(2) {
|
38
|
+
background-color: $comp-color;
|
39
|
+
}
|
40
|
+
&:nth-child(3) {
|
41
|
+
background-color: $tertiary-color;
|
42
|
+
}
|
43
|
+
&:nth-child(4) {
|
44
|
+
background-color: $alt-1;
|
45
|
+
}
|
46
|
+
&:nth-child(5) {
|
47
|
+
background-color: $alt-2;
|
48
|
+
}
|
49
|
+
&:nth-child(6) {
|
50
|
+
clear: both;
|
51
|
+
background-color: $white;
|
52
|
+
}
|
53
|
+
&:nth-child(7) {
|
54
|
+
background-color: $black;
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|