toronto 0.0.1
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 +21 -0
- data/.travis.yml +8 -0
- data/Gemfile +28 -0
- data/MIT-LICENSE +20 -0
- data/README.md +179 -0
- data/Rakefile +147 -0
- data/lib/generators/toronto/install/install_generator.rb +68 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/bootstrap-variables.less +861 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/bootstrap-variables.scss +866 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/starter.css +22 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/starter.less +23 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/starter.scss +23 -0
- data/lib/generators/toronto/install/templates/config/initializers/locales.rb +4 -0
- data/lib/generators/toronto/install/templates/form_builders/form_builder/_form.html.erb +39 -0
- data/lib/generators/toronto/install/templates/form_builders/form_builder/_form.html.haml +26 -0
- data/lib/generators/toronto/install/templates/form_builders/form_builder/_form.html.slim +21 -0
- data/lib/generators/toronto/install/templates/helpers/menu_helper.rb +7 -0
- data/lib/generators/toronto/install/templates/layouts/starter.html.erb +57 -0
- data/lib/generators/toronto/install/templates/layouts/starter.html.haml +48 -0
- data/lib/generators/toronto/install/templates/layouts/starter.html.slim +53 -0
- data/lib/generators/toronto/install/templates/lib/rails/generators/haml/scaffold/scaffold_generator.rb +51 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/controller/view.html.erb +4 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/scaffold/edit.html.erb +13 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/scaffold/index.html.erb +33 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/scaffold/new.html.erb +9 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/scaffold/show.html.erb +19 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/controller/view.html.haml +3 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/edit.html.haml +10 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/en.yml +23 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/fr.yml +23 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/index.html.haml +30 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/new.html.haml +7 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/show.html.haml +18 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/controller/view.html.slim +5 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/scaffold/edit.html.slim +12 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/scaffold/index.html.slim +31 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/scaffold/new.html.slim +9 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/scaffold/show.html.slim +16 -0
- data/lib/toronto/version.rb +3 -0
- data/lib/toronto.rb +22 -0
- data/readme-template.md.erb +163 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/config/application.rb +68 -0
- data/test/dummy/config/boot.rb +6 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config.ru +4 -0
- data/test/generators/bootstrap/install_generator_test.rb +104 -0
- data/test/test_helper.rb +7 -0
- data/toronto.gemspec +30 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/vendor/assets/javascripts/bootstrap/affix.js +162 -0
- data/vendor/assets/javascripts/bootstrap/alert.js +94 -0
- data/vendor/assets/javascripts/bootstrap/button.js +116 -0
- data/vendor/assets/javascripts/bootstrap/carousel.js +237 -0
- data/vendor/assets/javascripts/bootstrap/collapse.js +211 -0
- data/vendor/assets/javascripts/bootstrap/dropdown.js +161 -0
- data/vendor/assets/javascripts/bootstrap/modal.js +339 -0
- data/vendor/assets/javascripts/bootstrap/popover.js +108 -0
- data/vendor/assets/javascripts/bootstrap/scrollspy.js +172 -0
- data/vendor/assets/javascripts/bootstrap/tab.js +153 -0
- data/vendor/assets/javascripts/bootstrap/tooltip.js +476 -0
- data/vendor/assets/javascripts/bootstrap/transition.js +59 -0
- data/vendor/assets/javascripts/bootstrap.js +12 -0
- data/vendor/assets/stylesheets/bootstrap.css.erb +6584 -0
- data/vendor/assets/stylesheets/bootstrap.css.map +1 -0
- data/vendor/twitter/bootstrap/less/alerts.less +73 -0
- data/vendor/twitter/bootstrap/less/badges.less +66 -0
- data/vendor/twitter/bootstrap/less/bootstrap.less +50 -0
- data/vendor/twitter/bootstrap/less/breadcrumbs.less +26 -0
- data/vendor/twitter/bootstrap/less/button-groups.less +243 -0
- data/vendor/twitter/bootstrap/less/buttons.less +160 -0
- data/vendor/twitter/bootstrap/less/carousel.less +269 -0
- data/vendor/twitter/bootstrap/less/close.less +34 -0
- data/vendor/twitter/bootstrap/less/code.less +69 -0
- data/vendor/twitter/bootstrap/less/component-animations.less +33 -0
- data/vendor/twitter/bootstrap/less/dropdowns.less +214 -0
- data/vendor/twitter/bootstrap/less/forms.less +574 -0
- data/vendor/twitter/bootstrap/less/glyphicons.less +305 -0
- data/vendor/twitter/bootstrap/less/grid.less +84 -0
- data/vendor/twitter/bootstrap/less/input-groups.less +166 -0
- data/vendor/twitter/bootstrap/less/jumbotron.less +50 -0
- data/vendor/twitter/bootstrap/less/labels.less +64 -0
- data/vendor/twitter/bootstrap/less/list-group.less +124 -0
- data/vendor/twitter/bootstrap/less/media.less +61 -0
- data/vendor/twitter/bootstrap/less/mixins/alerts.less +14 -0
- data/vendor/twitter/bootstrap/less/mixins/background-variant.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/border-radius.less +18 -0
- data/vendor/twitter/bootstrap/less/mixins/buttons.less +52 -0
- data/vendor/twitter/bootstrap/less/mixins/center-block.less +7 -0
- data/vendor/twitter/bootstrap/less/mixins/clearfix.less +22 -0
- data/vendor/twitter/bootstrap/less/mixins/forms.less +85 -0
- data/vendor/twitter/bootstrap/less/mixins/gradients.less +59 -0
- data/vendor/twitter/bootstrap/less/mixins/grid-framework.less +91 -0
- data/vendor/twitter/bootstrap/less/mixins/grid.less +122 -0
- data/vendor/twitter/bootstrap/less/mixins/hide-text.less +21 -0
- data/vendor/twitter/bootstrap/less/mixins/image.less +33 -0
- data/vendor/twitter/bootstrap/less/mixins/labels.less +12 -0
- data/vendor/twitter/bootstrap/less/mixins/list-group.less +29 -0
- data/vendor/twitter/bootstrap/less/mixins/nav-divider.less +10 -0
- data/vendor/twitter/bootstrap/less/mixins/nav-vertical-align.less +9 -0
- data/vendor/twitter/bootstrap/less/mixins/opacity.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/pagination.less +23 -0
- data/vendor/twitter/bootstrap/less/mixins/panels.less +24 -0
- data/vendor/twitter/bootstrap/less/mixins/progress-bar.less +10 -0
- data/vendor/twitter/bootstrap/less/mixins/reset-filter.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/resize.less +6 -0
- data/vendor/twitter/bootstrap/less/mixins/responsive-visibility.less +15 -0
- data/vendor/twitter/bootstrap/less/mixins/size.less +10 -0
- data/vendor/twitter/bootstrap/less/mixins/tab-focus.less +9 -0
- data/vendor/twitter/bootstrap/less/mixins/table-row.less +28 -0
- data/vendor/twitter/bootstrap/less/mixins/text-emphasis.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/text-overflow.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/vendor-prefixes.less +227 -0
- data/vendor/twitter/bootstrap/less/mixins.less +39 -0
- data/vendor/twitter/bootstrap/less/modals.less +150 -0
- data/vendor/twitter/bootstrap/less/navbar.less +660 -0
- data/vendor/twitter/bootstrap/less/navs.less +242 -0
- data/vendor/twitter/bootstrap/less/normalize.less +427 -0
- data/vendor/twitter/bootstrap/less/pager.less +54 -0
- data/vendor/twitter/bootstrap/less/pagination.less +88 -0
- data/vendor/twitter/bootstrap/less/panels.less +265 -0
- data/vendor/twitter/bootstrap/less/popovers.less +135 -0
- data/vendor/twitter/bootstrap/less/print.less +107 -0
- data/vendor/twitter/bootstrap/less/progress-bars.less +87 -0
- data/vendor/twitter/bootstrap/less/responsive-embed.less +35 -0
- data/vendor/twitter/bootstrap/less/responsive-utilities.less +194 -0
- data/vendor/twitter/bootstrap/less/scaffolding.less +162 -0
- data/vendor/twitter/bootstrap/less/tables.less +234 -0
- data/vendor/twitter/bootstrap/less/theme.less +273 -0
- data/vendor/twitter/bootstrap/less/thumbnails.less +36 -0
- data/vendor/twitter/bootstrap/less/tooltip.less +102 -0
- data/vendor/twitter/bootstrap/less/type.less +302 -0
- data/vendor/twitter/bootstrap/less/utilities.less +55 -0
- data/vendor/twitter/bootstrap/less/variables.less +861 -0
- data/vendor/twitter/bootstrap/less/wells.less +29 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap-compass.scss +9 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap-mincer.scss +19 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap-sprockets.scss +9 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap.scss +50 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_alerts.scss +73 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_badges.scss +68 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_breadcrumbs.scss +26 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_button-groups.scss +243 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_buttons.scss +160 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_carousel.scss +269 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_close.scss +36 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_code.scss +69 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_component-animations.scss +37 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_dropdowns.scss +214 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_forms.scss +578 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_glyphicons.scss +305 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_grid.scss +84 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_input-groups.scss +166 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_jumbotron.scss +50 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_labels.scss +66 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_list-group.scss +124 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_media.scss +61 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_mixins.scss +39 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_modals.scss +150 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_navbar.scss +662 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_navs.scss +242 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_normalize.scss +427 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_pager.scss +54 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_pagination.scss +88 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_panels.scss +265 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_popovers.scss +135 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_print.scss +107 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_progress-bars.scss +87 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_responsive-embed.scss +35 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_responsive-utilities.scss +177 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_scaffolding.scss +162 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_tables.scss +234 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_theme.scss +273 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_thumbnails.scss +38 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_tooltip.scss +102 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_type.scss +298 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_utilities.scss +55 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_variables.scss +866 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_wells.scss +29 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_alerts.scss +14 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_background-variant.scss +11 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_border-radius.scss +18 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_buttons.scss +52 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_center-block.scss +7 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_clearfix.scss +22 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_forms.scss +88 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_gradients.scss +58 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_grid-framework.scss +81 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_grid.scss +122 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_hide-text.scss +21 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_image.scss +33 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_labels.scss +12 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_list-group.scss +31 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_nav-divider.scss +10 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_opacity.scss +8 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_pagination.scss +23 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_panels.scss +24 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_progress-bar.scss +10 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_reset-filter.scss +8 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_resize.scss +6 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_size.scss +10 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_tab-focus.scss +9 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_table-row.scss +28 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_text-overflow.scss +8 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- metadata +312 -0
@@ -0,0 +1,124 @@
|
|
1
|
+
//
|
2
|
+
// List groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
//
|
8
|
+
// Easily usable on <ul>, <ol>, or <div>.
|
9
|
+
|
10
|
+
.list-group {
|
11
|
+
// No need to set list-style: none; since .list-group-item is block level
|
12
|
+
margin-bottom: 20px;
|
13
|
+
padding-left: 0; // reset padding because ul and ol
|
14
|
+
}
|
15
|
+
|
16
|
+
|
17
|
+
// Individual list items
|
18
|
+
//
|
19
|
+
// Use on `li`s or `div`s within the `.list-group` parent.
|
20
|
+
|
21
|
+
.list-group-item {
|
22
|
+
position: relative;
|
23
|
+
display: block;
|
24
|
+
padding: 10px 15px;
|
25
|
+
// Place the border on the list items and negative margin up for better styling
|
26
|
+
margin-bottom: -1px;
|
27
|
+
background-color: @list-group-bg;
|
28
|
+
border: 1px solid @list-group-border;
|
29
|
+
|
30
|
+
// Round the first and last items
|
31
|
+
&:first-child {
|
32
|
+
.border-top-radius(@list-group-border-radius);
|
33
|
+
}
|
34
|
+
&:last-child {
|
35
|
+
margin-bottom: 0;
|
36
|
+
.border-bottom-radius(@list-group-border-radius);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// Linked list items
|
42
|
+
//
|
43
|
+
// Use anchor elements instead of `li`s or `div`s to create linked list items.
|
44
|
+
// Includes an extra `.active` modifier class for showing selected items.
|
45
|
+
|
46
|
+
a.list-group-item {
|
47
|
+
color: @list-group-link-color;
|
48
|
+
|
49
|
+
.list-group-item-heading {
|
50
|
+
color: @list-group-link-heading-color;
|
51
|
+
}
|
52
|
+
|
53
|
+
// Hover state
|
54
|
+
&:hover,
|
55
|
+
&:focus {
|
56
|
+
text-decoration: none;
|
57
|
+
color: @list-group-link-hover-color;
|
58
|
+
background-color: @list-group-hover-bg;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.list-group-item {
|
63
|
+
// Disabled state
|
64
|
+
&.disabled,
|
65
|
+
&.disabled:hover,
|
66
|
+
&.disabled:focus {
|
67
|
+
background-color: @list-group-disabled-bg;
|
68
|
+
color: @list-group-disabled-color;
|
69
|
+
cursor: @cursor-disabled;
|
70
|
+
|
71
|
+
// Force color to inherit for custom content
|
72
|
+
.list-group-item-heading {
|
73
|
+
color: inherit;
|
74
|
+
}
|
75
|
+
.list-group-item-text {
|
76
|
+
color: @list-group-disabled-text-color;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
// Active class on item itself, not parent
|
81
|
+
&.active,
|
82
|
+
&.active:hover,
|
83
|
+
&.active:focus {
|
84
|
+
z-index: 2; // Place active items above their siblings for proper border styling
|
85
|
+
color: @list-group-active-color;
|
86
|
+
background-color: @list-group-active-bg;
|
87
|
+
border-color: @list-group-active-border;
|
88
|
+
|
89
|
+
// Force color to inherit for custom content
|
90
|
+
.list-group-item-heading,
|
91
|
+
.list-group-item-heading > small,
|
92
|
+
.list-group-item-heading > .small {
|
93
|
+
color: inherit;
|
94
|
+
}
|
95
|
+
.list-group-item-text {
|
96
|
+
color: @list-group-active-text-color;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
|
102
|
+
// Contextual variants
|
103
|
+
//
|
104
|
+
// Add modifier classes to change text and background color on individual items.
|
105
|
+
// Organizationally, this must come after the `:hover` states.
|
106
|
+
|
107
|
+
.list-group-item-variant(success; @state-success-bg; @state-success-text);
|
108
|
+
.list-group-item-variant(info; @state-info-bg; @state-info-text);
|
109
|
+
.list-group-item-variant(warning; @state-warning-bg; @state-warning-text);
|
110
|
+
.list-group-item-variant(danger; @state-danger-bg; @state-danger-text);
|
111
|
+
|
112
|
+
|
113
|
+
// Custom content options
|
114
|
+
//
|
115
|
+
// Extra classes for creating well-formatted content within `.list-group-item`s.
|
116
|
+
|
117
|
+
.list-group-item-heading {
|
118
|
+
margin-top: 0;
|
119
|
+
margin-bottom: 5px;
|
120
|
+
}
|
121
|
+
.list-group-item-text {
|
122
|
+
margin-bottom: 0;
|
123
|
+
line-height: 1.3;
|
124
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
.media {
|
2
|
+
// Proper spacing between instances of .media
|
3
|
+
margin-top: 15px;
|
4
|
+
|
5
|
+
&:first-child {
|
6
|
+
margin-top: 0;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
|
10
|
+
.media,
|
11
|
+
.media-body {
|
12
|
+
zoom: 1;
|
13
|
+
overflow: hidden;
|
14
|
+
}
|
15
|
+
|
16
|
+
.media-body {
|
17
|
+
width: 10000px;
|
18
|
+
}
|
19
|
+
|
20
|
+
.media-object {
|
21
|
+
display: block;
|
22
|
+
}
|
23
|
+
|
24
|
+
.media-right,
|
25
|
+
.media > .pull-right {
|
26
|
+
padding-left: 10px;
|
27
|
+
}
|
28
|
+
|
29
|
+
.media-left,
|
30
|
+
.media > .pull-left {
|
31
|
+
padding-right: 10px;
|
32
|
+
}
|
33
|
+
|
34
|
+
.media-left,
|
35
|
+
.media-right,
|
36
|
+
.media-body {
|
37
|
+
display: table-cell;
|
38
|
+
vertical-align: top;
|
39
|
+
}
|
40
|
+
|
41
|
+
.media-middle {
|
42
|
+
vertical-align: middle;
|
43
|
+
}
|
44
|
+
|
45
|
+
.media-bottom {
|
46
|
+
vertical-align: bottom;
|
47
|
+
}
|
48
|
+
|
49
|
+
// Reset margins on headings for tighter default spacing
|
50
|
+
.media-heading {
|
51
|
+
margin-top: 0;
|
52
|
+
margin-bottom: 5px;
|
53
|
+
}
|
54
|
+
|
55
|
+
// Media list variation
|
56
|
+
//
|
57
|
+
// Undo default ul/ol styles
|
58
|
+
.media-list {
|
59
|
+
padding-left: 0;
|
60
|
+
list-style: none;
|
61
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
// Alerts
|
2
|
+
|
3
|
+
.alert-variant(@background; @border; @text-color) {
|
4
|
+
background-color: @background;
|
5
|
+
border-color: @border;
|
6
|
+
color: @text-color;
|
7
|
+
|
8
|
+
hr {
|
9
|
+
border-top-color: darken(@border, 5%);
|
10
|
+
}
|
11
|
+
.alert-link {
|
12
|
+
color: darken(@text-color, 10%);
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// Single side border-radius
|
2
|
+
|
3
|
+
.border-top-radius(@radius) {
|
4
|
+
border-top-right-radius: @radius;
|
5
|
+
border-top-left-radius: @radius;
|
6
|
+
}
|
7
|
+
.border-right-radius(@radius) {
|
8
|
+
border-bottom-right-radius: @radius;
|
9
|
+
border-top-right-radius: @radius;
|
10
|
+
}
|
11
|
+
.border-bottom-radius(@radius) {
|
12
|
+
border-bottom-right-radius: @radius;
|
13
|
+
border-bottom-left-radius: @radius;
|
14
|
+
}
|
15
|
+
.border-left-radius(@radius) {
|
16
|
+
border-bottom-left-radius: @radius;
|
17
|
+
border-top-left-radius: @radius;
|
18
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
// Button variants
|
2
|
+
//
|
3
|
+
// Easily pump out default styles, as well as :hover, :focus, :active,
|
4
|
+
// and disabled options for all buttons
|
5
|
+
|
6
|
+
.button-variant(@color; @background; @border) {
|
7
|
+
color: @color;
|
8
|
+
background-color: @background;
|
9
|
+
border-color: @border;
|
10
|
+
|
11
|
+
&:hover,
|
12
|
+
&:focus,
|
13
|
+
&.focus,
|
14
|
+
&:active,
|
15
|
+
&.active,
|
16
|
+
.open > .dropdown-toggle& {
|
17
|
+
color: @color;
|
18
|
+
background-color: darken(@background, 10%);
|
19
|
+
border-color: darken(@border, 12%);
|
20
|
+
}
|
21
|
+
&:active,
|
22
|
+
&.active,
|
23
|
+
.open > .dropdown-toggle& {
|
24
|
+
background-image: none;
|
25
|
+
}
|
26
|
+
&.disabled,
|
27
|
+
&[disabled],
|
28
|
+
fieldset[disabled] & {
|
29
|
+
&,
|
30
|
+
&:hover,
|
31
|
+
&:focus,
|
32
|
+
&.focus,
|
33
|
+
&:active,
|
34
|
+
&.active {
|
35
|
+
background-color: @background;
|
36
|
+
border-color: @border;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
.badge {
|
41
|
+
color: @background;
|
42
|
+
background-color: @color;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
// Button sizes
|
47
|
+
.button-size(@padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
48
|
+
padding: @padding-vertical @padding-horizontal;
|
49
|
+
font-size: @font-size;
|
50
|
+
line-height: @line-height;
|
51
|
+
border-radius: @border-radius;
|
52
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
// Clearfix
|
2
|
+
//
|
3
|
+
// For modern browsers
|
4
|
+
// 1. The space content is one way to avoid an Opera bug when the
|
5
|
+
// contenteditable attribute is included anywhere else in the document.
|
6
|
+
// Otherwise it causes space to appear at the top and bottom of elements
|
7
|
+
// that are clearfixed.
|
8
|
+
// 2. The use of `table` rather than `block` is only necessary if using
|
9
|
+
// `:before` to contain the top-margins of child elements.
|
10
|
+
//
|
11
|
+
// Source: http://nicolasgallagher.com/micro-clearfix-hack/
|
12
|
+
|
13
|
+
.clearfix() {
|
14
|
+
&:before,
|
15
|
+
&:after {
|
16
|
+
content: " "; // 1
|
17
|
+
display: table; // 2
|
18
|
+
}
|
19
|
+
&:after {
|
20
|
+
clear: both;
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,85 @@
|
|
1
|
+
// Form validation states
|
2
|
+
//
|
3
|
+
// Used in forms.less to generate the form validation CSS for warnings, errors,
|
4
|
+
// and successes.
|
5
|
+
|
6
|
+
.form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
|
7
|
+
// Color the label and help text
|
8
|
+
.help-block,
|
9
|
+
.control-label,
|
10
|
+
.radio,
|
11
|
+
.checkbox,
|
12
|
+
.radio-inline,
|
13
|
+
.checkbox-inline,
|
14
|
+
&.radio label,
|
15
|
+
&.checkbox label,
|
16
|
+
&.radio-inline label,
|
17
|
+
&.checkbox-inline label {
|
18
|
+
color: @text-color;
|
19
|
+
}
|
20
|
+
// Set the border and box shadow on specific inputs to match
|
21
|
+
.form-control {
|
22
|
+
border-color: @border-color;
|
23
|
+
.box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
|
24
|
+
&:focus {
|
25
|
+
border-color: darken(@border-color, 10%);
|
26
|
+
@shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten(@border-color, 20%);
|
27
|
+
.box-shadow(@shadow);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
// Set validation states also for addons
|
31
|
+
.input-group-addon {
|
32
|
+
color: @text-color;
|
33
|
+
border-color: @border-color;
|
34
|
+
background-color: @background-color;
|
35
|
+
}
|
36
|
+
// Optional feedback icon
|
37
|
+
.form-control-feedback {
|
38
|
+
color: @text-color;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
// Form control focus state
|
44
|
+
//
|
45
|
+
// Generate a customized focus state and for any input with the specified color,
|
46
|
+
// which defaults to the `@input-border-focus` variable.
|
47
|
+
//
|
48
|
+
// We highly encourage you to not customize the default value, but instead use
|
49
|
+
// this to tweak colors on an as-needed basis. This aesthetic change is based on
|
50
|
+
// WebKit's default styles, but applicable to a wider range of browsers. Its
|
51
|
+
// usability and accessibility should be taken into account with any change.
|
52
|
+
//
|
53
|
+
// Example usage: change the default blue border and shadow to white for better
|
54
|
+
// contrast against a dark gray background.
|
55
|
+
.form-control-focus(@color: @input-border-focus) {
|
56
|
+
@color-rgba: rgba(red(@color), green(@color), blue(@color), .6);
|
57
|
+
&:focus {
|
58
|
+
border-color: @color;
|
59
|
+
outline: 0;
|
60
|
+
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px @{color-rgba}");
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
// Form control sizing
|
65
|
+
//
|
66
|
+
// Relative text size, padding, and border-radii changes for form controls. For
|
67
|
+
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
68
|
+
// element gets special love because it's special, and that's a fact!
|
69
|
+
.input-size(@input-height; @padding-vertical; @padding-horizontal; @font-size; @line-height; @border-radius) {
|
70
|
+
height: @input-height;
|
71
|
+
padding: @padding-vertical @padding-horizontal;
|
72
|
+
font-size: @font-size;
|
73
|
+
line-height: @line-height;
|
74
|
+
border-radius: @border-radius;
|
75
|
+
|
76
|
+
select& {
|
77
|
+
height: @input-height;
|
78
|
+
line-height: @input-height;
|
79
|
+
}
|
80
|
+
|
81
|
+
textarea&,
|
82
|
+
select[multiple]& {
|
83
|
+
height: auto;
|
84
|
+
}
|
85
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
// Gradients
|
2
|
+
|
3
|
+
#gradient {
|
4
|
+
|
5
|
+
// Horizontal gradient, from left to right
|
6
|
+
//
|
7
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
8
|
+
// Color stops are not available in IE9 and below.
|
9
|
+
.horizontal(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
10
|
+
background-image: -webkit-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
|
11
|
+
background-image: -o-linear-gradient(left, @start-color @start-percent, @end-color @end-percent); // Opera 12
|
12
|
+
background-image: linear-gradient(to right, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
13
|
+
background-repeat: repeat-x;
|
14
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down
|
15
|
+
}
|
16
|
+
|
17
|
+
// Vertical gradient, from top to bottom
|
18
|
+
//
|
19
|
+
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
20
|
+
// Color stops are not available in IE9 and below.
|
21
|
+
.vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
22
|
+
background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1-6, Chrome 10+
|
23
|
+
background-image: -o-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Opera 12
|
24
|
+
background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
25
|
+
background-repeat: repeat-x;
|
26
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down
|
27
|
+
}
|
28
|
+
|
29
|
+
.directional(@start-color: #555; @end-color: #333; @deg: 45deg) {
|
30
|
+
background-repeat: repeat-x;
|
31
|
+
background-image: -webkit-linear-gradient(@deg, @start-color, @end-color); // Safari 5.1-6, Chrome 10+
|
32
|
+
background-image: -o-linear-gradient(@deg, @start-color, @end-color); // Opera 12
|
33
|
+
background-image: linear-gradient(@deg, @start-color, @end-color); // Standard, IE10, Firefox 16+, Opera 12.10+, Safari 7+, Chrome 26+
|
34
|
+
}
|
35
|
+
.horizontal-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
|
36
|
+
background-image: -webkit-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
|
37
|
+
background-image: -o-linear-gradient(left, @start-color, @mid-color @color-stop, @end-color);
|
38
|
+
background-image: linear-gradient(to right, @start-color, @mid-color @color-stop, @end-color);
|
39
|
+
background-repeat: no-repeat;
|
40
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
|
41
|
+
}
|
42
|
+
.vertical-three-colors(@start-color: #00b3ee; @mid-color: #7a43b6; @color-stop: 50%; @end-color: #c3325f) {
|
43
|
+
background-image: -webkit-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
44
|
+
background-image: -o-linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
45
|
+
background-image: linear-gradient(@start-color, @mid-color @color-stop, @end-color);
|
46
|
+
background-repeat: no-repeat;
|
47
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",argb(@start-color),argb(@end-color))); // IE9 and down, gets no color-stop at all for proper fallback
|
48
|
+
}
|
49
|
+
.radial(@inner-color: #555; @outer-color: #333) {
|
50
|
+
background-image: -webkit-radial-gradient(circle, @inner-color, @outer-color);
|
51
|
+
background-image: radial-gradient(circle, @inner-color, @outer-color);
|
52
|
+
background-repeat: no-repeat;
|
53
|
+
}
|
54
|
+
.striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
|
55
|
+
background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
56
|
+
background-image: -o-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
57
|
+
background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
58
|
+
}
|
59
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
// Framework grid generation
|
2
|
+
//
|
3
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
4
|
+
// any value of `@grid-columns`.
|
5
|
+
|
6
|
+
.make-grid-columns() {
|
7
|
+
// Common styles for all sizes of grid columns, widths 1-12
|
8
|
+
.col(@index) { // initial
|
9
|
+
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
10
|
+
.col((@index + 1), @item);
|
11
|
+
}
|
12
|
+
.col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
|
13
|
+
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
14
|
+
.col((@index + 1), ~"@{list}, @{item}");
|
15
|
+
}
|
16
|
+
.col(@index, @list) when (@index > @grid-columns) { // terminal
|
17
|
+
@{list} {
|
18
|
+
position: relative;
|
19
|
+
// Prevent columns from collapsing when empty
|
20
|
+
min-height: 1px;
|
21
|
+
// Inner gutter via padding
|
22
|
+
padding-left: (@grid-gutter-width / 2);
|
23
|
+
padding-right: (@grid-gutter-width / 2);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
.col(1); // kickstart it
|
27
|
+
}
|
28
|
+
|
29
|
+
.float-grid-columns(@class) {
|
30
|
+
.col(@index) { // initial
|
31
|
+
@item: ~".col-@{class}-@{index}";
|
32
|
+
.col((@index + 1), @item);
|
33
|
+
}
|
34
|
+
.col(@index, @list) when (@index =< @grid-columns) { // general
|
35
|
+
@item: ~".col-@{class}-@{index}";
|
36
|
+
.col((@index + 1), ~"@{list}, @{item}");
|
37
|
+
}
|
38
|
+
.col(@index, @list) when (@index > @grid-columns) { // terminal
|
39
|
+
@{list} {
|
40
|
+
float: left;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
.col(1); // kickstart it
|
44
|
+
}
|
45
|
+
|
46
|
+
.calc-grid-column(@index, @class, @type) when (@type = width) and (@index > 0) {
|
47
|
+
.col-@{class}-@{index} {
|
48
|
+
width: percentage((@index / @grid-columns));
|
49
|
+
}
|
50
|
+
}
|
51
|
+
.calc-grid-column(@index, @class, @type) when (@type = push) and (@index > 0) {
|
52
|
+
.col-@{class}-push-@{index} {
|
53
|
+
left: percentage((@index / @grid-columns));
|
54
|
+
}
|
55
|
+
}
|
56
|
+
.calc-grid-column(@index, @class, @type) when (@type = push) and (@index = 0) {
|
57
|
+
.col-@{class}-push-0 {
|
58
|
+
left: auto;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index > 0) {
|
62
|
+
.col-@{class}-pull-@{index} {
|
63
|
+
right: percentage((@index / @grid-columns));
|
64
|
+
}
|
65
|
+
}
|
66
|
+
.calc-grid-column(@index, @class, @type) when (@type = pull) and (@index = 0) {
|
67
|
+
.col-@{class}-pull-0 {
|
68
|
+
right: auto;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
.calc-grid-column(@index, @class, @type) when (@type = offset) {
|
72
|
+
.col-@{class}-offset-@{index} {
|
73
|
+
margin-left: percentage((@index / @grid-columns));
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
// Basic looping in LESS
|
78
|
+
.loop-grid-columns(@index, @class, @type) when (@index >= 0) {
|
79
|
+
.calc-grid-column(@index, @class, @type);
|
80
|
+
// next iteration
|
81
|
+
.loop-grid-columns((@index - 1), @class, @type);
|
82
|
+
}
|
83
|
+
|
84
|
+
// Create grid for specific class
|
85
|
+
.make-grid(@class) {
|
86
|
+
.float-grid-columns(@class);
|
87
|
+
.loop-grid-columns(@grid-columns, @class, width);
|
88
|
+
.loop-grid-columns(@grid-columns, @class, pull);
|
89
|
+
.loop-grid-columns(@grid-columns, @class, push);
|
90
|
+
.loop-grid-columns(@grid-columns, @class, offset);
|
91
|
+
}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
// Grid system
|
2
|
+
//
|
3
|
+
// Generate semantic grid columns with these mixins.
|
4
|
+
|
5
|
+
// Centered container element
|
6
|
+
.container-fixed(@gutter: @grid-gutter-width) {
|
7
|
+
margin-right: auto;
|
8
|
+
margin-left: auto;
|
9
|
+
padding-left: (@gutter / 2);
|
10
|
+
padding-right: (@gutter / 2);
|
11
|
+
&:extend(.clearfix all);
|
12
|
+
}
|
13
|
+
|
14
|
+
// Creates a wrapper for a series of columns
|
15
|
+
.make-row(@gutter: @grid-gutter-width) {
|
16
|
+
margin-left: (@gutter / -2);
|
17
|
+
margin-right: (@gutter / -2);
|
18
|
+
&:extend(.clearfix all);
|
19
|
+
}
|
20
|
+
|
21
|
+
// Generate the extra small columns
|
22
|
+
.make-xs-column(@columns; @gutter: @grid-gutter-width) {
|
23
|
+
position: relative;
|
24
|
+
float: left;
|
25
|
+
width: percentage((@columns / @grid-columns));
|
26
|
+
min-height: 1px;
|
27
|
+
padding-left: (@gutter / 2);
|
28
|
+
padding-right: (@gutter / 2);
|
29
|
+
}
|
30
|
+
.make-xs-column-offset(@columns) {
|
31
|
+
margin-left: percentage((@columns / @grid-columns));
|
32
|
+
}
|
33
|
+
.make-xs-column-push(@columns) {
|
34
|
+
left: percentage((@columns / @grid-columns));
|
35
|
+
}
|
36
|
+
.make-xs-column-pull(@columns) {
|
37
|
+
right: percentage((@columns / @grid-columns));
|
38
|
+
}
|
39
|
+
|
40
|
+
// Generate the small columns
|
41
|
+
.make-sm-column(@columns; @gutter: @grid-gutter-width) {
|
42
|
+
position: relative;
|
43
|
+
min-height: 1px;
|
44
|
+
padding-left: (@gutter / 2);
|
45
|
+
padding-right: (@gutter / 2);
|
46
|
+
|
47
|
+
@media (min-width: @screen-sm-min) {
|
48
|
+
float: left;
|
49
|
+
width: percentage((@columns / @grid-columns));
|
50
|
+
}
|
51
|
+
}
|
52
|
+
.make-sm-column-offset(@columns) {
|
53
|
+
@media (min-width: @screen-sm-min) {
|
54
|
+
margin-left: percentage((@columns / @grid-columns));
|
55
|
+
}
|
56
|
+
}
|
57
|
+
.make-sm-column-push(@columns) {
|
58
|
+
@media (min-width: @screen-sm-min) {
|
59
|
+
left: percentage((@columns / @grid-columns));
|
60
|
+
}
|
61
|
+
}
|
62
|
+
.make-sm-column-pull(@columns) {
|
63
|
+
@media (min-width: @screen-sm-min) {
|
64
|
+
right: percentage((@columns / @grid-columns));
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// Generate the medium columns
|
69
|
+
.make-md-column(@columns; @gutter: @grid-gutter-width) {
|
70
|
+
position: relative;
|
71
|
+
min-height: 1px;
|
72
|
+
padding-left: (@gutter / 2);
|
73
|
+
padding-right: (@gutter / 2);
|
74
|
+
|
75
|
+
@media (min-width: @screen-md-min) {
|
76
|
+
float: left;
|
77
|
+
width: percentage((@columns / @grid-columns));
|
78
|
+
}
|
79
|
+
}
|
80
|
+
.make-md-column-offset(@columns) {
|
81
|
+
@media (min-width: @screen-md-min) {
|
82
|
+
margin-left: percentage((@columns / @grid-columns));
|
83
|
+
}
|
84
|
+
}
|
85
|
+
.make-md-column-push(@columns) {
|
86
|
+
@media (min-width: @screen-md-min) {
|
87
|
+
left: percentage((@columns / @grid-columns));
|
88
|
+
}
|
89
|
+
}
|
90
|
+
.make-md-column-pull(@columns) {
|
91
|
+
@media (min-width: @screen-md-min) {
|
92
|
+
right: percentage((@columns / @grid-columns));
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
// Generate the large columns
|
97
|
+
.make-lg-column(@columns; @gutter: @grid-gutter-width) {
|
98
|
+
position: relative;
|
99
|
+
min-height: 1px;
|
100
|
+
padding-left: (@gutter / 2);
|
101
|
+
padding-right: (@gutter / 2);
|
102
|
+
|
103
|
+
@media (min-width: @screen-lg-min) {
|
104
|
+
float: left;
|
105
|
+
width: percentage((@columns / @grid-columns));
|
106
|
+
}
|
107
|
+
}
|
108
|
+
.make-lg-column-offset(@columns) {
|
109
|
+
@media (min-width: @screen-lg-min) {
|
110
|
+
margin-left: percentage((@columns / @grid-columns));
|
111
|
+
}
|
112
|
+
}
|
113
|
+
.make-lg-column-push(@columns) {
|
114
|
+
@media (min-width: @screen-lg-min) {
|
115
|
+
left: percentage((@columns / @grid-columns));
|
116
|
+
}
|
117
|
+
}
|
118
|
+
.make-lg-column-pull(@columns) {
|
119
|
+
@media (min-width: @screen-lg-min) {
|
120
|
+
right: percentage((@columns / @grid-columns));
|
121
|
+
}
|
122
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
// CSS image replacement
|
2
|
+
//
|
3
|
+
// Heads up! v3 launched with with only `.hide-text()`, but per our pattern for
|
4
|
+
// mixins being reused as classes with the same name, this doesn't hold up. As
|
5
|
+
// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`.
|
6
|
+
//
|
7
|
+
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
8
|
+
|
9
|
+
// Deprecated as of v3.0.1 (will be removed in v4)
|
10
|
+
.hide-text() {
|
11
|
+
font: ~"0/0" a;
|
12
|
+
color: transparent;
|
13
|
+
text-shadow: none;
|
14
|
+
background-color: transparent;
|
15
|
+
border: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
// New mixin to use as of v3.0.1
|
19
|
+
.text-hide() {
|
20
|
+
.hide-text();
|
21
|
+
}
|