shibori 1.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (239) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +27 -0
  5. data/Procfile +1 -0
  6. data/README.md +24 -0
  7. data/Rakefile +2 -0
  8. data/app.json +11 -0
  9. data/builder/lineage_hunter.js +80 -0
  10. data/builder/list_item_hunter.js +106 -0
  11. data/builder/media_hunter.js +51 -0
  12. data/builder/object_factory.js +60 -0
  13. data/builder/parameter_hunter.js +69 -0
  14. data/builder/pattern_assembler.js +258 -0
  15. data/builder/pattern_exporter.js +43 -0
  16. data/builder/patternlab.js +365 -0
  17. data/builder/patternlab_grunt.js +38 -0
  18. data/builder/patternlab_gulp.js +26 -0
  19. data/builder/pseudopattern_hunter.js +78 -0
  20. data/config.json +34 -0
  21. data/docs/Pattern Lab Node.md +225 -0
  22. data/favicon.ico +0 -0
  23. data/gulpfile.js +148 -0
  24. data/index.js +20 -0
  25. data/lib/shibori/version.rb +3 -0
  26. data/lib/shibori.rb +11 -0
  27. data/package.json +44 -0
  28. data/public/data/annotations.js +109 -0
  29. data/public/styleguide/css/static.css +458 -0
  30. data/public/styleguide/css/static.scss +404 -0
  31. data/public/styleguide/css/styleguide-specific.css +170 -0
  32. data/public/styleguide/css/styleguide-specific.scss +204 -0
  33. data/public/styleguide/css/styleguide.css +880 -0
  34. data/public/styleguide/css/styleguide.scss +950 -0
  35. data/public/styleguide/css/vendor/prism.css +112 -0
  36. data/public/styleguide/css/vendor/typeahead.css +66 -0
  37. data/public/styleguide/fonts/icomoon.eot +0 -0
  38. data/public/styleguide/fonts/icomoon.svg +22 -0
  39. data/public/styleguide/fonts/icomoon.ttf +0 -0
  40. data/public/styleguide/fonts/icomoon.woff +0 -0
  41. data/public/styleguide/html/README +1 -0
  42. data/public/styleguide/images/spinner.gif +0 -0
  43. data/public/styleguide/js/annotations-pattern.js +308 -0
  44. data/public/styleguide/js/annotations-viewer.js +289 -0
  45. data/public/styleguide/js/code-pattern.js +120 -0
  46. data/public/styleguide/js/code-viewer.js +443 -0
  47. data/public/styleguide/js/data-saver.js +169 -0
  48. data/public/styleguide/js/pattern-finder.js +114 -0
  49. data/public/styleguide/js/postmessage.js +127 -0
  50. data/public/styleguide/js/styleguide.js +600 -0
  51. data/public/styleguide/js/url-handler.js +182 -0
  52. data/public/styleguide/js/vendor/classlist-polyfill.js +176 -0
  53. data/public/styleguide/js/vendor/jquery.js +4 -0
  54. data/public/styleguide/js/vendor/jwerty.js +523 -0
  55. data/public/styleguide/js/vendor/prism.js +7 -0
  56. data/public/styleguide/js/vendor/typeahead.bundle.min.js +7 -0
  57. data/script/bootstrap +58 -0
  58. data/shibori.gemspec +18 -0
  59. data/shibori.jpg +0 -0
  60. data/source/_data/annotations.js +109 -0
  61. data/source/_data/data.json +93 -0
  62. data/source/_data/listitems.json +782 -0
  63. data/source/_patternlab-files/README +1 -0
  64. data/source/_patternlab-files/index.mustache +94 -0
  65. data/source/_patternlab-files/partials/ishControls.mustache +64 -0
  66. data/source/_patternlab-files/partials/patternNav.mustache +17 -0
  67. data/source/_patternlab-files/partials/patternPaths.mustache +3 -0
  68. data/source/_patternlab-files/partials/viewAllPaths.mustache +3 -0
  69. data/source/_patternlab-files/pattern-header-footer/README +1 -0
  70. data/source/_patternlab-files/pattern-header-footer/footer.html +34 -0
  71. data/source/_patternlab-files/pattern-header-footer/header.html +44 -0
  72. data/source/_patternlab-files/styleguide.mustache +75 -0
  73. data/source/_patternlab-files/viewall.mustache +75 -0
  74. data/source/_patterns/00-atoms/00-typography/00-headings.mustache +6 -0
  75. data/source/_patterns/00-atoms/00-typography/01-headings-options.mustache +7 -0
  76. data/source/_patterns/00-atoms/00-typography/02-body.mustache +2 -0
  77. data/source/_patterns/00-atoms/00-typography/03-text-manipulation.mustache +12 -0
  78. data/source/_patterns/00-atoms/00-typography/04-blockquotes.mustache +3 -0
  79. data/source/_patterns/00-atoms/00-typography/05-lists.mustache +64 -0
  80. data/source/_patterns/00-atoms/01-colors/00-colors-monochromatic.mustache +36 -0
  81. data/source/_patterns/00-atoms/01-colors/01-colors-brand.mustache +26 -0
  82. data/source/_patterns/00-atoms/01-colors/02-colors-gradients.mustache +38 -0
  83. data/source/_patterns/00-atoms/02-buttons/00-btn-lg.mustache +7 -0
  84. data/source/_patterns/00-atoms/02-buttons/01-btn-sm.mustache +7 -0
  85. data/source/_patterns/00-atoms/02-buttons/02-btn-xs.mustache +7 -0
  86. data/source/_patterns/00-atoms/02-buttons/03-btn-block.mustache +7 -0
  87. data/source/_patterns/00-atoms/02-buttons/04-btn-deploy.mustache +4 -0
  88. data/source/_patterns/00-atoms/03-forms/00-text-fields.mustache +24 -0
  89. data/source/_patterns/00-atoms/03-forms/01-select-menu.mustache +6 -0
  90. data/source/_patterns/00-atoms/03-forms/02-checkbox.mustache +10 -0
  91. data/source/_patterns/00-atoms/03-forms/03-radios.mustache +10 -0
  92. data/source/_patterns/00-atoms/03-forms/04-validation.mustache +14 -0
  93. data/source/_patterns/00-atoms/04-quote/00-pullquote.mustache +7 -0
  94. data/source/_patterns/00-atoms/04-quote/01-quote-small.mustache +7 -0
  95. data/source/_patterns/00-atoms/05-code/01-pre.mustache +11 -0
  96. data/source/_patterns/00-atoms/06-tooltips/00-text.mustache +3 -0
  97. data/source/_patterns/00-atoms/06-tooltips/01-diagram-callout.mustache +1 -0
  98. data/source/_patterns/00-atoms/07-loader/00-spinner.mustache +5 -0
  99. data/source/_patterns/00-atoms/08-readmore/00-readmore.mustache +3 -0
  100. data/source/_patterns/00-atoms/09-slider/00-dots.mustache +8 -0
  101. data/source/_patterns/00-atoms/10-tables/00-tables.mustache +26 -0
  102. data/source/_patterns/00-atoms/12-modal/00-modal.mustache +14 -0
  103. data/source/_patterns/00-atoms/13-panel/00-panel.mustache +3 -0
  104. data/source/_patterns/00-atoms/14-users/00-avatar.mustache +3 -0
  105. data/source/_patterns/00-atoms/15-icons/00-icons.mustache +333 -0
  106. data/source/_patterns/00-atoms/15-icons/04-icon-colors.mustache +38 -0
  107. data/source/_patterns/00-atoms/15-icons/05-icon-sizes.mustache +31 -0
  108. data/source/_patterns/00-atoms/15-icons/_02-languages.mustache +0 -0
  109. data/source/_patterns/00-atoms/15-icons/_03-social.mustache +0 -0
  110. data/source/_patterns/00-atoms/15-icons/_05-icon-containers.mustache +0 -0
  111. data/source/_patterns/00-atoms/16-video/01-video.mustache +3 -0
  112. data/source/_patterns/00-atoms/16-video/_00-play-button.mustache +0 -0
  113. data/source/_patterns/00-atoms/17-utilities/00-visibility.mustache +8 -0
  114. data/source/_patterns/00-atoms/17-utilities/01-ui-elements.mustache +3 -0
  115. data/source/_patterns/00-atoms/18-grid/_00-grid.mustache +0 -0
  116. data/source/_patterns/01-molecules/00-text/00-header-groups.mustache +4 -0
  117. data/source/_patterns/01-molecules/00-text/01-intro-text.mustache +5 -0
  118. data/source/_patterns/01-molecules/01-layout/00-one-up.mustache +8 -0
  119. data/source/_patterns/01-molecules/01-layout/01-two-up.mustache +9 -0
  120. data/source/_patterns/01-molecules/01-layout/02-three-up.mustache +10 -0
  121. data/source/_patterns/01-molecules/01-layout/03-four-up.mustache +11 -0
  122. data/source/_patterns/01-molecules/01-layout/04-masonary-2.mustache +24 -0
  123. data/source/_patterns/01-molecules/01-layout/05-masonary-3.mustache +24 -0
  124. data/source/_patterns/01-molecules/02-navigation/01-subnav.mustache +21 -0
  125. data/source/_patterns/01-molecules/02-navigation/02-breadcrumbs.mustache +25 -0
  126. data/source/_patterns/01-molecules/02-navigation/03-side-nav.mustache +11 -0
  127. data/source/_patterns/01-molecules/02-navigation/04-side-nav-small.mustache +32 -0
  128. data/source/_patterns/01-molecules/02-navigation/05-pagination.mustache +0 -0
  129. data/source/_patterns/01-molecules/02-navigation/06-tabs.mustache +46 -0
  130. data/source/_patterns/01-molecules/03-forms/_00-search.mustache +0 -0
  131. data/source/_patterns/01-molecules/04-slider/00-slider.mustache +8 -0
  132. data/source/_patterns/01-molecules/05-messages/00-alert.mustache +15 -0
  133. data/source/_patterns/01-molecules/06-components/_00-social-share.mustache +0 -0
  134. data/source/_patterns/01-molecules/07-Elements/01-Addons-Card.mustache +79 -0
  135. data/source/_patterns/01-molecules/07-Elements/02-Buttons-Card.mustache +131 -0
  136. data/source/_patterns/01-molecules/07-Elements/03-Buildpack-Card.mustache +109 -0
  137. data/source/_patterns/01-molecules/08-vertical-tabs/01-vertical-tabs.mustache +30 -0
  138. data/source/_patterns/02-organisms/03-sections/00-purple.mustache +11 -0
  139. data/source/_patterns/02-organisms/03-sections/01-purple-dark.mustache +12 -0
  140. data/source/_patterns/02-organisms/03-sections/03-gray-light.mustache +12 -0
  141. data/source/css/hk-icon-rails.scss +13 -0
  142. data/source/css/scss/base/_base.scss +62 -0
  143. data/source/css/scss/base/_fonts.scss +12 -0
  144. data/source/css/scss/base/_normalize.scss +431 -0
  145. data/source/css/scss/base/_type.scss +128 -0
  146. data/source/css/scss/base/_utilities.scss +78 -0
  147. data/source/css/scss/components/_alert.scss +38 -0
  148. data/source/css/scss/components/_animate.scss +3340 -0
  149. data/source/css/scss/components/_animation.scss +15 -0
  150. data/source/css/scss/components/_buttons.scss +175 -0
  151. data/source/css/scss/components/_code.scss +26 -0
  152. data/source/css/scss/components/_forms.scss +136 -0
  153. data/source/css/scss/components/_hero.scss +18 -0
  154. data/source/css/scss/components/_hr.scss +11 -0
  155. data/source/css/scss/components/_icons.scss +85 -0
  156. data/source/css/scss/components/_lists.scss +45 -0
  157. data/source/css/scss/components/_logos.scss +15 -0
  158. data/source/css/scss/components/_masonary.scss +46 -0
  159. data/source/css/scss/components/_modal.scss +218 -0
  160. data/source/css/scss/components/_owlCarousel.scss +270 -0
  161. data/source/css/scss/components/_panel.scss +11 -0
  162. data/source/css/scss/components/_pill-box.scss +38 -0
  163. data/source/css/scss/components/_quote.scss +96 -0
  164. data/source/css/scss/components/_readmore.scss +11 -0
  165. data/source/css/scss/components/_slider.scss +96 -0
  166. data/source/css/scss/components/_spinner.scss +64 -0
  167. data/source/css/scss/components/_sprites.scss +3 -0
  168. data/source/css/scss/components/_sr-only.scss +10 -0
  169. data/source/css/scss/components/_tables.scss +62 -0
  170. data/source/css/scss/components/_tooltips.scss +93 -0
  171. data/source/css/scss/components/_users.scss +11 -0
  172. data/source/css/scss/components/_vertical-tabs.scss +129 -0
  173. data/source/css/scss/components/_video.scss +7 -0
  174. data/source/css/scss/ecosystem/_addons-card.scss +3 -0
  175. data/source/css/scss/ecosystem/_cards.scss +369 -0
  176. data/source/css/scss/ecosystem/_elements-brand.scss +32 -0
  177. data/source/css/scss/ecosystem/_elements.scss +4 -0
  178. data/source/css/scss/globals/_colors.scss +189 -0
  179. data/source/css/scss/globals/_mixins.scss +45 -0
  180. data/source/css/scss/globals/_variables.scss +87 -0
  181. data/source/css/scss/layout/_grid-settings.scss +13 -0
  182. data/source/css/scss/layout/_layout.scss +95 -0
  183. data/source/css/scss/page-elements/_headers.scss +3 -0
  184. data/source/css/scss/page-elements/_navigation.scss +254 -0
  185. data/source/css/scss/page-elements/_sections.scss +66 -0
  186. data/source/css/scss/page-elements/_sidebar.scss +34 -0
  187. data/source/css/shibori.scss +63 -0
  188. data/source/fonts/bentonsans/bentonsans-book.eot +0 -0
  189. data/source/fonts/bentonsans/bentonsans-book.svg +400 -0
  190. data/source/fonts/bentonsans/bentonsans-book.ttf +0 -0
  191. data/source/fonts/bentonsans/bentonsans-book.woff +0 -0
  192. data/source/fonts/bentonsans/bentonsans-medium.eot +0 -0
  193. data/source/fonts/bentonsans/bentonsans-medium.svg +416 -0
  194. data/source/fonts/bentonsans/bentonsans-medium.ttf +0 -0
  195. data/source/fonts/bentonsans/bentonsans-medium.woff +0 -0
  196. data/source/fonts/bentonsans/bentonsans-regular.eot +0 -0
  197. data/source/fonts/bentonsans/bentonsans-regular.svg +416 -0
  198. data/source/fonts/bentonsans/bentonsans-regular.ttf +0 -0
  199. data/source/fonts/bentonsans/bentonsans-regular.woff +0 -0
  200. data/source/fonts/hk-icon/hk-icon.eot +0 -0
  201. data/source/fonts/hk-icon/hk-icon.svg +261 -0
  202. data/source/fonts/hk-icon/hk-icon.ttf +0 -0
  203. data/source/fonts/hk-icon/hk-icon.woff +0 -0
  204. data/source/fonts/inconsolata/inconsolata-bold.eot +0 -0
  205. data/source/fonts/inconsolata/inconsolata-bold.svg +239 -0
  206. data/source/fonts/inconsolata/inconsolata-bold.ttf +0 -0
  207. data/source/fonts/inconsolata/inconsolata-bold.woff +0 -0
  208. data/source/fonts/inconsolata/inconsolata-regular.eot +0 -0
  209. data/source/fonts/inconsolata/inconsolata-regular.svg +239 -0
  210. data/source/fonts/inconsolata/inconsolata-regular.ttf +0 -0
  211. data/source/fonts/inconsolata/inconsolata-regular.woff +0 -0
  212. data/source/images/blockquote/close-sm.png +0 -0
  213. data/source/images/blockquote/close.png +0 -0
  214. data/source/images/blockquote/close@2x.png +0 -0
  215. data/source/images/blockquote/open-sm.png +0 -0
  216. data/source/images/blockquote/open.png +0 -0
  217. data/source/images/blockquote/open@2x.png +0 -0
  218. data/source/images/elements/heroku_suported.svg +32 -0
  219. data/source/images/forms/select-input-arrows.svg +8 -0
  220. data/source/js/init.js +26 -0
  221. data/source/js/main.js +22 -0
  222. data/source/js/vendor/bourbon-modal.js +17 -0
  223. data/source/js/vendor/fitvids.js +77 -0
  224. data/source/js/vendor/fixto.js +719 -0
  225. data/source/js/vendor/jquery-2.0.0b2.js +8690 -0
  226. data/source/js/vendor/modernizr.js +4 -0
  227. data/source/js/vendor/owl.carousel.js +3069 -0
  228. data/source/js/vendor/readmore.js +11 -0
  229. data/source/js/vendor/unslider.js +1 -0
  230. data/source/js/vendor/vertical-tabs.js +34 -0
  231. data/test/files/test.css +19 -0
  232. data/test/lineage_hunter_tests.js +262 -0
  233. data/test/list_item_hunter_tests.js +167 -0
  234. data/test/media_hunter_tests.js +74 -0
  235. data/test/object_factory_tests.js +62 -0
  236. data/test/parameter_hunter_tests.js +298 -0
  237. data/test/pattern_assembler_tests.js +43 -0
  238. data/test/patternlab_tests.js +8 -0
  239. metadata +320 -0
