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,950 @@
1
+ /*------------------------------------*\
2
+ $PATTERN LAB STYLES
3
+ \*------------------------------------*/
4
+ /**
5
+ * NOTE: These styles are specific to Pattern Lab and should not be modified.
6
+ * Edit all project styles in /source/css/
7
+ *
8
+ * Second note: Any important declarations are to prevent brand styles from overriding style guide
9
+ */
10
+
11
+
12
+ /*------------------------------------*\
13
+ $CONTENTS
14
+ \*------------------------------------*/
15
+ /**
16
+ * STYLE GUIDE VARIABLES------------------Declarations of Sass variables
17
+ * -----Font
18
+ * -----Colors
19
+ * -----Typography
20
+ * -----Defaults
21
+ * -----Breakpoints
22
+ * MIXINS---------------------------------Sass mixins
23
+ * GLOBAL ELEMENTS------------------------Establish global styles
24
+ * -----Main
25
+ * -----Headings
26
+ * -----Text-related elements (p, blockquote, lists)
27
+ * -----Defaults
28
+ * -----Breakpoints
29
+ * STYLE GUIDE INTERFACE------------------CSS for the Pattern Lab Container.
30
+ * -----Header
31
+ * -----Navigation
32
+ * -----Controls
33
+ * -----Main Container
34
+ * -----Viewport
35
+ * -----Section Headers
36
+ * -----Code View
37
+ * -----Icon Fonts
38
+ */
39
+
40
+
41
+
42
+
43
+
44
+ /*------------------------------------*\
45
+ $PATTERN LAB VARIABLES
46
+ \*------------------------------------*/
47
+ /*Fonts*/
48
+ $sg-font : "BentonSans", "Helvetica", "Arial", sans-serif;
49
+ $sg-font-mono: monospace;
50
+
51
+ /* Style Guide Interface Colors */
52
+ $sg-primary : #222;
53
+ $sg-secondary : #808080;
54
+ $sg-tertiary : #ddd;
55
+ $sg-quaternary : #fff;
56
+ $sg-quinary : #999;
57
+ $sg-tint : rgba(255,255,255,0.05);
58
+ $sg-tint-2 : rgba(255,255,255,0.25);
59
+ $sg-tone : rgba(0,0,0,0.1);
60
+ $sg-tone-2 : rgba(0,0,0,0.3);
61
+
62
+ /* Typography */
63
+ $sg-font-size-norm : 100%;
64
+ $sg-font-size-sm : 70%;
65
+ $sg-font-size-large : 120%;
66
+
67
+ /* Defaults */
68
+ $sg-space : 1em;
69
+ $sg-doublespace : $sg-space*2;
70
+ $sg-pad : 1em;
71
+ $sg-pad-half : $sg-pad/2;
72
+
73
+ /* Dimensions */
74
+ $offset-top: 2em;
75
+
76
+ /* Breakpoints */
77
+ $sg-bp-small : 24em;
78
+ $sg-bp-small-2 : 30em;
79
+ $sg-bp-med : 48em;
80
+ $sg-bp-large : 72em;
81
+ $sg-bp-xl : 80em;
82
+
83
+ $animate-quick: 0.2s;
84
+
85
+
86
+
87
+
88
+
89
+ /*------------------------------------*\
90
+ $PATTERN LAB MIXINS
91
+ \*------------------------------------*/
92
+ @mixin sg-transition($transition-property, $transition-time, $method) {
93
+ -webkit-transition: $transition-property $transition-time $method;
94
+ -moz-transition: $transition-property $transition-time $method;
95
+ -ms-transition: $transition-property $transition-time $method;
96
+ -o-transition: $transition-property $transition-time $method;
97
+ transition: $transition-property $transition-time $method;
98
+ }
99
+
100
+
101
+
102
+
103
+
104
+
105
+ /*------------------------------------*\
106
+ $PATTERN LAB INTERFACE
107
+ \*------------------------------------*/
108
+
109
+ #patternlab-html, #patternlab-body {
110
+ margin: 0;
111
+ padding: 0;
112
+ background: $sg-tertiary;
113
+ -webkit-text-size-adjust: 100%;
114
+ }
115
+
116
+ .sg-nav-wrapper {
117
+ overflow: hidden;
118
+ background: $sg-tertiary;
119
+ }
120
+
121
+ .is-vishidden {
122
+ position: absolute !important;
123
+ overflow: hidden;
124
+ width: 1px;
125
+ height: 1px;
126
+ padding: 0;
127
+ border: 0;
128
+ clip: rect(1px, 1px, 1px, 1px);
129
+ }
130
+
131
+
132
+ //Clearfix
133
+ .sg-cf {
134
+ /**zoom: 1;*/
135
+
136
+ &:before, &:after {
137
+ content: " ";
138
+ display: table;
139
+ }
140
+
141
+ &:after {
142
+ clear: both;
143
+ }
144
+ }
145
+
146
+ .sg-main {
147
+ max-width: 90%;
148
+ margin: auto;
149
+ }
150
+
151
+ .sg-single-pattern {
152
+ max-width: 90%;
153
+ margin: 40px auto;
154
+ }
155
+
156
+ /*------------------------------------*\
157
+ $PATTERN LAB HEADER
158
+ \*------------------------------------*/
159
+ /* Header */
160
+ .sg-header {
161
+ background: $sg-primary;
162
+ color: $sg-quaternary;
163
+ font-family: $sg-font;
164
+ position: fixed;
165
+ top: 0;
166
+ left: 0;
167
+ z-index: 2;
168
+ width: 100%;
169
+
170
+ * {
171
+ -moz-box-sizing: border-box;
172
+ -webkit-box-sizing: border-box;
173
+ box-sizing: border-box;
174
+ }
175
+
176
+ ul, ol {
177
+ padding: 0;
178
+ margin: 0;
179
+ }
180
+
181
+ li {
182
+ list-style: none;
183
+ border-bottom: 1px solid $sg-tint;
184
+ }
185
+
186
+ a {
187
+ font-size: $sg-font-size-sm;
188
+ color: $sg-secondary;
189
+ text-decoration: none;
190
+ display: block;
191
+ line-height: 1;
192
+ padding: $sg-pad;
193
+ @include sg-transition(background,0.15s,ease-out);
194
+ @include sg-transition(color,0.15s,ease-out);
195
+
196
+ &:hover, &:focus, &.active {
197
+ color: $sg-quaternary;
198
+ background: $sg-tint;
199
+ }
200
+ }
201
+
202
+ ol ol ol a { //3rd level nav item
203
+ padding-left: 2em;
204
+ text-transform: none;
205
+ }
206
+ }
207
+
208
+
209
+
210
+ /* Navigation */
211
+ .sg-header .sg-nav-toggle {
212
+ display: inline-block;
213
+ padding: 0.9em $sg-pad;
214
+ border-bottom: 1px solid rgba(0,0,0,0);
215
+ position: relative;
216
+ z-index: 2;
217
+
218
+ span {
219
+ display: inline-block;
220
+ padding-right: 0.2em;
221
+ }
222
+
223
+ @media all and (min-width: $sg-bp-med) {
224
+ display: none;
225
+ }
226
+ }
227
+
228
+ .sg-nav-container {
229
+ @media all and (max-width: $sg-bp-med) {
230
+ overflow: hidden;
231
+ max-height: 0;
232
+ @include sg-transition(max-height,0.1s,ease-out);
233
+
234
+ &.active {
235
+ max-height: 50em;
236
+ }
237
+ }
238
+ }
239
+
240
+ .sg-nav {
241
+ z-index: 1;
242
+ margin: 0;
243
+ padding: 0;
244
+ list-style: none;
245
+
246
+ > li {
247
+ cursor: pointer;
248
+
249
+ @media all and (min-width: $sg-bp-med) {
250
+ border-bottom: 0;
251
+ border-right: 1px solid $sg-tint;
252
+ float: left;
253
+ position: relative;
254
+
255
+ > ol {
256
+ position: absolute;
257
+ top: $offset-top;
258
+ left: 0;
259
+ }
260
+
261
+ }
262
+ }
263
+ }
264
+
265
+ /* Accordion */
266
+ .sg-acc-handle {
267
+ &:after {
268
+ content: ' +';
269
+ float: right;
270
+ font-size: $sg-font-size-sm;
271
+
272
+ @media all and (min-width: $sg-bp-med) {
273
+ float: none;
274
+ }
275
+ }
276
+
277
+ &.active {
278
+ color: $sg-quaternary;
279
+ background: $sg-tint;
280
+ &:after {
281
+ content: ' -';
282
+ }
283
+ }
284
+
285
+ &.sg-icon:after {
286
+ content: "";
287
+ }
288
+ }
289
+
290
+ .sg-header .sg-icon {
291
+ width: auto;
292
+ font-size: 1rem;
293
+ padding: 0.5rem 1rem;
294
+ }
295
+
296
+ .sg-acc-panel {
297
+ overflow: hidden;
298
+ max-height: 0;
299
+ min-width: 10em;
300
+ @include sg-transition(max-height,0.1s,ease-out);
301
+
302
+ li {
303
+ background: $sg-primary;
304
+ }
305
+
306
+ &.active {
307
+ max-height: 120em;
308
+ overflow: auto;
309
+ }
310
+
311
+ &.sg-right {
312
+ position: absolute;
313
+ left: auto;
314
+ right: 0;
315
+ }
316
+
317
+ &.sg-left {
318
+ position: absolute;
319
+ left: auto;
320
+ }
321
+
322
+ [class^="sg-icon-"] {
323
+ &:before {
324
+ display: inline-block;
325
+ margin-right: 0.4em;
326
+ }
327
+ }
328
+ }
329
+
330
+ /* Controls (sizing, view mode) */
331
+ .sg-controls {
332
+ border: 0;
333
+ position: absolute;
334
+ top: 0;
335
+ right: 0;
336
+ z-index: 2;
337
+ }
338
+
339
+ .sg-control-trigger {
340
+ border-bottom: 1px solid $sg-tint;
341
+
342
+ @media all and (min-width: $sg-bp-med) {
343
+ border: 0;
344
+ }
345
+
346
+ @media all and (min-width: $sg-bp-large) {
347
+ float: left;
348
+ width: 6em;
349
+ }
350
+ }
351
+
352
+ .sg-control {
353
+ > li {
354
+ float: left;
355
+
356
+ @media all and (min-width: $sg-bp-med) {
357
+ border-bottom: 0;
358
+ border-left: 1px solid $sg-tint;
359
+ }
360
+ }
361
+
362
+ .sg-input {
363
+ padding: 0.1em;
364
+ -webkit-transition: all $animate-quick ease-out;
365
+ -moz-transition: all $animate-quick ease-out;
366
+ -ms-transition: all $animate-quick ease-out;
367
+ -o-transition: all $animate-quick ease-out;
368
+ transition: all $animate-quick ease-out;
369
+
370
+ &:active, &:focus {
371
+ outline: 0;
372
+ background: $sg-quinary;
373
+ color: #000;
374
+ }
375
+ }
376
+ }
377
+
378
+ .sg-current-size {
379
+ font-size: 70%;
380
+ color: $sg-secondary;
381
+ padding: 0.85em 0.7em;
382
+
383
+ &:hover {
384
+ .sg-input {
385
+ background: $sg-quinary;
386
+ color: #000;
387
+ }
388
+ }
389
+
390
+ @media all and (min-width: $sg-bp-large) {
391
+ float: left;
392
+ }
393
+ }
394
+
395
+ .sg-size {
396
+ width: 135px;
397
+
398
+ @media all and (min-width: $sg-bp-med) {
399
+ width: auto;
400
+ }
401
+ }
402
+
403
+ .sg-size-options {
404
+
405
+ @media all and (min-width: $sg-bp-large) {
406
+ float: left;
407
+ position: static;
408
+ max-height: none;
409
+ max-width: none;
410
+
411
+ > li {
412
+ float: left;
413
+ border: 0;
414
+ border-left: 1px solid $sg-tint;
415
+ }
416
+ }
417
+ }
418
+
419
+ //Media Queries Dropdown
420
+ #sg-size-mq {
421
+ display: none;
422
+
423
+ @media all and (min-width: $sg-bp-large) {
424
+ display: block;
425
+ }
426
+ }
427
+
428
+ #sg-form {
429
+ margin: 0;
430
+ border: 0;
431
+ padding: 0;
432
+ }
433
+
434
+ .sg-input {
435
+ margin: -2px 0 0 0;
436
+ padding: 0;
437
+ border: 0;
438
+ background-color: #222;
439
+ color: gray;
440
+ width: 25px;
441
+ text-align: right;
442
+
443
+ @media all and (min-width: $sg-bp-med) {
444
+ width: 35px;
445
+ }
446
+ }
447
+
448
+ .sg-input-active {
449
+ background-color: #fff;
450
+ color: #000;
451
+ }
452
+
453
+ .sg-view {
454
+ position: relative;
455
+
456
+ > ul {
457
+ position: absolute;
458
+ top: $offset-top;
459
+ left: 0;
460
+ }
461
+ }
462
+
463
+ //Checklist dropdown lists
464
+ .sg-checkbox {
465
+ @extend .sg-icon-radio-unchecked;
466
+
467
+ &:before {
468
+ display: inline-block;
469
+ margin-right: 0.4em;
470
+ }
471
+
472
+ &.active {
473
+ @extend .sg-icon-radio-checked;
474
+ }
475
+ }
476
+
477
+ //Pattern States (active, inprogress, complete, etc)
478
+
479
+ /* basic styling */
480
+ .sg-pattern-state:before {
481
+ margin-right: 4px;
482
+ content: "\2022";
483
+ display: inline-block;
484
+ margin-bottom: -4px;
485
+ font-size: 18px;
486
+ vertical-align: bottom;
487
+ }
488
+
489
+ /* nav styling */
490
+ .sg-nav .sg-pattern-state:before {
491
+ margin-top: -4px;
492
+ margin-bottom: 0;
493
+ margin-left: -4px;
494
+ height: 20px;
495
+ display: block;
496
+ float: left;
497
+ }
498
+
499
+ .sg-sub-nav .sg-pattern-state:before {
500
+ margin-left: -11px;
501
+ margin-right: 4px;
502
+ }
503
+
504
+ /* call out for pattern's pattern state */
505
+ span.sg-pattern-state {
506
+ color: #999;
507
+ }
508
+
509
+ span.sg-pattern-state:before {
510
+ margin-bottom: -3px;
511
+ margin-left: 4px;
512
+ }
513
+
514
+ /* pattern states */
515
+ .inprogress:before {
516
+ color: #FF4136 !important;
517
+ }
518
+
519
+ .inreview:before {
520
+ color: #FFCC00 !important;
521
+ }
522
+
523
+ .complete:before {
524
+ color: #2ECC40 !important;
525
+ }
526
+
527
+
528
+
529
+ /*------------------------------------*\
530
+ $PATTERN LAB VIEWPORT
531
+ \*------------------------------------*/
532
+
533
+ /* Viewport */
534
+
535
+ #sg-vp-wrap {
536
+ text-align: center;
537
+ width: 100%;
538
+ position: fixed;
539
+ top: $offset-top;
540
+ bottom: 0;
541
+ left: 0;
542
+ right: 0;
543
+ z-index: 0;
544
+
545
+ &.wrap-animate {
546
+ -webkit-transition: left 0.3s ease-out;
547
+ -moz-transition: left 0.3s ease-out;
548
+ -ms-transition: left 0.3s ease-out;
549
+ -o-transition: left 0.3s ease-out;
550
+ transition: left 0.3s ease-out;
551
+ }
552
+
553
+ }
554
+
555
+ #sg-viewport {
556
+ position: absolute;
557
+ height: 100%;
558
+ width: 100%;
559
+ border: 0;
560
+ padding: 0;
561
+ margin: 0;
562
+ top: 0;
563
+ bottom: 0;
564
+ left: 0;
565
+ right: 0;
566
+ background-color: white;
567
+
568
+ &.hay-mode {
569
+ -webkit-transition: all 40s linear;
570
+ -moz-transition: all 40s linear;
571
+ -ms-transition: all 40s linear;
572
+ -o-transition: all 40s linear;
573
+ transition: all 40s linear;
574
+ }
575
+ }
576
+
577
+ .no-resize {
578
+ #sg-cover, #sg-rightpull-container {
579
+ display: none;
580
+ }
581
+
582
+ #sg-viewport {
583
+ overflow: hidden !important;
584
+ }
585
+
586
+ }
587
+
588
+ #sg-cover {
589
+ width: 100%;
590
+ height: 100%;
591
+ display: none;
592
+ position: absolute;
593
+ z-index: 20;
594
+ cursor: col-resize;
595
+ }
596
+
597
+ #sg-gen-container {
598
+ height: 100%;
599
+ position: relative;
600
+ text-align: center;
601
+ margin: 0 auto;
602
+ -webkit-overflow-scrolling: touch;
603
+ overflow-y: auto;
604
+ overflow-x: hidden;
605
+
606
+ &.hay-mode {
607
+ -webkit-transition: all 40s linear;
608
+ -moz-transition: all 40s linear;
609
+ -ms-transition: all 40s linear;
610
+ -o-transition: all 40s linear;
611
+ transition: all 40s linear;
612
+ }
613
+ }
614
+
615
+ #sg-rightpull-container {
616
+ width: 14px;
617
+ float: right;
618
+ margin: 0;
619
+ height: 100%;
620
+ cursor: col-resize;
621
+ }
622
+
623
+ #sg-rightpull {
624
+ margin: 0;
625
+ width: 100%;
626
+ height: 100%;
627
+ background: #999;
628
+ -webkit-transition: background $animate-quick ease-out;
629
+ -moz-transition: background $animate-quick ease-out;
630
+ -ms-transition: background $animate-quick ease-out;
631
+ -o-transition: background $animate-quick ease-out;
632
+ transition: background $animate-quick ease-out;
633
+
634
+ &:hover {
635
+ background: #666;
636
+ }
637
+
638
+ &:active {
639
+ cursor: col-resize;
640
+ background: #444;
641
+ }
642
+ }
643
+
644
+ .vp-animate {
645
+ -webkit-transition: width 0.8s ease-out;
646
+ -moz-transition: width 0.8s ease-out;
647
+ -ms-transition: width 0.8s ease-out;
648
+ -o-transition: width 0.8s ease-out;
649
+ transition: width 0.8s ease-out;
650
+ }
651
+
652
+
653
+
654
+
655
+
656
+ /*------------------------------------*\
657
+ $PATTERN LAB CONTENT
658
+ \*------------------------------------*/
659
+
660
+ /* Section Pattern */
661
+ .sg-pattern {
662
+ margin-bottom: $sg-doublespace;
663
+ position: relative; //Prevents absolutely-positioned elements from floating to the top
664
+ @extend .sg-cf;
665
+ }
666
+
667
+ /* Section Head */
668
+ h2.sg-pattern-head {
669
+ margin: $sg-doublespace 0;
670
+ font-family: $sg-font;
671
+ font-size: 11px;
672
+ font-weight: normal;
673
+ padding: $sg-pad 0;
674
+ border-bottom: 1px solid $sg-tertiary;
675
+
676
+ a {
677
+ display: block;
678
+ color: $sg-secondary;
679
+ text-decoration: none;
680
+ cursor: pointer;
681
+ font-size: 11px;
682
+
683
+ &:hover {
684
+ color: $sg-primary;
685
+ }
686
+ }
687
+ }
688
+
689
+ //Annotations and code view container
690
+ .sg-view-container {
691
+ -moz-box-sizing: border-box;
692
+ -webkit-box-sizing: border-box;
693
+ box-sizing: border-box;
694
+ font-family: $sg-font;
695
+ line-height: 1.4;
696
+ font-size: 90%;
697
+ background: $sg-primary;
698
+ color: $sg-secondary;
699
+ position: fixed;
700
+ top: auto;
701
+ padding: $sg-pad;
702
+ bottom: 0;
703
+ left: 0;
704
+ z-index: 2;
705
+ width: 100%;
706
+ height: 50%;
707
+ overflow-y: auto;
708
+ overflow-x: hidden;
709
+
710
+ a {
711
+ color: $sg-quinary;
712
+ }
713
+
714
+ pre {
715
+ padding: 0 1em;
716
+ }
717
+
718
+ &.anim-ready {
719
+ -webkit-transition: bottom 0.3s ease-out;
720
+ -moz-transition: bottom 0.3s ease-out;
721
+ -webkit-transition: bottom 0.3s ease-out;
722
+ -ms-transition: bottom 0.3s ease-out;
723
+ -o-transition: bottom 0.3s ease-out;
724
+ transition: bottom 0.3s ease-out;
725
+ }
726
+ }
727
+
728
+ //Annotation and code view close button
729
+ .sg-view-close {
730
+ width: 100%;
731
+ margin-bottom: -10px;
732
+ }
733
+
734
+ .sg-view-close-btn {
735
+ color: #fff;
736
+ text-decoration: none;
737
+ text-align: right;
738
+ display: block;
739
+ }
740
+
741
+ //Annotated elements Styles
742
+ .has-annotation {
743
+ cursor: help !important;
744
+ box-shadow: 0 0 10px $sg-secondary;
745
+
746
+ a, input {
747
+ cursor: help !important;
748
+ }
749
+
750
+ &:hover {
751
+ box-shadow: 0 0 10px $sg-primary;
752
+ }
753
+
754
+ &.active {
755
+ box-shadow: inset 0 0 20px $sg-secondary;
756
+ }
757
+
758
+ }
759
+
760
+ .annotation-tip {
761
+ display: block;
762
+ position: absolute;
763
+ margin-top: -10px !important;
764
+ margin-left: -10px !important;
765
+ width: 25px !important;
766
+ height: 25px !important;
767
+ border-radius: 13px !important;
768
+ text-align: center !important;
769
+ background: #444 !important;
770
+ color: #fff !important;
771
+ font-weight: bold !important;
772
+ font-size: 16px !important;
773
+ z-index: 100;
774
+ }
775
+
776
+ #sg-comments-container {
777
+ max-width: 60em;
778
+ margin: 0 auto;
779
+ }
780
+
781
+ .sg-comment-container {
782
+ padding-bottom: 2em;
783
+ margin-bottom: $sg-space;
784
+ border-bottom: 1px solid $sg-tint-2;
785
+
786
+ p:last-child {
787
+ margin-bottom: 0;
788
+ }
789
+
790
+ h2 {
791
+ margin-bottom: 0.25em;
792
+ }
793
+ }
794
+
795
+ .sg-code, .sg-annotations {
796
+ clear: both;
797
+ color: $sg-primary;
798
+ margin: $sg-space 0;
799
+
800
+ a {
801
+ text-decoration: underline;
802
+ }
803
+ }
804
+
805
+ .sg-code {
806
+ pre {
807
+ white-space: -moz-pre-line;
808
+ white-space: -pre-line;
809
+ white-space: -o-pre-line;
810
+ word-wrap: break-word;
811
+ white-space: pre-line;
812
+ border-radius: 3px;
813
+ padding: 0 $sg-pad;
814
+ }
815
+ }
816
+
817
+ .sg-code-contains {
818
+ margin-bottom: 1rem;
819
+ font-size: 85%;
820
+ color: $sg-secondary;
821
+
822
+ code {
823
+ padding: 0.2em;
824
+ background: $sg-tone-2;
825
+ color: $sg-quinary;
826
+ position: relative;
827
+ top: -2px;
828
+ }
829
+ }
830
+
831
+ .sg-code-head {
832
+ color: $sg-secondary;
833
+ font-size: 1em;
834
+ font-weight: bold;
835
+ margin-bottom: 10px;
836
+ }
837
+
838
+ #sg-code-markup {
839
+ padding-top: 10px;
840
+ }
841
+
842
+ #sg-code-tabs {
843
+ list-style: none;
844
+ margin: 0;
845
+ padding: 0;
846
+ }
847
+
848
+ #sg-code-tabs li {
849
+ float: left;
850
+ background-color: #333;
851
+ font-size: 1.3em;
852
+ font-weight: bold;
853
+ padding: 5px 15px;
854
+ border-top: 2px solid #666;
855
+ margin-right: 2px;
856
+ cursor: pointer;
857
+ }
858
+
859
+ .sg-code-title-active {
860
+ color: #bbb;
861
+ background-color: #272822 !important;
862
+ }
863
+
864
+ div.clear {
865
+ clear: both;
866
+ }
867
+
868
+ .sg-code-patternname {
869
+ color: #aaa;
870
+ }
871
+
872
+ #sg-code-loader {
873
+ display: none;
874
+ position: absolute;
875
+ left: 45%;
876
+ top: 20%;
877
+ width: 150px;
878
+ padding: 10px;
879
+ text-align: center;
880
+ border-radius: 10px;
881
+ background-color: #000;
882
+ z-index: 100;
883
+ }
884
+
885
+ /* Pattern Lab icon fonts */
886
+ @font-face {
887
+ font-family: 'icomoon';
888
+ src:url('../fonts/icomoon.eot?srsv7g');
889
+ src:url('../fonts/icomoon.eot?#iefixsrsv7g') format('embedded-opentype'),
890
+ url('../fonts/icomoon.woff?srsv7g') format('woff'),
891
+ url('../fonts/icomoon.ttf?srsv7g') format('truetype'),
892
+ url('../fonts/icomoon.svg?srsv7g#icomoon') format('svg');
893
+ font-weight: normal;
894
+ font-style: normal;
895
+ }
896
+
897
+ .sg-icon-search, .sg-icon-cog, .sg-icon-minus, .sg-icon-plus, .sg-icon-menu, .sg-icon-radio-checked, .sg-icon-radio-unchecked, .sg-icon-file, .sg-icon-link, .sg-icon-keyboard, .sg-icon-qrcode, .sg-icon-eye, .sg-checkbox {
898
+ font-family: 'icomoon';
899
+ speak: none;
900
+ font-style: normal;
901
+ font-weight: normal;
902
+ font-variant: normal;
903
+ text-transform: none;
904
+ line-height: 1;
905
+
906
+ /* Better Font Rendering =========== */
907
+ -webkit-font-smoothing: antialiased;
908
+ -moz-osx-font-smoothing: grayscale;
909
+ }
910
+
911
+ .sg-icon-search:before {
912
+ content: "\e600";
913
+ font-size: 85%;
914
+ }
915
+ .sg-icon-cog:before {
916
+ content: "\e601";
917
+ }
918
+ .sg-icon-minus:before {
919
+ content: "\e602";
920
+ }
921
+ .sg-icon-plus:before {
922
+ content: "\e603";
923
+ }
924
+ .sg-icon-menu:before {
925
+ content: "\e604";
926
+ }
927
+ .sg-icon-radio-checked:before, .sg-checkbox.active:before {
928
+ content: "\e605";
929
+ }
930
+ .sg-icon-radio-unchecked:before, .sg-checkbox:before {
931
+ content: "\e606";
932
+ }
933
+ .sg-icon-file:before {
934
+ content: "\e607";
935
+ }
936
+ .sg-icon-link:before {
937
+ content: "\e608";
938
+ }
939
+ .sg-icon-keyboard:before {
940
+ content: "\e609";
941
+ }
942
+ .sg-icon-qrcode:before {
943
+ content: "\e60a";
944
+ }
945
+ .sg-icon-eye:before {
946
+ content: "\e60b";
947
+ }
948
+
949
+ /******************************************************************/
950
+ /* End Pattern Lab Interface code */