staple 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/Gemfile +13 -0
  4. data/LICENSE.md +23 -0
  5. data/README.md +51 -0
  6. data/Rakefile +0 -0
  7. data/config.rb +24 -0
  8. data/lib/snippet_helpers.rb +69 -0
  9. data/lib/staple/import_generator.rb +50 -0
  10. data/lib/staple/list_generator.rb +22 -0
  11. data/lib/staple.rb +2 -0
  12. data/source/CNAME +1 -0
  13. data/source/_accordion.html.erb +24 -0
  14. data/source/_accordion_tabs.html.erb +26 -0
  15. data/source/_accordion_tabs_minimal.html.erb +26 -0
  16. data/source/_badges.html.erb +7 -0
  17. data/source/_breadcrumbs.html.erb +7 -0
  18. data/source/_browser.html.erb +29 -0
  19. data/source/_button_group.html.erb +18 -0
  20. data/source/_cards.html.erb +59 -0
  21. data/source/_centered_navigation.html.erb +38 -0
  22. data/source/_code.html.erb +10 -0
  23. data/source/_comment.html.erb +21 -0
  24. data/source/_device.html.erb +10 -0
  25. data/source/_dropdown.html.erb +12 -0
  26. data/source/_expander.html.erb +6 -0
  27. data/source/_flashes.html.erb +15 -0
  28. data/source/_footer.html.erb +28 -0
  29. data/source/_footer_2.html.erb +33 -0
  30. data/source/_grid_items.html.erb +37 -0
  31. data/source/_grid_items_lines.html.erb +44 -0
  32. data/source/_hero.html.erb +11 -0
  33. data/source/_hover_tile_animation.html.erb +11 -0
  34. data/source/_icon_bullet_points.html.erb +30 -0
  35. data/source/_image_gradient_dynamic.html.erb +7 -0
  36. data/source/_intro_text.html.erb +6 -0
  37. data/source/_label_alerts.html.erb +5 -0
  38. data/source/_modal.html.erb +14 -0
  39. data/source/_navigation.html.erb +44 -0
  40. data/source/_pagination.html.erb +17 -0
  41. data/source/_progress_bar.html.erb +3 -0
  42. data/source/_progress_bar_indication.html.erb +5 -0
  43. data/source/_search_bar.html.erb +8 -0
  44. data/source/_search_tools.html.erb +58 -0
  45. data/source/_side_image.html.erb +10 -0
  46. data/source/_sliding_menu.html.erb +13 -0
  47. data/source/_snippet.html.erb +4 -0
  48. data/source/_switch.html.erb +4 -0
  49. data/source/_tables.html.erb +31 -0
  50. data/source/_tables_minimal.html.erb +31 -0
  51. data/source/_texture-legend.html.erb +24 -0
  52. data/source/_textures.html.erb +4 -0
  53. data/source/_tooltip.html.erb +6 -0
  54. data/source/_type_system_geometric.html.erb +18 -0
  55. data/source/_type_system_rounded.html.erb +18 -0
  56. data/source/_type_system_sans.html.erb +18 -0
  57. data/source/_type_system_serif.html.erb +19 -0
  58. data/source/_type_system_slab.html.erb +18 -0
  59. data/source/_type_system_traditional.html.erb +18 -0
  60. data/source/_vertical_tabs.html.erb +30 -0
  61. data/source/_video.html.erb +5 -0
  62. data/source/components.html.erb +174 -0
  63. data/source/index.html.erb +162 -0
  64. data/source/javascripts/all.js +11 -0
  65. data/source/javascripts/jquery.erToc.js +477 -0
  66. data/source/javascripts/jquery.glide.js +941 -0
  67. data/source/javascripts/staple/accordion.js +5 -0
  68. data/source/javascripts/staple/accordion_tabs.js +19 -0
  69. data/source/javascripts/staple/accordion_tabs_minimal.js +19 -0
  70. data/source/javascripts/staple/centered_navigation.js +14 -0
  71. data/source/javascripts/staple/dropdown.js +9 -0
  72. data/source/javascripts/staple/expander.js +53 -0
  73. data/source/javascripts/staple/navigation.js +23 -0
  74. data/source/javascripts/staple/search_tools.js +110 -0
  75. data/source/javascripts/staple/sliding_menu.js +13 -0
  76. data/source/javascripts/staple/vertical_tabs.js +32 -0
  77. data/source/layouts/layout.erb +1 -0
  78. data/source/refills-hero.html.erb +7 -0
  79. data/source/refills-menu.html.erb +5 -0
  80. data/source/refills-page-scripts.html.erb +66 -0
  81. data/source/stylesheets/_bourbon-nav.scss +86 -0
  82. data/source/stylesheets/_normalize.scss +425 -0
  83. data/source/stylesheets/_refills-nav.scss +102 -0
  84. data/source/stylesheets/_refills-styles.scss +543 -0
  85. data/source/stylesheets/all.scss +61 -0
  86. data/source/stylesheets/staple/_accordion-tabs-minimal.scss +60 -0
  87. data/source/stylesheets/staple/_accordion-tabs.scss +88 -0
  88. data/source/stylesheets/staple/_accordion.scss +55 -0
  89. data/source/stylesheets/staple/_badges.scss +44 -0
  90. data/source/stylesheets/staple/_breadcrumbs.scss +84 -0
  91. data/source/stylesheets/staple/_browser.scss +141 -0
  92. data/source/stylesheets/staple/_button-group.scss +81 -0
  93. data/source/stylesheets/staple/_cards.scss +132 -0
  94. data/source/stylesheets/staple/_centered-navigation.scss +251 -0
  95. data/source/stylesheets/staple/_comment.scss +60 -0
  96. data/source/stylesheets/staple/_device.scss +83 -0
  97. data/source/stylesheets/staple/_dropdown.scss +127 -0
  98. data/source/stylesheets/staple/_expander.scss +30 -0
  99. data/source/stylesheets/staple/_flashes.scss +29 -0
  100. data/source/stylesheets/staple/_footer-2.scss +117 -0
  101. data/source/stylesheets/staple/_footer.scss +76 -0
  102. data/source/stylesheets/staple/_grid-items-lines.scss +86 -0
  103. data/source/stylesheets/staple/_grid-items.scss +97 -0
  104. data/source/stylesheets/staple/_hero.scss +54 -0
  105. data/source/stylesheets/staple/_hover-tile-animation.scss +52 -0
  106. data/source/stylesheets/staple/_icon-bullet-points.scss +63 -0
  107. data/source/stylesheets/staple/_image-gradient-dynamic.scss +59 -0
  108. data/source/stylesheets/staple/_intro-text.scss +67 -0
  109. data/source/stylesheets/staple/_label-alerts.scss +11 -0
  110. data/source/stylesheets/staple/_modal.scss +147 -0
  111. data/source/stylesheets/staple/_navigation.scss +329 -0
  112. data/source/stylesheets/staple/_pagination.scss +51 -0
  113. data/source/stylesheets/staple/_progress-bar-indication.scss +39 -0
  114. data/source/stylesheets/staple/_progress-bar.scss +83 -0
  115. data/source/stylesheets/staple/_search-bar.scss +40 -0
  116. data/source/stylesheets/staple/_search-tools.scss +67 -0
  117. data/source/stylesheets/staple/_side-image.scss +59 -0
  118. data/source/stylesheets/staple/_sliding-menu.scss +63 -0
  119. data/source/stylesheets/staple/_switch.scss +77 -0
  120. data/source/stylesheets/staple/_tables-minimal.scss +60 -0
  121. data/source/stylesheets/staple/_tables.scss +88 -0
  122. data/source/stylesheets/staple/_texture-legend.scss +182 -0
  123. data/source/stylesheets/staple/_textures.scss +119 -0
  124. data/source/stylesheets/staple/_tooltip.scss +57 -0
  125. data/source/stylesheets/staple/_type-system-geometric.scss +103 -0
  126. data/source/stylesheets/staple/_type-system-rounded.scss +107 -0
  127. data/source/stylesheets/staple/_type-system-sans.scss +110 -0
  128. data/source/stylesheets/staple/_type-system-serif.scss +111 -0
  129. data/source/stylesheets/staple/_type-system-slab.scss +107 -0
  130. data/source/stylesheets/staple/_type-system-traditional.scss +114 -0
  131. data/source/stylesheets/staple/_vertical-tabs.scss +105 -0
  132. data/source/stylesheets/staple/_video.scss +21 -0
  133. data/source/type-systems.html.erb +67 -0
  134. data/source/vendor/javascripts/ZeroClipboard.min.js +9 -0
  135. data/source/vendor/javascripts/fixedsticky.js +185 -0
  136. data/source/vendor/javascripts/prism.js +13 -0
  137. data/source/vendor/javascripts/smooth-scroll.js +125 -0
  138. data/source/vendor/stylesheets/fixedsticky.css +22 -0
  139. data/source/vendor/stylesheets/prism.css +126 -0
  140. data/staple.gemspec +19 -0
  141. metadata +184 -0
