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,63 @@
1
+ $sliding-menu-border-color: $dark-gray;
2
+ $sliding-menu-background: lighten($sliding-menu-border-color, 5);
3
+ $sliding-menu-color: #fff;
4
+ $sliding-menu-border: 1px solid $sliding-menu-border-color;
5
+ $sliding-menu-background-hover: $base-accent-color;
6
+ $sliding-menu-color-hover: #fff;
7
+
8
+ .sliding-menu-button {
9
+ @include inline-block;
10
+ cursor: pointer;
11
+ font-size: $base-font-size;
12
+ margin-bottom: $base-line-height;
13
+ position: relative;
14
+ outline: none;
15
+
16
+ img {
17
+ height: 1.3em;
18
+ }
19
+ }
20
+
21
+ .sliding-menu-content {
22
+ @include position(fixed, 0px auto 0px 0px);
23
+ @include size(220px 100%);
24
+ @include transform(translateX(-220px));
25
+ @include transition(all .25s linear);
26
+ background: $sliding-menu-background;
27
+ z-index: 999999;
28
+ overflow-y: scroll;
29
+ -webkit-overflow-scrolling: touch;
30
+
31
+ li a {
32
+ border-bottom: $sliding-menu-border;
33
+ color: $sliding-menu-color;
34
+ display: block;
35
+ font-weight: bold;
36
+ padding: 1em;
37
+
38
+ &:hover {
39
+ background-color: $sliding-menu-background-hover;
40
+ color: $sliding-menu-color-hover;
41
+ }
42
+ }
43
+
44
+ &.is-visible {
45
+ @include transform(translateX(0));
46
+ }
47
+ }
48
+
49
+ .menu-screen {
50
+ @include position(fixed, 0px 0px 0px 0px);
51
+ @include transition;
52
+ background: $sliding-menu-border-color;
53
+ opacity: 0;
54
+ visibility: hidden;
55
+ z-index: 999998;
56
+
57
+ &.is-visible {
58
+ opacity: .4;
59
+ visibility: visible;
60
+ }
61
+ }
62
+
63
+ // Based on code by Diego Eis
@@ -0,0 +1,77 @@
1
+ .label-switch {
2
+ $switch-width: 52px;
3
+ $switch-padding: 2px;
4
+ $switch-height: 32px;
5
+ $switch-radius: $switch-height;
6
+ $knob-height: $switch-height - ($switch-padding * 2);
7
+ $knob-width: $knob-height;
8
+ $knob-radius: $switch-height - ($switch-padding * 2);
9
+
10
+ align-self: center;
11
+ border-radius: $switch-radius;
12
+ cursor: pointer;
13
+ display: inline-block;
14
+ height: $switch-height;
15
+ position: relative;
16
+ vertical-align: middle;
17
+ width: $switch-width;
18
+ @include box-sizing(border-box);
19
+
20
+ input[type="checkbox"] {
21
+ display: none;
22
+
23
+ + .checkbox {
24
+ background: #e5e5e5;
25
+ border: none;
26
+ border-radius: $switch-radius;
27
+ cursor: pointer;
28
+ height: $switch-height;
29
+ margin: 0;
30
+ padding: 0;
31
+ position: relative;
32
+ width: $switch-width;
33
+ z-index: 0;
34
+ @include box-sizing(border-box);
35
+ @include transition(all 0.3s ease);
36
+
37
+ &:before {
38
+ background: white;
39
+ border-radius: $switch-radius;
40
+ content: ' ';
41
+ height: $knob-radius;
42
+ width: $switch-width - ($switch-padding * 2);
43
+ z-index: 1;
44
+ @include box-sizing(border-box);
45
+ @include position(absolute, 2px 0 0 2px);
46
+ @include transition(all 0.3s ease);
47
+ @include transform(scale(1));
48
+ }
49
+
50
+ &:after {
51
+ background: white;
52
+ border-radius: $knob-radius;
53
+ content: ' ';
54
+ height: $knob-height;
55
+ width: $knob-width;
56
+ z-index: 2;
57
+ box-shadow: 0 2px 5px rgba(0,0,0,0.4);
58
+ @include position(absolute, 2px 0 0 2px);
59
+ @include transition(all 0.3s ease);
60
+ }
61
+ }
62
+
63
+ &:checked {
64
+ + .checkbox {
65
+ background: $blue;
66
+
67
+ &:before {
68
+ @include transform(scale(0));
69
+ }
70
+
71
+ &:after {
72
+ left: $switch-width - $knob-width - ($switch-padding);
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
@@ -0,0 +1,60 @@
1
+ .table-minimal {
2
+ $table-border-color: $base-border-color;
3
+ $table-border: 1px solid $table-border-color;
4
+ $table-background: $base-background-color;
5
+ $table-header-color: lighten($table-background, 10);
6
+ $table-hover-color: darken($table-background, 2);
7
+ $table-stripe-color: darken($table-background, 4);
8
+ $table-stripe-color-hover: darken($table-stripe-color, 5);
9
+ $table-padding: .75em 1em;
10
+
11
+ border-collapse: separate;
12
+ border-spacing: 0;
13
+
14
+ tbody {
15
+ tr:hover > td, tr:hover > th {
16
+ background-color: $table-hover-color;
17
+ }
18
+ tr:first-child td {
19
+ border-top: 2px solid $table-border-color;
20
+ }
21
+ }
22
+
23
+ thead {
24
+ th {
25
+ background-color: $table-header-color;
26
+ padding: $table-padding;
27
+ border-bottom: 0px;
28
+ }
29
+ }
30
+
31
+ tbody {
32
+ background-color: $table-background;
33
+
34
+ td {
35
+ padding: $table-padding;
36
+ border-top: 1px solid $table-border-color;
37
+ border-bottom: 0px;
38
+
39
+ button {
40
+ padding: .5em 1em .6em;
41
+ font-size: .7em;
42
+ margin-right: 0.5em;
43
+ display: inline-block;
44
+ width: 100%;
45
+ margin-bottom: .3em;
46
+ outline: none;
47
+
48
+ @include media($medium-screen) {
49
+ width: auto;
50
+ font-size: .8em;
51
+ margin-bottom: 0;
52
+ }
53
+
54
+ @include media($large-screen) {
55
+ font-size: .8em;
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,88 @@
1
+ .table-borders {
2
+ $table-border-color: $base-border-color;
3
+ $table-border: 1px solid $table-border-color;
4
+ $table-background: lighten($table-border-color, 10);
5
+ $table-header-color: lighten($table-background, 10);
6
+ $table-hover-color: darken($table-background, 5);
7
+ $table-stripe-color: darken($table-background, 4);
8
+ $table-stripe-color-hover: darken($table-stripe-color, 5);
9
+ $table-padding: .75em 1em;
10
+
11
+ border: $table-border;
12
+ border-left: 0px;
13
+ border-collapse: separate;
14
+ border-spacing: 0;
15
+ border-radius: $base-border-radius;
16
+
17
+ tbody {
18
+ background-color: $table-background;
19
+ tr:hover > td, tr:hover > th {
20
+ background-color: $table-hover-color;
21
+ }
22
+ tr:nth-child(even) {
23
+ background-color: $table-stripe-color;
24
+ &:hover > td {
25
+ background-color: $table-stripe-color-hover;
26
+ }
27
+ }
28
+ }
29
+
30
+ thead:first-of-type {
31
+ tr:first-child > th:first-child {
32
+ border-top-left-radius: $base-border-radius;
33
+ }
34
+
35
+ tr:first-child > th:last-child {
36
+ border-top-right-radius: $base-border-radius;
37
+ }
38
+ }
39
+
40
+ tbody:last-child {
41
+ tr:last-child > td:first-child {
42
+ border-bottom-left-radius: $base-border-radius;
43
+ }
44
+
45
+ tr:last-child > td:last-child {
46
+ border-bottom-right-radius: $base-border-radius;
47
+ }
48
+ }
49
+
50
+ thead {
51
+ th {
52
+ background-color: $table-header-color;
53
+ padding: $table-padding;
54
+ border-left: 1px solid $table-border-color;
55
+ border-bottom: 0px;
56
+ }
57
+ }
58
+
59
+ tbody {
60
+ background-color: $table-background;
61
+
62
+ td {
63
+ padding: $table-padding;
64
+ border-left: 1px solid $table-border-color;
65
+ border-top: 1px solid $table-border-color;
66
+ border-bottom: 0px;
67
+
68
+ button {
69
+ padding: .5em 1em .6em;
70
+ font-size: .7em;
71
+ margin-right: 0.5em;
72
+ display: inline-block;
73
+ width: 100%;
74
+ margin-bottom: .3em;
75
+ outline: none;
76
+
77
+ @include media($medium-screen) {
78
+ width: auto;
79
+ margin-bottom: 0;
80
+ }
81
+
82
+ @include media($large-screen) {
83
+ font-size: .8em;
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,182 @@
1
+ @mixin texture($gradient-angle, $bg-color-1, $bg-color-2, $texture-number, $inverted) { $texture-list:
2
+ "paper.png" // Fabric and paper
3
+ "rice_paper.png"
4
+ "noise_lines.png"
5
+ "fabric_plaid.png"
6
+ "first_aid_kit.png"
7
+ "texturetastic_gray.png"
8
+ "lil_fiber.png"
9
+ "tex2res5.png"
10
+ "skin_side_up.png"
11
+ "light_noise_diagonal.png"
12
+ "chruch.png"
13
+ "45degreee_fabric.png"
14
+ "bgnoise_lg.png"
15
+ "little_pluses.png"
16
+ "squairy_light.png"
17
+ "white_texture.png"
18
+ "binding_light.png"
19
+ "double_lined.png" // Grid, mesh and squares
20
+ "grid.png"
21
+ "absurdidad.png"
22
+ "grid_noise.png"
23
+ "fancy_deboss.png"
24
+ "graphy.png"
25
+ "noise_pattern_with_crosslines.png"
26
+ "old_mathematics.png"
27
+ "ps_neutral.png"
28
+ "subtle_freckles.png"
29
+ "wavegrid.png"
30
+ "az_subtle.png"
31
+ "tiny_grid.png"
32
+ "wavegrid.png"
33
+ "gridme.png"
34
+ "noisy_grid.png"
35
+ "subtlenet2.png"
36
+ "white_carbon.png"
37
+ "lghtmesh.png"
38
+ "p5.png" // Dots
39
+ "worn_dots.png"
40
+ "subtle_dots.png"
41
+ "brillant.png"
42
+ "farmer.png"
43
+ "retina_dust.png" // Lines
44
+ "pinstripe.png"
45
+ "line_horizontal1.png"
46
+ "line_horizontal2.png"
47
+ "linen.png"
48
+ "vintage_speckles.png" // Patina and irregular
49
+ "subtle_grunge.png"
50
+ "old_wall.png"
51
+ "brushed.png"
52
+ "stucco.png"
53
+ "mooning.png"
54
+ "husk.png"
55
+ "concrete_wall_2.png"
56
+ "noisy.png"
57
+ "concrete_wall_3.png"
58
+ "subtle_surface.png"
59
+ "dust.png"
60
+ "light_alu.png"
61
+ "corrugation.png"
62
+ "kindajean.png" // Diagonal
63
+ "line_diagonal1.png"
64
+ "line_diagonal2.png"
65
+ "groovepaper.png"
66
+ "brushed_alu.png"
67
+ "rough_diagonal.png"
68
+ "diagonal-noise.png"
69
+ "cross_scratches.png"
70
+ "striped_lens.png"
71
+ "debut_light.png"
72
+ "diagonal_waves.png" // Special
73
+ "honey_im_subtle.png"
74
+ "pw_maze_white.png"
75
+ "subtle_zebra_3d.png"
76
+ "white_wave.png"
77
+ "circles.png"
78
+ "crosses.png"
79
+ "grilled.png"
80
+ "pw_pattern.png"
81
+ "struckaxiom.png"
82
+ "vichy.png"
83
+ "wavecut.png"
84
+ "whitey.png"
85
+ "cream_pixels.png"
86
+ "grey.png"
87
+ "shinedotted.png"
88
+ "stacked_circles.png"
89
+ "noisy_grid_simple.png";
90
+
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);
93
+ }
94
+
95
+ @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);
97
+ }
98
+ }
99
+
100
+ .texture-examples {
101
+ @include clearfix;
102
+ border-radius: $base-border-radius * 2;
103
+ border: 1px solid silver;
104
+ margin-bottom: 3em;
105
+ padding: 1em;
106
+
107
+ .texture-examples-container {
108
+ @include clearfix;
109
+ }
110
+
111
+ h3 {
112
+ color: #CDCDCD;
113
+ font-size: 1em;
114
+ margin-bottom: 1.5em;
115
+ text-align: center;
116
+ text-transform: uppercase;
117
+ }
118
+
119
+ h4 {
120
+ color: gray;
121
+ font-size: .8em;
122
+ font-weight: 200;
123
+ line-height: 2.2em;
124
+ padding-left: .5em;
125
+ text-align: center;
126
+ }
127
+
128
+ .instructions {
129
+ clear: both;
130
+ display: block;
131
+ padding-top: 2em;
132
+ text-align: center;
133
+ }
134
+
135
+ b {
136
+ font-weight: 800;
137
+ }
138
+
139
+ p {
140
+ color: #909090;
141
+ font-size: .9em;
142
+ margin: 1em auto 1em auto;
143
+ max-width: 74%;
144
+ }
145
+ }
146
+
147
+ .examples {
148
+ height: 2.5em;
149
+ width: 100%;
150
+ }
151
+
152
+ .example-normal {
153
+ border-bottom-left-radius: $base-border-radius * 2;
154
+ border-top-left-radius: $base-border-radius * 2;
155
+ float: left;
156
+ height: 100%;
157
+ width: 50%;
158
+ }
159
+
160
+ .example-inverted {
161
+ border-bottom-right-radius: $base-border-radius * 2;
162
+ border-top-right-radius: $base-border-radius * 2;
163
+ float: left;
164
+ height: 100%;
165
+ width: 50%;
166
+ }
167
+
168
+ @for $i from 1 through 88 {
169
+ .texture-#{$i} {
170
+ float: left;
171
+ margin-bottom: 1em;
172
+ margin: 0 0.95% 1em 0.95%;
173
+ width: 14.7%;
174
+
175
+ .example-normal {
176
+ @include texture(180deg, lighten(#DDF0EF, 1), darken(#DDF0EF, 10), $i, 0); // gradient color 1, gradient color 2, gradient angle, texture-number, 0=inverted or 1=normal
177
+ }
178
+ .example-inverted {
179
+ @include texture(180deg, lighten(#DDF0EF, 1), darken(#DDF0EF, 10), $i, 1); // gradient color 1, gradient color 2, gradient angle, texture-number, 0=inverted or 1=normal
180
+ }
181
+ }
182
+ }
@@ -0,0 +1,119 @@
1
+ @mixin texture($gradient-angle, $bg-color-1, $bg-color-2, $texture-number, $inverted) { $texture-list:
2
+ "paper.png" // Fabric and paper
3
+ "rice_paper.png"
4
+ "noise_lines.png"
5
+ "fabric_plaid.png"
6
+ "first_aid_kit.png"
7
+ "texturetastic_gray.png"
8
+ "lil_fiber.png"
9
+ "tex2res5.png"
10
+ "skin_side_up.png"
11
+ "light_noise_diagonal.png"
12
+ "chruch.png"
13
+ "45degreee_fabric.png"
14
+ "bgnoise_lg.png"
15
+ "little_pluses.png"
16
+ "squairy_light.png"
17
+ "white_texture.png"
18
+ "binding_light.png"
19
+ "double_lined.png" // Grid, mesh and squares
20
+ "grid.png"
21
+ "absurdidad.png"
22
+ "grid_noise.png"
23
+ "fancy_deboss.png"
24
+ "graphy.png"
25
+ "noise_pattern_with_crosslines.png"
26
+ "old_mathematics.png"
27
+ "ps_neutral.png"
28
+ "subtle_freckles.png"
29
+ "wavegrid.png"
30
+ "az_subtle.png"
31
+ "tiny_grid.png"
32
+ "wavegrid.png"
33
+ "gridme.png"
34
+ "noisy_grid.png"
35
+ "subtlenet2.png"
36
+ "white_carbon.png"
37
+ "lghtmesh.png"
38
+ "p5.png" // Dots
39
+ "worn_dots.png"
40
+ "subtle_dots.png"
41
+ "brillant.png"
42
+ "farmer.png"
43
+ "retina_dust.png" // Lines
44
+ "pinstripe.png"
45
+ "line_horizontal1.png"
46
+ "line_horizontal2.png"
47
+ "linen.png"
48
+ "vintage_speckles.png" // Patina and irregular
49
+ "subtle_grunge.png"
50
+ "old_wall.png"
51
+ "brushed.png"
52
+ "stucco.png"
53
+ "mooning.png"
54
+ "husk.png"
55
+ "concrete_wall_2.png"
56
+ "noisy.png"
57
+ "concrete_wall_3.png"
58
+ "subtle_surface.png"
59
+ "dust.png"
60
+ "light_alu.png"
61
+ "corrugation.png"
62
+ "kindajean.png" // Diagonal
63
+ "line_diagonal1.png"
64
+ "line_diagonal2.png"
65
+ "groovepaper.png"
66
+ "brushed_alu.png"
67
+ "rough_diagonal.png"
68
+ "diagonal-noise.png"
69
+ "cross_scratches.png"
70
+ "striped_lens.png"
71
+ "debut_light.png"
72
+ "diagonal_waves.png" // Special
73
+ "honey_im_subtle.png"
74
+ "pw_maze_white.png"
75
+ "subtle_zebra_3d.png"
76
+ "white_wave.png"
77
+ "circles.png"
78
+ "crosses.png"
79
+ "grilled.png"
80
+ "pw_pattern.png"
81
+ "struckaxiom.png"
82
+ "vichy.png"
83
+ "wavecut.png"
84
+ "whitey.png"
85
+ "cream_pixels.png"
86
+ "grey.png"
87
+ "shinedotted.png"
88
+ "stacked_circles.png"
89
+ "noisy_grid_simple.png";
90
+
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);
93
+ }
94
+
95
+ @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);
97
+ }
98
+ }
99
+
100
+ // The mixin above should preferably be in a file of its own. Below is the code for the object that has the texture.
101
+
102
+ .texture {
103
+ height: 5em;
104
+ width: 100%;
105
+ }
106
+
107
+ .texture-normal {
108
+ @include texture(180deg, lighten(#DDF0EF, 1), darken(#DDF0EF, 10), 67, 1); // gradient color 1, gradient color 2, gradient angle, texture-number, 0=inverted or 1=normal
109
+ float: left;
110
+ height: 5em;
111
+ width: 50%;
112
+ }
113
+
114
+ .texture-inverted {
115
+ @include texture(180deg, lighten(#DDF0EF, 1), darken(#DDF0EF, 10), 67, 0); // gradient color 1, gradient color 2, gradient angle, texture-number, 0=inverted or 1=normal
116
+ float: left;
117
+ height: 5em;
118
+ width: 50%;
119
+ }
@@ -0,0 +1,57 @@
1
+ .tooltip-item {
2
+ $tooltip-background: white;
3
+ $tooltip-color: $base-font-color;
4
+ $tooltip-width: 16em;
5
+ $tooltip-arrow-width: 8px;
6
+ $tooltip-shadow: 0 2px 2px silver;
7
+ $tooltip-distance-from-item: 140%;
8
+ $tooltip-arrow-distance-from-box: -$tooltip-arrow-width * 3.2;
9
+
10
+ border: 1px solid $base-border-color;
11
+ padding: .5em 1em;
12
+ border-radius: $base-border-radius;
13
+ position: relative;
14
+ margin-bottom: $base-line-height;
15
+
16
+ &:hover .tooltip {
17
+ opacity: 1;
18
+ visibility: visible;
19
+ }
20
+
21
+ .tooltip {
22
+ @include position(absolute, null null null 50%);
23
+ @include box-sizing(border-box);
24
+ @include transition (all 0.2s ease-in-out);
25
+ bottom: $tooltip-distance-from-item;
26
+ background-color: $tooltip-background;
27
+ border-radius: $base-border-radius;
28
+ color: $tooltip-color;
29
+ font-size: .9em; // Make sure you use -webkit-backface-visibility: hidden; on the body element to prevent 1px nudging bugs.
30
+ line-height: 1.5em;
31
+ margin-left: -($tooltip-width/2);
32
+ opacity: 0;
33
+ padding: 1em;
34
+ box-shadow: $tooltip-shadow;
35
+ text-align: center;
36
+ visibility: hidden;
37
+ min-width: $tooltip-width;
38
+ z-index: 10;
39
+ font-family: $serif;
40
+
41
+ p {
42
+ margin-bottom: 0;
43
+ }
44
+
45
+ &:after {
46
+ @include position(absolute, null null null 46%);
47
+ margin-left: -$tooltip-arrow-width;
48
+ border: $tooltip-arrow-width solid transparent;
49
+ color: $tooltip-background;
50
+ content: '▼';
51
+ text-shadow: $tooltip-shadow;
52
+ font-size: 1.4em;
53
+ pointer-events: none;
54
+ bottom: $tooltip-arrow-distance-from-box;
55
+ }
56
+ }
57
+ }