underoos 1.0.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.
- data/.gitignore +8 -0
- data/.rvmrc +1 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +143 -0
- data/LICENSE +26 -0
- data/Procfile +1 -0
- data/README.md +13 -0
- data/Rakefile +12 -0
- data/app/assets/javascripts/styleguide.js +132 -0
- data/app/assets/javascripts/underoos.js +18 -0
- data/app/assets/stylesheets/base/_button-btn-mixin.sass +72 -0
- data/app/assets/stylesheets/base/_elements.sass +61 -0
- data/app/assets/stylesheets/base/_forms.sass +362 -0
- data/app/assets/stylesheets/base/_helpers.sass +54 -0
- data/app/assets/stylesheets/base/_normalize.sass +114 -0
- data/app/assets/stylesheets/base/_scaffold.sass +51 -0
- data/app/assets/stylesheets/base/_tables.sass +99 -0
- data/app/assets/stylesheets/base/_transitions.sass +17 -0
- data/app/assets/stylesheets/base/_typography.sass +185 -0
- data/app/assets/stylesheets/components/_accordions.sass +17 -0
- data/app/assets/stylesheets/components/_breadcrumbs.sass +22 -0
- data/app/assets/stylesheets/components/_button-groups.sass +46 -0
- data/app/assets/stylesheets/components/_carets.sass +24 -0
- data/app/assets/stylesheets/components/_carousels.sass +18 -0
- data/app/assets/stylesheets/components/_close.sass +25 -0
- data/app/assets/stylesheets/components/_decals.sass +27 -0
- data/app/assets/stylesheets/components/_dropdowns.sass +85 -0
- data/app/assets/stylesheets/components/_media.sass +33 -0
- data/app/assets/stylesheets/components/_modals.sass +28 -0
- data/app/assets/stylesheets/components/_nav-lists.sass +22 -0
- data/app/assets/stylesheets/components/_navbars.sass +105 -0
- data/app/assets/stylesheets/components/_notifications.sass +108 -0
- data/app/assets/stylesheets/components/_paddles.sass +34 -0
- data/app/assets/stylesheets/components/_pagination.sass +41 -0
- data/app/assets/stylesheets/components/_pills.sass +64 -0
- data/app/assets/stylesheets/components/_popovers.sass +55 -0
- data/app/assets/stylesheets/components/_progress-bars.sass +29 -0
- data/app/assets/stylesheets/components/_tabs.sass +93 -0
- data/app/assets/stylesheets/components/_tooltips.sass +46 -0
- data/app/assets/stylesheets/components/_wells.sass +16 -0
- data/app/assets/stylesheets/layouts/_containers.sass +15 -0
- data/app/assets/stylesheets/layouts/_print.sass +48 -0
- data/app/assets/stylesheets/layouts/_queries.sass +121 -0
- data/app/assets/stylesheets/layouts/_upgrades.sass +64 -0
- data/app/assets/stylesheets/mixins/_arrows.sass +40 -0
- data/app/assets/stylesheets/mixins/_clearfixins.sass +15 -0
- data/app/assets/stylesheets/mixins/_coloring.sass +6 -0
- data/app/assets/stylesheets/mixins/_columns.sass +19 -0
- data/app/assets/stylesheets/mixins/_conversions.sass +25 -0
- data/app/assets/stylesheets/mixins/_font-size.sass +6 -0
- data/app/assets/stylesheets/mixins/_image-tools.sass +13 -0
- data/app/assets/stylesheets/mixins/_ir.sass +9 -0
- data/app/assets/stylesheets/mixins/_mixins.sass +14 -0
- data/app/assets/stylesheets/mixins/_tab-focus.sass +7 -0
- data/app/assets/stylesheets/mixins/_timing-equations.sass +29 -0
- data/app/assets/stylesheets/mixins/_visibility.sass +43 -0
- data/app/assets/stylesheets/polyfills/_box-shadow.sass +7 -0
- data/app/assets/stylesheets/polyfills/_box-sizing.sass +8 -0
- data/app/assets/stylesheets/polyfills/_functions.sass +22 -0
- data/app/assets/stylesheets/polyfills/_inline-block.sass +8 -0
- data/app/assets/stylesheets/polyfills/_opacity.sass +6 -0
- data/app/assets/stylesheets/polyfills/_polyfills.sass +10 -0
- data/app/assets/stylesheets/polyfills/_transition.sass +9 -0
- data/app/assets/stylesheets/polyfills/_user-select.sass +8 -0
- data/app/assets/stylesheets/styleguide.sass +199 -0
- data/app/assets/stylesheets/themes/_default.sass +119 -0
- data/app/assets/stylesheets/underoos.sass +52 -0
- data/app/controllers/underoos/styleguides_controller.rb +79 -0
- data/app/views/shared/_upgrades.html.haml +12 -0
- data/app/views/underoos/styleguides/_assets.haml +42 -0
- data/app/views/underoos/styleguides/_components.haml +42 -0
- data/app/views/underoos/styleguides/_elements.haml +242 -0
- data/app/views/underoos/styleguides/_forms.haml +305 -0
- data/app/views/underoos/styleguides/_layouts.haml +76 -0
- data/app/views/underoos/styleguides/_palettes.haml +18 -0
- data/app/views/underoos/styleguides/_resources.haml +27 -0
- data/app/views/underoos/styleguides/_tables.haml +124 -0
- data/app/views/underoos/styleguides/_typography.haml +284 -0
- data/app/views/underoos/styleguides/_utilities.haml +270 -0
- data/app/views/underoos/styleguides/components/_accordions.haml +83 -0
- data/app/views/underoos/styleguides/components/_breadcrumbs.haml +42 -0
- data/app/views/underoos/styleguides/components/_button-groups.haml +162 -0
- data/app/views/underoos/styleguides/components/_carets.haml +28 -0
- data/app/views/underoos/styleguides/components/_close.haml +20 -0
- data/app/views/underoos/styleguides/components/_decals.haml +40 -0
- data/app/views/underoos/styleguides/components/_dropdowns.haml +189 -0
- data/app/views/underoos/styleguides/components/_media.haml +78 -0
- data/app/views/underoos/styleguides/components/_modals.haml +42 -0
- data/app/views/underoos/styleguides/components/_nav-lists.haml +52 -0
- data/app/views/underoos/styleguides/components/_navbars.haml +144 -0
- data/app/views/underoos/styleguides/components/_navs-showcase.haml +27 -0
- data/app/views/underoos/styleguides/components/_notifications.haml +169 -0
- data/app/views/underoos/styleguides/components/_paddles.haml +68 -0
- data/app/views/underoos/styleguides/components/_pagination.haml +64 -0
- data/app/views/underoos/styleguides/components/_popovers.haml +33 -0
- data/app/views/underoos/styleguides/components/_progress-bars.haml +72 -0
- data/app/views/underoos/styleguides/components/_tabs-pills.haml +241 -0
- data/app/views/underoos/styleguides/components/_tooltips.haml +37 -0
- data/app/views/underoos/styleguides/components/_wells.haml +29 -0
- data/app/views/underoos/styleguides/index.html.haml +259 -0
- data/app/views/underoos/styleguides/partials/_form-template.haml +171 -0
- data/app/views/underoos/styleguides/partials/_table-data.haml +33 -0
- data/app/views/underoos/styleguides/partials/_transitions.haml +136 -0
- data/config.ru +38 -0
- data/config/routes.rb +3 -0
- data/features/generator.feature +78 -0
- data/features/step_definitions/underoos_steps.rb +3 -0
- data/features/support/env.rb +9 -0
- data/lib/generators/underoos/assets_generator.rb +33 -0
- data/lib/underoos.rb +5 -0
- data/lib/underoos/engine.rb +8 -0
- data/lib/underoos/version.rb +3 -0
- data/public/apple-touch-icon-114x114-precomposed.png +0 -0
- data/public/apple-touch-icon-57x57-precomposed.png +0 -0
- data/public/apple-touch-icon-72x72-precomposed.png +0 -0
- data/public/apple-touch-icon-precomposed.png +0 -0
- data/public/apple-touch-icon.png +0 -0
- data/public/favicon.ico +0 -0
- data/script/javascripts +15 -0
- data/underoos.gemspec +29 -0
- data/vendor/assets/javascripts/bootstrap-alert.js +94 -0
- data/vendor/assets/javascripts/bootstrap-button.js +100 -0
- data/vendor/assets/javascripts/bootstrap-collapse.js +138 -0
- data/vendor/assets/javascripts/bootstrap-dropdown.js +92 -0
- data/vendor/assets/javascripts/bootstrap-modal.js +210 -0
- data/vendor/assets/javascripts/bootstrap-popover.js +95 -0
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +125 -0
- data/vendor/assets/javascripts/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/bootstrap-typeahead.js +271 -0
- data/vendor/assets/javascripts/prettify.js +28 -0
- metadata +246 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
// CSS cubic-bezier timing functions courtesy of [jaukia](http://github.com/jaukia/easie)
|
|
3
|
+
$ease-in-quad: cubic-bezier(0.55, 0.085, 0.68, 0.53)
|
|
4
|
+
$ease-in-cubic: cubic-bezier(0.55, 0.055, 0.675, 0.19)
|
|
5
|
+
$ease-in-quart: cubic-bezier(0.895, 0.03, 0.685, 0.22)
|
|
6
|
+
$ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06)
|
|
7
|
+
$ease-in-sine: cubic-bezier(0.47, 0, 0.745, 0.715)
|
|
8
|
+
$ease-in-expo: cubic-bezier(0.95, 0.05, 0.795, 0.035)
|
|
9
|
+
$ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.335)
|
|
10
|
+
$ease-in-back: cubic-bezier(0.600, -0.280, 0.735, 0.045)
|
|
11
|
+
|
|
12
|
+
$ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94)
|
|
13
|
+
$ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1)
|
|
14
|
+
$ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1)
|
|
15
|
+
$ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1)
|
|
16
|
+
$ease-out-sine: cubic-bezier(0.39, 0.575, 0.565, 1)
|
|
17
|
+
$ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1)
|
|
18
|
+
$ease-out-circ: cubic-bezier(0.075, 0.82, 0.165, 1)
|
|
19
|
+
$ease-out-back: cubic-bezier(0.175, 0.885, 0.320, 1.275)
|
|
20
|
+
|
|
21
|
+
$ease-in-out-quad: cubic-bezier(0.455, 0.03, 0.515, 0.955)
|
|
22
|
+
$ease-in-out-cubic: cubic-bezier(0.645, 0.045, 0.355, 1)
|
|
23
|
+
$ease-in-out-quart: cubic-bezier(0.77, 0, 0.175, 1)
|
|
24
|
+
$ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1)
|
|
25
|
+
$ease-in-out-sine: cubic-bezier(0.445, 0.05, 0.55, 0.95)
|
|
26
|
+
$ease-in-out-expo: cubic-bezier(1, 0, 0, 1)
|
|
27
|
+
$ease-in-out-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86)
|
|
28
|
+
$ease-in-out-back: cubic-bezier(0.680, -0.550, 0.265, 1.550)
|
|
29
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
// Totally hidden from screen readers and browsers
|
|
3
|
+
@mixin hidden
|
|
4
|
+
display: none !important
|
|
5
|
+
visibility: hidden
|
|
6
|
+
|
|
7
|
+
// Reverse the effects of hidden
|
|
8
|
+
@mixin shown
|
|
9
|
+
display: block
|
|
10
|
+
visibility: visible
|
|
11
|
+
|
|
12
|
+
// Only visually hidden, still available to screen readers
|
|
13
|
+
@mixin visuallyhidden
|
|
14
|
+
border: 0
|
|
15
|
+
clip: rect(0 0 0 0)
|
|
16
|
+
position: absolute
|
|
17
|
+
overflow: hidden
|
|
18
|
+
margin: -1px
|
|
19
|
+
padding: 0
|
|
20
|
+
width: 1px
|
|
21
|
+
height: 1px
|
|
22
|
+
&.focusable:active,
|
|
23
|
+
&.focusable:focus
|
|
24
|
+
clip: auto
|
|
25
|
+
position: static
|
|
26
|
+
overflow: visible
|
|
27
|
+
margin: 0
|
|
28
|
+
width: auto
|
|
29
|
+
height: auto
|
|
30
|
+
|
|
31
|
+
// Reverse the settings applied by `.visuallyhidden`
|
|
32
|
+
@mixin visuallyshown
|
|
33
|
+
clip: auto
|
|
34
|
+
position: static
|
|
35
|
+
overflow: visible
|
|
36
|
+
margin: 0
|
|
37
|
+
width: auto
|
|
38
|
+
height: auto
|
|
39
|
+
|
|
40
|
+
// Hide visually and from screenreaders, but maintain layout
|
|
41
|
+
@mixin invisible
|
|
42
|
+
visibility: hidden
|
|
43
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
@mixin box-shadow($shadow-1:none, $shadow-2:false, $shadow-3:false, $shadow-4:false, $shadow-5:false, $shadow-6:false, $shadow-7:false, $shadow-8:false, $shadow-9:false)
|
|
3
|
+
$full: combine($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9)
|
|
4
|
+
-webkit-box-shadow: $full
|
|
5
|
+
-moz-box-shadow: $full
|
|
6
|
+
box-shadow: $full
|
|
7
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
// A function used to combine and normalize multiple parameters for a polyfill (supports up to 9 values)
|
|
3
|
+
@function combine($value-1, $value-2:false, $value-3:false, $value-4:false, $value-5:false, $value-6:false, $value-7:false, $value-8:false, $value-9:false)
|
|
4
|
+
@if $value-2 == false and $value-3 == false and $value-4 == false and $value-5 == false and $value-6 == false and $value-7 == false and $value-8 == false and $value-9 == false
|
|
5
|
+
@return $value-1
|
|
6
|
+
@else if $value-2 != false and $value-3 == false and $value-4 == false and $value-5 == false and $value-6 == false and $value-7 == false and $value-8 == false and $value-9 == false
|
|
7
|
+
@return $value-1, $value-2
|
|
8
|
+
@else if $value-2 != false and $value-3 != false and $value-4 == false and $value-5 == false and $value-6 == false and $value-7 == false and $value-8 == false and $value-9 == false
|
|
9
|
+
@return $value-1, $value-2, $value-3
|
|
10
|
+
@else if $value-2 != false and $value-3 != false and $value-4 != false and $value-5 == false and $value-6 == false and $value-7 == false and $value-8 == false and $value-9 == false
|
|
11
|
+
@return $value-1, $value-2, $value-3, $value-4
|
|
12
|
+
@else if $value-2 != false and $value-3 != false and $value-4 != false and $value-5 != false and $value-6 == false and $value-7 == false and $value-8 == false and $value-9 == false
|
|
13
|
+
@return $value-1, $value-2, $value-3, $value-4, $value-5
|
|
14
|
+
@else if $value-2 != false and $value-3 != false and $value-4 != false and $value-5 != false and $value-6 != false and $value-7 == false and $value-8 == false and $value-9 == false
|
|
15
|
+
@return $value-1, $value-2, $value-3, $value-4, $value-5, $value-6
|
|
16
|
+
@else if $value-2 != false and $value-3 != false and $value-4 != false and $value-5 != false and $value-6 != false and $value-7 != false and $value-8 == false and $value-9 == false
|
|
17
|
+
@return $value-1, $value-2, $value-3, $value-4, $value-5, $value-6, $value-7
|
|
18
|
+
@else if $value-2 != false and $value-3 != false and $value-4 != false and $value-5 != false and $value-6 != false and $value-7 != false and $value-8 != false and $value-9 == false
|
|
19
|
+
@return $value-1, $value-2, $value-3, $value-4, $value-5, $value-6, $value-7, $value-8
|
|
20
|
+
|
|
21
|
+
@return $value-1, $value-2, $value-3, $value-4, $value-5, $value-6, $value-7, $value-8, $value-9
|
|
22
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
@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
|
+
$full: combine($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9)
|
|
4
|
+
-webkit-transition: $full
|
|
5
|
+
-moz-transition: $full
|
|
6
|
+
-ms-transition: $full
|
|
7
|
+
-o-transition: $full
|
|
8
|
+
transition: $full
|
|
9
|
+
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
|
|
2
|
+
// Import what's necessary
|
|
3
|
+
@import themes/default
|
|
4
|
+
@import mixins/clearfixins
|
|
5
|
+
@import mixins/timing-equations
|
|
6
|
+
|
|
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
|
|
94
|
+
|
|
95
|
+
// Transition demo
|
|
96
|
+
|
|
97
|
+
@mixin _tranny-settings($prop, $timing)
|
|
98
|
+
-webkit-transition-property: $prop
|
|
99
|
+
-moz-transition-property: $prop
|
|
100
|
+
-ms-transition-property: $prop
|
|
101
|
+
-o-transition-property: $prop
|
|
102
|
+
transition-property: $prop
|
|
103
|
+
-webkit-transition-duration: $timing
|
|
104
|
+
-moz-transition-duration: $timing
|
|
105
|
+
-ms-transition-duration: $timing
|
|
106
|
+
-o-transition-duration: $timing
|
|
107
|
+
transition-duration: $timing
|
|
108
|
+
|
|
109
|
+
@mixin _tranny-timing($type)
|
|
110
|
+
-webkit-transition-timing-function: $type
|
|
111
|
+
-moz-transition-timing-function: $type
|
|
112
|
+
-ms-transition-timing-function: $type
|
|
113
|
+
-o-transition-timing-function: $type
|
|
114
|
+
transition-timing-function: $type
|
|
115
|
+
|
|
116
|
+
.sg-tranny-demo
|
|
117
|
+
cursor: pointer
|
|
118
|
+
& td
|
|
119
|
+
padding: 0.2em
|
|
120
|
+
|
|
121
|
+
.sg-tranny-demo:hover .sg-swatch
|
|
122
|
+
$_pos: 500px
|
|
123
|
+
-webkit-transform: translateX($_pos)
|
|
124
|
+
-moz-transform: translateX($_pos)
|
|
125
|
+
-ms-transform: translateX($_pos)
|
|
126
|
+
-o-transform: translateX($_pos)
|
|
127
|
+
transform: translateX($_pos)
|
|
128
|
+
|
|
129
|
+
.sg-tranny-demo li
|
|
130
|
+
margin-bottom: 0.25em
|
|
131
|
+
|
|
132
|
+
.sg-tranny-demo .prop
|
|
133
|
+
width: 20%
|
|
134
|
+
|
|
135
|
+
.sg-tranny-demo .sg-swatch
|
|
136
|
+
+_tranny-settings(all, 1.5s)
|
|
137
|
+
background-color: $primary
|
|
138
|
+
&.ease-in-quad
|
|
139
|
+
+_tranny-timing($ease-in-quad)
|
|
140
|
+
&.ease-in-cubic
|
|
141
|
+
+_tranny-timing($ease-in-cubic)
|
|
142
|
+
&.ease-in-quart
|
|
143
|
+
+_tranny-timing($ease-in-quart)
|
|
144
|
+
&.ease-in-quint
|
|
145
|
+
+_tranny-timing($ease-in-quint)
|
|
146
|
+
&.ease-in-sine
|
|
147
|
+
+_tranny-timing($ease-in-sine)
|
|
148
|
+
&.ease-in-expo
|
|
149
|
+
+_tranny-timing($ease-in-expo)
|
|
150
|
+
&.ease-in-circ
|
|
151
|
+
+_tranny-timing($ease-in-circ)
|
|
152
|
+
&.ease-in-back
|
|
153
|
+
+_tranny-timing($ease-in-back)
|
|
154
|
+
&.ease-out-quad
|
|
155
|
+
+_tranny-timing($ease-out-quad)
|
|
156
|
+
&.ease-out-cubic
|
|
157
|
+
+_tranny-timing($ease-out-cubic)
|
|
158
|
+
&.ease-out-quart
|
|
159
|
+
+_tranny-timing($ease-out-quart)
|
|
160
|
+
&.ease-out-quint
|
|
161
|
+
+_tranny-timing($ease-out-quint)
|
|
162
|
+
&.ease-out-sine
|
|
163
|
+
+_tranny-timing($ease-out-sine)
|
|
164
|
+
&.ease-out-expo
|
|
165
|
+
+_tranny-timing($ease-out-expo)
|
|
166
|
+
&.ease-out-circ
|
|
167
|
+
+_tranny-timing($ease-out-circ)
|
|
168
|
+
&.ease-out-back
|
|
169
|
+
+_tranny-timing($ease-out-back)
|
|
170
|
+
&.ease-in-out-quad
|
|
171
|
+
+_tranny-timing($ease-in-out-quad)
|
|
172
|
+
&.ease-in-out-cubic
|
|
173
|
+
+_tranny-timing($ease-in-out-cubic)
|
|
174
|
+
&.ease-in-out-quart
|
|
175
|
+
+_tranny-timing($ease-in-out-quart)
|
|
176
|
+
&.ease-in-out-quint
|
|
177
|
+
+_tranny-timing($ease-in-out-quint)
|
|
178
|
+
&.ease-in-out-sine
|
|
179
|
+
+_tranny-timing($ease-in-out-sine)
|
|
180
|
+
&.ease-in-out-expo
|
|
181
|
+
+_tranny-timing($ease-in-out-expo)
|
|
182
|
+
&.ease-in-out-circ
|
|
183
|
+
+_tranny-timing($ease-in-out-circ)
|
|
184
|
+
&.ease-in-out-back
|
|
185
|
+
+_tranny-timing($ease-in-out-back)
|
|
186
|
+
|
|
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
|
+
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
|
|
2
|
+
// ## Base Sizing
|
|
3
|
+
$context_px: 16
|
|
4
|
+
$base_font_size: 14
|
|
5
|
+
$base_width: 1000
|
|
6
|
+
$base_line_height: 1.2
|
|
7
|
+
$base_vertical: $base_font_size * $base_line_height
|
|
8
|
+
|
|
9
|
+
// ## Fonts
|
|
10
|
+
$sans_norm: "HelveticaNeue", "Helvetica Neue", "Helvetica", "Arial", sans-serif
|
|
11
|
+
$serif_norm: "Georgia", "Times", "Times New Roman", serif
|
|
12
|
+
$code_norm: "Bitstream Vera Sans Mono", "Menslo LG M", "Menlo", "Monaco", monospace
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// ## Colors
|
|
16
|
+
|
|
17
|
+
// greyscale
|
|
18
|
+
$black: #000
|
|
19
|
+
$grey1: #111
|
|
20
|
+
$grey2: #222
|
|
21
|
+
$grey3: #333
|
|
22
|
+
$grey4: #444
|
|
23
|
+
$grey5: #555
|
|
24
|
+
$grey6: #666
|
|
25
|
+
$grey7: #777
|
|
26
|
+
$grey8: #888
|
|
27
|
+
$grey9: #999
|
|
28
|
+
$greyA: #aaa
|
|
29
|
+
$greyB: #bbb
|
|
30
|
+
$greyC: #ccc
|
|
31
|
+
$greyD: #ddd
|
|
32
|
+
$greyE: #eee
|
|
33
|
+
$white: #fff
|
|
34
|
+
$off_white: #fafafa
|
|
35
|
+
$off_grey: #eaeaea
|
|
36
|
+
|
|
37
|
+
// mc roy g biv
|
|
38
|
+
$magenta: #ff00ff
|
|
39
|
+
$cyan: #00ffff
|
|
40
|
+
$red: #b22222
|
|
41
|
+
$orange: #f26522
|
|
42
|
+
$yellow: #ffc40d
|
|
43
|
+
$green: #46a546
|
|
44
|
+
$blue: #268bd2
|
|
45
|
+
$indigo: #4b0082
|
|
46
|
+
$violet: #ee82ee
|
|
47
|
+
|
|
48
|
+
// status
|
|
49
|
+
$standard: #f5f5f5
|
|
50
|
+
$info: $grey9
|
|
51
|
+
$important: $blue
|
|
52
|
+
$success: $green
|
|
53
|
+
$warning: $yellow
|
|
54
|
+
$error: $red
|
|
55
|
+
$danger: $red
|
|
56
|
+
|
|
57
|
+
// ci
|
|
58
|
+
$primary: $blue
|
|
59
|
+
|
|
60
|
+
// misc colors
|
|
61
|
+
$disabled_color: $greyB
|
|
62
|
+
$disabled_bg: $greyE
|
|
63
|
+
$disabled_border: $greyD
|
|
64
|
+
$focus_color: #52a8ec
|
|
65
|
+
$focus_border: rgba($focus_color, 0.8)
|
|
66
|
+
|
|
67
|
+
// component
|
|
68
|
+
$component_normal: $grey6
|
|
69
|
+
$component_active: $white
|
|
70
|
+
$component_bg: transparent
|
|
71
|
+
$component_bg_hover: $greyE
|
|
72
|
+
$component_bg_active: $primary
|
|
73
|
+
$component_border: $greyC
|
|
74
|
+
$component_border_alt: darken($component_border, 10%)
|
|
75
|
+
|
|
76
|
+
// ## Shadows
|
|
77
|
+
$text_inset_dark: 0 -1px 0 rgba($black, 0.25)
|
|
78
|
+
$text_inset_lite: 0 -1px 0 rgba($white, 0.75)
|
|
79
|
+
$text_drop_dark: 0 1px 0 rgba($black, 0.25)
|
|
80
|
+
$text_drop_lite: 0 1px 0 rgba($white, 0.75)
|
|
81
|
+
|
|
82
|
+
$inset_dark: inset 0 1px 4px rgba($black, 0.3)
|
|
83
|
+
$inset_lite: inset 0 1px 4px rgba($white, 0.7)
|
|
84
|
+
$drop_dark: 0 1px 4px rgba($black, 0.3)
|
|
85
|
+
$drop_lite: 0 1px 4px rgba($white, 0.7)
|
|
86
|
+
|
|
87
|
+
$focus_inset: inset 0 1px 3px rgba($black, 0.1)
|
|
88
|
+
$focus_glow: 0 0 8px rgba($focus_color, 0.6)
|
|
89
|
+
$error_glow: 0 0 8px rgba($red, 0.6)
|
|
90
|
+
|
|
91
|
+
// ## Misc
|
|
92
|
+
$radii: 0.4em
|
|
93
|
+
$speed: 0.25s
|
|
94
|
+
|
|
95
|
+
$zindex_dropdown: 1000
|
|
96
|
+
$zindex_tips: 1010
|
|
97
|
+
$zindex_navbar: 1020
|
|
98
|
+
$zindex_modal_backdrop: 1030
|
|
99
|
+
$zindex_modal: 1040
|
|
100
|
+
$zindex_flash_message: 1050
|
|
101
|
+
|
|
102
|
+
// base.sass
|
|
103
|
+
$body_bg: $white
|
|
104
|
+
$body_color: $grey3
|
|
105
|
+
$select_bg: $primary
|
|
106
|
+
$select_color: $white
|
|
107
|
+
$tap_highlight: $primary
|
|
108
|
+
$link_normal: $primary
|
|
109
|
+
$link_hover: darken($link_normal, 20%)
|
|
110
|
+
|
|
111
|
+
// typography.sass
|
|
112
|
+
$header_color: $grey3
|
|
113
|
+
$hr_color: $grey6
|
|
114
|
+
|
|
115
|
+
// forms.sass
|
|
116
|
+
$placeholder: $greyC
|
|
117
|
+
$horiz_offset: 100px
|
|
118
|
+
$input_inset_shadow: inset 0 1px 1px rgba($black, 0.1)
|
|
119
|
+
|