@@ -0,0 +1,880 @@
1
+ /*------------------------------------* $PATTERN LAB STYLES
2
+ \*------------------------------------*/
3
+ /**
4
+ * NOTE: These styles are specific to Pattern Lab and should not be modified.
5
+ * Edit all project styles in /source/css/
6
+ *
7
+ * Second note: Any important declarations are to prevent brand styles from overriding style guide
8
+ */
9
+ /*------------------------------------* $CONTENTS
10
+ \*------------------------------------*/
11
+ /**
12
+ * STYLE GUIDE VARIABLES------------------Declarations of Sass variables
13
+ * -----Font
14
+ * -----Colors
15
+ * -----Typography
16
+ * -----Defaults
17
+ * -----Breakpoints
18
+ * MIXINS---------------------------------Sass mixins
19
+ * GLOBAL ELEMENTS------------------------Establish global styles
20
+ * -----Main
21
+ * -----Headings
22
+ * -----Text-related elements (p, blockquote, lists)
23
+ * -----Defaults
24
+ * -----Breakpoints
25
+ * STYLE GUIDE INTERFACE------------------CSS for the Pattern Lab Container.
26
+ * -----Header
27
+ * -----Navigation
28
+ * -----Controls
29
+ * -----Main Container
30
+ * -----Viewport
31
+ * -----Section Headers
32
+ * -----Code View
33
+ * -----Icon Fonts
34
+ */
35
+ /*------------------------------------* $PATTERN LAB VARIABLES
36
+ \*------------------------------------*/
37
+ /*Fonts*/
38
+ /* Style Guide Interface Colors */
39
+ /* Typography */
40
+ /* Defaults */
41
+ /* Dimensions */
42
+ /* Breakpoints */
43
+ /*------------------------------------* $PATTERN LAB MIXINS
44
+ \*------------------------------------*/
45
+ /*------------------------------------* $PATTERN LAB INTERFACE
46
+ \*------------------------------------*/
47
+ #patternlab-html, #patternlab-body {
48
+ margin: 0;
49
+ padding: 0;
50
+ background: #ddd;
51
+ -webkit-text-size-adjust: 100%;
52
+ }
53
+
54
+ .sg-nav-wrapper {
55
+ overflow: hidden;
56
+ background: #ddd;
57
+ }
58
+
59
+ .is-vishidden {
60
+ position: absolute !important;
61
+ overflow: hidden;
62
+ width: 1px;
63
+ height: 1px;
64
+ padding: 0;
65
+ border: 0;
66
+ clip: rect(1px, 1px, 1px, 1px);
67
+ }
68
+
69
+ .sg-cf, .sg-pattern {
70
+ /**zoom: 1;*/
71
+ }
72
+
73
+ .sg-cf:before, .sg-pattern:before, .sg-cf:after, .sg-pattern:after {
74
+ content: " ";
75
+ display: table;
76
+ }
77
+
78
+ .sg-cf:after, .sg-pattern:after {
79
+ clear: both;
80
+ }
81
+
82
+ .sg-main {
83
+ max-width: 90%;
84
+ margin: auto;
85
+ }
86
+
87
+ .sg-single-pattern {
88
+ max-width: 90%;
89
+ margin: 40px auto;
90
+ }
91
+
92
+ /*------------------------------------* $PATTERN LAB HEADER
93
+ \*------------------------------------*/
94
+ /* Header */
95
+ .sg-header {
96
+ background: #222;
97
+ color: #fff;
98
+ font-family: "BentonSans", "Helvetica", "Arial", sans-serif;
99
+ position: fixed;
100
+ top: 0;
101
+ left: 0;
102
+ z-index: 2;
103
+ width: 100%;
104
+ }
105
+
106
+ .sg-header * {
107
+ -moz-box-sizing: border-box;
108
+ -webkit-box-sizing: border-box;
109
+ box-sizing: border-box;
110
+ }
111
+
112
+ .sg-header ul, .sg-header ol {
113
+ padding: 0;
114
+ margin: 0;
115
+ }
116
+
117
+ .sg-header li {
118
+ list-style: none;
119
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
120
+ }
121
+
122
+ .sg-header a {
123
+ font-size: 70%;
124
+ color: #808080;
125
+ text-decoration: none;
126
+ display: block;
127
+ line-height: 1;
128
+ padding: 1em;
129
+ -webkit-transition: background 0.15s ease-out;
130
+ -moz-transition: background 0.15s ease-out;
131
+ -ms-transition: background 0.15s ease-out;
132
+ -o-transition: background 0.15s ease-out;
133
+ transition: background 0.15s ease-out;
134
+ -webkit-transition: color 0.15s ease-out;
135
+ -moz-transition: color 0.15s ease-out;
136
+ -ms-transition: color 0.15s ease-out;
137
+ -o-transition: color 0.15s ease-out;
138
+ transition: color 0.15s ease-out;
139
+ }
140
+
141
+ .sg-header a:hover, .sg-header a:focus, .sg-header a.active {
142
+ color: #fff;
143
+ background: rgba(255, 255, 255, 0.05);
144
+ }
145
+
146
+ .sg-header ol ol ol a {
147
+ padding-left: 2em;
148
+ text-transform: none;
149
+ }
150
+
151
+ /* Navigation */
152
+ .sg-header .sg-nav-toggle {
153
+ display: inline-block;
154
+ padding: 0.9em 1em;
155
+ border-bottom: 1px solid transparent;
156
+ position: relative;
157
+ z-index: 2;
158
+ }
159
+
160
+ .sg-header .sg-nav-toggle span {
161
+ display: inline-block;
162
+ padding-right: 0.2em;
163
+ }
164
+
165
+ @media all and (min-width: 48em) {
166
+ .sg-header .sg-nav-toggle {
167
+ display: none;
168
+ }
169
+ }
170
+
171
+ @media all and (max-width: 48em) {
172
+ .sg-nav-container {
173
+ overflow: hidden;
174
+ max-height: 0;
175
+ -webkit-transition: max-height 0.1s ease-out;
176
+ -moz-transition: max-height 0.1s ease-out;
177
+ -ms-transition: max-height 0.1s ease-out;
178
+ -o-transition: max-height 0.1s ease-out;
179
+ transition: max-height 0.1s ease-out;
180
+ }
181
+ .sg-nav-container.active {
182
+ max-height: 50em;
183
+ }
184
+ }
185
+
186
+ .sg-nav {
187
+ z-index: 1;
188
+ margin: 0;
189
+ padding: 0;
190
+ list-style: none;
191
+ }
192
+
193
+ .sg-nav > li {
194
+ cursor: pointer;
195
+ }
196
+
197
+ @media all and (min-width: 48em) {
198
+ .sg-nav > li {
199
+ border-bottom: 0;
200
+ border-right: 1px solid rgba(255, 255, 255, 0.05);
201
+ float: left;
202
+ position: relative;
203
+ }
204
+ .sg-nav > li > ol {
205
+ position: absolute;
206
+ top: 2em;
207
+ left: 0;
208
+ }
209
+ }
210
+
211
+ /* Accordion */
212
+ .sg-acc-handle:after {
213
+ content: ' +';
214
+ float: right;
215
+ font-size: 70%;
216
+ }
217
+
218
+ @media all and (min-width: 48em) {
219
+ .sg-acc-handle:after {
220
+ float: none;
221
+ }
222
+ }
223
+
224
+ .sg-acc-handle.active {
225
+ color: #fff;
226
+ background: rgba(255, 255, 255, 0.05);
227
+ }
228
+
229
+ .sg-acc-handle.active:after {
230
+ content: ' -';
231
+ }
232
+
233
+ .sg-acc-handle.sg-icon:after {
234
+ content: "";
235
+ }
236
+
237
+ .sg-header .sg-icon {
238
+ width: auto;
239
+ font-size: 1rem;
240
+ padding: 0.5rem 1rem;
241
+ }
242
+
243
+ .sg-acc-panel {
244
+ overflow: hidden;
245
+ max-height: 0;
246
+ min-width: 10em;
247
+ -webkit-transition: max-height 0.1s ease-out;
248
+ -moz-transition: max-height 0.1s ease-out;
249
+ -ms-transition: max-height 0.1s ease-out;
250
+ -o-transition: max-height 0.1s ease-out;
251
+ transition: max-height 0.1s ease-out;
252
+ }
253
+
254
+ .sg-acc-panel li {
255
+ background: #222;
256
+ }
257
+
258
+ .sg-acc-panel.active {
259
+ max-height: 120em;
260
+ overflow: auto;
261
+ }
262
+
263
+ .sg-acc-panel.sg-right {
264
+ position: absolute;
265
+ left: auto;
266
+ right: 0;
267
+ }
268
+
269
+ .sg-acc-panel.sg-left {
270
+ position: absolute;
271
+ left: auto;
272
+ }
273
+
274
+ .sg-acc-panel [class^="sg-icon-"]:before {
275
+ display: inline-block;
276
+ margin-right: 0.4em;
277
+ }
278
+
279
+ /* Controls (sizing, view mode) */
280
+ .sg-controls {
281
+ border: 0;
282
+ position: absolute;
283
+ top: 0;
284
+ right: 0;
285
+ z-index: 2;
286
+ }
287
+
288
+ .sg-control-trigger {
289
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05);
290
+ }
291
+
292
+ @media all and (min-width: 48em) {
293
+ .sg-control-trigger {
294
+ border: 0;
295
+ }
296
+ }
297
+
298
+ @media all and (min-width: 72em) {
299
+ .sg-control-trigger {
300
+ float: left;
301
+ width: 6em;
302
+ }
303
+ }
304
+
305
+ .sg-control > li {
306
+ float: left;
307
+ }
308
+
309
+ @media all and (min-width: 48em) {
310
+ .sg-control > li {
311
+ border-bottom: 0;
312
+ border-left: 1px solid rgba(255, 255, 255, 0.05);
313
+ }
314
+ }
315
+
316
+ .sg-control .sg-input {
317
+ padding: 0.1em;
318
+ -webkit-transition: all 0.2s ease-out;
319
+ -moz-transition: all 0.2s ease-out;
320
+ -ms-transition: all 0.2s ease-out;
321
+ -o-transition: all 0.2s ease-out;
322
+ transition: all 0.2s ease-out;
323
+ }
324
+
325
+ .sg-control .sg-input:active, .sg-control .sg-input:focus {
326
+ outline: 0;
327
+ background: #999;
328
+ color: #000;
329
+ }
330
+
331
+ .sg-current-size {
332
+ font-size: 70%;
333
+ color: #808080;
334
+ padding: 0.85em 0.7em;
335
+ }
336
+
337
+ .sg-current-size:hover .sg-input {
338
+ background: #999;
339
+ color: #000;
340
+ }
341
+
342
+ @media all and (min-width: 72em) {
343
+ .sg-current-size {
344
+ float: left;
345
+ }
346
+ }
347
+
348
+ .sg-size {
349
+ width: 135px;
350
+ }
351
+
352
+ @media all and (min-width: 48em) {
353
+ .sg-size {
354
+ width: auto;
355
+ }
356
+ }
357
+
358
+ @media all and (min-width: 72em) {
359
+ .sg-size-options {
360
+ float: left;
361
+ position: static;
362
+ max-height: none;
363
+ max-width: none;
364
+ }
365
+ .sg-size-options > li {
366
+ float: left;
367
+ border: 0;
368
+ border-left: 1px solid rgba(255, 255, 255, 0.05);
369
+ }
370
+ }
371
+
372
+ #sg-size-mq {
373
+ display: none;
374
+ }
375
+
376
+ @media all and (min-width: 72em) {
377
+ #sg-size-mq {
378
+ display: block;
379
+ }
380
+ }
381
+
382
+ #sg-form {
383
+ margin: 0;
384
+ border: 0;
385
+ padding: 0;
386
+ }
387
+
388
+ .sg-input {
389
+ margin: -2px 0 0 0;
390
+ padding: 0;
391
+ border: 0;
392
+ background-color: #222;
393
+ color: gray;
394
+ width: 25px;
395
+ text-align: right;
396
+ }
397
+
398
+ @media all and (min-width: 48em) {
399
+ .sg-input {
400
+ width: 35px;
401
+ }
402
+ }
403
+
404
+ .sg-input-active {
405
+ background-color: #fff;
406
+ color: #000;
407
+ }
408
+
409
+ .sg-view {
410
+ position: relative;
411
+ }
412
+
413
+ .sg-view > ul {
414
+ position: absolute;
415
+ top: 2em;
416
+ left: 0;
417
+ }
418
+
419
+ .sg-checkbox:before {
420
+ display: inline-block;
421
+ margin-right: 0.4em;
422
+ }
423
+
424
+ /* basic styling */
425
+ .sg-pattern-state:before {
426
+ margin-right: 4px;
427
+ content: "\2022";
428
+ display: inline-block;
429
+ margin-bottom: -4px;
430
+ font-size: 18px;
431
+ vertical-align: bottom;
432
+ }
433
+
434
+ /* nav styling */
435
+ .sg-nav .sg-pattern-state:before {
436
+ margin-top: -4px;
437
+ margin-bottom: 0;
438
+ margin-left: -4px;
439
+ height: 20px;
440
+ display: block;
441
+ float: left;
442
+ }
443
+
444
+ .sg-sub-nav .sg-pattern-state:before {
445
+ margin-left: -11px;
446
+ margin-right: 4px;
447
+ }
448
+
449
+ /* call out for pattern's pattern state */
450
+ span.sg-pattern-state {
451
+ color: #999;
452
+ }
453
+
454
+ span.sg-pattern-state:before {
455
+ margin-bottom: -3px;
456
+ margin-left: 4px;
457
+ }
458
+
459
+ /* pattern states */
460
+ .inprogress:before {
461
+ color: #FF4136 !important;
462
+ }
463
+
464
+ .inreview:before {
465
+ color: #FFCC00 !important;
466
+ }
467
+
468
+ .complete:before {
469
+ color: #2ECC40 !important;
470
+ }
471
+
472
+ /*------------------------------------* $PATTERN LAB VIEWPORT
473
+ \*------------------------------------*/
474
+ /* Viewport */
475
+ #sg-vp-wrap {
476
+ text-align: center;
477
+ width: 100%;
478
+ position: fixed;
479
+ top: 2em;
480
+ bottom: 0;
481
+ left: 0;
482
+ right: 0;
483
+ z-index: 0;
484
+ }
485
+
486
+ #sg-vp-wrap.wrap-animate {
487
+ -webkit-transition: left 0.3s ease-out;
488
+ -moz-transition: left 0.3s ease-out;
489
+ -ms-transition: left 0.3s ease-out;
490
+ -o-transition: left 0.3s ease-out;
491
+ transition: left 0.3s ease-out;
492
+ }
493
+
494
+ #sg-viewport {
495
+ position: absolute;
496
+ height: 100%;
497
+ width: 100%;
498
+ border: 0;
499
+ padding: 0;
500
+ margin: 0;
501
+ top: 0;
502
+ bottom: 0;
503
+ left: 0;
504
+ right: 0;
505
+ background-color: white;
506
+ }
507
+
508
+ #sg-viewport.hay-mode {
509
+ -webkit-transition: all 40s linear;
510
+ -moz-transition: all 40s linear;
511
+ -ms-transition: all 40s linear;
512
+ -o-transition: all 40s linear;
513
+ transition: all 40s linear;
514
+ }
515
+
516
+ .no-resize #sg-cover, .no-resize #sg-rightpull-container {
517
+ display: none;
518
+ }
519
+
520
+ .no-resize #sg-viewport {
521
+ overflow: hidden !important;
522
+ }
523
+
524
+ #sg-cover {
525
+ width: 100%;
526
+ height: 100%;
527
+ display: none;
528
+ position: absolute;
529
+ z-index: 20;
530
+ cursor: col-resize;
531
+ }
532
+
533
+ #sg-gen-container {
534
+ height: 100%;
535
+ position: relative;
536
+ text-align: center;
537
+ margin: 0 auto;
538
+ -webkit-overflow-scrolling: touch;
539
+ overflow-y: auto;
540
+ overflow-x: hidden;
541
+ }
542
+
543
+ #sg-gen-container.hay-mode {
544
+ -webkit-transition: all 40s linear;
545
+ -moz-transition: all 40s linear;
546
+ -ms-transition: all 40s linear;
547
+ -o-transition: all 40s linear;
548
+ transition: all 40s linear;
549
+ }
550
+
551
+ #sg-rightpull-container {
552
+ width: 14px;
553
+ float: right;
554
+ margin: 0;
555
+ height: 100%;
556
+ cursor: col-resize;
557
+ }
558
+
559
+ #sg-rightpull {
560
+ margin: 0;
561
+ width: 100%;
562
+ height: 100%;
563
+ background: #999;
564
+ -webkit-transition: background 0.2s ease-out;
565
+ -moz-transition: background 0.2s ease-out;
566
+ -ms-transition: background 0.2s ease-out;
567
+ -o-transition: background 0.2s ease-out;
568
+ transition: background 0.2s ease-out;
569
+ }
570
+
571
+ #sg-rightpull:hover {
572
+ background: #666;
573
+ }
574
+
575
+ #sg-rightpull:active {
576
+ cursor: col-resize;
577
+ background: #444;
578
+ }
579
+
580
+ .vp-animate {
581
+ -webkit-transition: width 0.8s ease-out;
582
+ -moz-transition: width 0.8s ease-out;
583
+ -ms-transition: width 0.8s ease-out;
584
+ -o-transition: width 0.8s ease-out;
585
+ transition: width 0.8s ease-out;
586
+ }
587
+
588
+ /*------------------------------------* $PATTERN LAB CONTENT
589
+ \*------------------------------------*/
590
+ /* Section Pattern */
591
+ .sg-pattern {
592
+ margin-bottom: 2em;
593
+ position: relative;
594
+ }
595
+
596
+ /* Section Head */
597
+ h2.sg-pattern-head {
598
+ margin: 2em 0;
599
+ font-family: "BentonSans", "Helvetica", "Arial", sans-serif;
600
+ font-size: 11px;
601
+ font-weight: normal;
602
+ padding: 1em 0;
603
+ border-bottom: 1px solid #ddd;
604
+ }
605
+
606
+ h2.sg-pattern-head a {
607
+ display: block;
608
+ color: #808080;
609
+ text-decoration: none;
610
+ cursor: pointer;
611
+ font-size: 11px;
612
+ }
613
+
614
+ h2.sg-pattern-head a:hover {
615
+ color: #222;
616
+ }
617
+
618
+ .sg-view-container {
619
+ -moz-box-sizing: border-box;
620
+ -webkit-box-sizing: border-box;
621
+ box-sizing: border-box;
622
+ font-family: "BentonSans", "Helvetica", "Arial", sans-serif;
623
+ line-height: 1.4;
624
+ font-size: 90%;
625
+ background: #222;
626
+ color: #808080;
627
+ position: fixed;
628
+ top: auto;
629
+ padding: 1em;
630
+ bottom: 0;
631
+ left: 0;
632
+ z-index: 2;
633
+ width: 100%;
634
+ height: 50%;
635
+ overflow-y: auto;
636
+ overflow-x: hidden;
637
+ }
638
+
639
+ .sg-view-container a {
640
+ color: #999;
641
+ }
642
+
643
+ .sg-view-container pre {
644
+ padding: 0 1em;
645
+ }
646
+
647
+ .sg-view-container.anim-ready {
648
+ -webkit-transition: bottom 0.3s ease-out;
649
+ -moz-transition: bottom 0.3s ease-out;
650
+ -webkit-transition: bottom 0.3s ease-out;
651
+ -ms-transition: bottom 0.3s ease-out;
652
+ -o-transition: bottom 0.3s ease-out;
653
+ transition: bottom 0.3s ease-out;
654
+ }
655
+
656
+ .sg-view-close {
657
+ width: 100%;
658
+ margin-bottom: -10px;
659
+ }
660
+
661
+ .sg-view-close-btn {
662
+ color: #fff;
663
+ text-decoration: none;
664
+ text-align: right;
665
+ display: block;
666
+ }
667
+
668
+ .has-annotation {
669
+ cursor: help !important;
670
+ box-shadow: 0 0 10px #808080;
671
+ }
672
+
673
+ .has-annotation a, .has-annotation input {
674
+ cursor: help !important;
675
+ }
676
+
677
+ .has-annotation:hover {
678
+ box-shadow: 0 0 10px #222;
679
+ }
680
+
681
+ .has-annotation.active {
682
+ box-shadow: inset 0 0 20px #808080;
683
+ }
684
+
685
+ .annotation-tip {
686
+ display: block;
687
+ position: absolute;
688
+ margin-top: -10px !important;
689
+ margin-left: -10px !important;
690
+ width: 25px !important;
691
+ height: 25px !important;
692
+ border-radius: 13px !important;
693
+ text-align: center !important;
694
+ background: #444 !important;
695
+ color: #fff !important;
696
+ font-weight: bold !important;
697
+ font-size: 16px !important;
698
+ z-index: 100;
699
+ }
700
+
701
+ #sg-comments-container {
702
+ max-width: 60em;
703
+ margin: 0 auto;
704
+ }
705
+
706
+ .sg-comment-container {
707
+ padding-bottom: 2em;
708
+ margin-bottom: 1em;
709
+ border-bottom: 1px solid rgba(255, 255, 255, 0.25);
710
+ }
711
+
712
+ .sg-comment-container p:last-child {
713
+ margin-bottom: 0;
714
+ }
715
+
716
+ .sg-comment-container h2 {
717
+ margin-bottom: 0.25em;
718
+ }
719
+
720
+ .sg-code, .sg-annotations {
721
+ clear: both;
722
+ color: #222;
723
+ margin: 1em 0;
724
+ }
725
+
726
+ .sg-code a, .sg-annotations a {
727
+ text-decoration: underline;
728
+ }
729
+
730
+ .sg-code pre {
731
+ white-space: -moz-pre-line;
732
+ white-space: -pre-line;
733
+ white-space: -o-pre-line;
734
+ word-wrap: break-word;
735
+ white-space: pre-line;
736
+ border-radius: 3px;
737
+ padding: 0 1em;
738
+ }
739
+
740
+ .sg-code-contains {
741
+ margin-bottom: 1rem;
742
+ font-size: 85%;
743
+ color: #808080;
744
+ }
745
+
746
+ .sg-code-contains code {
747
+ padding: 0.2em;
748
+ background: rgba(0, 0, 0, 0.3);
749
+ color: #999;
750
+ position: relative;
751
+ top: -2px;
752
+ }
753
+
754
+ .sg-code-head {
755
+ color: #808080;
756
+ font-size: 1em;
757
+ font-weight: bold;
758
+ margin-bottom: 10px;
759
+ }
760
+
761
+ #sg-code-markup {
762
+ padding-top: 10px;
763
+ }
764
+
765
+ #sg-code-tabs {
766
+ list-style: none;
767
+ margin: 0;
768
+ padding: 0;
769
+ }
770
+
771
+ #sg-code-tabs li {
772
+ float: left;
773
+ background-color: #333;
774
+ font-size: 1.3em;
775
+ font-weight: bold;
776
+ padding: 5px 15px;
777
+ border-top: 2px solid #666;
778
+ margin-right: 2px;
779
+ cursor: pointer;
780
+ }
781
+
782
+ .sg-code-title-active {
783
+ color: #bbb;
784
+ background-color: #272822 !important;
785
+ }
786
+
787
+ div.clear {
788
+ clear: both;
789
+ }
790
+
791
+ .sg-code-patternname {
792
+ color: #aaa;
793
+ }
794
+
795
+ #sg-code-loader {
796
+ display: none;
797
+ position: absolute;
798
+ left: 45%;
799
+ top: 20%;
800
+ width: 150px;
801
+ padding: 10px;
802
+ text-align: center;
803
+ border-radius: 10px;
804
+ background-color: #000;
805
+ z-index: 100;
806
+ }
807
+
808
+ /* Pattern Lab icon fonts */
809
+ @font-face {
810
+ font-family: 'icomoon';
811
+ src: url("../fonts/icomoon.eot?srsv7g");
812
+ src: url("../fonts/icomoon.eot?#iefixsrsv7g") format("embedded-opentype"), url("../fonts/icomoon.woff?srsv7g") format("woff"), url("../fonts/icomoon.ttf?srsv7g") format("truetype"), url("../fonts/icomoon.svg?srsv7g#icomoon") format("svg");
813
+ font-weight: normal;
814
+ font-style: normal;
815
+ }
816
+
817
+ .sg-icon-search, .sg-icon-cog, .sg-icon-minus, .sg-icon-plus, .sg-icon-menu, .sg-icon-radio-checked, .sg-checkbox.active, .sg-icon-radio-unchecked, .sg-checkbox, .sg-icon-file, .sg-icon-link, .sg-icon-keyboard, .sg-icon-qrcode, .sg-icon-eye, .sg-checkbox {
818
+ font-family: 'icomoon';
819
+ speak: none;
820
+ font-style: normal;
821
+ font-weight: normal;
822
+ font-variant: normal;
823
+ text-transform: none;
824
+ line-height: 1;
825
+ /* Better Font Rendering =========== */
826
+ -webkit-font-smoothing: antialiased;
827
+ -moz-osx-font-smoothing: grayscale;
828
+ }
829
+
830
+ .sg-icon-search:before {
831
+ content: "\e600";
832
+ font-size: 85%;
833
+ }
834
+
835
+ .sg-icon-cog:before {
836
+ content: "\e601";
837
+ }
838
+
839
+ .sg-icon-minus:before {
840
+ content: "\e602";
841
+ }
842
+
843
+ .sg-icon-plus:before {
844
+ content: "\e603";
845
+ }
846
+
847
+ .sg-icon-menu:before {
848
+ content: "\e604";
849
+ }
850
+
851
+ .sg-icon-radio-checked:before, .sg-checkbox.active:before, .sg-checkbox.active:before {
852
+ content: "\e605";
853
+ }
854
+
855
+ .sg-icon-radio-unchecked:before, .sg-checkbox:before, .sg-checkbox:before {
856
+ content: "\e606";
857
+ }
858
+
859
+ .sg-icon-file:before {
860
+ content: "\e607";
861
+ }
862
+
863
+ .sg-icon-link:before {
864
+ content: "\e608";
865
+ }
866
+
867
+ .sg-icon-keyboard:before {
868
+ content: "\e609";
869
+ }
870
+
871
+ .sg-icon-qrcode:before {
872
+ content: "\e60a";
873
+ }
874
+
875
+ .sg-icon-eye:before {
876
+ content: "\e60b";
877
+ }
878
+
879
+ /******************************************************************/
880
+ /* End Pattern Lab Interface code */