underoos 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (140) hide show
  1. data/Gemfile +5 -0
  2. data/Gemfile.lock +21 -7
  3. data/README.md +85 -10
  4. data/Rakefile +36 -1
  5. data/app/assets/javascripts/docs.js +6 -0
  6. data/app/assets/javascripts/styleguide.coffee +162 -0
  7. data/app/assets/javascripts/underoos.js +0 -1
  8. data/app/assets/stylesheets/base/_base.sass +14 -0
  9. data/app/assets/stylesheets/base/_buttons.sass +68 -0
  10. data/app/assets/stylesheets/base/_forms.sass +313 -24
  11. data/app/assets/stylesheets/base/_helpers.sass +27 -13
  12. data/app/assets/stylesheets/base/_normalize.sass +17 -9
  13. data/app/assets/stylesheets/base/_scaffold.sass +85 -0
  14. data/app/assets/stylesheets/base/_tables.sass +77 -0
  15. data/app/assets/stylesheets/base/_transitions.sass +10 -2
  16. data/app/assets/stylesheets/base/_typography.sass +183 -21
  17. data/app/assets/stylesheets/components/_accordions.sass +38 -0
  18. data/app/assets/stylesheets/components/_breadcrumbs.sass +19 -5
  19. data/app/assets/stylesheets/components/_button-groups.sass +43 -0
  20. data/app/assets/stylesheets/components/_carets.sass +13 -2
  21. data/app/assets/stylesheets/components/_carousels.sass +32 -0
  22. data/app/assets/stylesheets/components/_close.sass +15 -2
  23. data/app/assets/stylesheets/components/_components.sass +28 -0
  24. data/app/assets/stylesheets/components/_decals.sass +14 -0
  25. data/app/assets/stylesheets/components/_dropdowns.sass +88 -4
  26. data/app/assets/stylesheets/components/_media.sass +36 -0
  27. data/app/assets/stylesheets/components/_modals.sass +29 -0
  28. data/app/assets/stylesheets/components/_nav-lists.sass +20 -0
  29. data/app/assets/stylesheets/components/_navbars.sass +64 -3
  30. data/app/assets/stylesheets/components/_notifications.sass +112 -16
  31. data/app/assets/stylesheets/components/_paddles.sass +26 -0
  32. data/app/assets/stylesheets/components/_pagination.sass +23 -3
  33. data/app/assets/stylesheets/components/_pills.sass +80 -0
  34. data/app/assets/stylesheets/components/_popovers.sass +28 -0
  35. data/app/assets/stylesheets/components/_progress-bars.sass +33 -1
  36. data/app/assets/stylesheets/components/_tabs.sass +79 -0
  37. data/app/assets/stylesheets/components/_tooltips.sass +26 -0
  38. data/app/assets/stylesheets/components/_wells.sass +9 -0
  39. data/app/assets/stylesheets/layouts/_containers.sass +12 -0
  40. data/app/assets/stylesheets/layouts/_layouts.sass +5 -0
  41. data/app/assets/stylesheets/layouts/_print.sass +5 -1
  42. data/app/assets/stylesheets/layouts/_queries.sass +18 -15
  43. data/app/assets/stylesheets/layouts/_upgrades.sass +51 -40
  44. data/app/assets/stylesheets/mixins/_arrows.sass +13 -1
  45. data/app/assets/stylesheets/mixins/_clearfixins.sass +18 -4
  46. data/app/assets/stylesheets/mixins/_coloring.sass +10 -1
  47. data/app/assets/stylesheets/mixins/_columns.sass +16 -3
  48. data/app/assets/stylesheets/mixins/_conversions.sass +18 -6
  49. data/app/assets/stylesheets/mixins/_font-size.sass +16 -1
  50. data/app/assets/stylesheets/mixins/_image-tools.sass +12 -1
  51. data/app/assets/stylesheets/mixins/_inline-block.sass +21 -0
  52. data/app/assets/stylesheets/mixins/_ir.sass +14 -1
  53. data/app/assets/stylesheets/mixins/_mixins.sass +6 -0
  54. data/app/assets/stylesheets/mixins/_responsive.sass +16 -0
  55. data/app/assets/stylesheets/mixins/_sticky-footer.sass +52 -0
  56. data/app/assets/stylesheets/mixins/_tab-focus.sass +8 -1
  57. data/app/assets/stylesheets/mixins/_timing-equations.sass +34 -1
  58. data/app/assets/stylesheets/mixins/_visibility.sass +18 -5
  59. data/app/assets/stylesheets/polyfills/_box-shadow.sass +10 -0
  60. data/app/assets/stylesheets/polyfills/_box-sizing.sass +10 -1
  61. data/app/assets/stylesheets/polyfills/_functions.sass +14 -1
  62. data/app/assets/stylesheets/polyfills/_opacity.sass +10 -1
  63. data/app/assets/stylesheets/polyfills/_polyfills.sass +9 -2
  64. data/app/assets/stylesheets/polyfills/_transition.sass +10 -0
  65. data/app/assets/stylesheets/polyfills/_user-select.sass +10 -0
  66. data/app/assets/stylesheets/settings/_config.sass +26 -0
  67. data/app/assets/stylesheets/settings/_settings.sass +7 -0
  68. data/app/assets/stylesheets/settings/_theme.sass +189 -0
  69. data/app/assets/stylesheets/{styleguide.sass → underoos-docs.sass} +20 -116
  70. data/app/assets/stylesheets/underoos.sass +5 -16
  71. data/config.ru +1 -3
  72. data/features/generator.feature +13 -4
  73. data/lib/generators/underoos/assets_generator.rb +4 -2
  74. data/lib/underoos/version.rb +1 -1
  75. data/public/images.html +157 -0
  76. data/public/index.html +149 -0
  77. data/public/sherpa.css +306 -0
  78. data/public/styles.html +5374 -0
  79. data/script/javascripts +0 -1
  80. data/sherpa/config.yml +96 -0
  81. data/sherpa/layouts/images.mustache +17 -0
  82. data/sherpa/layouts/layout.mustache +77 -0
  83. data/sherpa/layouts/overview.mustache +19 -0
  84. data/sherpa/layouts/raw.mustache +25 -0
  85. data/sherpa/layouts/section.mustache +67 -0
  86. data/underoos.gemspec +0 -2
  87. data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
  88. data/vendor/assets/javascripts/bootstrap-button.js +29 -33
  89. data/vendor/assets/javascripts/bootstrap-collapse.js +45 -26
  90. data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
  91. data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
  92. data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
  93. data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
  94. data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
  95. data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
  96. data/vendor/assets/javascripts/bootstrap-typeahead.js +24 -10
  97. data/vendor/assets/javascripts/sherpa.coffee +78 -0
  98. metadata +34 -75
  99. data/app/assets/javascripts/styleguide.js +0 -132
  100. data/app/assets/stylesheets/base/_elements.sass +0 -61
  101. data/app/assets/stylesheets/polyfills/_inline-block.sass +0 -8
  102. data/app/assets/stylesheets/themes/_default.sass +0 -119
  103. data/app/controllers/underoos/styleguides_controller.rb +0 -79
  104. data/app/views/shared/_upgrades.html.haml +0 -12
  105. data/app/views/underoos/styleguides/_assets.haml +0 -42
  106. data/app/views/underoos/styleguides/_components.haml +0 -42
  107. data/app/views/underoos/styleguides/_elements.haml +0 -242
  108. data/app/views/underoos/styleguides/_forms.haml +0 -305
  109. data/app/views/underoos/styleguides/_layouts.haml +0 -76
  110. data/app/views/underoos/styleguides/_palettes.haml +0 -18
  111. data/app/views/underoos/styleguides/_resources.haml +0 -27
  112. data/app/views/underoos/styleguides/_tables.haml +0 -124
  113. data/app/views/underoos/styleguides/_typography.haml +0 -284
  114. data/app/views/underoos/styleguides/_utilities.haml +0 -270
  115. data/app/views/underoos/styleguides/components/_accordions.haml +0 -83
  116. data/app/views/underoos/styleguides/components/_breadcrumbs.haml +0 -42
  117. data/app/views/underoos/styleguides/components/_button-groups.haml +0 -162
  118. data/app/views/underoos/styleguides/components/_carets.haml +0 -28
  119. data/app/views/underoos/styleguides/components/_close.haml +0 -20
  120. data/app/views/underoos/styleguides/components/_decals.haml +0 -40
  121. data/app/views/underoos/styleguides/components/_dropdowns.haml +0 -189
  122. data/app/views/underoos/styleguides/components/_media.haml +0 -78
  123. data/app/views/underoos/styleguides/components/_modals.haml +0 -42
  124. data/app/views/underoos/styleguides/components/_nav-lists.haml +0 -52
  125. data/app/views/underoos/styleguides/components/_navbars.haml +0 -144
  126. data/app/views/underoos/styleguides/components/_navs-showcase.haml +0 -27
  127. data/app/views/underoos/styleguides/components/_notifications.haml +0 -169
  128. data/app/views/underoos/styleguides/components/_paddles.haml +0 -68
  129. data/app/views/underoos/styleguides/components/_pagination.haml +0 -64
  130. data/app/views/underoos/styleguides/components/_popovers.haml +0 -33
  131. data/app/views/underoos/styleguides/components/_progress-bars.haml +0 -72
  132. data/app/views/underoos/styleguides/components/_tabs-pills.haml +0 -241
  133. data/app/views/underoos/styleguides/components/_tooltips.haml +0 -37
  134. data/app/views/underoos/styleguides/components/_wells.haml +0 -29
  135. data/app/views/underoos/styleguides/index.html.haml +0 -259
  136. data/app/views/underoos/styleguides/partials/_form-template.haml +0 -171
  137. data/app/views/underoos/styleguides/partials/_table-data.haml +0 -33
  138. data/app/views/underoos/styleguides/partials/_transitions.haml +0 -136
  139. data/config/routes.rb +0 -3
  140. data/vendor/assets/javascripts/bootstrap-scrollspy.js +0 -125
