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,18 +1,9 @@
1
- .side-image {
2
- ///////////////////////////////////////////////////////////////////////////////////
1
+ .side-image {
3
2
  $base-line-height: 1.5em !default;
4
- $base-accent-color: #477DCA !default;
5
- $base-link-color: $base-accent-color !default;
3
+ $action-color: #477DCA !default;
6
4
  $dark-gray: #333 !default;
7
- $large-screen: em(860) !default;
5
+ $large-screen: 53.75em !default;
8
6
  $base-font-color: $dark-gray !default;
9
-
10
- p {
11
- color: $base-font-color;
12
- line-height: $base-line-height;
13
- }
14
- //////////////////////////////////////////////////////////////////////////////////
15
-
16
7
  $side-image-background-top: #B5EBEB;
17
8
  $side-image-background-bottom: #5DAC5D;
18
9
  $side-image-content-background: #F9F9F9;
@@ -25,7 +16,9 @@
25
16
  }
26
17
 
27
18
  .images-wrapper {
28
- @include background(url('https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/mountains.png'), linear-gradient($side-image-background-top, $side-image-background-bottom), no-repeat $side-image-background-top scroll);
19
+ background: url("https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/mountains.png"),
20
+ linear-gradient($side-image-background-top, $side-image-background-bottom),
21
+ no-repeat $side-image-background-top scroll;
29
22
  background-color: $side-image-background-top;
30
23
  background-size: cover;
31
24
  border-bottom: $side-image-border;
@@ -59,21 +52,16 @@
59
52
  color: white;
60
53
  display: inline-block;
61
54
  font-size: 0.75em;
62
- font-weight: 800;
63
55
  margin-bottom: 1.3em;
64
56
  padding: 3px 8px;
65
57
  text-transform: uppercase;
66
58
  }
67
59
 
68
60
  p {
69
- color: gray;
61
+ color: $base-font-color;
62
+ line-height: $base-line-height;
70
63
  margin-bottom: 3em;
71
64
  }
72
-
73
- button {
74
- @include button(flat, $base-accent-color);
75
- padding: 0.7em 1em;
76
- }
77
65
  }
78
66
 
79
67
  @include reset-display();
@@ -0,0 +1,79 @@
1
+ .sliding-panel-content {
2
+ $action-color: #477DCA !default;
3
+ $dark-gray: #333 !default;
4
+ $sliding-panel-border-color: $dark-gray;
5
+ $sliding-panel-background: lighten($sliding-panel-border-color, 5%);
6
+ $sliding-panel-color: #fff;
7
+ $sliding-panel-border: 1px solid $sliding-panel-border-color;
8
+ $sliding-panel-background-hover: $action-color;
9
+ $sliding-panel-color-hover: #fff;
10
+ $sliding-panel-background-focus: lighten($sliding-panel-background, 5%);
11
+
12
+ @include position(fixed, 0 auto 0 0);
13
+ @include size(220px, 100%);
14
+ background: $sliding-panel-background;
15
+ -webkit-overflow-scrolling: touch;
16
+ overflow-y: auto;
17
+ transform: translateX(-220px);
18
+ transition: all 0.25s linear;
19
+ z-index: 999999;
20
+
21
+ ul {
22
+ padding: 0;
23
+ margin: 0;
24
+ }
25
+
26
+ li {
27
+ list-style: none;
28
+ }
29
+
30
+ li a {
31
+ border-bottom: $sliding-panel-border;
32
+ color: $sliding-panel-color;
33
+ display: block;
34
+ font-weight: bold;
35
+ padding: 1em;
36
+ text-decoration: none;
37
+
38
+ &:focus {
39
+ background-color: $sliding-panel-background-focus;
40
+ }
41
+
42
+ &:hover {
43
+ background-color: $sliding-panel-background-hover;
44
+ color: $sliding-panel-color-hover;
45
+ }
46
+ }
47
+
48
+ &.is-visible {
49
+ transform: translateX(0);
50
+ }
51
+ }
52
+
53
+ .sliding-panel-fade-screen {
54
+ @include position(fixed, 0);
55
+ background: black;
56
+ opacity: 0;
57
+ transition: all 0.2s ease-in-out;
58
+ visibility: hidden;
59
+ z-index: 999998;
60
+
61
+ &.is-visible {
62
+ opacity: 0.4;
63
+ visibility: visible;
64
+ }
65
+ }
66
+
67
+ .sliding-panel-button {
68
+ cursor: pointer;
69
+ display: inline-block;
70
+ outline: none;
71
+ padding: 10px 16px;
72
+ position: relative;
73
+
74
+ img {
75
+ height: 1.3em;
76
+ }
77
+ }
78
+
79
+ // Based on code by Diego Eis
@@ -2,8 +2,8 @@
2
2
  $base-spacing: 1.5em !default;
