nesta-contentfocus-extensions 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +53 -0
- data/Rakefile +1 -2
- data/assets/stylesheets/bitters/_base.scss +24 -0
- data/assets/stylesheets/bitters/_buttons.scss +10 -0
- data/assets/stylesheets/bitters/_forms.scss +78 -0
- data/assets/stylesheets/bitters/_grid-settings.scss +14 -0
- data/assets/stylesheets/bitters/_lists.scss +31 -0
- data/assets/stylesheets/bitters/_tables.scss +24 -0
- data/assets/stylesheets/bitters/_typography.scss +93 -0
- data/assets/stylesheets/bitters/_variables.scss +65 -0
- data/assets/stylesheets/bitters/extends/_button.scss +22 -0
- data/assets/stylesheets/bitters/extends/_clearfix.scss +3 -0
- data/assets/stylesheets/bitters/extends/_errors.scss +11 -0
- data/assets/stylesheets/bitters/extends/_flashes.scss +38 -0
- data/assets/stylesheets/bitters/extends/_hide-text.scss +3 -0
- data/assets/stylesheets/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
- data/assets/stylesheets/bourbon/_bourbon.scss +87 -0
- data/assets/stylesheets/bourbon/addons/_border-color.scss +26 -0
- data/assets/stylesheets/bourbon/addons/_border-radius.scss +48 -0
- data/assets/stylesheets/bourbon/addons/_border-style.scss +25 -0
- data/assets/stylesheets/bourbon/addons/_border-width.scss +25 -0
- data/assets/stylesheets/bourbon/addons/_buttons.scss +64 -0
- data/assets/stylesheets/bourbon/addons/_clearfix.scss +25 -0
- data/assets/stylesheets/bourbon/addons/_ellipsis.scss +30 -0
- data/assets/stylesheets/bourbon/addons/_font-stacks.scss +31 -0
- data/assets/stylesheets/bourbon/addons/_hide-text.scss +27 -0
- data/assets/stylesheets/bourbon/addons/_margin.scss +26 -0
- data/assets/stylesheets/bourbon/addons/_padding.scss +26 -0
- data/assets/stylesheets/bourbon/addons/_position.scss +48 -0
- data/assets/stylesheets/bourbon/addons/_prefixer.scss +66 -0
- data/assets/stylesheets/bourbon/addons/_retina-image.scss +25 -0
- data/assets/stylesheets/bourbon/addons/_size.scss +51 -0
- data/assets/stylesheets/bourbon/addons/_text-inputs.scss +112 -0
- data/assets/stylesheets/bourbon/addons/_timing-functions.scss +34 -0
- data/assets/stylesheets/bourbon/addons/_triangle.scss +63 -0
- data/assets/stylesheets/bourbon/addons/_word-wrap.scss +29 -0
- data/assets/stylesheets/bourbon/css3/_animation.scss +43 -0
- data/assets/stylesheets/bourbon/css3/_appearance.scss +3 -0
- data/assets/stylesheets/bourbon/css3/_backface-visibility.scss +3 -0
- data/assets/stylesheets/bourbon/css3/_background-image.scss +42 -0
- data/assets/stylesheets/bourbon/css3/_background.scss +55 -0
- data/assets/stylesheets/bourbon/css3/_border-image.scss +59 -0
- data/assets/stylesheets/bourbon/css3/_calc.scss +4 -0
- data/assets/stylesheets/bourbon/css3/_columns.scss +47 -0
- data/assets/stylesheets/bourbon/css3/_filter.scss +4 -0
- data/assets/stylesheets/bourbon/css3/_flex-box.scss +287 -0
- data/assets/stylesheets/bourbon/css3/_font-face.scss +24 -0
- data/assets/stylesheets/bourbon/css3/_font-feature-settings.scss +4 -0
- data/assets/stylesheets/bourbon/css3/_hidpi-media-query.scss +10 -0
- data/assets/stylesheets/bourbon/css3/_hyphens.scss +4 -0
- data/assets/stylesheets/bourbon/css3/_image-rendering.scss +14 -0
- data/assets/stylesheets/bourbon/css3/_keyframes.scss +36 -0
- data/assets/stylesheets/bourbon/css3/_linear-gradient.scss +38 -0
- data/assets/stylesheets/bourbon/css3/_perspective.scss +8 -0
- data/assets/stylesheets/bourbon/css3/_placeholder.scss +8 -0
- data/assets/stylesheets/bourbon/css3/_radial-gradient.scss +39 -0
- data/assets/stylesheets/bourbon/css3/_selection.scss +42 -0
- data/assets/stylesheets/bourbon/css3/_text-decoration.scss +19 -0
- data/assets/stylesheets/bourbon/css3/_transform.scss +15 -0
- data/assets/stylesheets/bourbon/css3/_transition.scss +71 -0
- data/assets/stylesheets/bourbon/css3/_user-select.scss +3 -0
- data/assets/stylesheets/bourbon/functions/_assign-inputs.scss +11 -0
- data/assets/stylesheets/bourbon/functions/_contains-falsy.scss +20 -0
- data/assets/stylesheets/bourbon/functions/_contains.scss +26 -0
- data/assets/stylesheets/bourbon/functions/_is-length.scss +11 -0
- data/assets/stylesheets/bourbon/functions/_is-light.scss +21 -0
- data/assets/stylesheets/bourbon/functions/_is-number.scss +11 -0
- data/assets/stylesheets/bourbon/functions/_is-size.scss +13 -0
- data/assets/stylesheets/bourbon/functions/_modular-scale.scss +69 -0
- data/assets/stylesheets/bourbon/functions/_px-to-em.scss +13 -0
- data/assets/stylesheets/bourbon/functions/_px-to-rem.scss +15 -0
- data/assets/stylesheets/bourbon/functions/_shade.scss +24 -0
- data/assets/stylesheets/bourbon/functions/_strip-units.scss +17 -0
- data/assets/stylesheets/bourbon/functions/_tint.scss +24 -0
- data/assets/stylesheets/bourbon/functions/_transition-property-name.scss +22 -0
- data/assets/stylesheets/bourbon/functions/_unpack.scss +27 -0
- data/assets/stylesheets/bourbon/helpers/_convert-units.scss +21 -0
- data/assets/stylesheets/bourbon/helpers/_directional-values.scss +96 -0
- data/assets/stylesheets/bourbon/helpers/_font-source-declaration.scss +43 -0
- data/assets/stylesheets/bourbon/helpers/_gradient-positions-parser.scss +13 -0
- data/assets/stylesheets/bourbon/helpers/_linear-angle-parser.scss +25 -0
- data/assets/stylesheets/bourbon/helpers/_linear-gradient-parser.scss +41 -0
- data/assets/stylesheets/bourbon/helpers/_linear-positions-parser.scss +61 -0
- data/assets/stylesheets/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
- data/assets/stylesheets/bourbon/helpers/_radial-arg-parser.scss +69 -0
- data/assets/stylesheets/bourbon/helpers/_radial-gradient-parser.scss +50 -0
- data/assets/stylesheets/bourbon/helpers/_radial-positions-parser.scss +18 -0
- data/assets/stylesheets/bourbon/helpers/_render-gradients.scss +26 -0
- data/assets/stylesheets/bourbon/helpers/_shape-size-stripper.scss +10 -0
- data/assets/stylesheets/bourbon/helpers/_str-to-num.scss +50 -0
- data/assets/stylesheets/bourbon/settings/_asset-pipeline.scss +7 -0
- data/assets/stylesheets/bourbon/settings/_prefixer.scss +9 -0
- data/assets/stylesheets/bourbon/settings/_px-to-em.scss +1 -0
- data/assets/stylesheets/contentfocus/_animations.scss +9 -0
- data/assets/stylesheets/contentfocus/_breadcrumb.scss +83 -0
- data/assets/stylesheets/contentfocus/_browser.scss +146 -0
- data/assets/stylesheets/contentfocus/_bullets.scss +63 -0
- data/assets/stylesheets/contentfocus/_comments.scss +59 -0
- data/assets/stylesheets/contentfocus/_device.scss +84 -0
- data/assets/stylesheets/contentfocus/_flashes.scss +30 -0
- data/assets/stylesheets/contentfocus/_footer.scss +78 -0
- data/assets/stylesheets/contentfocus/_forms.scss +110 -0
- data/assets/stylesheets/contentfocus/_geometric_typography.scss +104 -0
- data/assets/stylesheets/contentfocus/_hero.scss +108 -0
- data/assets/stylesheets/contentfocus/_hover_tile.scss +51 -0
- data/assets/stylesheets/contentfocus/_nav.scss +396 -0
- data/assets/stylesheets/contentfocus/_progress_bar.scss +92 -0
- data/assets/stylesheets/contentfocus/_variables.scss +84 -0
- data/assets/stylesheets/neat/_neat-helpers.scss +8 -0
- data/assets/stylesheets/neat/_neat.scss +23 -0
- data/assets/stylesheets/neat/functions/_new-breakpoint.scss +49 -0
- data/assets/stylesheets/neat/functions/_private.scss +114 -0
- data/assets/stylesheets/neat/grid/_box-sizing.scss +15 -0
- data/assets/stylesheets/neat/grid/_direction-context.scss +33 -0
- data/assets/stylesheets/neat/grid/_display-context.scss +28 -0
- data/assets/stylesheets/neat/grid/_fill-parent.scss +22 -0
- data/assets/stylesheets/neat/grid/_media.scss +92 -0
- data/assets/stylesheets/neat/grid/_omega.scss +87 -0
- data/assets/stylesheets/neat/grid/_outer-container.scss +38 -0
- data/assets/stylesheets/neat/grid/_pad.scss +25 -0
- data/assets/stylesheets/neat/grid/_private.scss +35 -0
- data/assets/stylesheets/neat/grid/_row.scss +52 -0
- data/assets/stylesheets/neat/grid/_shift.scss +50 -0
- data/assets/stylesheets/neat/grid/_span-columns.scss +94 -0
- data/assets/stylesheets/neat/grid/_to-deprecate.scss +97 -0
- data/assets/stylesheets/neat/grid/_visual-grid.scss +42 -0
- data/assets/stylesheets/neat/settings/_disable-warnings.scss +13 -0
- data/assets/stylesheets/neat/settings/_grid.scss +51 -0
- data/assets/stylesheets/neat/settings/_visual-grid.scss +27 -0
- data/lib/nesta-contentfocus-extensions.rb +14 -4
- data/lib/nesta-contentfocus-extensions/app.rb +8 -0
- data/lib/nesta-contentfocus-extensions/helpers.rb +21 -0
- data/lib/nesta-contentfocus-extensions/kramdown.rb +91 -0
- data/lib/nesta-contentfocus-extensions/menu.rb +4 -1
- data/lib/nesta-contentfocus-extensions/overrides.rb +17 -0
- data/lib/nesta-contentfocus-extensions/page.rb +29 -54
- data/lib/nesta-contentfocus-extensions/path.rb +13 -7
- data/lib/nesta-contentfocus-extensions/paths.rb +52 -0
- data/lib/nesta-contentfocus-extensions/renderer.rb +46 -0
- data/lib/nesta-contentfocus-extensions/routes.rb +15 -0
- data/lib/nesta-contentfocus-extensions/theme.rb +36 -0
- data/lib/nesta-contentfocus-extensions/version.rb +1 -1
- data/nesta-contentfocus-extensions.gemspec +14 -11
- metadata +184 -6
@@ -0,0 +1,146 @@
|
|
1
|
+
$browser-top-bar-height: 1.5em;
|
2
|
+
$browser-circle-size: .5em;
|
3
|
+
$browser-circle-margin: ($browser-top-bar-height - $browser-circle-size) / 2;
|
4
|
+
$browser-top-bar-background: lighten(#DFDFDF, 5);
|
5
|
+
$browser-border: 0px;
|
6
|
+
$browser-background: $base-background-color;
|
7
|
+
$browser-content-background-1: #F0F0F0;
|
8
|
+
$browser-content-background-2: $base-background-color;
|
9
|
+
$browser-content-background-3: #F0F0F0;
|
10
|
+
|
11
|
+
.browsers {
|
12
|
+
display:inline-block;
|
13
|
+
padding-top: 0;
|
14
|
+
text-align:center;
|
15
|
+
width:100%;
|
16
|
+
|
17
|
+
@include media($large-screen) {
|
18
|
+
padding-top: 2em;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.browser-top-bar {
|
23
|
+
@include linear-gradient($browser-top-bar-background, darken($browser-top-bar-background, 2));
|
24
|
+
border-top-left-radius: $base-border-radius;
|
25
|
+
border-top-right-radius: $base-border-radius;
|
26
|
+
border: $browser-border;
|
27
|
+
box-shadow: inset 0 1px 0 transparentize(white, .6);
|
28
|
+
height: $browser-top-bar-height;
|
29
|
+
width: 100%;
|
30
|
+
}
|
31
|
+
|
32
|
+
.browser-circle {
|
33
|
+
border-radius: $browser-circle-size * 2;
|
34
|
+
box-shadow: 0 1px 0px transparentize(white, .5), inset 0 1px 1px transparentize(black, 0.8);
|
35
|
+
display: inline-block;
|
36
|
+
@include size($browser-circle-size);
|
37
|
+
margin: $browser-circle-margin 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
.browser-circle:nth-child(1) {
|
41
|
+
background: #FF6F55;
|
42
|
+
margin-left: $browser-circle-margin;
|
43
|
+
}
|
44
|
+
|
45
|
+
.browser-circle:nth-child(2) {
|
46
|
+
background: #F5B01D;
|
47
|
+
margin-left: $browser-circle-margin / 3;
|
48
|
+
}
|
49
|
+
|
50
|
+
.browser-circle:nth-child(3) {
|
51
|
+
background: #51B151;
|
52
|
+
margin-left: $browser-circle-margin / 3;
|
53
|
+
}
|
54
|
+
|
55
|
+
//////////////////////////////////////////////
|
56
|
+
|
57
|
+
.browser {
|
58
|
+
border-bottom: none;
|
59
|
+
border-top-left-radius: $base-border-radius;
|
60
|
+
border-top-right-radius: $base-border-radius;
|
61
|
+
box-shadow: 0 3px 5px transparentize(black, .7);
|
62
|
+
display: inline-block;
|
63
|
+
text-align: left;
|
64
|
+
width:20%;
|
65
|
+
}
|
66
|
+
|
67
|
+
.browser:nth-child(1) {
|
68
|
+
background-color: $browser-content-background-1;
|
69
|
+
display: none;
|
70
|
+
|
71
|
+
@include media($large-screen) {
|
72
|
+
display: inline-block;
|
73
|
+
}
|
74
|
+
|
75
|
+
.browser-content {
|
76
|
+
background-color: $browser-content-background-1;
|
77
|
+
background-position: top;
|
78
|
+
background-repeat: no-repeat;
|
79
|
+
background-size: cover;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.browser:nth-child(2) {
|
84
|
+
@include transform(scale(1));
|
85
|
+
background-color: $browser-content-background-2;
|
86
|
+
width: 90%;
|
87
|
+
|
88
|
+
@include media($large-screen) {
|
89
|
+
@include transform(scale(1.2));
|
90
|
+
width: 40%;
|
91
|
+
}
|
92
|
+
|
93
|
+
.browser-content {
|
94
|
+
background: url(https://raw.githubusercontent.com/thoughtbot/refills/9c16f8b69d857c296c85f2d8c434e825f813a566/source/images/refills-screenshot2.jpg);
|
95
|
+
background-color: $browser-content-background-2;
|
96
|
+
background-position: top;
|
97
|
+
background-repeat: no-repeat;
|
98
|
+
background-size: cover;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
.browser:nth-child(3) {
|
103
|
+
background-color: $browser-content-background-3;
|
104
|
+
display: none;
|
105
|
+
|
106
|
+
@include media($large-screen) {
|
107
|
+
display: inline-block;
|
108
|
+
}
|
109
|
+
|
110
|
+
.browser-content {
|
111
|
+
background: url(https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/refills-screenshot3.png);
|
112
|
+
background-color: $browser-content-background-3;
|
113
|
+
background-position: top;
|
114
|
+
background-repeat: no-repeat;
|
115
|
+
background-size: cover;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
.browser-content {
|
120
|
+
border-left: $browser-border;
|
121
|
+
border-right: $browser-border;
|
122
|
+
height: 17em;
|
123
|
+
overflow: hidden;
|
124
|
+
|
125
|
+
@include media($large-screen) {
|
126
|
+
height: 18em;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
//////////////////////////////////////////////
|
131
|
+
|
132
|
+
.cover {
|
133
|
+
background: transparent;
|
134
|
+
border-top: 0;
|
135
|
+
height: 4em;
|
136
|
+
margin-top: 0;
|
137
|
+
position: relative;
|
138
|
+
width: 100%;
|
139
|
+
z-index: 999;
|
140
|
+
|
141
|
+
&::after {
|
142
|
+
clear: both;
|
143
|
+
content: " ";
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
.bullets {
|
2
|
+
$icon-bullet-size: 3.5em;
|
3
|
+
|
4
|
+
overflow: auto;
|
5
|
+
margin-bottom: $base-line-height;
|
6
|
+
|
7
|
+
// change ".three-col-bullet" class to this for two bullet layout
|
8
|
+
.two-col-bullet {
|
9
|
+
@include media($large-screen) {
|
10
|
+
@include span-columns(6);
|
11
|
+
@include omega(2n);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
.three-col-bullet {
|
16
|
+
@include media($large-screen) {
|
17
|
+
@include span-columns(4);
|
18
|
+
@include omega(3n);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
// change ".three-col-bullet" class to this for four bullet layout
|
23
|
+
.four-col-bullet {
|
24
|
+
@include media($large-screen) {
|
25
|
+
@include span-columns(3);
|
26
|
+
@include omega(4n);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.bullet-icon {
|
31
|
+
float: left;
|
32
|
+
background: $base-accent-color;
|
33
|
+
padding: $icon-bullet-size /4;
|
34
|
+
border-radius: 50%;
|
35
|
+
width: $icon-bullet-size;
|
36
|
+
height: $icon-bullet-size;
|
37
|
+
}
|
38
|
+
|
39
|
+
.bullet-icon-1 {
|
40
|
+
background: $base-accent-color;
|
41
|
+
}
|
42
|
+
|
43
|
+
.bullet-icon-2 {
|
44
|
+
background: adjust-hue($base-accent-color, -50);
|
45
|
+
}
|
46
|
+
|
47
|
+
.bullet-icon-3 {
|
48
|
+
background: adjust-hue($base-accent-color, -140);
|
49
|
+
}
|
50
|
+
|
51
|
+
.bullet-content {
|
52
|
+
margin-left: $icon-bullet-size *1.4;
|
53
|
+
margin-bottom: 2em;
|
54
|
+
}
|
55
|
+
|
56
|
+
h2 {
|
57
|
+
font-size: $icon-bullet-size /2.5;
|
58
|
+
padding-top: $icon-bullet-size /7;
|
59
|
+
margin-bottom: $icon-bullet-size /6;
|
60
|
+
border-bottom: 1px solid transparentize($base-font-color, .8);
|
61
|
+
display: inline-block;
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
.comment {
|
2
|
+
$comment-gutter: 1.4em;
|
3
|
+
$comment-image-padding: .7em;
|
4
|
+
$comment-image-width: 4em;
|
5
|
+
$comment-color: $base-font-color;
|
6
|
+
$comment-background: lighten($base-accent-color, 15);
|
7
|
+
$comment-detail-color: transparentize($comment-color, .5);
|
8
|
+
$comment-image-vert-alignment: top;
|
9
|
+
|
10
|
+
display: table;
|
11
|
+
width: 100%;
|
12
|
+
margin-bottom: $base-spacing;
|
13
|
+
padding-bottom: 1em;
|
14
|
+
border-bottom: 1px solid transparentize($comment-color, .9);
|
15
|
+
|
16
|
+
.comment-image,
|
17
|
+
.comment-content {
|
18
|
+
display: table-cell;
|
19
|
+
vertical-align: $comment-image-vert-alignment;
|
20
|
+
}
|
21
|
+
|
22
|
+
.comment-image {
|
23
|
+
padding-right: $comment-gutter;
|
24
|
+
|
25
|
+
> img {
|
26
|
+
width: $comment-image-width;
|
27
|
+
height: auto;
|
28
|
+
border-radius: $base-border-radius;
|
29
|
+
padding: $comment-image-padding;
|
30
|
+
background: $comment-background;
|
31
|
+
display: block;
|
32
|
+
max-width: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
.comment-reverse-order & {
|
36
|
+
padding-right: 0;
|
37
|
+
padding-left: 10px;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.comment-content {
|
42
|
+
width: 100%;
|
43
|
+
|
44
|
+
h1 {
|
45
|
+
font-size: 1em;
|
46
|
+
margin-bottom: .5em;
|
47
|
+
}
|
48
|
+
|
49
|
+
p {
|
50
|
+
margin-bottom: .5em;
|
51
|
+
}
|
52
|
+
|
53
|
+
p.comment-detail {
|
54
|
+
font-style: italic;
|
55
|
+
font-size: .9em;
|
56
|
+
color: $comment-detail-color;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,84 @@
|
|
1
|
+
$device-padding-vertical: 5em;
|
2
|
+
$device-padding-horizontal: .4em;
|
3
|
+
$device-screen-width: 14em;
|
4
|
+
$device-screen-height: 25em;
|
5
|
+
$device-background: darken(gray, 40);
|
6
|
+
$device-backside-background: darken($device-background, 10);
|
7
|
+
$device-text-color: white;
|
8
|
+
|
9
|
+
$device-background-top: #162C4C;
|
10
|
+
$device-background-bottom: #0A120D;
|
11
|
+
$gradient-angle: 10deg;
|
12
|
+
$device-image: 'https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/mountains.png';
|
13
|
+
$device-screen-image: 'https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/cosmin_capitanu_screen.jpg';
|
14
|
+
|
15
|
+
.device-background {
|
16
|
+
@include background(url($device-image), linear-gradient($gradient-angle, $device-background-bottom, $device-background-top), no-repeat $device-background-top scroll);
|
17
|
+
background-repeat: no-repeat;
|
18
|
+
background-size: cover;
|
19
|
+
width: 100%;
|
20
|
+
height: 20em;
|
21
|
+
}
|
22
|
+
|
23
|
+
.device-text {
|
24
|
+
color: $device-text-color;
|
25
|
+
padding: 2em;
|
26
|
+
|
27
|
+
@include media($large-screen) {
|
28
|
+
max-width: 50%;
|
29
|
+
padding: 4em;
|
30
|
+
float: left;
|
31
|
+
}
|
32
|
+
|
33
|
+
h4 {
|
34
|
+
margin-bottom: .5em;
|
35
|
+
padding-bottom: .5em;
|
36
|
+
border-bottom: 1px solid transparentize($device-text-color, .7);
|
37
|
+
}
|
38
|
+
|
39
|
+
p {
|
40
|
+
font-family: $serif;
|
41
|
+
margin-bottom: 1.5em;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
.device {
|
46
|
+
display: none;
|
47
|
+
position: relative;
|
48
|
+
|
49
|
+
@include media($large-screen) {
|
50
|
+
@include transform(
|
51
|
+
perspective(800px)
|
52
|
+
translateX(0px)
|
53
|
+
translateY(-100px)
|
54
|
+
translateZ(50px)
|
55
|
+
rotateX(0deg)
|
56
|
+
rotateY(-20deg)
|
57
|
+
rotateZ(-0deg));
|
58
|
+
display: block;
|
59
|
+
float: right;
|
60
|
+
margin-bottom: -12em;
|
61
|
+
margin-right: 5em;
|
62
|
+
padding: $device-padding-vertical 0;
|
63
|
+
width: $device-screen-width + (2 * $device-padding-horizontal);
|
64
|
+
border-radius: 2em;
|
65
|
+
background: $device-background;
|
66
|
+
box-shadow:
|
67
|
+
1px 0px lighten($device-backside-background, 20),
|
68
|
+
4px 0px lighten($device-backside-background, 2),
|
69
|
+
7px 0px $device-backside-background,
|
70
|
+
10px 0px $device-backside-background,
|
71
|
+
13px 0px $device-backside-background;
|
72
|
+
z-index: 99999;
|
73
|
+
|
74
|
+
.screen {
|
75
|
+
@include size($device-screen-width $device-screen-height);
|
76
|
+
background-image: url($device-screen-image);
|
77
|
+
background-size: cover;
|
78
|
+
box-shadow: inset 0 1px 8px transparentize(black, .5);
|
79
|
+
margin: auto;
|
80
|
+
border-radius: .2em;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
$flash-red: #FBE3E4;
|
2
|
+
$flash-yellow: #FFF6BF;
|
3
|
+
$flash-green: #E6EFC2;
|
4
|
+
|
5
|
+
%flash-base {
|
6
|
+
display: block;
|
7
|
+
font-weight: bold;
|
8
|
+
margin-bottom: $base-spacing / 2;
|
9
|
+
padding: $base-spacing / 2;
|
10
|
+
text-align: center;
|
11
|
+
}
|
12
|
+
|
13
|
+
$flashes: (alert: $flash-yellow, error: $flash-red, notice: lighten($base-accent-color, 40), success: $flash-green);
|
14
|
+
|
15
|
+
@each $flash, $color in $flashes {
|
16
|
+
.flash.#{$flash} {
|
17
|
+
@extend %flash-base;
|
18
|
+
background: $color;
|
19
|
+
color: darken($color, 60);
|
20
|
+
|
21
|
+
a {
|
22
|
+
color: darken($color, 70);
|
23
|
+
border-bottom: 1px solid transparentize(darken($color, 70), .7);
|
24
|
+
|
25
|
+
&:hover {
|
26
|
+
color: darken($color, 90);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
.footer {
|
2
|
+
$footer-background: desaturate(darken($base-accent-color, 20), 30) !default;
|
3
|
+
$footer-color: white !default;
|
4
|
+
$footer-link-color: transparentize($footer-color, .6) !default;
|
5
|
+
$footer-disclaimer-color: transparentize($footer-color, .6) !default;
|
6
|
+
|
7
|
+
background: $footer-background;
|
8
|
+
padding: $base-spacing*2 $gutter;
|
9
|
+
width: 100%;
|
10
|
+
|
11
|
+
.footer-logo {
|
12
|
+
text-align: center;
|
13
|
+
margin-bottom: 2em;
|
14
|
+
|
15
|
+
img {
|
16
|
+
height: 3em;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
.footer-links {
|
21
|
+
@include clearfix;
|
22
|
+
margin-bottom: $base-spacing;
|
23
|
+
|
24
|
+
@include media($medium-screen) {
|
25
|
+
@include shift(3);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
ul {
|
30
|
+
margin-bottom: $base-spacing*2;
|
31
|
+
padding: 0;
|
32
|
+
|
33
|
+
@include media($medium-screen) {
|
34
|
+
@include span-columns(3);
|
35
|
+
@include omega(3n);
|
36
|
+
@include clearfix;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
li {
|
41
|
+
text-align: center;
|
42
|
+
|
43
|
+
@include media($medium-screen) {
|
44
|
+
text-align: left;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
li a {
|
49
|
+
color: $footer-link-color;
|
50
|
+
text-decoration: none;
|
51
|
+
|
52
|
+
&:hover {
|
53
|
+
color: transparentize($footer-color, 0);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
li h3 {
|
58
|
+
color: $footer-color;
|
59
|
+
font-size: 1em;
|
60
|
+
font-weight: 800;
|
61
|
+
margin-bottom: .4em;
|
62
|
+
}
|
63
|
+
|
64
|
+
hr {
|
65
|
+
border: 1px solid transparentize($footer-disclaimer-color, .3);
|
66
|
+
margin: 0 auto $base-spacing;
|
67
|
+
width: 12em;
|
68
|
+
}
|
69
|
+
|
70
|
+
p {
|
71
|
+
color: $footer-disclaimer-color;
|
72
|
+
font-size: .9em;
|
73
|
+
line-height: 1.5em;
|
74
|
+
margin: auto;
|
75
|
+
max-width: 35em;
|
76
|
+
text-align: center;
|
77
|
+
}
|
78
|
+
}
|