@@ -1,4 +1,14 @@
1
1
 
2
+ //~
3
+ // Adds vendor prefixes for transitions (supports up to 9 transition parameters)
4
+ //
5
+ // Arguments:
6
+ // - `$transition-n` The transition values to apply.
7
+ //
8
+ // Examples:
9
+ // .element
10
+ // +transition(height $speed $ease-in-out-quart, color $speed)
11
+
2
12
  @mixin transition($transition-1:all 0.25s, $transition-2:false, $transition-3:false, $transition-4:false, $transition-5:false, $transition-6:false, $transition-7:false, $transition-8:false, $transition-9:false)
3
13
  $full: combine($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9)
4
14
  -webkit-transition: $full
@@ -1,4 +1,14 @@
1
1
 
2
+ //~
3
+ // Define whether an element is selectable (only controls the appearance).
4
+ //
5
+ // Arguments:
6
+ // - `$type:none` Options: `none | auto | text`
7
+ //
8
+ // Examples:
9
+ // .cant-touch-this
10
+ // +user-select(none)
11
+
2
12
  @mixin user-select($type:none)
3
13
  -webkit-user-select: $type
4
14
  -moz-user-select: $type
@@ -0,0 +1,26 @@
1
+
2
+ //~
3
+ // Configure settings for Underoos and Compass for css output. Disabling some of
4
+ // these features will result in smaller code, but less overall support. See the
5
+ // [Compass reference](http://compass-style.org/reference/compass/support/) for other
6
+ // available settings.
7
+ //
8
+ // Property | Value | Usage
9
+ // ---------------------------------------- | ------- | -------------------
10
+ // `$legacy-support-for-ie` | `true` | Toggles ie7 hacks (supported by Compass and Underoos polyfills)
11
+ // `$legacy-support-for-ie8` | `true` | Toggles ie8 hacks (requires Compass)
12
+ // `$support-for-original-webkit-gradients` | `true` | Toggles support for the the original webkit style gradients (requires Compass)
13
+ // `$experimental-support-for-mozilla` | `true` | Toggles support for the `-moz` prefix (requires Compass)
14
+ // `$experimental-support-for-opera` | `true` | Toggles support for the `-o` prefix (requires Compass)
15
+ // `$experimental-support-for-microsoft` | `true` | Toggles support for the `-ms` prefix (requires Compass)
16
+ //
17
+ // Notes:
18
+ // - **Pro Tip!** When compiling for iOS and Android, disable `ie` and `experimental-support` for browsers besides `webkit`
19
+
20
+ $legacy-support-for-ie: true !default
21
+ $legacy-support-for-ie8: $legacy-support-for-ie
22
+ $support-for-original-webkit-gradients: true
23
+ $experimental-support-for-mozilla: true
24
+ $experimental-support-for-opera: true
25
+ $experimental-support-for-microsoft: true
26
+
@@ -0,0 +1,7 @@
1
+
2
+ //~
3
+ // Contains the main configuration settings for compiling to css and color
4
+ // palettes and themes found in the application.
5
+ @import config
6
+ @import theme
7
+
@@ -0,0 +1,189 @@
1
+
2
+ //~
3
+ // The theme file contains grid dimensions, fonts, colorways, shadows,
4
+ // z-indexes, sprite positions and various other global reference variables.
5
+ // Themes are the basis of the design language used throughout the application.
6
+ //
7
+ // ##### Greyscale palette
8
+ // Swatch | Variable | Hex
9
+ // -------------------------------------------------------------------------------- | ----------------------- | --------
10
+ // <span class="sherpa-swatch" style="background-color:#000;"></span> | `$black` | `#000`
11
+ // <span class="sherpa-swatch" style="background-color:#111;"></span> | `$grey1` | `#111`
12
+ // <span class="sherpa-swatch" style="background-color:#222;"></span> | `$grey2` | `#222`
13
+ // <span class="sherpa-swatch" style="background-color:#333;"></span> | `$grey3` | `#333`
14
+ // <span class="sherpa-swatch" style="background-color:#444;"></span> | `$grey4` | `#444`
15
+ // <span class="sherpa-swatch" style="background-color:#555;"></span> | `$grey5` | `#555`
16
+ // <span class="sherpa-swatch" style="background-color:#666;"></span> | `$grey6` | `#666`
17
+ // <span class="sherpa-swatch" style="background-color:#777;"></span> | `$grey7` | `#777`
18
+ // <span class="sherpa-swatch" style="background-color:#888;"></span> | `$grey8` | `#888`
19
+ // <span class="sherpa-swatch" style="background-color:#999;"></span> | `$grey9` | `#999`
20
+ // <span class="sherpa-swatch" style="background-color:#aaa;"></span> | `$greyA` | `#aaa`
21
+ // <span class="sherpa-swatch" style="background-color:#bbb;"></span> | `$greyB` | `#bbb`
22
+ // <span class="sherpa-swatch" style="background-color:#ccc;"></span> | `$greyC` | `#ccc`
23
+ // <span class="sherpa-swatch" style="background-color:#ddd;"></span> | `$greyD` | `#ddd`
24
+ // <span class="sherpa-swatch" style="background-color:#eee;"></span> | `$greyE` | `#eee`
25
+ // <span class="sherpa-swatch" style="background-color:#fff;"></span> | `$white` | `#fff`
26
+ // <span class="sherpa-swatch" style="background-color:#fafafa;"></span> | `$off_white` | `#fafafa`
27
+ // <span class="sherpa-swatch" style="background-color:#eaeaea;"></span> | `$off_grey` | `#eaeaea`
28
+ //
29
+ // ##### mc roy g biv palette
30
+ // Swatch | Variable | Hex
31
+ // -------------------------------------------------------------------------------- | ----------------------- | --------
32
+ // <span class="sherpa-swatch" style="background-color:#ff00ff;"></span> | `$magenta` | `#ff00ff`
33
+ // <span class="sherpa-swatch" style="background-color:#00ffff;"></span> | `$cyan` | `#00ffff`
34
+ // <span class="sherpa-swatch" style="background-color:#b22222;"></span> | `$red` | `#b22222`
35
+ // <span class="sherpa-swatch" style="background-color:#f26522;"></span> | `$orange` | `#f26522`
36
+ // <span class="sherpa-swatch" style="background-color:#ffc40d;"></span> | `$yellow` | `#ffc40d`
37
+ // <span class="sherpa-swatch" style="background-color:#46a546;"></span> | `$green` | `#46a546`
38
+ // <span class="sherpa-swatch" style="background-color:#268bd2;"></span> | `$blue` | `#268bd2`
39
+ // <span class="sherpa-swatch" style="background-color:#4b0082;"></span> | `$indigo` | `#4b0082`
40
+ // <span class="sherpa-swatch" style="background-color:#ee82ee;"></span> | `$violet` | `#ee82ee`
41
+ //
42
+ // ##### Status palette
43
+ // Swatch | Variable | Hex
44
+ // -------------------------------------------------------------------------------- | ----------------------- | --------
45
+ // <span class="sherpa-swatch" style="background-color:#f5f5f5;"></span> | `$standard` | `#f5f5f5`
46
+ // <span class="sherpa-swatch" style="background-color:#999;"></span> | `$info` | `$grey9`
47
+ // <span class="sherpa-swatch" style="background-color:#268bd2;"></span> | `$important` | `$blue`
48
+ // <span class="sherpa-swatch" style="background-color:#46a546;"></span> | `$success` | `$green`
49
+ // <span class="sherpa-swatch" style="background-color:#ffc40d;"></span> | `$warning` | `$yellow`
50
+ // <span class="sherpa-swatch" style="background-color:#b22222;"></span> | `$error` | `$red`
51
+ // <span class="sherpa-swatch" style="background-color:#b22222;"></span> | `$danger` | `$red`
52
+ //
53
+ // ##### Miscellaneous swatches
54
+ // Swatch | Variable | Hex
55
+ // -------------------------------------------------------------------------------- | ----------------------- | --------
56
+ // <span class="sherpa-swatch" style="background-color:#268bd2;"></span> | `$primary` | `$blue`
57
+ // <span class="sherpa-swatch" style="background-color:#bbb;"></span> | `$disabled_color` | `$greyB`
58
+ // <span class="sherpa-swatch" style="background-color:#eee;"></span> | `$disabled_bg` | `$greyE`
59
+ // <span class="sherpa-swatch" style="background-color:#ddd;"></span> | `$disabled_border` | `$greyD`
60
+ // <span class="sherpa-swatch" style="background-color:#52a8ec;"></span> | `$focus_color` | `#52a8ec`
61
+ // <span class="sherpa-swatch" style="background-color:rgba(#52a8ec, 0.8);"></span> | `$focus_border` | `rgba($focus_color, 0.8)`
62
+ // <span class="sherpa-swatch" style="background-color:#666;"></span> | `$component_normal` | `$grey6`
63
+ // <span class="sherpa-swatch" style="background-color:#fff;"></span> | `$component_active` | `$white`
64
+ // <span class="sherpa-swatch" style="background-color:transparent;"></span> | `$component_bg` | `transparent`
65
+ // <span class="sherpa-swatch" style="background-color:#eee;"></span> | `$component_bg_hover` | `$greyE`
66
+ // <span class="sherpa-swatch" style="background-color:#268bd2;"></span> | `$component_bg_active` | `$primary`
67
+ // <span class="sherpa-swatch" style="background-color:#ccc;"></span> | `$component_border` | `$greyC`
68
+ // <span class="sherpa-swatch" style="background-color:#b3b3b3;"></span> | `$component_border_alt` | `darken($component_border, 10%)`
69
+ //
70
+ // Notes:
71
+ // - **Heads Up!** Not every setting is shown within the styleguide. Please refer to the actual file for more settings.
72
+
73
+ // Base Sizing
74
+ $context_px: 16
75
+ $base_font_size: 14
76
+ $base_width: 1000
77
+ $base_line_height: 1.2
78
+ $base_vertical: $base_font_size * $base_line_height
79
+
80
+ // Fonts
81
+ $sans_norm: "HelveticaNeue", "Helvetica Neue", "Helvetica", "Arial", sans-serif
82
+ $serif_norm: "Georgia", "Times", "Times New Roman", serif
83
+ $code_norm: "Bitstream Vera Sans Mono", "Menslo LG M", "Menlo", "Monaco", monospace
84
+
85
+
86
+ // greyscale
87
+ $black: #000
88
+ $grey1: #111
89
+ $grey2: #222
90
+ $grey3: #333
91
+ $grey4: #444
92
+ $grey5: #555
93
+ $grey6: #666
94
+ $grey7: #777
95
+ $grey8: #888
96
+ $grey9: #999
97
+ $greyA: #aaa
98
+ $greyB: #bbb
99
+ $greyC: #ccc
100
+ $greyD: #ddd
101
+ $greyE: #eee
102
+ $white: #fff
103
+ $off_white: #fafafa
104
+ $off_grey: #eaeaea
105
+
106
+ // mc roy g biv
107
+ $magenta: #ff00ff
108
+ $cyan: #00ffff
109
+ $red: #b22222
110
+ $orange: #f26522
111
+ $yellow: #ffc40d
112
+ $green: #46a546
113
+ $blue: #268bd2
114
+ $indigo: #4b0082
115
+ $violet: #ee82ee
116
+
117
+ // status
118
+ $standard: #f5f5f5
119
+ $info: $grey9
120
+ $important: $blue
121
+ $success: $green
122
+ $warning: $yellow
123
+ $error: $red
124
+ $danger: $red
125
+
126
+ // ci
127
+ $primary: $blue
128
+
129
+ // misc colors
130
+ $disabled_color: $greyB
131
+ $disabled_bg: $greyE
132
+ $disabled_border: $greyD
133
+ $focus_color: #52a8ec
134
+ $focus_border: rgba($focus_color, 0.8)
135
+
136
+ // component
137
+ $component_normal: $grey6
138
+ $component_active: $white
139
+ $component_bg: transparent
140
+ $component_bg_hover: $greyE
141
+ $component_bg_active: $primary
142
+ $component_border: $greyC
143
+ $component_border_alt: darken($component_border, 10%)
144
+
145
+ // Shadows
146
+ $text_inset_dark: 0 -1px 0 rgba($black, 0.25)
147
+ $text_inset_lite: 0 -1px 0 rgba($white, 0.75)
148
+ $text_drop_dark: 0 1px 0 rgba($black, 0.25)
149
+ $text_drop_lite: 0 1px 0 rgba($white, 0.75)
150
+
151
+ $inset_dark: inset 0 1px 4px rgba($black, 0.3)
152
+ $inset_lite: inset 0 1px 4px rgba($white, 0.7)
153
+ $drop_dark: 0 1px 4px rgba($black, 0.3)
154
+ $drop_lite: 0 1px 4px rgba($white, 0.7)
155
+
156
+ $focus_inset: inset 0 1px 3px rgba($black, 0.1)
157
+ $focus_glow: 0 0 8px rgba($focus_color, 0.6)
158
+ $error_glow: 0 0 8px rgba($red, 0.6)
159
+
160
+ // Misc
161
+ $radii: 0.4em
162
+ $speed: 0.25s
163
+
164
+ // z-indexing
165
+ $zindex_dropdown: 1000
166
+ $zindex_tips: 1010
167
+ $zindex_navbar: 1020
168
+ $zindex_modal_backdrop: 1030
169
+ $zindex_modal: 1040
170
+ $zindex_flash_message: 1050
171
+
172
+ // base.sass
173
+ $body_bg: $white
174
+ $body_color: $grey3
175
+ $select_bg: $primary
176
+ $select_color: $white
177
+ $tap_highlight: $primary
178
+ $link_normal: $primary
179
+ $link_hover: darken($link_normal, 20%)
180
+
181
+ // typography.sass
182
+ $header_color: $grey3
183
+ $hr_color: $grey6
184
+
185
+ // forms.sass
186
+ $placeholder: $greyC
187
+ $horiz_offset: 100px
188
+ $input_inset_shadow: inset 0 1px 1px rgba($black, 0.1)
189
+
@@ -1,99 +1,22 @@
1
1
 
