refills 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (188) hide show
  1. checksums.yaml +4 -4
  2. data/.hound.yml +3 -2
  3. data/.ruby-version +1 -1
  4. data/.scss-lint.yml +97 -24
  5. data/CONTRIBUTING.md +4 -3
  6. data/Gemfile +13 -10
  7. data/README.md +31 -15
  8. data/circle.yml +7 -0
  9. data/config.rb +4 -13
  10. data/{lib → helpers}/snippet_helpers.rb +14 -6
  11. data/lib/refills/version.rb +1 -1
  12. data/refills.gemspec +2 -2
  13. data/sache.json +1 -1
  14. data/source/_badges.html.erb +1 -1
  15. data/source/_cards.html.erb +1 -1
  16. data/source/_centered_navigation.html.erb +5 -5
  17. data/source/_comment.html.erb +2 -2
  18. data/source/_device.html.erb +0 -1
  19. data/source/_expander.html.erb +2 -2
  20. data/source/_flex_boxes.html.erb +6 -6
  21. data/source/_footer.html.erb +1 -1
  22. data/source/_footer_2.html.erb +1 -1
  23. data/source/_grid_items.html.erb +7 -7
  24. data/source/_grid_items_lines.html.erb +8 -8
  25. data/source/_hero.html.erb +4 -9
  26. data/source/_icon_bullet_points.html.erb +6 -7
  27. data/source/_logo_section.html.erb +8 -0
  28. data/source/_modal.html.erb +2 -2
  29. data/source/_navigation.html.erb +2 -3
  30. data/source/_search_bar.html.erb +1 -1
  31. data/source/_search_tools.html.erb +54 -52
  32. data/source/_side_image.html.erb +0 -1
  33. data/source/_sliding_panel.html.erb +13 -0
  34. data/source/_type_system_geometric.html.erb +4 -3
  35. data/source/_type_system_rounded.html.erb +3 -3
  36. data/source/_type_system_sans.html.erb +3 -3
  37. data/source/_type_system_serif.html.erb +4 -4
  38. data/source/_type_system_slab.html.erb +3 -3
  39. data/source/_type_system_traditional.html.erb +3 -3
  40. data/source/components.html.erb +9 -5
  41. data/source/images/background-image.png +0 -0
  42. data/source/images/cosmin_capitanu_screen.jpg +0 -0
  43. data/source/images/new.svg +22 -0
  44. data/source/images/placeholder_square.png +0 -0
  45. data/source/images/placeholder_wide.png +0 -0
  46. data/source/images/placeholder_wider.png +0 -0
  47. data/source/index.html.erb +10 -3
  48. data/source/javascripts/jquery.erToc.js +1 -6
  49. data/source/javascripts/refills/accordion_base.js +5 -0
  50. data/source/javascripts/refills/accordion_tabs.js +1 -2
  51. data/source/javascripts/refills/accordion_tabs_minimal.js +1 -2
  52. data/source/javascripts/refills/base-accordion.js +5 -0
  53. data/source/javascripts/refills/centered_navigation.js +27 -9
  54. data/source/javascripts/refills/coffeescript/accordion.coffee +3 -4
  55. data/source/javascripts/refills/coffeescript/accordion_base.coffee +6 -0
  56. data/source/javascripts/refills/coffeescript/accordion_tabs.coffee +9 -12
  57. data/source/javascripts/refills/coffeescript/accordion_tabs_minimal.coffee +9 -12
  58. data/source/javascripts/refills/coffeescript/animate.coffee +4 -7
  59. data/source/javascripts/refills/coffeescript/base-accordion.coffee +5 -0
  60. data/source/javascripts/refills/coffeescript/centered_navigation.coffee +6 -8
  61. data/source/javascripts/refills/coffeescript/dropdown.coffee +6 -10
  62. data/source/javascripts/refills/coffeescript/expander.coffee +4 -6
  63. data/source/javascripts/refills/coffeescript/fade_in.coffee +6 -8
  64. data/source/javascripts/refills/coffeescript/modal.coffee +7 -11
  65. data/source/javascripts/refills/coffeescript/navigation.coffee +6 -8
  66. data/source/javascripts/refills/coffeescript/parallax.coffee +9 -8
  67. data/source/javascripts/refills/coffeescript/scroll_on_page.coffee +6 -11
  68. data/source/javascripts/refills/coffeescript/search_tools.coffee +0 -85
  69. data/source/javascripts/refills/coffeescript/sliding_panel.coffee +6 -0
  70. data/source/javascripts/refills/coffeescript/vertical_tabs.coffee +21 -21
  71. data/source/javascripts/refills/dropdown.js +8 -8
  72. data/source/javascripts/refills/expander.js +1 -4
  73. data/source/javascripts/refills/modal.js +1 -1
  74. data/source/javascripts/refills/navigation.js +26 -7
  75. data/source/javascripts/refills/navigation_centered.js +13 -0
  76. data/source/javascripts/refills/scroll_on_page.js +8 -5
  77. data/source/javascripts/refills/search_tools.js +2 -2
  78. data/source/javascripts/refills/sliding_panel.js +6 -0
  79. data/source/javascripts/refills/unstyled/accordion.js +5 -0
  80. data/source/javascripts/refills/unstyled/accordion_tabs.js +18 -0
  81. data/source/javascripts/refills/unstyled/dropdown.js +12 -0
  82. data/source/javascripts/refills/unstyled/expander.js +8 -0
  83. data/source/javascripts/refills/unstyled/modal.js +17 -0
  84. data/source/javascripts/refills/unstyled/navigation.js +13 -0
  85. data/source/javascripts/refills/unstyled/navigation_centered.js +13 -0
  86. data/source/javascripts/refills/unstyled/scroll_on_page.js +29 -0
  87. data/source/javascripts/refills/unstyled/sliding_panel.js +6 -0
  88. data/source/javascripts/refills/unstyled/vertical_tabs.js +32 -0
  89. data/source/layouts/layout.erb +3 -3
  90. data/source/refills-hero.html.erb +6 -3
  91. data/source/stylesheets/_bourbon-nav.scss +14 -7
  92. data/source/stylesheets/_refill.scss +215 -0
  93. data/source/stylesheets/_refills-footer.scss +62 -0
  94. data/source/stylesheets/_refills-header.scss +113 -0
  95. data/source/stylesheets/_refills-menu.scss +91 -0
  96. data/source/stylesheets/_refills-nav.scss +13 -13
  97. data/source/stylesheets/_refills-styles.scss +8 -644
  98. data/source/stylesheets/_refills-variables.scss +20 -0
  99. data/source/stylesheets/all.css.scss +78 -0
  100. data/source/stylesheets/refills/_accordion-tabs-minimal.scss +9 -14
  101. data/source/stylesheets/refills/_accordion-tabs.scss +11 -16
  102. data/source/stylesheets/refills/_accordion.scss +13 -29
  103. data/source/stylesheets/refills/_animate.scss +9 -10
  104. data/source/stylesheets/refills/_badges.scss +18 -35
  105. data/source/stylesheets/refills/_breadcrumbs.scss +15 -19
  106. data/source/stylesheets/refills/_button-group.scss +6 -12
  107. data/source/stylesheets/refills/_cards.scss +22 -31
  108. data/source/stylesheets/refills/_centered-navigation.scss +16 -13
  109. data/source/stylesheets/refills/_comment.scss +3 -6
  110. data/source/stylesheets/refills/_device.scss +29 -40
  111. data/source/stylesheets/refills/_dropdown.scss +17 -27
  112. data/source/stylesheets/refills/_expander.scss +14 -21
  113. data/source/stylesheets/refills/_fade-in.scss +7 -11
  114. data/source/stylesheets/refills/_flashes.scss +21 -33
  115. data/source/stylesheets/refills/_flex-boxes.scss +18 -26
  116. data/source/stylesheets/refills/_footer-2.scss +19 -33
  117. data/source/stylesheets/refills/_footer.scss +15 -38
  118. data/source/stylesheets/refills/_grid-items-lines.scss +12 -21
  119. data/source/stylesheets/refills/_grid-items.scss +31 -40
  120. data/source/stylesheets/refills/_hero.scss +22 -55
  121. data/source/stylesheets/refills/_hover-tile-animation.scss +8 -17
  122. data/source/stylesheets/refills/_icon-bullet-points.scss +26 -35
  123. data/source/stylesheets/refills/_image-gradient-dynamic.scss +31 -20
  124. data/source/stylesheets/refills/_logo-section.scss +25 -0
  125. data/source/stylesheets/refills/_maps.scss +2 -2
  126. data/source/stylesheets/refills/_modal.scss +32 -45
  127. data/source/stylesheets/refills/_navigation.scss +33 -39
  128. data/source/stylesheets/refills/_pagination.scss +10 -23
  129. data/source/stylesheets/refills/_progress-bar-indication.scss +8 -15
  130. data/source/stylesheets/refills/_progress-bar.scss +24 -26
  131. data/source/stylesheets/refills/_ribbon.scss +4 -5
  132. data/source/stylesheets/refills/_scroll-on-page.scss +12 -15
  133. data/source/stylesheets/refills/_search-bar.scss +6 -13
  134. data/source/stylesheets/refills/_search-tools.scss +41 -42
  135. data/source/stylesheets/refills/_side-image.scss +8 -20
  136. data/source/stylesheets/refills/_sliding-panel.scss +79 -0
  137. data/source/stylesheets/refills/_stats.scss +2 -3
  138. data/source/stylesheets/refills/_switch.scss +13 -16
  139. data/source/stylesheets/refills/_tables-minimal.scss +12 -24
  140. data/source/stylesheets/refills/_tables.scss +11 -20
  141. data/source/stylesheets/refills/_texture-legend.scss +17 -13
  142. data/source/stylesheets/refills/_textures.scss +13 -9
  143. data/source/stylesheets/refills/_tooltip.scss +9 -16
  144. data/source/stylesheets/refills/_type-system-geometric.scss +14 -17
  145. data/source/stylesheets/refills/_type-system-rounded.scss +19 -19
  146. data/source/stylesheets/refills/_type-system-sans.scss +26 -26
  147. data/source/stylesheets/refills/_type-system-serif.scss +17 -20
  148. data/source/stylesheets/refills/_type-system-slab.scss +14 -17
  149. data/source/stylesheets/refills/_type-system-traditional.scss +18 -21
  150. data/source/stylesheets/refills/_vertical-tabs.scss +26 -30
  151. data/source/stylesheets/refills/_video.scss +1 -1
  152. data/source/stylesheets/refills/unstyled/_accordion-tabs.scss +36 -0
  153. data/source/stylesheets/refills/unstyled/_accordion.scss +17 -0
  154. data/source/stylesheets/refills/unstyled/_button-group.scss +30 -0
  155. data/source/stylesheets/refills/unstyled/_cards.scss +20 -0
  156. data/source/stylesheets/refills/unstyled/_comment.scss +28 -0
  157. data/source/stylesheets/refills/unstyled/_dropdown.scss +42 -0
  158. data/source/stylesheets/refills/unstyled/_expander.scss +20 -0
  159. data/source/stylesheets/refills/unstyled/_footer.scss +64 -0
  160. data/source/stylesheets/refills/unstyled/_hover-menu.scss +60 -0
  161. data/source/stylesheets/refills/unstyled/_modal.scss +71 -0
  162. data/source/stylesheets/refills/unstyled/_navigation-centered.scss +92 -0
  163. data/source/stylesheets/refills/unstyled/_navigation.scss +82 -0
  164. data/source/stylesheets/refills/unstyled/_scroll-on-page.scss +22 -0
  165. data/source/stylesheets/refills/unstyled/_search-bar.scss +26 -0
  166. data/source/stylesheets/refills/unstyled/_sliding-panel.scss +36 -0
  167. data/source/stylesheets/refills/unstyled/_switch.scss +50 -0
  168. data/source/stylesheets/refills/unstyled/_tooltip.scss +36 -0
  169. data/source/stylesheets/refills/unstyled/_vertical-tabs.scss +53 -0
  170. data/source/stylesheets/vendor/prism.css +4 -4
  171. data/source/svgs/_menu_icon.html.erb +6 -0
  172. data/source/svgs/_refills_logo.html.erb +8 -0
  173. data/source/type-systems.html.erb +5 -1
  174. data/spec/refills/import_generator_spec.rb +1 -1
  175. metadata +59 -19
  176. data/.travis.yml +0 -8
  177. data/source/_sliding_menu.html.erb +0 -13
  178. data/source/images/placeholder_logo_1.png +0 -0
  179. data/source/images/placeholder_logo_1_dark.png +0 -0
  180. data/source/images/placeholder_logo_2.png +0 -0
  181. data/source/images/placeholder_logo_2_dark.png +0 -0
  182. data/source/images/placeholder_logo_3.png +0 -0
  183. data/source/images/placeholder_logo_3_dark.png +0 -0
  184. data/source/images/placeholder_logo_4.png +0 -0
  185. data/source/images/placeholder_logo_4_dark.png +0 -0
  186. data/source/javascripts/refills/sliding_menu.js +0 -6
  187. data/source/stylesheets/all.scss +0 -66
  188. data/source/stylesheets/refills/_sliding-menu.scss +0 -86