3
3
  $dark-gray: #333 !default;
4
4
  $base-font-color: $dark-gray !default;
5
- $base-accent-color: #477dca !default;
6
- $stats-color: lighten($base-accent-color, 10%);
5
+ $action-color: #477dca !default;
6
+ $stats-color: lighten($action-color, 10%);
7
7
 
8
8
  padding: $base-spacing / 2;
9
9
 
@@ -17,7 +17,6 @@
17
17
  display: inline;
18
18
  float: left;
19
19
  font-size: 1.2em;
20
- font-weight: 800;
21
20
  line-height: 1.1em;
22
21
  padding: 0 0.7em;
23
22
 
@@ -1,9 +1,6 @@
1
- .label-switch {
2
- ///////////////////////////////////////////////////////////////////////////////////
3
- $base-accent-color: #477DCA !default;
1
+ .label-switch {
2
+ $action-color: #477DCA !default;
4
3
  $base-background-color: white !default;
5
- //////////////////////////////////////////////////////////////////////////////////
6
-
7
4
  $switch-width: 52px;
8
5
  $switch-padding: 2px;
9
6
  $switch-height: 32px;
@@ -26,51 +23,51 @@
26
23
  display: none;
27
24
 
28
25
  + .checkbox {
29
- @include transition(all 0.3s ease);
30
26
  background: $switch-border-background;
27
+ border: 0;
31
28
  border-radius: $switch-radius;
32
- border: none;
33
29
  cursor: pointer;
34
30
  height: $switch-height;
35
31
  margin: 0;
36
32
  padding: 0;
37
33
  position: relative;
34
+ transition: all 0.3s ease;
38
35
  width: $switch-width;
39
36
  z-index: 0;
40
37
 
41
- &:before {
38
+ &::before {
42
39
  @include position(absolute, 2px 0 0 2px);
43
- @include transform(scale(1));
44
- @include transition(all 0.3s ease);
45
40
  background: $switch-background;
46
41
  border-radius: $switch-radius;
47
42
  content: "";
48
43
  height: $knob-radius;
44
+ transform: scale(1);
45
+ transition: all 0.3s ease;
49
46
  width: $switch-width - ($switch-padding * 2);
50
47
  z-index: 1;
51
48
  }
52
49
 
53
- &:after {
50
+ &::after {
54
51
  @include position(absolute, 2px 0 0 2px);
55
- @include transition(all 0.3s ease);
56
52
  @include size($knob-size);
57
53
  background: $switch-background;
58
54
  border-radius: $knob-radius;
59
55
  box-shadow: $switch-shadow;
60
56
  content: "";
57
+ transition: all 0.3s ease;
61
58
  z-index: 2;
62
59
  }
63
60
  }
64
61
 
65
62
  &:checked {
66
63
  + .checkbox {
67
- background: $base-accent-color;
64
+ background: $action-color;
68
65
 
69
- &:before {
70
- @include transform(scale(0));
66
+ &::before {
67
+ transform: scale(0);
71
68
  }
72
69
 
73
- &:after {
70
+ &::after {
74
71
  left: $switch-width - $knob-width - ($switch-padding);
75
72
  }
76
73
  }
@@ -1,29 +1,15 @@
1
1
  .table-minimal {
2
- ///////////////////////////////////////////////////////////////////////////////////
3
2
  $base-border-color: gainsboro !default;
4
3
  $base-border-radius: 3px !default;
5
4
  $base-background-color: white !default;
6
5
  $base-line-height: 1.5em !default;
7
6
  $base-spacing: 1.5em !default;
8
- $base-accent-color: #477DCA !default;
9
- $base-link-color: $base-accent-color !default;
7
+ $action-color: #477DCA !default;
10
8
  $dark-gray: #333 !default;
11
9
  $light-gray: #DDD !default;
12
- $medium-screen: em(640) !default;
13
- $large-screen: em(860) !default;
10
+ $medium-screen: 40em !default;
11
+ $large-screen: 53.75em !default;
14
12
  $base-font-color: $dark-gray !default;
15
-
16
- width: 100%;
17
-
18
- th {
19
- text-align: left;
20
- }
21
-
22
- td {
23
- line-height: $base-line-height;
24
- }
25
- //////////////////////////////////////////////////////////////////////////////////
26
-
27
13
  $table-border-color: $base-border-color;
28
14
  $table-border: 1px solid $table-border-color;
29
15
  $table-background: $base-background-color;
@@ -31,10 +17,11 @@
31
17
  $table-hover-background: darken($table-background, 2);
32
18
  $table-stripe-background: darken($table-background, 4);
33
19
  $table-stripe-background-hover: darken($table-stripe-background, 5);
34
- $table-padding: .75em 1em;
20
+ $table-padding: 0.75em 1em;
35
21
 
36
22
  border-collapse: separate;
37
23
  border-spacing: 0;
24
+ width: 100%;
38
25
 
39
26
  tbody {
40
27
  tr:hover > td, tr:hover > th {
@@ -48,8 +35,9 @@
48
35
  thead {
49
36
  th {
50
37
  background-color: $table-header-background;
51
- border-bottom: 0px;
38
+ border-bottom: 0;
52
39
  padding: $table-padding;
40
+ text-align: left;
53
41
  }
54
42
  }
55
43
 
@@ -57,19 +45,19 @@
57
45
  background-color: $table-background;
58
46
 
59
47
  td {
60
- border-bottom: 0px;
48
+ border-bottom: 0;
61
49
  border-top: 1px solid $table-border-color;
50
+ line-height: $base-line-height;
62
51
  padding: $table-padding;
63
52
 
64
53
  button {
65
- @include button(flat, $base-accent-color);
66
54
  display: inline-block;
67
- font-size: .7em;
55
+ font-size: 0.7em;
68
56
  line-height: $base-line-height;
69
- margin-bottom: .3em;
57
+ margin-bottom: 0.3em;
70
58
  margin-right: 0.5em;
71
59
  outline: none;
72
- padding: .3em 1em;
60
+ padding: 0.3em 1em;
73
61
  width: 100%;
74
62
 
75
63
  @include media($medium-screen) {
@@ -1,24 +1,14 @@
1
1
  .tables {
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-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
8
  $light-gray: #DDD !default;
11
- $medium-screen: em(640) !default;
12
- $large-screen: em(860) !default;
9
+ $medium-screen: 40em !default;
10
+ $large-screen: 53.75em !default;
13
11
  $base-font-color: $dark-gray !default;
14
-
15
- width: 100%;
16
-
17
- th {
18
- text-align: left;
19
- }
20
- //////////////////////////////////////////////////////////////////////////////////
21
-
22
12
  $table-border-color: $base-border-color;
23
13
  $table-border: 1px solid $table-border-color;
24
14
  $table-background: lighten($table-border-color, 12%);
@@ -28,11 +18,12 @@
28
18
  $table-stripe-background-hover: darken($table-stripe-background, 5%);
29
19
  $table-padding: 0.75em 1em;
30
20
 
21
+ border: $table-border;
31
22
  border-collapse: separate;
32
- border-left: 0px;
23
+ border-left: 0;
33
24
  border-radius: $base-border-radius;
34
25
  border-spacing: 0;
35
- border: $table-border;
26
+ width: 100%;
36
27
 
37
28
  tbody {
38
29
  background-color: $table-background;
@@ -71,12 +62,13 @@
71
62
  thead {
72
63
  th {
73
64
  background-color: $table-header-background;
74
- border-bottom: 0px;
65
+ border-bottom: 0;
75
66
  border-left: 1px solid $table-border-color;
76
67
  padding: $table-padding;
68
+ text-align: left;
77
69
 
78
70
  &:first-child {
79
- border-left: none;
71
+ border-left: 0;
80
72
  }
81
73
  }
82
74
  }
@@ -85,17 +77,16 @@
85
77
  background-color: $table-background;
86
78
 
87
79
  td {
88
- border-bottom: 0px;
80
+ border-bottom: 0;
89
81
  border-left: 1px solid $table-border-color;
90
82
  border-top: 1px solid $table-border-color;
91
83
  padding: $table-padding;
92
84
 
93
85
  &:first-child {
94
- border-left: none;
86
+ border-left: 0;
95
87
  }
96
88
 
97
89
  button {
98
- @include button(flat, $base-accent-color);
99
90
  display: inline-block;
100
91
  font-size: 0.7em;
101
92
  line-height: $base-line-height;
@@ -1,4 +1,4 @@
1
- @mixin texture($gradient-angle, $bg-color-1, $bg-color-2, $texture-number, $inverted) { $texture-list:
1
+ @mixin texture($gradient-angle, $bg-color-1, $bg-color-2, $texture-number, $inverted) { $texture-list:
2
2
  "paper.png" // Fabric and paper
3
3
  "rice_paper.png"
4
4
  "noise_lines.png"
@@ -44,7 +44,7 @@
44
44
  "pinstripe.png"
45
45
  "line_horizontal1.png"
46
46
  "line_horizontal2.png"
47
- "linen.png"
47
+ "linen.png"
48
48
  "vintage_speckles.png" // Patina and irregular
49
49
  "subtle_grunge.png"
50
50
  "old_wall.png"
@@ -58,7 +58,7 @@
58
58
  "subtle_surface.png"
59
59
  "dust.png"
60
60
  "light_alu.png"
61
- "corrugation.png"
61
+ "corrugation.png"
62
62
  "kindajean.png" // Diagonal
63
63
  "line_diagonal1.png"
64
64
  "line_diagonal2.png"
@@ -89,18 +89,22 @@
89
89
  "noisy_grid_simple.png";
90
90
 
91
91
  @if ($inverted == 1) {
92
- @include background(url("https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/textures/#{nth($texture-list, $texture-number)}"), linear-gradient($gradient-angle, $bg-color-1, $bg-color-2), center no-repeat $bg-color-1 scroll);
92
+ background: url("https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/textures/#{nth($texture-list, $texture-number)}"),
93
+ linear-gradient($gradient-angle, $bg-color-1, $bg-color-2),
94
+ center no-repeat $bg-color-1 scroll;
93
95
  }
94
96
 
95
97
  @else {
96
- @include background(url("https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/textures/inverted/#{nth($texture-list, $texture-number)}"), linear-gradient($gradient-angle, $bg-color-1, $bg-color-2), center no-repeat $bg-color-1 scroll);
98
+ background: url("https://raw.githubusercontent.com/thoughtbot/refills/master/source/images/textures/inverted/#{nth($texture-list, $texture-number)}"),
99
+ linear-gradient($gradient-angle, $bg-color-1, $bg-color-2),
100
+ center no-repeat $bg-color-1 scroll;
97
101
  }
98
102
  }
99
103
 
100
104
  .texture-examples {
101
105
  @include clearfix;
102
- border-radius: 6px;
103
106
  border: 1px solid silver;
107
+ border-radius: 6px;
104
108
  margin-bottom: 3em;
105
109
  padding: 1em;
106
110
 
@@ -118,7 +122,7 @@
118
122
 
119
123
  h4 {
120
124
  color: gray;
121
- font-size: .8em;
125
+ font-size: 0.8em;
122
126
  font-weight: 200;
123
127
  line-height: 2.2em;
124
128
  margin: 0;
@@ -130,7 +134,7 @@
130
134
  clear: both;
131
135
  display: block;
132
136
  padding-top: 2em;
133
- text-align: center;
137
+ text-align: center;
134
138
  }
135
139
 
136
140
  a {
@@ -177,17 +181,17 @@
177
181
  $texture-legend-top-background: lighten(#ddf0ef, 1%);
178
182
  $texture-legend-bottom-background: darken(#ddf0ef, 10%);
179
183
  float: left;
180
- margin-bottom: 1em;
181
184
  margin: 0 0.95% 1em 0.95%;
185
+ margin-bottom: 1em;
182
186
  width: 14.7%;
183
187
 
184
188
  .example-normal {
185
- @include texture(180deg, $texture-legend-top-background, $texture-legend-bottom-background, $i, 0);
186
- // gradient color 1, gradient color 2, gradient angle, texture-number, 0=inverted or 1=normal
189
+ @include texture(180deg, $texture-legend-top-background, $texture-legend-bottom-background, $i, 0);
190
+ // gradient color 1, gradient color 2, gradient angle, texture-number, 0=inverted or 1=normal
187
191
  }
188
192
  .example-inverted {
189
- @include texture(180deg, $texture-legend-top-background, $texture-legend-bottom-background, $i, 1);
190
- // gradient color 1, gradient color 2, gradient angle, texture-number, 0=inverted or 1=normal
193
+ @include texture(180deg, $texture-legend-top-background, $texture-legend-bottom-background, $i, 1);
194
+ // gradient color 1, gradient color 2, gradient angle, texture-number, 0=inverted or 1=normal
191
195
  }
192
196
  }
193
197
  }