2
- // Import what's necessary
3
- @import themes/default
4
- @import mixins/clearfixins
5
2
  @import mixins/timing-equations
6
3
 
7
- // Nav Bar
8
- .sg-navbar .dropdown .caret
9
- margin-left: 0.25em
10
- .sg-navbar .brand
11
- float: right
12
-
13
- // Containers
14
- .sg-spy-landing
15
- height: 2em
16
-
17
- .sg-section, .sg-subsection
18
- +clearfixer
19
-
20
- .sg-section
21
- border-bottom: 1px solid $hr_color
22
- padding: 3em 0 1.875em
23
-
24
- .sg-subsection
25
- margin: 1.75em 0 0
26
-
27
- .sg-threequarter, .sg-half, .sg-quarter,
28
- .sg-twothird, .sg-onethird
29
- -webkit-box-sizing: border-box
30
- -moz-box-sizing: border-box
31
- box-sizing: border-box
32
- display: block
33
- float: left
34
- margin-left: 2%
35
- margin-right: 2%
36
- &.pull
37
- margin-left: 0
38
- &.push
39
- margin-right: 0
40
- .sg-threequarter
41
- width: 71%
42
- &.pull, &.push
43
- width: 73%
44
- .sg-half
45
- width: 46%
46
- &.pull, &.push
47
- width: 48%
48
- .sg-quarter
49
- width: 21%
50
- &.pull, &.push
51
- width: 23%
52
- .sg-twothird
53
- width: 63%
54
- &.pull, &.push
55
- width: 65%
56
- .sg-onethird
57
- width: 29%
58
- &.pull, &.push
59
- width: 31%
60
-
61
- // Text items
62
- .sg-heading
63
- color: $primary
64
- text-shadow: $text_drop_lite
65
- line-height: 1.4
66
-
67
- .sg-subheading
68
- border-bottom: 1px solid $greyC
69
- line-height: 1.4
70
- margin-bottom: 1em
71
- & span
72
- color: $greyC
73
- float: right
74
- font-size: 0.5em
75
- margin-top: 1.5em
76
-
77
- .sg-note, .sg-todo
78
- font-weight: bold
79
-
80
- .sg-note
81
- color: $grey6
82
-
83
- .sg-todo
84
- color: lighten($magenta, 20%)
85
- font-style: italic
86
-
87
- .sg-swatch
88
- background-color: $magenta
89
- border-radius: $radii
90
- display: inline-block
91
- vertical-align: middle
92
- width: 30px
93
- height: 20px
4
+ // .pln, .pun, .opn, .clo => color: body_color
5
+ pre.prettyprint
6
+ .com
7
+ color: #93a1a1
8
+ .lit
9
+ color: #195f91
10
+ .fun
11
+ color: #cb4b15
12
+ .kwd, .tag
13
+ color: #258ad2
14
+ .str, .atv
15
+ color: #859900
16
+ .atn, .type, .dec, .var
17
+ color: #d33682
94
18
 