@@ -0,0 +1,76 @@
1
+ .footer {
2
+ $footer-background: desaturate(darken($base-accent-color, 20), 30);
3
+ $footer-color: white;
4
+ $footer-link-color: transparentize($footer-color, .6);
5
+ $footer-disclaimer-color: transparentize($footer-color, .6);
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
+
32
+ @include media($medium-screen) {
33
+ @include span-columns(3);
34
+ @include omega(3n);
35
+ @include clearfix;
36
+ }
37
+ }
38
+
39
+ li {
40
+ text-align: center;
41
+
42
+ @include media($medium-screen) {
43
+ text-align: left;
44
+ }
45
+ }
46
+
47
+ li a {
48
+ color: $footer-link-color;
49
+
50
+ &:hover {
51
+ color: transparentize($footer-color, 0);
52
+ }
53
+ }
54
+
55
+ li h3 {
56
+ color: $footer-color;
57
+ font-size: 1em;
58
+ font-weight: 800;
59
+ margin-bottom: .4em;
60
+ }
61
+
62
+ hr {
63
+ border: 1px solid transparentize($footer-disclaimer-color, .3);
64
+ margin: 0 auto $base-spacing;
65
+ width: 12em;
66
+ }
67
+
68
+ p {
69
+ color: $footer-disclaimer-color;
70
+ font-size: .9em;
71
+ line-height: 1.5em;
72
+ margin: auto;
73
+ max-width: 35em;
74
+ text-align: center;
75
+ }
76
+ }
@@ -0,0 +1,86 @@
1
+ @mixin grid-item-columns($columns) {
2
+ width: (100% / 12) * $columns;
3
+ }
4
+
5
+ .grid-items-lines {
6
+ $grid-items-background: $base-background-color;
7
+ $grid-item-background: $base-background-color;
8
+ $grid-item-border: 1px solid transparentize($base-font-color, .8);
9
+ $grid-item-columns: 4;
10
+ $grid-item-big-columns: 8;
11
+ $grid-item-color: $base-font-color;
12
+ $grid-item-height: 14em;
13
+
14
+ @include clearfix;
15
+ position: relative;
16
+
17
+ .grid-item {
18
+ @include transition (all 0.2s ease-in-out);
19
+ height: $grid-item-height;
20
+ background: $grid-item-background;
21
+ width: 100%;
22
+ overflow: hidden;
23
+ float: left;
24
+ padding: 2em;
25
+ border-right: $grid-item-border;
26
+ border-bottom: $grid-item-border;
27
+ cursor: pointer;
28
+
29
+ @include media($large-screen) {
30
+ @include grid-item-columns($grid-item-columns);
31
+ }
32
+
33
+ &:hover {
34
+ background: transparentize($grid-item-color, .95);
35
+ }
36
+ }
37
+
38
+ .grid-item img {
39
+ display: block;
40
+ height: 2.5em;
41
+ margin-bottom: 1.2em;
42
+ opacity: .2;
43
+ }
44
+
45
+ .grid-item h1 {
46
+ color: $grid-item-color;
47
+ font-size: 1.3em;
48
+ margin-bottom: .4em;
49
+ }
50
+
51
+ .grid-item p {
52
+ color: transparentize($grid-item-color, .4);
53
+ @include media($medium-screen) {
54
+ max-width: 70%;
55
+ }
56
+ }
57
+
58
+ .grid-item-big {
59
+ @include media($large-screen) {
60
+ @include grid-item-columns($grid-item-big-columns);
61
+ }
62
+ p {
63
+ @include media($medium-screen) {
64
+ max-width: 60%;
65
+ }
66
+ }
67
+ }
68
+
69
+ // this, below, might not be the most beautiful solution but it removes the outer borders by using the background color.
70
+ .bottom-cover {
71
+ position: absolute;
72
+ bottom: 0px;
73
+ width: 100%;
74
+ height: 3px;
75
+ background: $grid-items-background;
76
+ }
77
+
78
+ .right-cover {
79
+ position: absolute;
80
+ right: 0px;
81
+ height: 100%;
82
+ width: 4px;
83
+ background: $grid-items-background;
84
+ }
85
+ }
86
+
@@ -0,0 +1,97 @@
1
+ @mixin grid-item-columns($columns) {
2
+ width: (100% / 12) * $columns;
3
+ }
4
+
5
+ .grid-items {
6
+ $grid-items-background: $base-background-color;
7
+ $grid-item-background: desaturate($base-accent-color, 30);
8
+ $grid-item-colors:
9
+ desaturate($base-accent-color, 30),
10
+ #3581A5,
11
+ #5FBEBE,
12
+ #98C79A,
13
+ #A7A891,
14
+ #BDCC97,
15
+ #979EA0;
16
+ $grid-item-border-size: 9px;
17
+ $grid-item-columns: 4;
18
+ $grid-item-big-columns: 8;
19
+ $grid-item-color: white;
20
+ $grid-item-height: 14em;
21
+
22
+ @include clearfix;
23
+
24
+ .grid-item {
25
+ @include transition (all 0.2s ease-in-out);
26
+ height: $grid-item-height;
27
+ background: $grid-item-background;
28
+ width: 100%;
29
+ overflow: hidden;
30
+ float: left;
31
+ padding: 2em;
32
+ border-top: 0;
33
+ border-bottom: $grid-item-border-size solid $grid-items-background;
34
+ border-left: $grid-item-border-size /2 solid $grid-items-background;
35
+ border-right: $grid-item-border-size /2 solid $grid-items-background;
36
+ text-align: center;
37
+ cursor: pointer;
38
+
39
+ @include media($large-screen) {
40
+ @include grid-item-columns($grid-item-columns);
41
+ }
42
+
43
+ @for $i from 1 to 8 { // assign colors from $grid-item-colors list
44
+ &:nth-child(#{$i}) {
45
+ $background-from-list: nth($grid-item-colors, $i);
46
+ background-color: $background-from-list;
47
+ box-shadow: inset 0px 0px 1px 2px darken($background-from-list, 10);
48
+ &:hover {
49
+ background-color: darken($background-from-list, 10);
50
+ background-repeat: no-repeat;
51
+ background-position: top;
52
+ background-size: cover;
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ .grid-item img {
59
+ display: block;
60
+ height: 3em;
61
+ margin: auto;
62
+ margin-bottom: 1em;
63
+ }
64
+
65
+ .grid-item h1 {
66
+ color: $grid-item-color;
67
+ font-size: 1.3em;
68
+ margin-bottom: .4em;
69
+ }
70
+
71
+ .grid-item p {
72
+ margin: auto;
73
+ color: transparentize($grid-item-color, .3);
74
+ @include media($medium-screen) {
75
+ max-width: 70%;
76
+ }
77
+ }
78
+
79
+ .grid-item-big {
80
+ @include media($large-screen) {
81
+ @include grid-item-columns($grid-item-big-columns);
82
+ }
83
+ p {
84
+ @include media($medium-screen) {
85
+ max-width: 60%;
86
+ }
87
+ }
88
+ }
89
+
90
+ .grid-item-image {
91
+ background: url(/images/lake-transparent.png);
92
+ background-color: $grid-item-background;
93
+ background-repeat: no-repeat;
94
+ background-position: top;
95
+ background-size: cover;
96
+ }
97
+ }
@@ -0,0 +1,54 @@
1
+ .hero {
2
+ $hero-background-top: #7F99BE;
3
+ $hero-background-bottom: #20392B;
4
+ $hero-color: white;
5
+ $gradient-angle: 10deg;
6
+ $hero-image: 'https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/mountains.png';
7
+
8
+ @include background(url($hero-image), linear-gradient($gradient-angle, $hero-background-bottom, $hero-background-top), no-repeat $hero-background-top scroll);
9
+
10
+ background-repeat: no-repeat;
11
+ background-position: top;
12
+ background-size: cover;
13
+ padding-bottom: 4em;
14
+
15
+ .hero-logo img {
16
+ height: 3em;
17
+ margin-bottom: 2.5em;
18
+ }
19
+
20
+ .hero-inner {
21
+ @include outer-container;
22
+ @include clearfix;
23
+ padding: 3em;
24
+ margin: auto;
25
+ text-align: center;
26
+ color: $hero-color;
27
+
28
+ .hero-copy {
29
+ text-align: center;
30
+
31
+ h1 {
32
+ font-size: 1.6em;
33
+ margin-bottom: .5em;
34
+
35
+ @include media($large-screen) {
36
+ font-size: 1.8em;
37
+ }
38
+ }
39
+
40
+ p {
41
+ font-family: $serif;
42
+ margin: auto;
43
+ margin-bottom: 3em;
44
+ font-weight: 200;
45
+ line-height: 1.4em;
46
+
47
+ @include media($large-screen) {
48
+ font-size: 1.1em;
49
+ max-width: 40%;
50
+ }
51
+ }
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,52 @@
1
+ .hover-tile-outer {
2
+ $hover-tile-height: 10em;
3
+
4
+ background-position: bottom;
5
+ background-size: cover;
6
+ background: url("/images/mountains.png");
7
+ background-size: cover;
8
+ background-color: $base-accent-color;
9
+ border: 1px solid $base-border-color;
10
+ height: $hover-tile-height;
11
+ margin-bottom: $base-line-height;
12
+ cursor: pointer;
13
+
14
+ @include media($medium-screen) {
15
+ width: 40%;
16
+ }
17
+
18
+ .hover-tile-container {
19
+ height: $hover-tile-height;
20
+ overflow: hidden;
21
+ }
22
+
23
+ .hover-tile-container:hover > .hover-tile {
24
+ @include transform(translate(0, -100%));
25
+ }
26
+
27
+ .hover-tile {
28
+ @include transition(all, .2s ease-in-out);
29
+ background:inherit;
30
+ color: white;
31
+ height:inherit;
32
+ padding: 1em 1.5em;
33
+ }
34
+
35
+ .hover-tile-visible {
36
+ color: transparentize(white, .3);
37
+ font-size: 2em;
38
+ font-weight: 200;
39
+ padding-top: 1.5em;
40
+ text-align: center;
41
+ }
42
+
43
+ .hover-tile-hidden {
44
+ background: transparentize(black, .5);
45
+ h4 {
46
+ margin-bottom: .5em;
47
+ }
48
+ p {
49
+ color: transparentize(white, .3);
50
+ }
51
+ }
52
+ }
@@ -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
+ .image-gradient-dynamic {
2
+ $image-gradient-color-top: red;
3
+ $transparency-top: .9;
4
+ $image-gradient-color-bottom: green;
5
+ $transparency-bottom: .6;
6
+ $vertical-angle: 0deg;
7
+
8
+ $image-gradient-color-left: teal;
9
+ $transparency-left: .8;
10
+ $image-gradient-color-right: yellow;
11
+ $transparency-right: .8;
12
+ $horizontal-angle: 90deg;
13
+
14
+ position: relative;
15
+ line-height: 0;
16
+ width: 100%;
17
+ margin-bottom: $base-line-height;
18
+
19
+ img {
20
+ width: 100%;
21
+ height: auto;
22
+ position: relative;
23
+ top: 0;
24
+ left: 0;
25
+ }
26
+
27
+ .copy {
28
+ position: absolute;
29
+ top: 50%;
30
+ left: 50%;
31
+ margin: auto;
32
+ z-index: 999;
33
+ text-align: center;
34
+ @include transform(translate(-50%, -50%));
35
+
36
+ p {
37
+ line-height: 1.5em;
38
+ padding: 1em 2em;
39
+ position: relative;
40
+ color: white;
41
+ font-weight: 800;
42
+ }
43
+ }
44
+
45
+ .overlay {
46
+ @include linear-gradient($vertical-angle, transparentize($image-gradient-color-top, $transparency-top),
47
+ transparentize($image-gradient-color-bottom, $transparency-bottom));
48
+ display: block;
49
+ @include position(absolute, 0px 0px 0px 0px);
50
+
51
+ &:after {
52
+ content: '';
53
+ @include linear-gradient($horizontal-angle, transparentize($image-gradient-color-left, $transparency-left),
54
+ transparentize($image-gradient-color-right, $transparency-right));
55
+ display: block;
56
+ @include position(absolute, 0px 0px 0px 0px);
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,67 @@
1
+ .intro-text {
2
+ $intro-text-width: 60%;
3
+
4
+ margin-bottom: 5em;
5
+ margin-top: 4em;
6
+ text-align: center;
7
+
8
+ h2 {
9
+ font-family: $serif;
10
+ font-weight: 800;
11
+ margin-bottom: .3em;
12
+
13
+ @include media($large-screen) {
14
+ font-size: 3em;
15
+ margin-bottom: .4em;
16
+ }
17
+ }
18
+
19
+ h3 {
20
+ background: $base-accent-color;
21
+ color: white;
22
+ display: inline-block;
23
+ font-size: .7em;
24
+ font-weight: 800;
25
+ margin-bottom: 2em;
26
+ padding: 3px 8px;
27
+ text-transform: uppercase;
28
+
29
+ @include media($large-screen) {
30
+ margin-bottom: 3.3em;
31
+ }
32
+ }
33
+
34
+ h4 {
35
+ color: lighten($base-font-color, 20);
36
+ font-size: 1.3em;
37
+ font-weight: 300;
38
+ line-height: 1.4em;
39
+ margin: 0 auto 1em;
40
+
41
+ @include media($large-screen) {
42
+ font-size: 1.7em;
43
+ line-height: 1.35em;
44
+ margin: 0 auto 1em;
45
+ width: $intro-text-width;
46
+ }
47
+ }
48
+
49
+ p {
50
+ margin: auto;
51
+
52
+ @include media($large-screen) {
53
+ width: $intro-text-width;
54
+ }
55
+
56
+ a {
57
+ font-size: .8em;
58
+ font-weight: 400;
59
+ text-transform: uppercase;
60
+
61
+ span {
62
+ font-size: 1.3em;
63
+ line-height: 0;
64
+ }
65
+ }
66
+ }
67
+ }
@@ -0,0 +1,11 @@
1
+ $alert-red: #FBE3E4;
2
+ $alert-yellow: #FFF6BF;
3
+ $alert-green: #E6EFC2;
4
+
5
+ $label-alerts: (alert: $alert-yellow, error: $alert-red, notice: lighten($base-accent-color, 40), success: $alert-green);
6
+
7
+ @each $alert, $color in $label-alerts {
8
+ .label-#{$alert} {
9
+ color: darken($color, 45);
10
+ }
11
+ }
@@ -0,0 +1,147 @@
1
+ .modal {
2
+ $modal-padding: 3em;
3
+ $modal-background: $base-background-color;
4
+ $modal-close-color: $light-gray;
5
+ $modal-image-height: 135px;
6
+ $modal-image-width: $modal-image-height;
7
+
8
+ label {
9
+ cursor: pointer;
10
+ margin-bottom: 0;
11
+ }
12
+
13
+ label img {
14
+ $img-width: 300px;
15
+ border-radius: $img-width/2;
16
+ display: block;
17
+ max-width: $img-width;
18
+ }
19
+
20
+ input[type="checkbox"] {
21
+ display: none;
22
+ }
23
+
24
+ .btn {
25
+ @extend button;
26
+ }
27
+
28
+ .modal-open {
29
+ overflow: hidden;
30
+ }
31
+
32
+ .modal-window { // overlay
33
+ @include transition(opacity .25s ease);
34
+ @include position(fixed, 0px 0px 0px 0px);
35
+ background: rgba(0,0,0, .85);
36
+ opacity: 0;
37
+ text-align: left;
38
+ visibility: hidden;
39
+ z-index: 99999999999;
40
+
41
+ .modal-bg {
42
+ @include position(absolute, 0px 0px 0px 0px);
43
+ cursor: pointer;
44
+ }
45
+ }
46
+
47
+ .modal-close {
48
+ @include position(absolute, ($modal-padding /2) ($modal-padding /2) null null);
49
+ @include size(1.5em);
50
+ cursor: pointer;
51
+ background: $modal-background;
52
+
53
+ &:after,
54
+ &:before {
55
+ @include position(absolute, 3px 3px 0 50%);
56
+ @include transform(rotate(45deg));
57
+ @include size(.15em 1.5em);
58
+ background: $modal-close-color;
59
+ content: '';
60
+ display: block;
61
+ margin: -3px 0 0 -1px;
62
+ }
63
+
64
+ &:hover:after,
65
+ &:hover:before {
66
+ background: darken($modal-close-color, 10);
67
+ }
68
+
69
+ &:before {
70
+ @include transform(rotate(-45deg));
71
+ }
72
+ }
73
+
74
+ .modal-inner {
75
+ @include transition(opacity .25s ease);
76
+ border-radius: $base-border-radius;
77
+ background: $modal-background;
78
+ margin: auto;
79
+ max-height: 95%;
80
+ position: relative;
81
+ overflow: auto;
82
+ width: 95%;
83
+ padding: $modal-padding /2;
84
+ margin-top: .6em;
85
+
86
+ @include media($medium-screen) {
87
+ padding: $modal-padding;
88
+ width: 60%;
89
+ max-height: 60%;
90
+ margin-top: 10em;
91
+ }
92
+
93
+ @include media($large-screen) {
94
+ width: 50%;
95
+ margin-top: 10em;
96
+ }
97
+
98
+ h1 {
99
+ color: $base-font-color;
100
+ margin-bottom: .6em;
101
+ text-align: left;
102
+ text-transform: capitalize;
103
+ }
104
+
105
+ p.body, p.intro {
106
+ font-size: $base-font-size;
107
+ max-width: 100% !important;
108
+ text-align: left;
109
+
110
+ &.intro {
111
+ color: $blue;
112
+ line-height: 1.6em;
113
+ }
114
+
115
+ &.body {
116
+ color: $base-font-color;
117
+ line-height: 1.45em;
118
+
119
+ @include media($medium-screen) {
120
+ @include columns(2 8em);
121
+ }
122
+ }
123
+ }
124
+
125
+ a.cta {
126
+ color: white;
127
+ display: inline-block;
128
+ margin-right: .5em;
129
+ margin-top: 1em;
130
+
131
+ &:last-child {
132
+ padding: 0 2em;
133
+ }
134
+ }
135
+ }
136
+
137
+ .modal-state:checked + .modal-window {
138
+ opacity: 1;
139
+ visibility: visible;
140
+ }
141
+
142
+ .modal-state:checked + .modal-window .modal-inner {
143
+ top: 0;
144
+ }
145
+ }
146
+
147
+ // Based on code by Kasper Mikiewicz