skeletor_backbone 0.0.3
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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +43 -0
- data/Rakefile +1 -0
- data/app/assets/stylesheets/skeletor.sass +21 -0
- data/app/assets/stylesheets/skeletor/_all.sass +5 -0
- data/app/assets/stylesheets/skeletor/_css3.sass +26 -0
- data/app/assets/stylesheets/skeletor/_functions.sass +13 -0
- data/app/assets/stylesheets/skeletor/_mixins.sass +23 -0
- data/app/assets/stylesheets/skeletor/_settings.sass +153 -0
- data/app/assets/stylesheets/skeletor/base/debug.sass +132 -0
- data/app/assets/stylesheets/skeletor/base/foundation.sass +537 -0
- data/app/assets/stylesheets/skeletor/base/helpers.sass +203 -0
- data/app/assets/stylesheets/skeletor/base/print.sass +46 -0
- data/app/assets/stylesheets/skeletor/base/reset.sass +125 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_animation.sass +34 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_appearance.sass +39 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_backface_visibility.sass +36 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_border_radius.sass +75 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_box_shadow.sass +38 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_box_sizing.sass +40 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_flexbox.sass +179 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_gradients.sass +54 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_hyphens.sass +38 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_perspective.sass +50 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_prefixer.sass +76 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_tab_size.sass +39 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_text_shadow.sass +38 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_transform.sass +112 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_transition.sass +35 -0
- data/app/assets/stylesheets/skeletor/globals/css3/_user_select.sass +39 -0
- data/app/assets/stylesheets/skeletor/globals/functions/_calculate_em.sass +43 -0
- data/app/assets/stylesheets/skeletor/globals/functions/_calculate_modular_scale.sass +85 -0
- data/app/assets/stylesheets/skeletor/globals/functions/_calculate_percent.sass +42 -0
- data/app/assets/stylesheets/skeletor/globals/functions/_calculate_rem.sass +42 -0
- data/app/assets/stylesheets/skeletor/globals/functions/_strip_units.sass +38 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_accessibility.sass +49 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_grid_pull.sass +311 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_grid_push.sass +313 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_grid_widths.sass +275 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_hidpi.sass +38 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_media_query.sass +71 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_opacity.sass +36 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_position.sass +65 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_rem.sass +102 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_retina_image.sass +53 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_rgba.sass +37 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_silent_relative.sass +41 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_size.sass +71 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_triangle.sass +69 -0
- data/app/assets/stylesheets/skeletor/globals/mixins/_truncate_text.sass +41 -0
- data/app/assets/stylesheets/skeletor/globals/settings/_easing.sass +47 -0
- data/app/assets/stylesheets/skeletor/globals/settings/_font_stacks.sass +65 -0
- data/app/assets/stylesheets/skeletor/globals/settings/_html5_input_types.sass +51 -0
- data/app/assets/stylesheets/skeletor/layout/_grid.sass +147 -0
- data/app/assets/stylesheets/skeletor/layout/skeleton.sass +58 -0
- data/lib/generators/skeletor/install_generator.rb +26 -0
- data/lib/sass/sass_extend.rb +107 -0
- data/lib/skeletor_backbone.rb +23 -0
- data/lib/skeletor_backbone/version.rb +3 -0
- data/skeletor_backbone.gemspec +26 -0
- data/vendor/assets/stylesheets/normalize.css +406 -0
- metadata +163 -0
@@ -0,0 +1,203 @@
|
|
1
|
+
// Helper Classes
|
2
|
+
// A series of helper classes to use arbitrarily. Only use a helper class if an
|
3
|
+
// element/component doesn’t already have a class to which you could apply this
|
4
|
+
// styling, e.g. if you need to float `.main-nav` left then add `float:left;` to
|
5
|
+
// that ruleset as opposed to adding the `.float--left` class to the markup.
|
6
|
+
//
|
7
|
+
// A lot of these classes carry `!important` as you will always want them to win
|
8
|
+
// out over other selectors.
|
9
|
+
//
|
10
|
+
// =============================================================================
|
11
|
+
// Table of Contents
|
12
|
+
// =============================================================================
|
13
|
+
//
|
14
|
+
// IMPORTS.......................Imported Sass Methods
|
15
|
+
// FLOATS........................Add & remove floats (right left none)
|
16
|
+
// TEXT ALIGNMENT................Text alignment (left right center)
|
17
|
+
// FONT WEIGHTS..................Font weights (light, normal semibold bold)
|
18
|
+
// SPACING.......................Margin and Padding classes
|
19
|
+
// IMAGE REPLACEMENT.............Image Replacement classes
|
20
|
+
// VISUALLY......................Visually show/hide elements
|
21
|
+
// MISC CLASSES..................Misc classes (muted, caps, ect)
|
22
|
+
// DEBUGGING.....................Debug classes for layout
|
23
|
+
|
24
|
+
|
25
|
+
// -----------------------------------------------------------------------------
|
26
|
+
// :: IMPORTS
|
27
|
+
// -----------------------------------------------------------------------------
|
28
|
+
@import "skeletor/globals/mixins/accessibility"
|
29
|
+
@import "skeletor/globals/mixins/media_query"
|
30
|
+
@import "skeletor/globals/mixins/opacity"
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
// -----------------------------------------------------------------------------
|
37
|
+
// :: FLOATS
|
38
|
+
// -----------------------------------------------------------------------------
|
39
|
+
.float--right
|
40
|
+
float: right !important
|
41
|
+
.float--left
|
42
|
+
float: left !important
|
43
|
+
.float--center
|
44
|
+
float: none
|
45
|
+
margin-left: auto
|
46
|
+
margin-right: auto
|
47
|
+
.float--none
|
48
|
+
float: none !important
|
49
|
+
|
50
|
+
.clear--right
|
51
|
+
clear: right !important
|
52
|
+
.clear--left
|
53
|
+
clear: left !important
|
54
|
+
.clear--both
|
55
|
+
clear: both !important
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
// -----------------------------------------------------------------------------
|
62
|
+
// :: TEXT ALIGNMENT
|
63
|
+
// -----------------------------------------------------------------------------
|
64
|
+
.text--left
|
65
|
+
text-align: left !important
|
66
|
+
.text--center
|
67
|
+
text-align: center !important
|
68
|
+
.text--right
|
69
|
+
text-align: right !important
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
// -----------------------------------------------------------------------------
|
76
|
+
// :: FONT WEIGHTS
|
77
|
+
// -----------------------------------------------------------------------------
|
78
|
+
.weight--light
|
79
|
+
font-weight: 300 !important
|
80
|
+
.weight--normal
|
81
|
+
font-weight: 400 !important
|
82
|
+
.weight--semibold
|
83
|
+
font-weight: 600 !important
|
84
|
+
.weight--bold
|
85
|
+
font-weight: 700 !important
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
// -----------------------------------------------------------------------------
|
92
|
+
// :: SPACING
|
93
|
+
// -----------------------------------------------------------------------------
|
94
|
+
.margin--top
|
95
|
+
margin-top: 1rem !important
|
96
|
+
.margin--right
|
97
|
+
margin-right: 1rem !important
|
98
|
+
.margin--bottom
|
99
|
+
margin-bottom: 1rem !important
|
100
|
+
.margin--left
|
101
|
+
margin-left: 1rem !important
|
102
|
+
.margin--none
|
103
|
+
margin: 0 !important
|
104
|
+
|
105
|
+
.padding--top
|
106
|
+
padding-top: 1rem !important
|
107
|
+
.padding--right
|
108
|
+
padding-right: 1rem !important
|
109
|
+
.padding--bottom
|
110
|
+
padding-bottom: 1rem !important
|
111
|
+
.padding--left
|
112
|
+
padding-left: 1rem !important
|
113
|
+
.padding--none
|
114
|
+
padding: 0 !important
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
// -----------------------------------------------------------------------------
|
120
|
+
// :: IMAGE REPLACEMENT
|
121
|
+
// -----------------------------------------------------------------------------
|
122
|
+
.ir
|
123
|
+
border: 0
|
124
|
+
background-color: transparent
|
125
|
+
overflow: hidden
|
126
|
+
|
127
|
+
&:before
|
128
|
+
display: block
|
129
|
+
content: ""
|
130
|
+
height: 100%
|
131
|
+
width: 0
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
// -----------------------------------------------------------------------------
|
138
|
+
// :: VISUALLY
|
139
|
+
// -----------------------------------------------------------------------------
|
140
|
+
// Show/Hide Classes
|
141
|
+
.hide
|
142
|
+
display: none !important
|
143
|
+
.show
|
144
|
+
display: block !important
|
145
|
+
|
146
|
+
// Hide from both screenreaders and browsers
|
147
|
+
.hidden
|
148
|
+
display: none !important
|
149
|
+
visibility: hidden !important
|
150
|
+
|
151
|
+
// Hide visually and from screenreaders, but maintain layout
|
152
|
+
.invisible
|
153
|
+
visibility: hidden !important
|
154
|
+
|
155
|
+
// Hide content off-screen without resorting to `display: none;`, also provide
|
156
|
+
// breakpoint specific hidden elements.
|
157
|
+
.accessibility,
|
158
|
+
.visuallyHidden
|
159
|
+
+skeletor-accessibility
|
160
|
+
|
161
|
+
@if $responsive
|
162
|
+
@each $state in $breakpoints
|
163
|
+
+skeletor-media-query(#{$state})
|
164
|
+
.accessibility--#{$state},
|
165
|
+
.visuallyHidden--#{$state}
|
166
|
+
+skeletor-accessibility
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
// -----------------------------------------------------------------------------
|
173
|
+
// :: MISC CLASSES
|
174
|
+
// -----------------------------------------------------------------------------
|
175
|
+
// Add a help cursor to any element that gives the user extra information on `:hover`.
|
176
|
+
.informative, .info
|
177
|
+
cursor: help !important
|
178
|
+
|
179
|
+
// Mute an object by reducing its opacity.
|
180
|
+
.muted, .mute
|
181
|
+
+skeletor-opacity(0.5, !important)
|
182
|
+
|
183
|
+
// Apply capital case to an element
|
184
|
+
.capitalize, .caps
|
185
|
+
text-transform: uppercase !important
|
186
|
+
|
187
|
+
// Add right-anggled quote to links that imply movement,
|
188
|
+
.go:after
|
189
|
+
content: "\00A0" "\00BB" !important
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
// -----------------------------------------------------------------------------
|
196
|
+
// :: DEBUGGING
|
197
|
+
// -----------------------------------------------------------------------------
|
198
|
+
.debug
|
199
|
+
outline: 1px dashed red
|
200
|
+
.debug--blue
|
201
|
+
outline: 1px dashed blue
|
202
|
+
.debug--green
|
203
|
+
outline: 1px dashed green
|
@@ -0,0 +1,46 @@
|
|
1
|
+
// Print Styles, Inlined to avoid required HTTP connection: h5bp.com/r
|
2
|
+
|
3
|
+
@media print
|
4
|
+
*
|
5
|
+
background: transparent !important
|
6
|
+
// Black prints faster: h5bp.com/s
|
7
|
+
color: #000 !important
|
8
|
+
box-shadow: none !important
|
9
|
+
text-shadow: none !important
|
10
|
+
|
11
|
+
a, a:visited
|
12
|
+
text-decoration: underline
|
13
|
+
|
14
|
+
a[href]:after
|
15
|
+
content: " (" attr(href) ")"
|
16
|
+
|
17
|
+
abbr[title]:after
|
18
|
+
content: " (" attr(title) ")"
|
19
|
+
|
20
|
+
/* Don't show links for images, or javascript/internal links */
|
21
|
+
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after
|
22
|
+
content: ""
|
23
|
+
|
24
|
+
pre, blockquote
|
25
|
+
border: 1px solid #999
|
26
|
+
page-break-inside: avoid
|
27
|
+
|
28
|
+
thead
|
29
|
+
/* h5bp.com/t */
|
30
|
+
display: table-header-group
|
31
|
+
|
32
|
+
tr, img
|
33
|
+
page-break-inside: avoid
|
34
|
+
|
35
|
+
img
|
36
|
+
max-width: 100% !important
|
37
|
+
|
38
|
+
@page
|
39
|
+
margin: 0.5cm
|
40
|
+
|
41
|
+
p, h2, h3
|
42
|
+
orphans: 3
|
43
|
+
widows: 3
|
44
|
+
|
45
|
+
h2, h3
|
46
|
+
page-break-after: avoid
|
@@ -0,0 +1,125 @@
|
|
1
|
+
// CSS Reset
|
2
|
+
// A more conservative reset; more of a 'restart'
|
3
|
+
// csswizardry.com/2011/10/reset-restarted
|
4
|
+
//
|
5
|
+
// =============================================================================
|
6
|
+
// Table of Contents
|
7
|
+
// =============================================================================
|
8
|
+
//
|
9
|
+
// IMPORTS.....................Import Sass Settings and Functions
|
10
|
+
// VIEWPORT RESIZING...........Resize Viewport by browser
|
11
|
+
// BOX MODEL...................Make the box model nice
|
12
|
+
// STYLE RESETS................Reset Styles
|
13
|
+
//
|
14
|
+
|
15
|
+
|
16
|
+
// -----------------------------------------------------------------------------
|
17
|
+
// :: IMPORTS
|
18
|
+
// -----------------------------------------------------------------------------
|
19
|
+
@import "skeletor/globals/css3/prefixer"
|
20
|
+
@import "skeletor/globals/css3/box_sizing"
|
21
|
+
@import "skeletor/globals/css3/hyphens"
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
// -----------------------------------------------------------------------------
|
27
|
+
// :: VIEWPORT RESIZING
|
28
|
+
// -----------------------------------------------------------------------------
|
29
|
+
@-webkit-viewport
|
30
|
+
width: device-width
|
31
|
+
zoom: 1.0
|
32
|
+
|
33
|
+
@-moz-viewport
|
34
|
+
width: device-width
|
35
|
+
zoom: 1.0
|
36
|
+
|
37
|
+
@-ms-viewport
|
38
|
+
width: device-width
|
39
|
+
zoom: 1.0
|
40
|
+
|
41
|
+
@-o-viewport
|
42
|
+
width: device-width
|
43
|
+
zoom: 1.0
|
44
|
+
|
45
|
+
@viewport
|
46
|
+
width: device-width
|
47
|
+
zoom: 1.0
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
// -----------------------------------------------------------------------------
|
54
|
+
// :: BOX MODEL
|
55
|
+
// -----------------------------------------------------------------------------
|
56
|
+
@if $global-border-box
|
57
|
+
*, *:before, *:after
|
58
|
+
+skeletor-box-sizing(border-box)
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
// -----------------------------------------------------------------------------
|
65
|
+
// :: Style Resets
|
66
|
+
// -----------------------------------------------------------------------------
|
67
|
+
// Reset some margin and padding
|
68
|
+
h1,h2,h3,h4,h5,h6,
|
69
|
+
p,blockquote,pre,
|
70
|
+
dl,dd,ol,ul,
|
71
|
+
form,fieldset,legend,
|
72
|
+
table,th,td,caption,hr
|
73
|
+
margin: 0
|
74
|
+
padding: 0
|
75
|
+
|
76
|
+
// Help cursor to abbr & dfn
|
77
|
+
abbr[title], dfn[title], acronym
|
78
|
+
cursor: help
|
79
|
+
|
80
|
+
abbr a
|
81
|
+
text-decoration: none
|
82
|
+
|
83
|
+
acronym
|
84
|
+
text-transform: uppercase
|
85
|
+
|
86
|
+
// Remove underlines from some troublesome elements.
|
87
|
+
u, ins
|
88
|
+
text-decoration: none
|
89
|
+
|
90
|
+
em, i, cite
|
91
|
+
font-style: italic
|
92
|
+
|
93
|
+
// Apply faux underline
|
94
|
+
ins
|
95
|
+
border-bottom: 1px solid
|
96
|
+
|
97
|
+
details
|
98
|
+
cursor: pointer
|
99
|
+
|
100
|
+
del
|
101
|
+
color: $darker-gray
|
102
|
+
text-decoration: line-through
|
103
|
+
|
104
|
+
// So that `alt` text is visually offset if images don't load.
|
105
|
+
img
|
106
|
+
font-style: italic
|
107
|
+
|
108
|
+
// Give form elements some cursor interactions
|
109
|
+
label, input, textarea,
|
110
|
+
button, select, option
|
111
|
+
cursor: pointer
|
112
|
+
|
113
|
+
input:active,
|
114
|
+
input:focus,
|
115
|
+
textarea:active,
|
116
|
+
textarea:focus
|
117
|
+
cursor: text
|
118
|
+
outline: none
|
119
|
+
|
120
|
+
// typography word break points
|
121
|
+
caption, p, table, textarea, td, th
|
122
|
+
+skeletor-hyphens(auto)
|
123
|
+
-ms-word-break: break-all
|
124
|
+
word-break: break-all
|
125
|
+
word-break: break-word
|
@@ -0,0 +1,34 @@
|
|
1
|
+
// =============================================================================
|
2
|
+
// Animation
|
3
|
+
//
|
4
|
+
// The animation property is used to call and control an '@keyframe' animation.
|
5
|
+
//
|
6
|
+
// http://www.w3.org/TR/css3-animations/
|
7
|
+
// http://css-tricks.com/almanac/properties/a/animation/
|
8
|
+
//
|
9
|
+
// =============================================================================
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
// -----------------------------------------------------------------------------
|
14
|
+
// Animation
|
15
|
+
// -----------------------------------------------------------------------------
|
16
|
+
=skeletor-animation($args)
|
17
|
+
+skeletor-prefixer(animation, unquote($args))
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
// -----------------------------------------------------------------------------
|
22
|
+
// Alias for animation classes
|
23
|
+
// -----------------------------------------------------------------------------
|
24
|
+
=s-animation($args)
|
25
|
+
+skeletor-animation($args)
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
// -----------------------------------------------------------------------------
|
30
|
+
// If no-conflict set to allow shorter mixin names
|
31
|
+
// -----------------------------------------------------------------------------
|
32
|
+
// @if $no-conflict
|
33
|
+
// =animation($args)
|
34
|
+
// +skeletor-animation($args)
|
@@ -0,0 +1,39 @@
|
|
1
|
+
// =============================================================================
|
2
|
+
// Appearance
|
3
|
+
//
|
4
|
+
// The appearance property is used to display an element using a platform-native
|
5
|
+
// styling based on the users operating systems theme.
|
6
|
+
//
|
7
|
+
// Available As:
|
8
|
+
// +skeletor-appearance()
|
9
|
+
// +s-appearance()
|
10
|
+
//
|
11
|
+
// http://www.w3.org/TR/css3-ui/#appearance
|
12
|
+
// http://css-tricks.com/almanac/properties/a/appearance/
|
13
|
+
//
|
14
|
+
// =============================================================================
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
// -----------------------------------------------------------------------------
|
19
|
+
// Appearance
|
20
|
+
// -----------------------------------------------------------------------------
|
21
|
+
=skeletor-appearance($args)
|
22
|
+
+skeletor-prefixer(appearance, unquote($args))
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
// -----------------------------------------------------------------------------
|
27
|
+
// Alias for appearance classes
|
28
|
+
// -----------------------------------------------------------------------------
|
29
|
+
=s-appearance($args)
|
30
|
+
+skeletor-appearance($args)
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
// -----------------------------------------------------------------------------
|
35
|
+
// If no-conflict set to allow shorter mixin names
|
36
|
+
// -----------------------------------------------------------------------------
|
37
|
+
// @if $no-conflict
|
38
|
+
// =appearance($args)
|
39
|
+
// +skeletor-appearance($args)
|