95
19
  // Transition demo
96
-
97
20
  @mixin _tranny-settings($prop, $timing)
98
21
  -webkit-transition-property: $prop
99
22
  -moz-transition-property: $prop
@@ -113,12 +36,8 @@
113
36
  -o-transition-timing-function: $type
114
37
  transition-timing-function: $type
115
38
 
116
- .sg-tranny-demo
39
+ #mixins-timing-equations table:hover .sherpa-swatch
117
40
  cursor: pointer
118
- & td
119
- padding: 0.2em
120
-
121
- .sg-tranny-demo:hover .sg-swatch
122
41
  $_pos: 500px
123
42
  -webkit-transform: translateX($_pos)
124
43
  -moz-transform: translateX($_pos)
@@ -126,15 +45,13 @@
126
45
  -o-transform: translateX($_pos)
127
46
  transform: translateX($_pos)
128
47
 
129
- .sg-tranny-demo li
130
- margin-bottom: 0.25em
131
-
132
- .sg-tranny-demo .prop
133
- width: 20%
48
+ #mixins-timing-equations table tr td
49
+ padding: 0.2em
50
+ &:first-child
51
+ width: 20%
134
52
 
135
- .sg-tranny-demo .sg-swatch
53
+ #mixins-timing-equations .sherpa-swatch
136
54
  +_tranny-settings(all, 1.5s)
