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
@@ -0,0 +1,20 @@
1
+ $refills-serif: "Lusitana", $font-stack-georgia;
2
+ $refills-narrow-sans: "Oswald", sans-serif;
3
+ $refills-second-serif: $font-stack-georgia;
4
+
5
+ $refills-nav-height: 60px;
6
+
7
+ $refills-body-background-color: #fff;
8
+ $refills-color: lighten(desaturate(teal, 60%), 40%);
9
+ $refills-accent-color: #477dca;
10
+ $refills-logo-color: #93e9be;
11
+ $refills-anchor-color: #f55481;
12
+ $refills-hero-background: #e7f1ec;
13
+ $refills-secondary-anchor-color: darken($refills-hero-background, 35%);
14
+ $refills-highlight-color: #bbb295;
15
+ $refills-white-shadow: 0 1px 1px transparentize(#fff, 0.6);
16
+
17
+ $refills-max-width: 68em;
18
+
19
+ $refills-medium-screen: 40em;
20
+ $refills-large-screen: 53.75em;
@@ -0,0 +1,78 @@
1
+ @import "vendor/normalize.css";
2
+ @import "vendor/fixedsticky.css";
3
+ @import "vendor/prism.css";
4
+
5
+ @import "bourbon";
6
+ @import "neat";
7
+
8
+ @import "refills-variables";
9
+ @import "refills-styles";
10
+ @import "refills-header";
11
+ @import "refills-menu";
12
+ @import "refill";
13
+ @import "refills-footer";
14
+ @import "bourbon-nav";
15
+ @import "refills-nav";
16
+
17
+ .refills-patterns {
18
+ @import "refills/accordion-tabs";
19
+ @import "refills/accordion-tabs-minimal";
20
+ @import "refills/cards";
21
+ @import "refills/centered-navigation";
22
+ @import "refills/comment";
23
+ @import "refills/device";
24
+ @import "refills/flex-boxes";
25
+ @import "refills/footer";
26
+ @import "refills/footer-2";
27
+ @import "refills/grid-items";
28
+ @import "refills/grid-items-lines";
29
+ @import "refills/hero";
30
+ @import "refills/icon-bullet-points";
31
+ @import "refills/logo-section";
32
+ @import "refills/maps";
33
+ @import "refills/navigation";
34
+ @import "refills/scroll-on-page";
35
+ @import "refills/search-tools";
36
+ @import "refills/side-image";
37
+ @import "refills/tables";
38
+ @import "refills/tables-minimal";
39
+ @import "refills/vertical-tabs";
40
+ }
41
+
42
+ .refills-components {
43
+ @import "refills/accordion";
44
+ @import "refills/animate";
45
+ @import "refills/animate-info";
46
+ @import "refills/badges";
47
+ @import "refills/breadcrumbs";
48
+ @import "refills/button-group";
49
+ @import "refills/dropdown";
50
+ @import "refills/expander";
51
+ @import "refills/fade-in";
52
+ @import "refills/flashes";
53
+ @import "refills/hover-tile-animation";
54
+ @import "refills/image-gradient-dynamic";
55
+ @import "refills/modal";
56
+ @import "refills/pagination";
57
+ @import "refills/parallax";
58
+ @import "refills/progress-bar";
59
+ @import "refills/progress-bar-indication";
60
+ @import "refills/ribbon";
61
+ @import "refills/search-bar";
62
+ @import "refills/sliding-panel";
63
+ @import "refills/switch";
64
+ @import "refills/stats";
65
+ @import "refills/texture-legend";
66
+ @import "refills/textures";
67
+ @import "refills/tooltip";
68
+ @import "refills/video";
69
+ }
70
+
71
+ .type-systems {
72
+ @import "refills/type-system-geometric";
73
+ @import "refills/type-system-rounded";
74
+ @import "refills/type-system-sans";
75
+ @import "refills/type-system-serif";
76
+ @import "refills/type-system-slab";
77
+ @import "refills/type-system-traditional";
78
+ }
@@ -1,26 +1,22 @@
1
1
  .accordion-tabs-minimal {
2
- ///////////////////////////////////////////////////////////////////////////////////
3
- $base-border-color: gainsboro !default;
4
- $base-background-color: white !default;
2
+ $base-border-color: #dcdcdc !default;
3
+ $base-background-color: #fff !default;
5
4
  $base-spacing: 1.5em !default;
6
- $base-accent-color: #477DCA !default;
7
- $base-link-color: $base-accent-color !default;
5
+ $action-color: #477dca !default;
8
6
  $dark-gray: #333 !default;
9
- $medium-screen: em(640) !default;
10
- //////////////////////////////////////////////////////////////////////////////////
11
-
7
+ $medium-screen: 40em !default;
12
8
  $tab-link-color: $dark-gray;
13
9
  $tab-border: 1px solid $base-border-color;
14
10
  $tab-active-background: $base-background-color;
15
11
  $tab-inactive-color: $base-background-color;
16
- $tab-inactive-hover-color: silver;
12
+ $tab-inactive-hover-color: #c0c0c0;
17
13
  $tab-mode: $medium-screen;
18
14
 
19
15
  @include clearfix;
20
16
  line-height: 1.5;
21
17
  padding: 0;
22
18
 
23
- li.tab-header-and-content {
19
+ .tab-header-and-content {
24
20
  list-style: none;
25
21
 
26
22
  @include media($tab-mode) {
@@ -28,22 +24,21 @@
28
24
  }
29
25
  }
30
26
 
31
- a.tab-link {
27
+ .tab-link {
32
28
  background-color: $tab-inactive-color;
33
29
  border-top: $tab-border;
34
30
  color: $tab-link-color;
35
31
  display: block;
36
- font-weight: 400;
37
32
  padding: ($base-spacing / 2) $gutter;
38
33
  text-decoration: none;
39
34
 
40
35
  @include media($tab-mode) {
41
- @include inline-block;
42
36
  border-top: 0;
37
+ display: inline-block;
43
38
  }
44
39
 
45
40
  &:hover {
46
- color: $base-link-color;
41
+ color: $action-color;
47
42
  }
48
43
 
49
44
  &:focus {
@@ -1,16 +1,12 @@
1
1
  .accordion-tabs {
2
- ///////////////////////////////////////////////////////////////////////////////////
3
- $base-border-color: gainsboro !default;
2
+ $base-border-color: #dcdcdc !default;
4
3
  $base-border-radius: 3px !default;
5
- $base-background-color: white !default;
4
+ $base-background-color: #fff !default;
6
5
  $base-spacing: 1.5em !default;
7
- $base-accent-color: #477DCA !default;
8
- $base-link-color: $base-accent-color !default;
6
+ $action-color: #477dca !default;
9
7
  $dark-gray: #333 !default;
10
- $light-gray: #DDD !default;
11
- $medium-screen: em(640) !default;
12
- //////////////////////////////////////////////////////////////////////////////////
13
-
8
+ $light-gray: #ddd !default;
9
+ $medium-screen: 40em !default;
14
10
  $tab-border: 1px solid $base-border-color;
15
11
  $tab-content-background: lighten($light-gray, 10);
16
12
  $tab-active-background: $tab-content-background;
@@ -24,8 +20,8 @@
24
20
  padding: 0;
25
21
 
26
22
  @include media(max-width $tab-mode) {
27
- border-radius: $base-border-radius;
28
23
  border: $tab-border;
24
+ border-radius: $base-border-radius;
29
25
  }
30
26
 
31
27
  .tab-header-and-content {
@@ -58,18 +54,17 @@
58
54
  color: $dark-gray;
59
55
  display: block;
60
56
  font-weight: bold;
61
- padding: $base-spacing/2 $gutter/2;
57
+ padding: ($base-spacing / 2) ($gutter / 2);
62
58
  text-decoration: none;
63
59
 
64
60
  @include media($tab-mode) {
65
- @include inline-block;
66
- border-top-left-radius: $base-border-radius;
67
- border-top-right-radius: $base-border-radius;
61
+ @include border-top-radius($base-border-radius);
68
62
  border-top: 0;
63
+ display: inline-block;
69
64
  }
70
65
 
71
66
  &:hover {
72
- color: $base-link-color;
67
+ color: $action-color;
73
68
  }
74
69
 
75
70
  &:focus {
@@ -95,10 +90,10 @@
95
90
  width: 100%;
96
91
 
97
92
  @include media($tab-mode) {
93
+ border: $tab-border;
98
94
  border-bottom-left-radius: $base-border-radius;
99
95
  border-bottom-right-radius: $base-border-radius;
100
96
  border-top-right-radius: $base-border-radius;
101
- border: $tab-border;
102
97
  float: left;
103
98
  }
104
99
  }
@@ -1,33 +1,9 @@
1
- .accordion {
2
- ///////////////////////////////////////////////////////////////////////////////////
1
+ .accordion {
3
2
  $base-border-color: gainsboro !default;
4
3
  $base-line-height: 1.5em !default;
5
4
  $base-spacing: 1.5em !default;
6
5
  $dark-gray: #333 !default;
7
6
  $base-font-color: $dark-gray !default;
8
-
9
- margin: 0;
10
- padding: 0;
11
-
12
- ul {
13
- margin: 0;
14
- padding: 0;
15
- }
16
-
17
- li {
18
- list-style: none;
19
- }
20
-
21
- p {
22
- color: $base-font-color;
23
- line-height: $base-line-height;
24
- }
25
-
26
- a {
27
- text-decoration: none;
28
- }
29
- //////////////////////////////////////////////////////////////////////////////////
30
-
31
7
  $accordion-menu-border-color: $base-border-color;
32
8
  $accordion-menu-color: $base-font-color;
33
9
  $accordion-menu-border: 1px solid $accordion-menu-border-color;
@@ -37,22 +13,30 @@
37
13
  $accordion-menu-sub-inset: darken($accordion-menu-sub-background, 6%);
38
14
  $accordion-menu-sub-hover: lighten($accordion-menu-sub-background, 2%);
39
15
  $accordion-menu-list-padding: ($base-spacing / 2) $gutter;
40
-
16
+
41
17
  background-color: $accordion-menu-background;
42
18
  border: $accordion-menu-border;
43
- margin-bottom: $base-spacing;
19
+ margin: 0 0 $base-spacing 0;
20
+ padding: 0;
21
+
22
+ ul {
23
+ margin: 0;
24
+ padding: 0;
25
+ }
44
26
 
45
27
  li {
46
28
  border-bottom: $accordion-menu-border;
29
+ list-style: none;
47
30
 
48
31
  > a {
49
32
  color: $accordion-menu-color;
50
33
  display: block;
51
34
  padding: $accordion-menu-list-padding;
35
+ text-decoration: none;
52
36
  }
53
37
 
54
38
  &:last-child {
55
- border: none;
39
+ border: 0;
56
40
  }
57
41
 
58
42
  &:focus,
@@ -71,7 +55,7 @@
71
55
  border-top: $accordion-menu-border;
72
56
  box-shadow: inset 0 1px 1px $accordion-menu-sub-inset;
73
57
  }
74
-
58
+
75
59
  &:focus,
76
60
  &:hover {
77
61
  background-color: $accordion-menu-sub-hover;
@@ -1,23 +1,23 @@
1
- $base-accent-color: #477dca !default;
1
+ $action-color: #477dca !default;
2
2
 
3
3
  .animated {
4
- @include animation-duration(1s);
5
- @include animation-fill-mode(both);
4
+ animation-duration: 1s;
5
+ animation-fill-mode: both;
6
6
 
7
7
  &.infinite {
8
- @include animation-iteration-count(infinite);
8
+ animation-iteration-count: infinite;
9
9
  }
10
10
 
11
11
  &.alternate {
12
- @include animation-direction(alternate);
12
+ animation-direction: alternate;
13
13
  }
14
14
 
15
15
  &.iteration {
16
- @include animation-iteration-count(2);
16
+ animation-iteration-count: 2;
17
17
  }
18
18
  }
19
19
 
20
- // Tweak the keyframes below. Or swap them with another animation pattern at
20
+ // Tweak the keyframes below. Or swap them with another animation pattern at
21
21
  // https://github.com/daneden/animate.css/tree/master/source
22
22
 
23
23
  @-webkit-keyframes zoomOut {
@@ -61,15 +61,14 @@ $base-accent-color: #477dca !default;
61
61
 
62
62
  .animate-target {
63
63
  @include size(6em);
64
- -webkit-transform-style: preserve-3d;
65
- border-radius: 50%;
66
64
  border: 22px solid #e2e2e3;
65
+ border-radius: 50%;
67
66
  margin: 0 auto 3em;
68
67
  text-align: center;
68
+ -webkit-transform-style: preserve-3d;
69
69
  }
70
70
 
71
71
  button {
72
- @include button(flat, $base-accent-color);
73
72
  display: block;
74
73
  margin: auto;
75
74
  outline: none;
@@ -1,37 +1,20 @@
1
- $badge-font-size: 0.75em !default;
2
- $medium-gray: #999 !default;
3
- $alert-color: #fff6bf !default;
4
- $error-color: #fbe3e4 !default;
5
- $notice-color: #e5edf8 !default;
6
- $success-color: #e6efc2 !default;
1
+ $small-font-size: 0.75em;
2
+ $badges: (
3
+ "alert": #fff6bf,
4
+ "default": #999,
5
+ "error": #fbe3e4,
6
+ "notice": #e5edf8,
7
+ "success": #e6efc2,
8
+ ) !default;
7
9
 
8
- @mixin badge($color: $medium-gray) {
9
- background-color: $color;
10
- border-radius: $badge-font-size * 5;
11
- color: darken($color, 60%);
12
- display: inline-block;
13
- font-size: $badge-font-size;
14
- font-weight: 600;
15
- line-height: 1;
16
- padding: 0.4em 1.2em;
17
- }
18
-
19
- .badge {
20
- @include badge;
21
- }
22
-
23
- .badge-alert {
24
- @include badge($alert-color);
25
- }
26
-
27
- .badge-error {
28
- @include badge($error-color);
29
- }
30
-
31
- .badge-notice {
32
- @include badge($notice-color);
33
- }
34
-
35
- .badge-success {
36
- @include badge($success-color);
10
+ @each $badge-type, $color in $badges {
11
+ .badge-#{$badge-type} {
12
+ background-color: $color;
13
+ border-radius: $small-font-size * 5;
14
+ color: darken($color, 60%);
15
+ display: inline-block;
16
+ font-size: $small-font-size;
17
+ line-height: 1;
18
+ padding: 0.4em 1.2em;
19
+ }
37
20
  }
@@ -1,16 +1,12 @@
1
- .breadcrumb {
2
- ///////////////////////////////////////////////////////////////////////////////////
1
+ .breadcrumb {
3
2
  $base-border-color: gainsboro !default;
4
3
  $base-border-radius: 3px !default;
5
4
  $base-background-color: white !default;
6
5
  $base-spacing: 1.5em !default;
7
- $base-accent-color: #477DCA !default;
8
- $base-link-color: $base-accent-color !default;
6
+ $action-color: #477DCA !default;
9
7
  $medium-gray: #999 !default;
10
8
  $light-gray: #DDD !default;
11
- $medium-screen: em(640) !default;
12
- //////////////////////////////////////////////////////////////////////////////////
13
-
9
+ $medium-screen: 40em !default;
14
10
  $breadcrumb-border-color: $base-border-color;
15
11
  $breadcrumb-border: 1px solid $breadcrumb-border-color;
16
12
  $breadcrumb-height: $base-spacing * 1.5;
@@ -18,7 +14,7 @@
18
14
  $breadcrumb-background: $base-background-color;
19
15
  $breadcrumb-inactive-hover-color: $breadcrumb-background;
20
16
  $breadcrumb-color: $medium-gray;
21
- $breadcrumb-color-hover: $base-accent-color;
17
+ $breadcrumb-color-hover: $action-color;
22
18
  $breadcrumb-color-active: $breadcrumb-color;
23
19
 
24
20
  display: inline-block;
@@ -27,8 +23,8 @@
27
23
 
28
24
  a {
29
25
  background-color: $breadcrumb-background;
30
- border-left: 0;
31
26
  border: $breadcrumb-border;
27
+ border-left: 0;
32
28
  color: $breadcrumb-color;
33
29
  display: inline-block;
34
30
  font-size: 0.8em;
@@ -60,29 +56,30 @@
60
56
  color: $breadcrumb-color-hover;
61
57
  }
62
58
 
63
- &:after,
64
- &:before {
65
- @include position(absolute, 0px auto 0px 100%);
59
+ &::after,
60
+ &::before {
61
+ @include position(absolute, 0 auto 0 100%);
66
62
  border-bottom: $breadcrumb-height / 2 solid transparent;
67
63
  border-left: $breadcrumb-height / 4 solid transparent;
68
64
  border-top: $breadcrumb-height / 2 solid transparent;
69
- content: '';
65
+ content: "";
70
66
  display: block;
71
67
  margin: auto;
72
68
  z-index: 2;
73
69
  }
74
70
 
75
- &:last-child:after,
76
- &:last-child:before {
77
- border: none;
71
+ &:last-child::after,
72
+ &:last-child::before {
73
+ border: 0;
78
74
  }
79
75
 
80
- &:before {
76
+ &::before {
81
77
  border-left-color: $breadcrumb-arrow-color;
82
78
  margin-left: 1px;
83
79
  z-index: 1;
84
80
  }
85
- &:after {
81
+
82
+ &::after {
86
83
  border-left-color: $breadcrumb-background;
87
84
  }
88
85
 
@@ -92,4 +89,3 @@
92
89
  }
93
90
  }
94
91
  }
95
-