twbs_less_rails 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +12 -0
- data/CONTRIBUTING.md +45 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +144 -0
- data/LICENSE +30 -0
- data/README.md +147 -0
- data/Rakefile +113 -0
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +399 -0
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/gemfiles/Gemfile.rails-3.2.x +9 -0
- data/gemfiles/Gemfile.rails-4.0.x +9 -0
- data/lib/generators/twbs_less_rails/install/install_generator.rb +31 -0
- data/lib/generators/twbs_less_rails/install/templates/application.css +15 -0
- data/lib/generators/twbs_less_rails/install/templates/application.js +17 -0
- data/lib/generators/twbs_less_rails/install/templates/twbs-variables.css.less +5 -0
- data/lib/generators/twbs_less_rails/install/templates/twbs.css.less +14 -0
- data/lib/generators/twbs_less_rails/install/templates/twbs.js.coffee +7 -0
- data/lib/tasks/twbs_less_rails_tasks.rake +4 -0
- data/lib/twbs_less_rails/engine.rb +7 -0
- data/lib/twbs_less_rails/version.rb +3 -0
- data/lib/twbs_less_rails.rb +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/images/.keep +0 -0
- data/test/dummy/app/assets/javascripts/application.js +14 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/assets/stylesheets/default-twbs.css.less +1 -0
- data/test/dummy/app/assets/stylesheets/test.css.less +5 -0
- data/test/dummy/app/assets/stylesheets/twbs-variables.css.less +6 -0
- data/test/dummy/app/assets/stylesheets/twbs.css.less +14 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/controllers/concerns/.keep +0 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/mailers/.keep +0 -0
- data/test/dummy/app/models/.keep +0 -0
- data/test/dummy/app/models/concerns/.keep +0 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/config/application.rb +27 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +29 -0
- data/test/dummy/config/environments/production.rb +80 -0
- data/test/dummy/config/environments/test.rb +36 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +18 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +56 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/.keep +0 -0
- data/test/dummy/lib/assets/.keep +0 -0
- data/test/dummy/log/.keep +0 -0
- data/test/dummy/public/404.html +58 -0
- data/test/dummy/public/422.html +58 -0
- data/test/dummy/public/500.html +57 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/generators/default_rails_assets/application.css +13 -0
- data/test/generators/default_rails_assets/application.js +16 -0
- data/test/generators/install_generator_test.rb +47 -0
- data/test/integration/assets_precompile_integration_test.rb +49 -0
- data/test/integration/twbs_less_rails_integration_test.rb +38 -0
- data/test/test_helper.rb +38 -0
- data/twbs_less_rails.gemspec +34 -0
- data/vendor/assets/javascripts/respond.js +342 -0
- data/vendor/assets/javascripts/twbs/bootstrap/affix.js +126 -0
- data/vendor/assets/javascripts/twbs/bootstrap/alert.js +98 -0
- data/vendor/assets/javascripts/twbs/bootstrap/button.js +109 -0
- data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +217 -0
- data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +179 -0
- data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +154 -0
- data/vendor/assets/javascripts/twbs/bootstrap/modal.js +246 -0
- data/vendor/assets/javascripts/twbs/bootstrap/popover.js +117 -0
- data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +158 -0
- data/vendor/assets/javascripts/twbs/bootstrap/tab.js +135 -0
- data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +386 -0
- data/vendor/assets/javascripts/twbs/bootstrap/transition.js +56 -0
- data/vendor/assets/javascripts/twbs/bootstrap.js +12 -0
- data/vendor/assets/stylesheets/fontawesome/bootstrap.less +84 -0
- data/vendor/assets/stylesheets/fontawesome/core.less +129 -0
- data/vendor/assets/stylesheets/fontawesome/extras.less +93 -0
- data/vendor/assets/stylesheets/fontawesome/font-awesome.less +33 -0
- data/vendor/assets/stylesheets/fontawesome/icons.less +381 -0
- data/vendor/assets/stylesheets/fontawesome/mixins.less +48 -0
- data/vendor/assets/stylesheets/fontawesome/path.less +14 -0
- data/vendor/assets/stylesheets/fontawesome/variables.less +735 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/alerts.less +67 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/badges.less +51 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/bootstrap.less +48 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/breadcrumbs.less +23 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/button-groups.less +248 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/buttons.less +158 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/carousel.less +220 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/close.less +33 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/code.less +53 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/component-animations.less +29 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/dropdowns.less +192 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/forms.less +366 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/glyphicons.less +236 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/grid.less +93 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/input-groups.less +136 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/jumbotron.less +40 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/labels.less +58 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/list-group.less +88 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/media.less +56 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins.less +846 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/modals.less +131 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/navbar.less +621 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/navs.less +257 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/normalize.less +406 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/pager.less +55 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/pagination.less +85 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/panels.less +168 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/popovers.less +133 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/print.less +100 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/progress-bars.less +96 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/responsive-utilities.less +209 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/scaffolding.less +119 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/tables.less +236 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/theme.less +246 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/thumbnails.less +33 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/tooltip.less +95 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/type.less +273 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/utilities.less +56 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/variables.less +637 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/wells.less +29 -0
- data/vendor/assets/stylesheets/twbs/bootstrap.less +1 -0
- metadata +387 -0
@@ -0,0 +1,85 @@
|
|
1
|
+
//
|
2
|
+
// Pagination (multiple pages)
|
3
|
+
// --------------------------------------------------
|
4
|
+
.pagination {
|
5
|
+
display: inline-block;
|
6
|
+
padding-left: 0;
|
7
|
+
margin: @line-height-computed 0;
|
8
|
+
border-radius: @border-radius-base;
|
9
|
+
|
10
|
+
> li {
|
11
|
+
display: inline; // Remove list-style and block-level defaults
|
12
|
+
> a,
|
13
|
+
> span {
|
14
|
+
position: relative;
|
15
|
+
float: left; // Collapse white-space
|
16
|
+
padding: @padding-base-vertical @padding-base-horizontal;
|
17
|
+
line-height: @line-height-base;
|
18
|
+
text-decoration: none;
|
19
|
+
background-color: @pagination-bg;
|
20
|
+
border: 1px solid @pagination-border;
|
21
|
+
margin-left: -1px;
|
22
|
+
}
|
23
|
+
&:first-child {
|
24
|
+
> a,
|
25
|
+
> span {
|
26
|
+
margin-left: 0;
|
27
|
+
.border-left-radius(@border-radius-base);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
&:last-child {
|
31
|
+
> a,
|
32
|
+
> span {
|
33
|
+
.border-right-radius(@border-radius-base);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
> li > a,
|
39
|
+
> li > span {
|
40
|
+
&:hover,
|
41
|
+
&:focus {
|
42
|
+
background-color: @pagination-hover-bg;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
> .active > a,
|
47
|
+
> .active > span {
|
48
|
+
&,
|
49
|
+
&:hover,
|
50
|
+
&:focus {
|
51
|
+
z-index: 2;
|
52
|
+
color: @pagination-active-color;
|
53
|
+
background-color: @pagination-active-bg;
|
54
|
+
border-color: @pagination-active-bg;
|
55
|
+
cursor: default;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
> .disabled {
|
60
|
+
> span,
|
61
|
+
> span:hover,
|
62
|
+
> span:focus,
|
63
|
+
> a,
|
64
|
+
> a:hover,
|
65
|
+
> a:focus {
|
66
|
+
color: @pagination-disabled-color;
|
67
|
+
background-color: @pagination-bg;
|
68
|
+
border-color: @pagination-border;
|
69
|
+
cursor: not-allowed;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
// Sizing
|
75
|
+
// --------------------------------------------------
|
76
|
+
|
77
|
+
// Large
|
78
|
+
.pagination-lg {
|
79
|
+
.pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
|
80
|
+
}
|
81
|
+
|
82
|
+
// Small
|
83
|
+
.pagination-sm {
|
84
|
+
.pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
|
85
|
+
}
|
@@ -0,0 +1,168 @@
|
|
1
|
+
//
|
2
|
+
// Panels
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.panel {
|
8
|
+
margin-bottom: @line-height-computed;
|
9
|
+
background-color: @panel-bg;
|
10
|
+
border: 1px solid transparent;
|
11
|
+
border-radius: @panel-border-radius;
|
12
|
+
.box-shadow(0 1px 1px rgba(0,0,0,.05));
|
13
|
+
}
|
14
|
+
|
15
|
+
// Panel contents
|
16
|
+
.panel-body {
|
17
|
+
padding: 15px;
|
18
|
+
.clearfix();
|
19
|
+
}
|
20
|
+
|
21
|
+
|
22
|
+
// List groups in panels
|
23
|
+
//
|
24
|
+
// By default, space out list group content from panel headings to account for
|
25
|
+
// any kind of custom content between the two.
|
26
|
+
|
27
|
+
.panel {
|
28
|
+
> .list-group {
|
29
|
+
margin-bottom: 0;
|
30
|
+
|
31
|
+
.list-group-item {
|
32
|
+
border-width: 1px 0;
|
33
|
+
|
34
|
+
// Remove border radius for top one
|
35
|
+
&:first-child {
|
36
|
+
.border-top-radius(0);
|
37
|
+
}
|
38
|
+
// But keep it for the last one
|
39
|
+
&:last-child {
|
40
|
+
border-bottom: 0;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
// Collapse space between when there's no additional content.
|
46
|
+
.panel-heading + .list-group {
|
47
|
+
.list-group-item:first-child {
|
48
|
+
border-top-width: 0;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
// Tables in panels
|
54
|
+
//
|
55
|
+
// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
|
56
|
+
// watch it go full width.
|
57
|
+
|
58
|
+
.panel {
|
59
|
+
> .table,
|
60
|
+
> .table-responsive {
|
61
|
+
margin-bottom: 0;
|
62
|
+
}
|
63
|
+
> .panel-body + .table,
|
64
|
+
> .panel-body + .table-responsive {
|
65
|
+
border-top: 1px solid @table-border-color;
|
66
|
+
}
|
67
|
+
> .table-bordered,
|
68
|
+
> .table-responsive > .table-bordered {
|
69
|
+
border: 0;
|
70
|
+
> thead,
|
71
|
+
> tbody,
|
72
|
+
> tfoot {
|
73
|
+
> tr {
|
74
|
+
> th:first-child,
|
75
|
+
> td:first-child {
|
76
|
+
border-left: 0;
|
77
|
+
}
|
78
|
+
> th:last-child,
|
79
|
+
> td:last-child {
|
80
|
+
border-right: 0;
|
81
|
+
}
|
82
|
+
|
83
|
+
&:last-child > th,
|
84
|
+
&:last-child > td {
|
85
|
+
border-bottom: 0;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
|
93
|
+
// Optional heading
|
94
|
+
.panel-heading {
|
95
|
+
padding: 10px 15px;
|
96
|
+
border-bottom: 1px solid transparent;
|
97
|
+
.border-top-radius(@panel-border-radius - 1);
|
98
|
+
}
|
99
|
+
|
100
|
+
// Within heading, strip any `h*` tag of it's default margins for spacing.
|
101
|
+
.panel-title {
|
102
|
+
margin-top: 0;
|
103
|
+
margin-bottom: 0;
|
104
|
+
font-size: ceil((@font-size-base * 1.125));
|
105
|
+
> a {
|
106
|
+
color: inherit;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
// Optional footer (stays gray in every modifier class)
|
111
|
+
.panel-footer {
|
112
|
+
padding: 10px 15px;
|
113
|
+
background-color: @panel-footer-bg;
|
114
|
+
border-top: 1px solid @panel-inner-border;
|
115
|
+
.border-bottom-radius(@panel-border-radius - 1);
|
116
|
+
}
|
117
|
+
|
118
|
+
|
119
|
+
// Collapsable panels (aka, accordion)
|
120
|
+
//
|
121
|
+
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
122
|
+
// the help of our collapse JavaScript plugin.
|
123
|
+
|
124
|
+
.panel-group {
|
125
|
+
// Tighten up margin so it's only between panels
|
126
|
+
.panel {
|
127
|
+
margin-bottom: 0;
|
128
|
+
border-radius: @panel-border-radius;
|
129
|
+
overflow: hidden; // crop contents when collapsed
|
130
|
+
+ .panel {
|
131
|
+
margin-top: 5px;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
.panel-heading {
|
136
|
+
border-bottom: 0;
|
137
|
+
+ .panel-collapse .panel-body {
|
138
|
+
border-top: 1px solid @panel-inner-border;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
.panel-footer {
|
142
|
+
border-top: 0;
|
143
|
+
+ .panel-collapse .panel-body {
|
144
|
+
border-bottom: 1px solid @panel-inner-border;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
// Contextual variations
|
151
|
+
.panel-default {
|
152
|
+
.panel-variant(@panel-default-border; @panel-default-text; @panel-default-heading-bg; @panel-default-border);
|
153
|
+
}
|
154
|
+
.panel-primary {
|
155
|
+
.panel-variant(@panel-primary-border; @panel-primary-text; @panel-primary-heading-bg; @panel-primary-border);
|
156
|
+
}
|
157
|
+
.panel-success {
|
158
|
+
.panel-variant(@panel-success-border; @panel-success-text; @panel-success-heading-bg; @panel-success-border);
|
159
|
+
}
|
160
|
+
.panel-warning {
|
161
|
+
.panel-variant(@panel-warning-border; @panel-warning-text; @panel-warning-heading-bg; @panel-warning-border);
|
162
|
+
}
|
163
|
+
.panel-danger {
|
164
|
+
.panel-variant(@panel-danger-border; @panel-danger-text; @panel-danger-heading-bg; @panel-danger-border);
|
165
|
+
}
|
166
|
+
.panel-info {
|
167
|
+
.panel-variant(@panel-info-border; @panel-info-text; @panel-info-heading-bg; @panel-info-border);
|
168
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
//
|
2
|
+
// Popovers
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.popover {
|
7
|
+
position: absolute;
|
8
|
+
top: 0;
|
9
|
+
left: 0;
|
10
|
+
z-index: @zindex-popover;
|
11
|
+
display: none;
|
12
|
+
max-width: @popover-max-width;
|
13
|
+
padding: 1px;
|
14
|
+
text-align: left; // Reset given new insertion method
|
15
|
+
background-color: @popover-bg;
|
16
|
+
background-clip: padding-box;
|
17
|
+
border: 1px solid @popover-fallback-border-color;
|
18
|
+
border: 1px solid @popover-border-color;
|
19
|
+
border-radius: @border-radius-large;
|
20
|
+
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
21
|
+
|
22
|
+
// Overrides for proper insertion
|
23
|
+
white-space: normal;
|
24
|
+
|
25
|
+
// Offset the popover to account for the popover arrow
|
26
|
+
&.top { margin-top: -10px; }
|
27
|
+
&.right { margin-left: 10px; }
|
28
|
+
&.bottom { margin-top: 10px; }
|
29
|
+
&.left { margin-left: -10px; }
|
30
|
+
}
|
31
|
+
|
32
|
+
.popover-title {
|
33
|
+
margin: 0; // reset heading margin
|
34
|
+
padding: 8px 14px;
|
35
|
+
font-size: @font-size-base;
|
36
|
+
font-weight: normal;
|
37
|
+
line-height: 18px;
|
38
|
+
background-color: @popover-title-bg;
|
39
|
+
border-bottom: 1px solid darken(@popover-title-bg, 5%);
|
40
|
+
border-radius: 5px 5px 0 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
.popover-content {
|
44
|
+
padding: 9px 14px;
|
45
|
+
}
|
46
|
+
|
47
|
+
// Arrows
|
48
|
+
//
|
49
|
+
// .arrow is outer, .arrow:after is inner
|
50
|
+
|
51
|
+
.popover .arrow {
|
52
|
+
&,
|
53
|
+
&:after {
|
54
|
+
position: absolute;
|
55
|
+
display: block;
|
56
|
+
width: 0;
|
57
|
+
height: 0;
|
58
|
+
border-color: transparent;
|
59
|
+
border-style: solid;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
.popover .arrow {
|
63
|
+
border-width: @popover-arrow-outer-width;
|
64
|
+
}
|
65
|
+
.popover .arrow:after {
|
66
|
+
border-width: @popover-arrow-width;
|
67
|
+
content: "";
|
68
|
+
}
|
69
|
+
|
70
|
+
.popover {
|
71
|
+
&.top .arrow {
|
72
|
+
left: 50%;
|
73
|
+
margin-left: -@popover-arrow-outer-width;
|
74
|
+
border-bottom-width: 0;
|
75
|
+
border-top-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
76
|
+
border-top-color: @popover-arrow-outer-color;
|
77
|
+
bottom: -@popover-arrow-outer-width;
|
78
|
+
&:after {
|
79
|
+
content: " ";
|
80
|
+
bottom: 1px;
|
81
|
+
margin-left: -@popover-arrow-width;
|
82
|
+
border-bottom-width: 0;
|
83
|
+
border-top-color: @popover-arrow-color;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
&.right .arrow {
|
87
|
+
top: 50%;
|
88
|
+
left: -@popover-arrow-outer-width;
|
89
|
+
margin-top: -@popover-arrow-outer-width;
|
90
|
+
border-left-width: 0;
|
91
|
+
border-right-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
92
|
+
border-right-color: @popover-arrow-outer-color;
|
93
|
+
&:after {
|
94
|
+
content: " ";
|
95
|
+
left: 1px;
|
96
|
+
bottom: -@popover-arrow-width;
|
97
|
+
border-left-width: 0;
|
98
|
+
border-right-color: @popover-arrow-color;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
&.bottom .arrow {
|
102
|
+
left: 50%;
|
103
|
+
margin-left: -@popover-arrow-outer-width;
|
104
|
+
border-top-width: 0;
|
105
|
+
border-bottom-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
106
|
+
border-bottom-color: @popover-arrow-outer-color;
|
107
|
+
top: -@popover-arrow-outer-width;
|
108
|
+
&:after {
|
109
|
+
content: " ";
|
110
|
+
top: 1px;
|
111
|
+
margin-left: -@popover-arrow-width;
|
112
|
+
border-top-width: 0;
|
113
|
+
border-bottom-color: @popover-arrow-color;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&.left .arrow {
|
118
|
+
top: 50%;
|
119
|
+
right: -@popover-arrow-outer-width;
|
120
|
+
margin-top: -@popover-arrow-outer-width;
|
121
|
+
border-right-width: 0;
|
122
|
+
border-left-color: @popover-arrow-outer-fallback-color; // IE8 fallback
|
123
|
+
border-left-color: @popover-arrow-outer-color;
|
124
|
+
&:after {
|
125
|
+
content: " ";
|
126
|
+
right: 1px;
|
127
|
+
border-right-width: 0;
|
128
|
+
border-left-color: @popover-arrow-color;
|
129
|
+
bottom: -@popover-arrow-width;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
//
|
2
|
+
// Basic print styles
|
3
|
+
// --------------------------------------------------
|
4
|
+
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
|
5
|
+
|
6
|
+
@media print {
|
7
|
+
|
8
|
+
* {
|
9
|
+
text-shadow: none !important;
|
10
|
+
color: #000 !important; // Black prints faster: h5bp.com/s
|
11
|
+
background: transparent !important;
|
12
|
+
box-shadow: none !important;
|
13
|
+
}
|
14
|
+
|
15
|
+
a,
|
16
|
+
a:visited {
|
17
|
+
text-decoration: underline;
|
18
|
+
}
|
19
|
+
|
20
|
+
a[href]:after {
|
21
|
+
content: " (" attr(href) ")";
|
22
|
+
}
|
23
|
+
|
24
|
+
abbr[title]:after {
|
25
|
+
content: " (" attr(title) ")";
|
26
|
+
}
|
27
|
+
|
28
|
+
// Don't show links for images, or javascript/internal links
|
29
|
+
.ir a:after,
|
30
|
+
a[href^="javascript:"]:after,
|
31
|
+
a[href^="#"]:after {
|
32
|
+
content: "";
|
33
|
+
}
|
34
|
+
|
35
|
+
pre,
|
36
|
+
blockquote {
|
37
|
+
border: 1px solid #999;
|
38
|
+
page-break-inside: avoid;
|
39
|
+
}
|
40
|
+
|
41
|
+
thead {
|
42
|
+
display: table-header-group; // h5bp.com/t
|
43
|
+
}
|
44
|
+
|
45
|
+
tr,
|
46
|
+
img {
|
47
|
+
page-break-inside: avoid;
|
48
|
+
}
|
49
|
+
|
50
|
+
img {
|
51
|
+
max-width: 100% !important;
|
52
|
+
}
|
53
|
+
|
54
|
+
@page {
|
55
|
+
margin: 2cm .5cm;
|
56
|
+
}
|
57
|
+
|
58
|
+
p,
|
59
|
+
h2,
|
60
|
+
h3 {
|
61
|
+
orphans: 3;
|
62
|
+
widows: 3;
|
63
|
+
}
|
64
|
+
|
65
|
+
h2,
|
66
|
+
h3 {
|
67
|
+
page-break-after: avoid;
|
68
|
+
}
|
69
|
+
|
70
|
+
// Bootstrap components
|
71
|
+
.navbar {
|
72
|
+
display: none;
|
73
|
+
}
|
74
|
+
.table {
|
75
|
+
td,
|
76
|
+
th {
|
77
|
+
background-color: #fff !important;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
.btn,
|
81
|
+
.dropup > .btn {
|
82
|
+
> .caret {
|
83
|
+
border-top-color: #000 !important;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
.label {
|
87
|
+
border: 1px solid #000;
|
88
|
+
}
|
89
|
+
|
90
|
+
.table {
|
91
|
+
border-collapse: collapse !important;
|
92
|
+
}
|
93
|
+
.table-bordered {
|
94
|
+
th,
|
95
|
+
td {
|
96
|
+
border: 1px solid #ddd !important;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
}
|
@@ -0,0 +1,96 @@
|
|
1
|
+
//
|
2
|
+
// Progress bars
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Bar animations
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
// Webkit
|
10
|
+
@-webkit-keyframes progress-bar-stripes {
|
11
|
+
from { background-position: 40px 0; }
|
12
|
+
to { background-position: 0 0; }
|
13
|
+
}
|
14
|
+
|
15
|
+
// Firefox
|
16
|
+
@-moz-keyframes progress-bar-stripes {
|
17
|
+
from { background-position: 40px 0; }
|
18
|
+
to { background-position: 0 0; }
|
19
|
+
}
|
20
|
+
|
21
|
+
// Opera
|
22
|
+
@-o-keyframes progress-bar-stripes {
|
23
|
+
from { background-position: 0 0; }
|
24
|
+
to { background-position: 40px 0; }
|
25
|
+
}
|
26
|
+
|
27
|
+
// Spec and IE10+
|
28
|
+
@keyframes progress-bar-stripes {
|
29
|
+
from { background-position: 40px 0; }
|
30
|
+
to { background-position: 0 0; }
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
// Bar itself
|
36
|
+
// -------------------------
|
37
|
+
|
38
|
+
// Outer container
|
39
|
+
.progress {
|
40
|
+
overflow: hidden;
|
41
|
+
height: @line-height-computed;
|
42
|
+
margin-bottom: @line-height-computed;
|
43
|
+
background-color: @progress-bg;
|
44
|
+
border-radius: @border-radius-base;
|
45
|
+
.box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
46
|
+
}
|
47
|
+
|
48
|
+
// Bar of progress
|
49
|
+
.progress-bar {
|
50
|
+
float: left;
|
51
|
+
width: 0%;
|
52
|
+
height: 100%;
|
53
|
+
font-size: @font-size-small;
|
54
|
+
line-height: @line-height-computed;
|
55
|
+
color: @progress-bar-color;
|
56
|
+
text-align: center;
|
57
|
+
background-color: @progress-bar-bg;
|
58
|
+
.box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
59
|
+
.transition(width .6s ease);
|
60
|
+
}
|
61
|
+
|
62
|
+
// Striped bars
|
63
|
+
.progress-striped .progress-bar {
|
64
|
+
#gradient > .striped();
|
65
|
+
background-size: 40px 40px;
|
66
|
+
}
|
67
|
+
|
68
|
+
// Call animation for the active one
|
69
|
+
.progress.active .progress-bar {
|
70
|
+
-webkit-animation: progress-bar-stripes 2s linear infinite;
|
71
|
+
-moz-animation: progress-bar-stripes 2s linear infinite;
|
72
|
+
-ms-animation: progress-bar-stripes 2s linear infinite;
|
73
|
+
-o-animation: progress-bar-stripes 2s linear infinite;
|
74
|
+
animation: progress-bar-stripes 2s linear infinite;
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
// Variations
|
80
|
+
// -------------------------
|
81
|
+
|
82
|
+
.progress-bar-success {
|
83
|
+
.progress-bar-variant(@progress-bar-success-bg);
|
84
|
+
}
|
85
|
+
|
86
|
+
.progress-bar-info {
|
87
|
+
.progress-bar-variant(@progress-bar-info-bg);
|
88
|
+
}
|
89
|
+
|
90
|
+
.progress-bar-warning {
|
91
|
+
.progress-bar-variant(@progress-bar-warning-bg);
|
92
|
+
}
|
93
|
+
|
94
|
+
.progress-bar-danger {
|
95
|
+
.progress-bar-variant(@progress-bar-danger-bg);
|
96
|
+
}
|