137
- background-color: $primary
138
55
  &.ease-in-quad
139
56
  +_tranny-timing($ease-in-quad)
140
57
  &.ease-in-cubic
@@ -184,16 +101,3 @@
184
101
  &.ease-in-out-back
185
102
  +_tranny-timing($ease-in-out-back)
186
103
 
187
- // Media Queries specific for the guide
188
- @media (max-width: 889px)
189
- .sg-navbar .brand
190
- float: left
191
-
192
- @media (max-width: 480px)
193
- .sg-threequarter, .sg-half, .sg-quarter,
194
- .sg-twothird, .sg-onethird
195
- float: none
196
- margin-left: 0
197
- margin-right: 0
198
- width: 98%
199
-
@@ -4,24 +4,13 @@
4
4
  // @import bourbon
5
5
  @import polyfills/polyfills
6
6
 
7
- // import all underoos mixins
7
+ // import core underoos files
8
8
  @import mixins/mixins
9
+ @import settings/settings
10
+ @import base/base
9
11
 
10
- // configuration theme
11
- @import themes/default
12
-
13
- // base elements
14
- @import base/normalize
15
- @import base/scaffold
16
- @import base/helpers
17
- @import base/transitions
18
- @import base/button-btn-mixin
19
- @import base/typography
20
- @import base/elements
21
- @import base/tables
22
- @import base/forms
23
-
24
- // components
12
+ // components (import only what's needed)
13
+ // @import components/components
25
14
  @import components/carets
26
15
  @import components/close
27
16
  @import components/decals