@@ -1,23 +1,19 @@
1
- .button-group {
2
- ///////////////////////////////////////////////////////////////////////////////////
1
+ .button-group {
3
2
  $base-border-color: gainsboro !default;
4
3
  $base-border-radius: 3px !default;
5
4
  $base-line-height: 1.5em !default;
6
5
  $base-spacing: 1.5em !default;
7
6
  $base-font-size: 1em !default;
8
7
  $base-background-color: white !default;
9
- $base-accent-color: #477DCA !default;
10
- $base-link-color: $base-accent-color !default;
8
+ $action-color: #477DCA !default;
11
9
  $dark-gray: #333 !default;
12
- $large-screen: em(860) !default;
10
+ $large-screen: 53.75em !default;
13
11
  $base-font-color: $dark-gray !default;
14
- //////////////////////////////////////////////////////////////////////////////////
15
-
16
12
  $button-group-background: $base-background-color;
17
13
  $button-group-color: lighten($base-font-color, 30%);
18
14
  $button-group-border: 1px solid silver;
19
15
  $button-group-inner-border: 1px solid lighten(silver, 18%);
20
- $button-group-background-checked: $base-accent-color;
16
+ $button-group-background-checked: $action-color;
21
17
  $button-group-color-checked: white;
22
18
  $button-group-border-checked: darken($button-group-background-checked, 15%);
23
19
 
@@ -61,8 +57,7 @@
61
57
  }
62
58
 
63
59
  &:first-child .button-group-item {
64
- border-top-left-radius: $base-border-radius;
65
- border-top-right-radius: $base-border-radius;
60
+ @include border-top-radius($base-border-radius);
66
61
  border-top: $button-group-border;
67
62
 
68
63
  @include media($large-screen) {
@@ -74,8 +69,7 @@
74
69
  }
75
70
 
76
71
  &:last-child .button-group-item {
77
- border-bottom-left-radius: $base-border-radius;
78
- border-bottom-right-radius: $base-border-radius;
72
+ @include border-bottom-radius($base-border-radius);
79
73
  border-bottom: $button-group-border;
80
74
 
81
75
  @include media($large-screen) {
@@ -1,63 +1,58 @@
1
1
  .cards {
2
- @include display(flex);
3
- @include flex-wrap(wrap);
4
- @include justify-content(space-between);
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+ justify-content: space-between;
5
5
  }
6
6
 
7
7
  .card {
8
- ///////////////////////////////////////////////////////////////////////////////////
9
8
  $base-border-color: gainsboro !default;
10
9
  $base-border-radius: 3px !default;
11
10
  $base-background-color: white !default;
12
11
  $base-spacing: 1.5em !default;
13
- $base-accent-color: #477DCA !default;
14
- $base-link-color: $base-accent-color !default;
12
+ $action-color: #477DCA !default;
15
13
  $dark-gray: #333 !default;
16
14
  $base-font-color: $dark-gray !default;
17
- //////////////////////////////////////////////////////////////////////////////////
18
-
19
15
  $card-border-color: $base-border-color;
20
16
  $card-border: 1px solid $card-border-color;
21
17
  $card-background: lighten($card-border-color, 10%);
22
18
  $card-header-background: $card-background;
23
- $card-hover-background: lighten($card-background, 5%);
24
- $card-image-background: #DBD199;
25
- $card-image-hover-background: lighten($card-image-background, 5%);
26
19
  $card-margin: 1em;
20
+ $card-image-hover-opacity: 0.7;
21
+ $card-image-hover-color: #F8F2B4;
27
22
 
28
- @include flex-basis(15em);
29
- @include flex-grow(1);
30
- @include transition (all 0.2s ease-in-out);
31
23
  background-color: $card-background;
32
- border-radius: $base-border-radius;
33
24
  border: $card-border;
25
+ border-radius: $base-border-radius;
34
26
  box-shadow: 0 2px 4px darken($base-background-color, 10%);
35
27
  cursor: pointer;
28
+ flex-basis: 15em;
29
+ flex-grow: 1;
36
30
  margin: 0 $card-margin $base-spacing $card-margin;
37
31
  position: relative;
38
- position: relative;
32
+ transition: all 0.2s ease-in-out;
39
33
 
40
34
  .card-image {
41
- overflow: hidden;
35
+ background-color: $card-image-hover-color;
36
+ height: 150px;
42
37
  max-height: 150px;
38
+ overflow: hidden;
43
39
 
44
40
  img {
45
- @include transition (all 0.2s ease-in-out);
46
- background: $card-image-background;
47
- border-top-left-radius: $base-border-radius;
48
- border-top-right-radius: $base-border-radius;
41
+ @include border-top-radius($base-border-radius);
42
+ opacity: 1;
43
+ transition: all 0.2s ease-in-out;
49
44
  width: 100%;
50
45
  }
51
46
  }
52
47
 
53
48
  .card-header {
54
- @include transition (all 0.2s ease-in-out);
55
49
  background-color: $card-header-background;
56
50
  border-bottom: $card-border;
57
51
  border-radius: $base-border-radius $base-border-radius 0 0;
58
52
  font-weight: bold;
59
53
  line-height: 1.5em;
60
54
  padding: ($base-spacing / 3) ($base-spacing / 2);
55
+ transition: all 0.2s ease-in-out;
61
56
  }
62
57
 
63
58
  .card-copy {
@@ -69,17 +64,13 @@
69
64
  margin: 0 0 ($base-spacing / 2);
70
65
  }
71
66
  }
72
-
67
+
73
68
  &:focus,
74
69
  &:hover {
75
- background-color: $card-hover-background;
76
-
77
- .card-image img {
78
- background: $card-image-hover-background;
79
- }
80
-
81
- .card-header {
82
- background-color: $card-hover-background;
70
+ cursor: pointer;
71
+
72
+ img {
73
+ opacity: $card-image-hover-opacity;
83
74
  }
84
75
  }
85
76
 
@@ -1,11 +1,8 @@
1
1
  .centered-navigation {
2
- ///////////////////////////////////////////////////////////////////////////////////
3
2
  $base-border-radius: 3px !default;
4
3
  $dark-gray: #333 !default;
5
- $large-screen: em(860) !default;
4
+ $large-screen: 53.75em !default;
6
5
  $base-font-color: $dark-gray !default;
7
- //////////////////////////////////////////////////////////////////////////////////
8
-
9
6
  $centered-navigation-padding: 1em;
10
7
  $centered-navigation-logo-height: 2em;
11
8
  $centered-navigation-background: #E7F1EC;
@@ -34,8 +31,8 @@
34
31
 
35
32
  img {
36
33
  max-height: $centered-navigation-height;
37
- opacity: .6;
38
- padding: .8em 0;
34
+ opacity: 0.6;
35
+ padding: 0.8em 0;
39
36
  }
40
37
 
41
38
  @include media($horizontal-bar-mode) {
@@ -47,7 +44,6 @@
47
44
  color: $centered-navigation-color;
48
45
  display: block;
49
46
  float: right;
50
- font-weight: 700;
51
47
  line-height: $centered-navigation-height;
52
48
  margin: 0;
53
49
  padding-right: $centered-navigation-submenu-padding;
@@ -74,12 +70,12 @@
74
70
  }
75
71
 
76
72
  ul.centered-navigation-menu {
77
- -webkit-transform-style: preserve-3d; // stop webkit flicker
78
73
  clear: both;
79
74
  display: none;
80
75
  margin: 0 auto;
81
76
  overflow: visible;
82
77
  padding: 0;
78
+ -webkit-transform-style: preserve-3d; // stop webkit flicker
83
79
  width: 100%;
84
80
  z-index: 99999;
85
81
 
@@ -138,7 +134,7 @@
138
134
  display: none;
139
135
  line-height: 0;
140
136
 
141
- @include media($large-screen) {
137
+ @include media($horizontal-bar-mode) {
142
138
  display: inline;
143
139
  }
144
140
  }
@@ -170,7 +166,7 @@
170
166
  padding-right: 0.6em;
171
167
  }
172
168
 
173
- > a:after {
169
+ > a::after {
174
170
  @include position(absolute, auto -0.4em auto auto);
175
171
  color: $centered-navigation-color;
176
172
  content: "\25BE";
@@ -193,7 +189,7 @@
193
189
  margin-right: $centered-navigation-submenu-padding;
194
190
  }
195
191
 
196
- &:after {
192
+ &::after {
197
193
  content: "›";
198
194
  font-size: 1.2em;
199
195
  position: absolute;
@@ -222,13 +218,20 @@
222
218
  top: 1.5em;
223
219
  }
224
220
 
225
- .submenu {
221
+ .submenu.fly-out-right {
226
222
  @include media($horizontal-bar-mode) {
227
223
  left: $centered-navigation-submenu-width - 0.2em;
228
224
  top: 0;
229
225
  }
230
226
  }
231
227
 
228
+ .submenu.fly-out-left {
229
+ @include media($horizontal-bar-mode) {
230
+ left: -$centered-navigation-submenu-width + 0.2em;
231
+ top: 0;
232
+ }
233
+ }
234
+
232
235
  li {
233
236
  display: block;
234
237
  padding-right: 0;
@@ -244,7 +247,7 @@
244
247
  &:last-child > a {
245
248
  border-bottom-left-radius: $base-border-radius;
246
249
  border-bottom-right-radius: $base-border-radius;
247
- padding-bottom: .7em;
250
+ padding-bottom: 0.7em;
248
251
  }
249
252
  }
250
253
 
@@ -1,17 +1,14 @@
1
1
  .comment {
2
- ///////////////////////////////////////////////////////////////////////////////////
3
2
  $base-border-radius: 3px !default;
4
3
  $base-spacing: 1.5em !default;
5
- $base-accent-color: #477DCA !default;
4
+ $action-color: #477DCA !default;
6
5
  $dark-gray: #333 !default;
7
6
  $base-font-color: $dark-gray !default;
8
- //////////////////////////////////////////////////////////////////////////////////
9
-
10
7
  $comment-gutter: 1.4em;
11
8
  $comment-image-padding: 0.7em;
12
9
  $comment-image-width: 4em;
13
10
  $comment-color: $base-font-color;
14
- $comment-background: lighten($base-accent-color, 15%);
11
+ $comment-background: lighten($action-color, 15%);
15
12
  $comment-detail-color: transparentize($comment-color, 0.5);
16
13
  $comment-image-vert-alignment: top;
17
14
 
@@ -41,8 +38,8 @@
41
38
  }
42
39
 
43
40
  .comment-reverse-order & {
44
- padding-right: 0;
45
41
  padding-left: 10px;
42
+ padding-right: 0;
46
43
  }
47
44
  }
48
45
 
@@ -1,19 +1,7 @@
1
1
  .device-background {
2
- ///////////////////////////////////////////////////////////////////////////////////
3
2
  $base-border-radius: 3px !default;
4
- $base-accent-color: #477DCA !default;
5
- $large-screen: em(860) !default;
6
-
7
- p {
8
- line-height: 1.5em;
9
- }
10
-
11
- h4 {
12
- font-size: 1.5em;
13
- margin: 0;
14
- }
15
- //////////////////////////////////////////////////////////////////////////////////
16
-
3
+ $action-color: #477DCA !default;
4
+ $large-screen: 53.75em !default;
17
5
  $device-padding-vertical: 5em;
18
6
  $device-padding-horizontal: 0.4em;
19
7
  $device-screen-width: 14em;
@@ -21,20 +9,21 @@
21
9
  $device-background: darken(gray, 40%);
22
10
  $device-backside-background: darken($device-background, 10%);
23
11
  $device-text-color: white;
24
- $device-background-top: #162C4C;
12
+ $device-background-top: #162C4C;
25
13
  $device-background-bottom: #0A120D;
26
14
  $gradient-angle: 10deg;
27
- $device-image: 'https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/mountains.png';
28
- $device-screen-image: 'https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/cosmin_capitanu_screen.jpg';
15
+ $device-image: "https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/mountains.png";
16
+ $device-screen-image: "https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/cosmin_capitanu_screen.jpg";
29
17
 
30
- @include background(url($device-image), linear-gradient($gradient-angle, $device-background-bottom, $device-background-top), no-repeat $device-background-top scroll);
18
+ background: url($device-image),
19
+ linear-gradient($gradient-angle, $device-background-bottom, $device-background-top),
20
+ no-repeat $device-background-top scroll;
31
21
  background-repeat: no-repeat;
32
22
  background-size: cover;
33
23
  min-height: 20em;
34
24
  width: 100%;
35
25
 
36
26
  .device-text {
37
- color: $device-text-color;
38
27
  padding: 2em;
39
28
 
40
29
  @include media($large-screen) {
@@ -45,18 +34,17 @@
45
34
 
46
35
  h4 {
47
36
  border-bottom: 1px solid transparentize($device-text-color, 0.7);
48
- margin-bottom: 0.5em;
37
+ color: $device-text-color;
38
+ font-size: 1.5em;
39
+ margin: 0 0 0.5em 0;
49
40
  padding-bottom: 0.5em;
50
41
  }
51
42
 
52
43
  p {
44
+ color: $device-text-color;
45
+ line-height: 1.5em;
53
46
  margin-bottom: 1.5em;
54
47
  }
55
-
56
- button {
57
- @include button(flat, $base-accent-color);
58
- padding: 0.7em 1em;
59
- }
60
48
  }
61
49
 
62
50
  .device {
@@ -64,32 +52,33 @@
64
52
  position: relative;
65
53
 
66
54
  @include media($large-screen) {
67
- @include transform(
68
- perspective(800px)
69
- translateX(0px)
70
- translateY(-100px)
71
- translateZ(50px)
72
- rotateX(0deg)
73
- rotateY(-20deg)
74
- rotateZ(-0deg));
75
55
  background: $device-background;
76
56
  border-radius: 2em;
77
- box-shadow:
78
- 1px 0px lighten($device-backside-background, 20%),
79
- 4px 0px lighten($device-backside-background, 2%),
80
- 7px 0px $device-backside-background,
81
- 10px 0px $device-backside-background,
82
- 13px 0px $device-backside-background;
57
+ box-shadow:
58
+ 1px 0 lighten($device-backside-background, 20%),
59
+ 4px 0 lighten($device-backside-background, 2%),
60
+ 7px 0 $device-backside-background,
61
+ 10px 0 $device-backside-background,
62
+ 13px 0 $device-backside-background;
83
63
  display: block;
84
64
  float: right;
85
65
  margin-bottom: -12em;
86
66
  margin-right: 5em;
87
67
  padding: $device-padding-vertical 0;
68
+ transform:
69
+ perspective(800px)
70
+ translateX(0)
71
+ translateY(-100px)
72
+ translateZ(50px)
73
+ rotateX(0)
74
+ rotateY(-20deg)
75
+ rotateZ(0)
76
+ ;
88
77
  width: $device-screen-width + (2 * $device-padding-horizontal);
89
78
  z-index: 99999;
90
79
 
91
80
  .screen {
92
- @include size($device-screen-width $device-screen-height);
81
+ @include size($device-screen-width, $device-screen-height);
93
82
  background-image: url($device-screen-image);
94
83
  background-size: cover;
95
84
  border-radius: 0.2em;
@@ -1,25 +1,11 @@
1
1
  .dropdown {
2
- ///////////////////////////////////////////////////////////////////////////////////
3
2
  $base-border-color: gainsboro !default;
4
3
  $base-border-radius: 3px !default;
5
4
  $base-line-height: 1.5em !default;
6
5
  $base-background-color: white !default;
7
6
  $dark-gray: #333 !default;
8
- $large-screen: em(860) !default;
7
+ $large-screen: 53.75em !default;
9
8
  $base-font-color: $dark-gray !default;
10
-
11
- line-height: $base-line-height;
12
-
13
- ul {
14
- padding: 0;
15
- margin: 0;
16
- }
17
-
18
- li {
19
- list-style: none;
20
- }
21
- //////////////////////////////////////////////////////////////////////////////////
22
-
23
9
  $dropdown-color: $base-font-color;
24
10
  $dropdown-description-color: lighten($dropdown-color, 40%);
25
11
  $dropdown-border: 1px solid silver;
@@ -31,6 +17,8 @@
31
17
  $dropdown-distance-from-menu: 50px;
32
18
  $dropdown-arrow-top-distance: 0;
33
19
 
20
+ line-height: $base-line-height;
21
+
34
22
  .dropdown-container {
35
23
  display: inline-block;
36
24
  position: relative;
@@ -39,8 +27,8 @@
39
27
 
40
28
  .dropdown-description {
41
29
  background: $dropdown-background;
42
- border-bottom-left-radius: $base-border-radius;
43
30
  border-bottom: $dropdown-border;
31
+ border-bottom-left-radius: $base-border-radius;
44
32
  border-left: $dropdown-border;
45
33
  border-top-left-radius: $base-border-radius;
46
34
  border-top: $dropdown-border;
@@ -58,15 +46,14 @@
58
46
 
59
47
  .dropdown-button {
60
48
  background: $dropdown-background;
49
+ border-bottom: $dropdown-border;
61
50
  border-bottom-right-radius: $base-border-radius;
62
- border-top-right-radius: $base-border-radius;
63
- border-top: $dropdown-border;
64
51
  border-right: $dropdown-border;
65
- border-bottom: $dropdown-border;
52
+ border-top: $dropdown-border;
53
+ border-top-right-radius: $base-border-radius;
66
54
  cursor: pointer;
67
55
  float: right;
68
56
  font-size: 0.7em;
69
- font-weight: 800;
70
57
  line-height: $dropdown-height;
71
58
  margin: 0;
72
59
  padding: 0 ($dropdown-padding * 2.5) 0 ($dropdown-padding / 2);
@@ -82,7 +69,7 @@
82
69
  background-color: $dropdown-background-hover;
83
70
  }
84
71
 
85
- .dropdown-button:after {
72
+ .dropdown-button::after {
86
73
  color: $base-font-color;
87
74
  content: "\25BE";
88
75
  display: block;
@@ -92,22 +79,24 @@
92
79
  }
93
80
 
94
81
  .dropdown-menu {
95
- @include transition (all 0.2s ease-in-out);
96
82
  background: $dropdown-background;
97
- border-radius: $base-border-radius;
98
83
  border: $dropdown-border;
84
+ border-radius: $base-border-radius;
99
85
  box-shadow: 0 2px 2px transparentize(black, 0.8);
100
86
  color: $dropdown-color;
101
87
  cursor: pointer;
102
88
  display: none;
103
- overflow: show;
89
+ margin: 0;
90
+ overflow: visible;
91
+ padding: 0;
104
92
  position: absolute;
105
93
  right: 0;
106
94
  top: $dropdown-distance-from-menu;
95
+ transition: all 0.2s ease-in-out;
107
96
  width: 228px;
108
97
  z-index: 99999;
109
98
 
110
- &:before {
99
+ &::before {
111
100
  @include position(absolute, 0 1em 0 0);
112
101
  color: $dropdown-background;
113
102
  content: "\25b2";
@@ -120,7 +109,8 @@
120
109
 
121
110
  .dropdown-menu li {
122
111
  border-bottom: $dropdown-inner-border;
123
- color: $dropdown-color;
112
+ color: $dropdown-color;
113
+ list-style: none;
124
114
  padding: $dropdown-padding / 2;
125
115
  }
126
116
 
@@ -134,7 +124,7 @@
134
124
  }
135
125
 
136
126
  .dropdown-menu li:last-child {
137
- border: none;
127
+ border: 0;
138
128
  border-bottom-left-radius: $base-border-radius;
139
129
  border-bottom-right-radius: $base-border-radius;
140
130
  }