redframework 0.0.1.01
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 +7 -0
- data/README.md +4 -0
- data/lib/redframework.rb +3 -0
- data/stylesheets/_normalize.scss +400 -0
- data/stylesheets/_redframework.scss +57 -0
- data/stylesheets/redframework/_defaults.scss +119 -0
- data/stylesheets/redframework/_variables.scss +69 -0
- data/stylesheets/redframework/animate/_animate.scss +28 -0
- data/stylesheets/redframework/animate/_easings.scss +37 -0
- data/stylesheets/redframework/animate/fades/_in.scss +9 -0
- data/stylesheets/redframework/animate/fades/_out.scss +9 -0
- data/stylesheets/redframework/animate/scales/_in.scss +19 -0
- data/stylesheets/redframework/animate/scales/_out.scss +9 -0
- data/stylesheets/redframework/animate/slide-fades/_in.scss +15 -0
- data/stylesheets/redframework/animate/slide-fades/_out.scss +15 -0
- data/stylesheets/redframework/animate/slides/_in.scss +39 -0
- data/stylesheets/redframework/animate/slides/_out.scss +39 -0
- data/stylesheets/redframework/base/_alignment.scss +11 -0
- data/stylesheets/redframework/base/_animate.scss +6 -0
- data/stylesheets/redframework/base/_body.scss +29 -0
- data/stylesheets/redframework/base/_code.scss +63 -0
- data/stylesheets/redframework/base/_emphasis.scss +18 -0
- data/stylesheets/redframework/base/_forms.scss +174 -0
- data/stylesheets/redframework/base/_headings.scss +59 -0
- data/stylesheets/redframework/base/_images.scss +111 -0
- data/stylesheets/redframework/base/_lists.scss +16 -0
- data/stylesheets/redframework/base/_main.scss +16 -0
- data/stylesheets/redframework/base/_paragraphs.scss +4 -0
- data/stylesheets/redframework/base/_quotes.scss +78 -0
- data/stylesheets/redframework/base/_section.scss +45 -0
- data/stylesheets/redframework/base/_smallprint.scss +13 -0
- data/stylesheets/redframework/base/_tables.scss +163 -0
- data/stylesheets/redframework/general/_brand.scss +12 -0
- data/stylesheets/redframework/general/_clearfix.scss +7 -0
- data/stylesheets/redframework/general/_debug.scss +168 -0
- data/stylesheets/redframework/general/_helpers.scss +3 -0
- data/stylesheets/redframework/general/_mixins.scss +281 -0
- data/stylesheets/redframework/general/_reset.scss +80 -0
- data/stylesheets/redframework/general/_shared.scss +61 -0
- data/stylesheets/redframework/general/_widths.scss +162 -0
- data/stylesheets/redframework/objects/_breadcrumb.scss +15 -0
- data/stylesheets/redframework/objects/_buttons.scss +94 -0
- data/stylesheets/redframework/objects/_circle.scss +37 -0
- data/stylesheets/redframework/objects/_flag.scss +38 -0
- data/stylesheets/redframework/objects/_island.scss +11 -0
- data/stylesheets/redframework/objects/_navigation.scss +62 -0
- data/stylesheets/redframework/objects/_product-listing.scss +162 -0
- data/stylesheets/redframework/objects/_quantity.scss +30 -0
- data/stylesheets/redframework/objects/_search.scss +44 -0
- data/stylesheets/redframework/objects/_searchresults.scss +5 -0
- data/stylesheets/redframework/objects/_well.scss +16 -0
- data/stylesheets/redframework/views/_collectionview.scss +0 -0
- data/stylesheets/redframework/views/_tableview.scss +15 -0
- data/templates/project/manifest.rb +22 -0
- data/templates/project/screen.scss +2 -0
- data/templates/project/scss/app.scss +4 -0
- metadata +111 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
@mixin timing-function($namespace, $bezier){
|
2
|
+
.animate--#{$namespace} {
|
3
|
+
-webkit-animation-timing-function: $bezier;
|
4
|
+
}
|
5
|
+
}
|
6
|
+
|
7
|
+
@include timing-function("easeInSine", cubic-bezier(0.47, 0, 0.745, 0.715));
|
8
|
+
@include timing-function("easeInOutSine", cubic-bezier(0.445, 0.05, 0.55, 0.95));
|
9
|
+
@include timing-function("easeOutSine", cubic-bezier(0.39, 0.575, 0.565, 1));
|
10
|
+
|
11
|
+
@include timing-function("easeInQuad", cubic-bezier(0.55, 0.085, 0.68, 0.53));
|
12
|
+
@include timing-function("easeInOutQuad", cubic-bezier(0.455, 0.03, 0.515, 0.955));
|
13
|
+
@include timing-function("easeOutQuad", cubic-bezier(0.25, 0.46, 0.45, 0.94));
|
14
|
+
|
15
|
+
@include timing-function("easeInCubic", cubic-bezier(0.55, 0.055, 0.675, 0.19));
|
16
|
+
@include timing-function("easeInOutCubic", cubic-bezier(0.645, 0.045, 0.355, 1));
|
17
|
+
@include timing-function("easeOutCubic", cubic-bezier(0.215, 0.61, 0.355, 1));
|
18
|
+
|
19
|
+
@include timing-function("easeInQuart", cubic-bezier(0.895, 0.03, 0.685, 0.22));
|
20
|
+
@include timing-function("easeInOutQuart", cubic-bezier(0.77, 0, 0.175, 1));
|
21
|
+
@include timing-function("easeOutQuart", cubic-bezier(0.165, 0.84, 0.44, 1));
|
22
|
+
|
23
|
+
@include timing-function("easeInQuint", cubic-bezier(0.755, 0.05, 0.855, 0.06));
|
24
|
+
@include timing-function("easeInOutQuint", cubic-bezier(0.86, 0, 0.07, 1));
|
25
|
+
@include timing-function("easeOutQuint", cubic-bezier(0.23, 1, 0.32, 1));
|
26
|
+
|
27
|
+
@include timing-function("easeInExpo", cubic-bezier(0.95, 0.05, 0.795, 0.035));
|
28
|
+
@include timing-function("easeInOutExpo", cubic-bezier(1, 0, 0, 1));
|
29
|
+
@include timing-function("easeOutExpo", cubic-bezier(0.19, 1, 0.22, 1));
|
30
|
+
|
31
|
+
@include timing-function("easeInCirc", cubic-bezier(0.6, 0.04, 0.98, 0.335));
|
32
|
+
@include timing-function("easeInOutCirc", cubic-bezier(0.785, 0.135, 0.15, 0.86));
|
33
|
+
@include timing-function("easeOutCirc", cubic-bezier(0.075, 0.82, 0.165, 1));
|
34
|
+
|
35
|
+
@include timing-function("easeInBack", cubic-bezier(0.6, -0.28, 0.735, 0.045));
|
36
|
+
@include timing-function("easeInOutBack", cubic-bezier(0.68, -0.55, 0.265, 1.55));
|
37
|
+
@include timing-function("easeOutBack", cubic-bezier(0.175, 0.885, 0.42, 1.275));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.animate--scale-in-big {
|
2
|
+
@include transform(scale3d(1.5, 1.5, 0));
|
3
|
+
-webkit-animation-name: animate-scale-in-big;
|
4
|
+
}
|
5
|
+
|
6
|
+
.animate--scale-in-small {
|
7
|
+
@include transform(scale3d(0, 0, 0));
|
8
|
+
-webkit-animation-name: animate-scale-in-small;
|
9
|
+
}
|
10
|
+
|
11
|
+
@-webkit-keyframes animate-scale-in-big {
|
12
|
+
0% { @include transform(scale3d(1.5, 1.5, 0)); }
|
13
|
+
100% { @include transform(scale3d(1, 1, 0)); }
|
14
|
+
}
|
15
|
+
|
16
|
+
@-webkit-keyframes animate-scale-in-small {
|
17
|
+
0% { @include transform(scale3d(0, 0, 0)); }
|
18
|
+
100% { @include transform(scale3d(1, 1, 0)); }
|
19
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.animate--slide-fade-in-top {
|
2
|
+
-webkit-animation-name: animate-slide-in-top, animate-fade-in;
|
3
|
+
}
|
4
|
+
|
5
|
+
.animate--slide-fade-in-bottom {
|
6
|
+
-webkit-animation-name: animate-slide-in-bottom, animate-fade-in;
|
7
|
+
}
|
8
|
+
|
9
|
+
.animate--slide-fade-in-left {
|
10
|
+
-webkit-animation-name: animate-slide-in-left, animate-fade-in;
|
11
|
+
}
|
12
|
+
|
13
|
+
.animate--slide-fade-in-right {
|
14
|
+
-webkit-animation-name: animate-slide-in-right, animate-fade-in;
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
.animate--slide-fade-out-top {
|
2
|
+
-webkit-animation-name: animate-slide-out-top, animate-fade-out;
|
3
|
+
}
|
4
|
+
|
5
|
+
.animate--slide-fade-out-bottom {
|
6
|
+
-webkit-animation-name: animate-slide-out-bottom, animate-fade-out;
|
7
|
+
}
|
8
|
+
|
9
|
+
.animate--slide-fade-out-left {
|
10
|
+
-webkit-animation-name: animate-slide-out-left, animate-fade-out;
|
11
|
+
}
|
12
|
+
|
13
|
+
.animate--slide-fade-out-right {
|
14
|
+
-webkit-animation-name: animate-slide-out-right, animate-fade-out;
|
15
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.animate--slide-in-top {
|
2
|
+
@include transform(translate3d(0,-100%,0));
|
3
|
+
-webkit-animation-name: animate-slide-in-top;
|
4
|
+
}
|
5
|
+
|
6
|
+
.animate--slide-in-bottom {
|
7
|
+
@include transform(translate3d(0%,100%,0));
|
8
|
+
-webkit-animation-name: animate-slide-in-bottom;
|
9
|
+
}
|
10
|
+
|
11
|
+
.animate--slide-in-left {
|
12
|
+
@include transform(translate3d(-100%,0%,0));
|
13
|
+
-webkit-animation-name: animate-slide-in-left;
|
14
|
+
}
|
15
|
+
|
16
|
+
.animate--slide-in-right {
|
17
|
+
@include transform(translate3d(100%,0%,0));
|
18
|
+
-webkit-animation-name: animate-slide-in-right;
|
19
|
+
}
|
20
|
+
|
21
|
+
@-webkit-keyframes animate-slide-in-top {
|
22
|
+
0% { @include transform(translate3d(0,-100%,0)); }
|
23
|
+
100% { @include transform(translate3d(0,0%,0)); }
|
24
|
+
}
|
25
|
+
|
26
|
+
@-webkit-keyframes animate-slide-in-bottom {
|
27
|
+
0% { @include transform(translate3d(0%,100%,0)); }
|
28
|
+
100% { @include transform(translate3d(0%,0%,0)); }
|
29
|
+
}
|
30
|
+
|
31
|
+
@-webkit-keyframes animate-slide-in-left {
|
32
|
+
0% { @include transform(translate3d(-100%, 0%, 0)); }
|
33
|
+
100% { @include transform(translate3d(0%,0%,0)); }
|
34
|
+
}
|
35
|
+
|
36
|
+
@-webkit-keyframes animate-slide-in-right {
|
37
|
+
0% { @include transform(translate3d(100%, 0%, 0)); }
|
38
|
+
100% { @include transform(translate3d(0%,0%,0)); }
|
39
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
.animate--slide-out-top {
|
2
|
+
@include transform(translate3d(0%,0%,0));
|
3
|
+
-webkit-animation-name: animate-slide-out-top;
|
4
|
+
}
|
5
|
+
|
6
|
+
.animate--slide-out-bottom {
|
7
|
+
@include transform(translate3d(0%,0%,0));
|
8
|
+
-webkit-animation-name: animate-slide-out-bottom;
|
9
|
+
}
|
10
|
+
|
11
|
+
.animate--slide-out-left {
|
12
|
+
@include transform(translate3d(0%,0%,0));
|
13
|
+
-webkit-animation-name: animate-slide-out-left;
|
14
|
+
}
|
15
|
+
|
16
|
+
.animate--slide-out-right {
|
17
|
+
@include transform(translate3d(0%,0%,0));
|
18
|
+
-webkit-animation-name: animate-slide-out-right;
|
19
|
+
}
|
20
|
+
|
21
|
+
@-webkit-keyframes animate-slide-out-top {
|
22
|
+
0% { @include transform(translate3d(0,0%,0)); }
|
23
|
+
100% { @include transform(translate3d(0,-100%,0)); }
|
24
|
+
}
|
25
|
+
|
26
|
+
@-webkit-keyframes animate-slide-out-bottom {
|
27
|
+
0% { @include transform(translate3d(0%,0%,0)); }
|
28
|
+
100% { @include transform(translate3d(0%,100%,0)); }
|
29
|
+
}
|
30
|
+
|
31
|
+
@-webkit-keyframes animate-slide-out-left {
|
32
|
+
0% { @include transform(translate3d(0%,0%,0)); }
|
33
|
+
100% { @include transform(translate3d(-100%, 0%, 0)); }
|
34
|
+
}
|
35
|
+
|
36
|
+
@-webkit-keyframes animate-slide-out-right {
|
37
|
+
0% { @include transform(translate3d(0%,0%,0)); }
|
38
|
+
100% { @include transform(translate3d(100%, 0%, 0)); }
|
39
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
::selection {
|
2
|
+
background: #F36E50; /* Safari */
|
3
|
+
color: #fff;
|
4
|
+
text-shadow:1px 1px 1px rgba(black, .4);
|
5
|
+
}
|
6
|
+
|
7
|
+
* > :first-child { margin-top: 0 !important; }
|
8
|
+
* > :last-child { margin-bottom: 0 !important; }
|
9
|
+
|
10
|
+
body, html {
|
11
|
+
font-size: 14px;
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
i {
|
16
|
+
font-style:normal;
|
17
|
+
}
|
18
|
+
|
19
|
+
em {
|
20
|
+
font-size:italic;
|
21
|
+
}
|
22
|
+
|
23
|
+
strong, b {
|
24
|
+
font-weight:bold;
|
25
|
+
}
|
26
|
+
|
27
|
+
small, .small {
|
28
|
+
font-size:70%;
|
29
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$CODE
|
3
|
+
\*------------------------------------*/
|
4
|
+
/**
|
5
|
+
* Use an explicit font stack to ensure browsers render correct `line-height`.
|
6
|
+
*/
|
7
|
+
pre{
|
8
|
+
overflow:auto;
|
9
|
+
}
|
10
|
+
pre mark{
|
11
|
+
background:none;
|
12
|
+
border-bottom:1px solid;
|
13
|
+
color:inherit;
|
14
|
+
}
|
15
|
+
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Add comments to your code examples, e.g.:
|
19
|
+
*
|
20
|
+
<code></div><span class=code-comment><!-- /wrapper --></span></code>
|
21
|
+
*
|
22
|
+
*/
|
23
|
+
.code-comment{
|
24
|
+
/**
|
25
|
+
* Override this setting in your theme stylesheet
|
26
|
+
*/
|
27
|
+
opacity:0.75;
|
28
|
+
filter:alpha(opacity=75);
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
/**
|
33
|
+
* You can add line numbers to your code examples but be warned, it requires
|
34
|
+
* some pretty funky looking markup, e.g.:
|
35
|
+
*
|
36
|
+
<ol class=line-numbers>
|
37
|
+
<li><code>.nav{</code></li>
|
38
|
+
<li><code> list-style:none;</code></li>
|
39
|
+
<li><code> margin-left:0;</code></li>
|
40
|
+
<li><code>}</code></li>
|
41
|
+
<li><code> .nav > li,</code></li>
|
42
|
+
<li><code> .nav > li > a{</code></li>
|
43
|
+
<li><code> display:inline-block;</code></li>
|
44
|
+
<li><code> *display:inline-block;</code></li>
|
45
|
+
<li><code> zoom:1;</code></li>
|
46
|
+
<li><code> }</code></li>
|
47
|
+
</ol>
|
48
|
+
*
|
49
|
+
* 1. Make the list look like code.
|
50
|
+
* 2. Give the list flush numbers with a leading zero.
|
51
|
+
* 3. Make sure lines of code don’t wrap.
|
52
|
+
* 4. Give the code form by forcing the `code` to honour white-space.
|
53
|
+
*/
|
54
|
+
.line-numbers{
|
55
|
+
font-family:monospace, serif; /* [1] */
|
56
|
+
list-style:decimal-leading-zero inside; /* [2] */
|
57
|
+
white-space:nowrap; /* [3] */
|
58
|
+
overflow:auto; /* [3] */
|
59
|
+
margin-left:0;
|
60
|
+
}
|
61
|
+
.line-numbers code{
|
62
|
+
white-space:pre; /* [4] */
|
63
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.text--muted {
|
2
|
+
color: $text--muted-color
|
3
|
+
}
|
4
|
+
.text--primary {
|
5
|
+
color: $text--primary-color
|
6
|
+
}
|
7
|
+
.text--success {
|
8
|
+
color: $text--success-color
|
9
|
+
}
|
10
|
+
.text--info {
|
11
|
+
color: $text--info-color
|
12
|
+
}
|
13
|
+
.text--warning {
|
14
|
+
color: $text--warning-color
|
15
|
+
}
|
16
|
+
.text--danger {
|
17
|
+
color: $text--danger-color
|
18
|
+
}
|
@@ -0,0 +1,174 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$FORMS
|
3
|
+
\*------------------------------------*/
|
4
|
+
/**
|
5
|
+
*
|
6
|
+
* Demo: jsfiddle.net/inuitcss/MhHHU
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
fieldset{
|
10
|
+
padding:$base-spacing-unit;
|
11
|
+
}
|
12
|
+
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Text inputs
|
16
|
+
*
|
17
|
+
* Instead of a `[type]` selector for each kind of form input, we just use a
|
18
|
+
* class to target any/every one, e.g.:
|
19
|
+
<input type=text class=text-input>
|
20
|
+
<input type=email class=text-input>
|
21
|
+
<input type=password class=text-input>
|
22
|
+
*
|
23
|
+
*/
|
24
|
+
.text-input,
|
25
|
+
textarea{
|
26
|
+
/**
|
27
|
+
* Style these via your theme stylesheet.
|
28
|
+
*/
|
29
|
+
}
|
30
|
+
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Group sets of form fields in a list, e.g.:
|
34
|
+
*
|
35
|
+
<ul class=form-fields>
|
36
|
+
<li>
|
37
|
+
<label />
|
38
|
+
<input />
|
39
|
+
</li>
|
40
|
+
<li>
|
41
|
+
<label />
|
42
|
+
<select />
|
43
|
+
</li>
|
44
|
+
<li>
|
45
|
+
<label />
|
46
|
+
<input />
|
47
|
+
</li>
|
48
|
+
</ul>
|
49
|
+
*
|
50
|
+
*/
|
51
|
+
.form-fields{
|
52
|
+
list-style:none;
|
53
|
+
margin:0;
|
54
|
+
}
|
55
|
+
.form-fields > li{
|
56
|
+
@extend %sass-margin-bottom;
|
57
|
+
}
|
58
|
+
.form-fields > li:last-child{
|
59
|
+
margin-bottom:0;
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Labels
|
65
|
+
*
|
66
|
+
* Define a `.label` class as well as a `label` element. This means we can apply
|
67
|
+
* label-like styling to meta-labels for groups of options where a `label`
|
68
|
+
* element is not suitable, e.g.:
|
69
|
+
*
|
70
|
+
<li>
|
71
|
+
<span class=label>Select an option below:</span>
|
72
|
+
<ul class="multi-list four-cols">
|
73
|
+
<li>
|
74
|
+
<input /> <label />
|
75
|
+
</li>
|
76
|
+
<li>
|
77
|
+
<input /> <label />
|
78
|
+
</li>
|
79
|
+
<li>
|
80
|
+
<input /> <label />
|
81
|
+
</li>
|
82
|
+
<li>
|
83
|
+
<input /> <label />
|
84
|
+
</li>
|
85
|
+
</ul>
|
86
|
+
</li>
|
87
|
+
*
|
88
|
+
*/
|
89
|
+
label,
|
90
|
+
.label{
|
91
|
+
display:block;
|
92
|
+
}
|
93
|
+
/**
|
94
|
+
* Extra help text in `label`s, e.g.:
|
95
|
+
*
|
96
|
+
<label>Card number <small class=additional>No spaces</small></label>
|
97
|
+
*
|
98
|
+
*/
|
99
|
+
.additional{
|
100
|
+
display:block;
|
101
|
+
font-weight:normal;
|
102
|
+
}
|
103
|
+
|
104
|
+
|
105
|
+
/*
|
106
|
+
* Groups of checkboxes and radios, e.g.:
|
107
|
+
*
|
108
|
+
<li>
|
109
|
+
<ul class=check-list>
|
110
|
+
<li>
|
111
|
+
<input /> <label />
|
112
|
+
</li>
|
113
|
+
<li>
|
114
|
+
<input /> <label />
|
115
|
+
</li>
|
116
|
+
</ul>
|
117
|
+
</li>
|
118
|
+
*
|
119
|
+
*/
|
120
|
+
.check-list{
|
121
|
+
list-style:none;
|
122
|
+
margin:0;
|
123
|
+
}
|
124
|
+
/*
|
125
|
+
* Labels in check-lists
|
126
|
+
*/
|
127
|
+
.check-label,
|
128
|
+
.check-list label,
|
129
|
+
.check-list .label{
|
130
|
+
display:inline-block;
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Spoken forms are for forms that read like spoken word, e.g.:
|
136
|
+
*
|
137
|
+
<li class=spoken-form>
|
138
|
+
Hello, my <label for=spoken-name>name</label> is
|
139
|
+
<input type=text class=text-input id=spoken-name>. My home
|
140
|
+
<label for=country>country</label> is
|
141
|
+
<select id=country>
|
142
|
+
<option>UK</option>
|
143
|
+
<option>US</option>
|
144
|
+
<option>Other</option>
|
145
|
+
</select>
|
146
|
+
</li>
|
147
|
+
*
|
148
|
+
*/
|
149
|
+
.spoken-form label{
|
150
|
+
display:inline-block;
|
151
|
+
font:inherit;
|
152
|
+
}
|
153
|
+
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Extra help text displayed after a field when that field is in focus, e.g.:
|
157
|
+
*
|
158
|
+
<label for=email>Email:</label>
|
159
|
+
<input type=email class=text-input id=email>
|
160
|
+
<small class=extra-help>.edu emails only</small>
|
161
|
+
*
|
162
|
+
* We leave the help text in the document flow and merely set it to
|
163
|
+
* `visibility:hidden;`. This means that it won’t interfere with anything once
|
164
|
+
* it reappears.
|
165
|
+
*
|
166
|
+
*/
|
167
|
+
/*small*/.extra-help{
|
168
|
+
display:inline-block;
|
169
|
+
visibility:hidden;
|
170
|
+
}
|
171
|
+
.text-input:active + .extra-help,
|
172
|
+
.text-input:focus + .extra-help{
|
173
|
+
visibility:visible;
|
174
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$HEADINGS
|
3
|
+
\*------------------------------------*/
|
4
|
+
/**
|
5
|
+
* As per: csswizardry.com/2012/02/pragmatic-practical-font-sizing-in-css
|
6
|
+
*
|
7
|
+
* When we define a heading we also define a corresponding class to go with it.
|
8
|
+
* This allows us to apply, say, `class=alpha` to a `h3`; a double-stranded
|
9
|
+
* heading hierarchy.
|
10
|
+
*/
|
11
|
+
|
12
|
+
h1,.alpha{
|
13
|
+
@include font-size($h1--font-size);
|
14
|
+
font-weight: $h1--font-weight;
|
15
|
+
font-family: $h1--font-family;
|
16
|
+
}
|
17
|
+
h2,.beta{
|
18
|
+
@include font-size($h2--font-size);
|
19
|
+
font-weight: $h2--font-weight;
|
20
|
+
font-weight: $h2--font-weight;
|
21
|
+
}
|
22
|
+
h3,.gamma{
|
23
|
+
@include font-size($h3--font-size);
|
24
|
+
font-weight: $h3--font-weight;
|
25
|
+
font-weight: $h3--font-weight;
|
26
|
+
}
|
27
|
+
h4,.delta{
|
28
|
+
@include font-size($h4--font-size);
|
29
|
+
font-weight: $h4--font-weight;
|
30
|
+
font-weight: $h4--font-weight;
|
31
|
+
}
|
32
|
+
h5,.epsilon{
|
33
|
+
@include font-size($h5--font-size);
|
34
|
+
font-weight: $h5--font-weight;
|
35
|
+
font-weight: $h5--font-weight;
|
36
|
+
}
|
37
|
+
h6,.zeta{
|
38
|
+
@include font-size($h6--font-size);
|
39
|
+
font-weight: $h6--font-weight;
|
40
|
+
font-weight: $h6--font-weight;
|
41
|
+
}
|
42
|
+
|
43
|
+
|
44
|
+
@include headings(1,6);
|
45
|
+
|
46
|
+
|
47
|
+
/**
|
48
|
+
* A series of classes for setting massive type; for use in heroes, mastheads,
|
49
|
+
* promos, etc.
|
50
|
+
*/
|
51
|
+
.giga{
|
52
|
+
@include font-size($giga-size);
|
53
|
+
}
|
54
|
+
.mega{
|
55
|
+
@include font-size($mega-size);
|
56
|
+
}
|
57
|
+
.kilo{
|
58
|
+
@include font-size($kilo-size);
|
59
|
+
}
|
@@ -0,0 +1,111 @@
|
|
1
|
+
@mixin img-grid-setup($namespace: "") {
|
2
|
+
.img-grid--#{$namespace}one-whole img { width:100%; }
|
3
|
+
.img-grid--#{$namespace}one-half img { width:50%; }
|
4
|
+
.img-grid--#{$namespace}one-third img { width:33.333%; }
|
5
|
+
.img-grid--#{$namespace}one-quarter img { width:25%; }
|
6
|
+
.img-grid--#{$namespace}one-fifth img { width:20%; }
|
7
|
+
.img-grid--#{$namespace}one-sixth img { width:16.666%; }
|
8
|
+
.img-grid--#{$namespace}one-eighth img { width:12.5%; }
|
9
|
+
.img-grid--#{$namespace}one-tenth img { width:10%; }
|
10
|
+
.img-grid--#{$namespace}one-twelfth img { width:8.333%; }
|
11
|
+
}
|
12
|
+
|
13
|
+
.img-grid {
|
14
|
+
letter-spacing:-3px;
|
15
|
+
text-align:left;
|
16
|
+
img { display: inline-block; }
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
@include img-grid-setup();
|
21
|
+
|
22
|
+
@if $responsive == true{
|
23
|
+
|
24
|
+
@include media-query(mobile){
|
25
|
+
@include img-grid-setup("mobile-");
|
26
|
+
}
|
27
|
+
|
28
|
+
@include media-query(tab){
|
29
|
+
@include img-grid-setup("tab-");
|
30
|
+
}
|
31
|
+
|
32
|
+
@include media-query(tab-and-up){
|
33
|
+
@include img-grid-setup("tab-and-up-");
|
34
|
+
}
|
35
|
+
|
36
|
+
@include media-query(lap){
|
37
|
+
@include img-grid-setup("lap-");
|
38
|
+
}
|
39
|
+
|
40
|
+
@include media-query(lap-and-up){
|
41
|
+
@include img-grid-setup("lap-and-up-");
|
42
|
+
}
|
43
|
+
|
44
|
+
@include media-query(desk){
|
45
|
+
@include img-grid-setup("desk-");
|
46
|
+
}
|
47
|
+
|
48
|
+
@if $responsive-extra == true{
|
49
|
+
@include media-query(desk-wide){
|
50
|
+
@include img-grid-setup("desk-wide-");
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
img{
|
56
|
+
max-width:100%;
|
57
|
+
}
|
58
|
+
|
59
|
+
img[width],
|
60
|
+
img[height]{
|
61
|
+
max-width:none;
|
62
|
+
}
|
63
|
+
|
64
|
+
|
65
|
+
.img--round { border-radius:$brand-round; }
|
66
|
+
|
67
|
+
|
68
|
+
/**
|
69
|
+
* Image placement variations.
|
70
|
+
*/
|
71
|
+
.img--right{
|
72
|
+
float:right;
|
73
|
+
margin-bottom:$base-spacing-unit;
|
74
|
+
margin-left:$base-spacing-unit;
|
75
|
+
}
|
76
|
+
.img--left{
|
77
|
+
float:left;
|
78
|
+
margin-right:$base-spacing-unit;
|
79
|
+
margin-bottom:$base-spacing-unit;
|
80
|
+
}
|
81
|
+
.img--center{
|
82
|
+
display:block;
|
83
|
+
margin-right:auto;
|
84
|
+
margin-bottom:$base-spacing-unit;
|
85
|
+
margin-left:auto;
|
86
|
+
}
|
87
|
+
|
88
|
+
|
89
|
+
/**
|
90
|
+
* Keep your images on your baseline.
|
91
|
+
*
|
92
|
+
* Please note, these will not work too nicely with fluid images and will
|
93
|
+
* distort when resized below a certain width. Use with caution.
|
94
|
+
*/
|
95
|
+
.img--short{
|
96
|
+
height:5 * $base-spacing-unit;
|
97
|
+
}
|
98
|
+
.img--medium{
|
99
|
+
height:10 * $base-spacing-unit;
|
100
|
+
}
|
101
|
+
.img--tall{
|
102
|
+
height:15 * $base-spacing-unit;
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Images in `figure` elements.
|
108
|
+
*/
|
109
|
+
figure > img{
|
110
|
+
display:block;
|
111
|
+
}
|