spiderfw 0.6.30 → 0.6.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +15 -7
  2. data/CHANGELOG +11 -0
  3. data/VERSION +1 -1
  4. data/apps/app_server/config/options.rb +1 -1
  5. data/apps/core/auth/controllers/login_controller.rb +3 -0
  6. data/apps/core/components/assets.rb +61 -3
  7. data/apps/core/components/public/bootstrap_3/img/glyphicons-halflings-regular.eot +0 -0
  8. data/apps/core/components/public/bootstrap_3/img/glyphicons-halflings-regular.svg +229 -0
  9. data/apps/core/components/public/bootstrap_3/img/glyphicons-halflings-regular.ttf +0 -0
  10. data/apps/core/components/public/bootstrap_3/img/glyphicons-halflings-regular.woff +0 -0
  11. data/apps/core/components/public/bootstrap_3/js/affix.js +140 -0
  12. data/apps/core/components/public/bootstrap_3/js/alert.js +92 -0
  13. data/apps/core/components/public/bootstrap_3/js/button.js +110 -0
  14. data/apps/core/components/public/bootstrap_3/js/carousel.js +210 -0
  15. data/apps/core/components/public/bootstrap_3/js/collapse.js +180 -0
  16. data/apps/core/components/public/bootstrap_3/js/dropdown.js +151 -0
  17. data/apps/core/components/public/bootstrap_3/js/modal.js +277 -0
  18. data/apps/core/components/public/bootstrap_3/js/popover.js +113 -0
  19. data/apps/core/components/public/bootstrap_3/js/scrollspy.js +158 -0
  20. data/apps/core/components/public/bootstrap_3/js/tab.js +128 -0
  21. data/apps/core/components/public/bootstrap_3/js/tooltip.js +456 -0
  22. data/apps/core/components/public/bootstrap_3/js/transition.js +48 -0
  23. data/apps/core/components/public/bootstrap_3/scss/_alerts.scss +67 -0
  24. data/apps/core/components/public/bootstrap_3/scss/_badges.scss +57 -0
  25. data/apps/core/components/public/bootstrap_3/scss/_breadcrumbs.scss +26 -0
  26. data/apps/core/components/public/bootstrap_3/scss/_button-groups.scss +240 -0
  27. data/apps/core/components/public/bootstrap_3/scss/_buttons.scss +159 -0
  28. data/apps/core/components/public/bootstrap_3/scss/_carousel.scss +243 -0
  29. data/apps/core/components/public/bootstrap_3/scss/_close.scss +35 -0
  30. data/apps/core/components/public/bootstrap_3/scss/_code.scss +62 -0
  31. data/apps/core/components/public/bootstrap_3/scss/_component-animations.scss +35 -0
  32. data/apps/core/components/public/bootstrap_3/scss/_dropdowns.scss +214 -0
  33. data/apps/core/components/public/bootstrap_3/scss/_forms.scss +489 -0
  34. data/apps/core/components/public/bootstrap_3/scss/_glyphicons.scss +237 -0
  35. data/apps/core/components/public/bootstrap_3/scss/_grid.scss +84 -0
  36. data/apps/core/components/public/bootstrap_3/scss/_input-groups.scss +166 -0
  37. data/apps/core/components/public/bootstrap_3/scss/_jumbotron.scss +48 -0
  38. data/apps/core/components/public/bootstrap_3/scss/_labels.scss +66 -0
  39. data/apps/core/components/public/bootstrap_3/scss/_list-group.scss +129 -0
  40. data/apps/core/components/public/bootstrap_3/scss/_media.scss +56 -0
  41. data/apps/core/components/public/bootstrap_3/scss/_mixins.scss +39 -0
  42. data/apps/core/components/public/bootstrap_3/scss/_modals.scss +147 -0
  43. data/apps/core/components/public/bootstrap_3/scss/_navbar.scss +658 -0
  44. data/apps/core/components/public/bootstrap_3/scss/_navs.scss +242 -0
  45. data/apps/core/components/public/bootstrap_3/scss/_normalize.scss +425 -0
  46. data/apps/core/components/public/bootstrap_3/scss/_pager.scss +55 -0
  47. data/apps/core/components/public/bootstrap_3/scss/_pagination.scss +88 -0
  48. data/apps/core/components/public/bootstrap_3/scss/_panels.scss +240 -0
  49. data/apps/core/components/public/bootstrap_3/scss/_popovers.scss +133 -0
  50. data/apps/core/components/public/bootstrap_3/scss/_print.scss +101 -0
  51. data/apps/core/components/public/bootstrap_3/scss/_progress-bars.scss +89 -0
  52. data/apps/core/components/public/bootstrap_3/scss/_responsive-embed.scss +34 -0
  53. data/apps/core/components/public/bootstrap_3/scss/_responsive-utilities.scss +174 -0
  54. data/apps/core/components/public/bootstrap_3/scss/_scaffolding.scss +150 -0
  55. data/apps/core/components/public/bootstrap_3/scss/_tables.scss +233 -0
  56. data/apps/core/components/public/bootstrap_3/scss/_theme.scss +247 -0
  57. data/apps/core/components/public/bootstrap_3/scss/_thumbnails.scss +38 -0
  58. data/apps/core/components/public/bootstrap_3/scss/_tooltip.scss +95 -0
  59. data/apps/core/components/public/bootstrap_3/scss/_type.scss +298 -0
  60. data/apps/core/components/public/bootstrap_3/scss/_utilities.scss +56 -0
  61. data/apps/core/components/public/bootstrap_3/scss/_variables.scss +853 -0
  62. data/apps/core/components/public/bootstrap_3/scss/_wells.scss +29 -0
  63. data/apps/core/components/public/bootstrap_3/scss/bootstrap.scss +50 -0
  64. data/apps/core/components/public/bootstrap_3/scss/mixins/_alerts.scss +14 -0
  65. data/apps/core/components/public/bootstrap_3/scss/mixins/_background-variant.scss +11 -0
  66. data/apps/core/components/public/bootstrap_3/scss/mixins/_border-radius.scss +18 -0
  67. data/apps/core/components/public/bootstrap_3/scss/mixins/_buttons.scss +50 -0
  68. data/apps/core/components/public/bootstrap_3/scss/mixins/_center-block.scss +7 -0
  69. data/apps/core/components/public/bootstrap_3/scss/mixins/_clearfix.scss +22 -0
  70. data/apps/core/components/public/bootstrap_3/scss/mixins/_forms.scss +84 -0
  71. data/apps/core/components/public/bootstrap_3/scss/mixins/_gradients.scss +58 -0
  72. data/apps/core/components/public/bootstrap_3/scss/mixins/_grid-framework.scss +87 -0
  73. data/apps/core/components/public/bootstrap_3/scss/mixins/_grid.scss +122 -0
  74. data/apps/core/components/public/bootstrap_3/scss/mixins/_hide-text.scss +21 -0
  75. data/apps/core/components/public/bootstrap_3/scss/mixins/_image.scss +33 -0
  76. data/apps/core/components/public/bootstrap_3/scss/mixins/_labels.scss +12 -0
  77. data/apps/core/components/public/bootstrap_3/scss/mixins/_list-group.scss +31 -0
  78. data/apps/core/components/public/bootstrap_3/scss/mixins/_nav-divider.scss +10 -0
  79. data/apps/core/components/public/bootstrap_3/scss/mixins/_nav-vertical-align.scss +9 -0
  80. data/apps/core/components/public/bootstrap_3/scss/mixins/_opacity.scss +8 -0
  81. data/apps/core/components/public/bootstrap_3/scss/mixins/_pagination.scss +23 -0
  82. data/apps/core/components/public/bootstrap_3/scss/mixins/_panels.scss +20 -0
  83. data/apps/core/components/public/bootstrap_3/scss/mixins/_progress-bar.scss +8 -0
  84. data/apps/core/components/public/bootstrap_3/scss/mixins/_reset-filter.scss +8 -0
  85. data/apps/core/components/public/bootstrap_3/scss/mixins/_resize.scss +6 -0
  86. data/apps/core/components/public/bootstrap_3/scss/mixins/_responsive-visibility.scss +21 -0
  87. data/apps/core/components/public/bootstrap_3/scss/mixins/_size.scss +10 -0
  88. data/apps/core/components/public/bootstrap_3/scss/mixins/_tab-focus.scss +9 -0
  89. data/apps/core/components/public/bootstrap_3/scss/mixins/_table-row.scss +28 -0
  90. data/apps/core/components/public/bootstrap_3/scss/mixins/_text-emphasis.scss +11 -0
  91. data/apps/core/components/public/bootstrap_3/scss/mixins/_text-overflow.scss +8 -0
  92. data/apps/core/components/public/bootstrap_3/scss/mixins/_vendor-prefixes.scss +224 -0
  93. data/apps/core/components/public/js/jquery/plugins/bsmselect/js/jquery.bsmselect.js +1 -1
  94. data/apps/core/components/widgets/month_calendar/month_calendar.shtml +3 -3
  95. data/apps/core/components/widgets/table/table.rb +6 -2
  96. data/apps/core/components/widgets/table/table.shtml +4 -4
  97. data/apps/core/forms/widgets/form/form.rb +1 -1
  98. data/apps/core/forms/widgets/inputs/select/select.rb +13 -2
  99. data/apps/messenger/lib/backends/mobyt.rb +6 -2
  100. data/apps/messenger/lib/backends/skebby.rb +1 -1
  101. data/apps/webdav/controllers/webdav_controller.rb +16 -7
  102. data/lib/spiderfw/controller/http_controller.rb +4 -1
  103. data/lib/spiderfw/env.rb +0 -1
  104. data/lib/spiderfw/http/adapters/rack.rb +3 -1
  105. data/lib/spiderfw/model/base_model.rb +7 -3
  106. data/lib/spiderfw/model/storage/connection_pool.rb +6 -2
  107. data/lib/spiderfw/model/storage/db/db_storage.rb +25 -9
  108. data/lib/spiderfw/site.rb +1 -1
  109. metadata +308 -149
@@ -0,0 +1,88 @@
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
+ color: $pagination-color;
20
+ background-color: $pagination-bg;
21
+ border: 1px solid $pagination-border;
22
+ margin-left: -1px;
23
+ }
24
+ &:first-child {
25
+ > a,
26
+ > span {
27
+ margin-left: 0;
28
+ @include border-left-radius($border-radius-base);
29
+ }
30
+ }
31
+ &:last-child {
32
+ > a,
33
+ > span {
34
+ @include border-right-radius($border-radius-base);
35
+ }
36
+ }
37
+ }
38
+
39
+ > li > a,
40
+ > li > span {
41
+ &:hover,
42
+ &:focus {
43
+ color: $pagination-hover-color;
44
+ background-color: $pagination-hover-bg;
45
+ border-color: $pagination-hover-border;
46
+ }
47
+ }
48
+
49
+ > .active > a,
50
+ > .active > span {
51
+ &,
52
+ &:hover,
53
+ &:focus {
54
+ z-index: 2;
55
+ color: $pagination-active-color;
56
+ background-color: $pagination-active-bg;
57
+ border-color: $pagination-active-border;
58
+ cursor: default;
59
+ }
60
+ }
61
+
62
+ > .disabled {
63
+ > span,
64
+ > span:hover,
65
+ > span:focus,
66
+ > a,
67
+ > a:hover,
68
+ > a:focus {
69
+ color: $pagination-disabled-color;
70
+ background-color: $pagination-disabled-bg;
71
+ border-color: $pagination-disabled-border;
72
+ cursor: not-allowed;
73
+ }
74
+ }
75
+ }
76
+
77
+ // Sizing
78
+ // --------------------------------------------------
79
+
80
+ // Large
81
+ .pagination-lg {
82
+ @include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $border-radius-large);
83
+ }
84
+
85
+ // Small
86
+ .pagination-sm {
87
+ @include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $border-radius-small);
88
+ }
@@ -0,0 +1,240 @@
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
+ @include box-shadow(0 1px 1px rgba(0,0,0,.05));
13
+ }
14
+
15
+ // Panel contents
16
+ .panel-body {
17
+ padding: $panel-body-padding;
18
+ @include clearfix();
19
+ }
20
+
21
+ // Optional heading
22
+ .panel-heading {
23
+ padding: $panel-heading-padding;
24
+ border-bottom: 1px solid transparent;
25
+ @include border-top-radius(($panel-border-radius - 1));
26
+
27
+ > .dropdown .dropdown-toggle {
28
+ color: inherit;
29
+ }
30
+ }
31
+
32
+ // Within heading, strip any `h*` tag of its default margins for spacing.
33
+ .panel-title {
34
+ margin-top: 0;
35
+ margin-bottom: 0;
36
+ font-size: ceil(($font-size-base * 1.125));
37
+ color: inherit;
38
+
39
+ > a {
40
+ color: inherit;
41
+ }
42
+ }
43
+
44
+ // Optional footer (stays gray in every modifier class)
45
+ .panel-footer {
46
+ padding: $panel-footer-padding;
47
+ background-color: $panel-footer-bg;
48
+ border-top: 1px solid $panel-inner-border;
49
+ @include border-bottom-radius(($panel-border-radius - 1));
50
+ }
51
+
52
+
53
+ // List groups in panels
54
+ //
55
+ // By default, space out list group content from panel headings to account for
56
+ // any kind of custom content between the two.
57
+
58
+ .panel {
59
+ > .list-group {
60
+ margin-bottom: 0;
61
+
62
+ .list-group-item {
63
+ border-width: 1px 0;
64
+ border-radius: 0;
65
+ }
66
+
67
+ // Add border top radius for first one
68
+ &:first-child {
69
+ .list-group-item:first-child {
70
+ border-top: 0;
71
+ @include border-top-radius(($panel-border-radius - 1));
72
+ }
73
+ }
74
+ // Add border bottom radius for last one
75
+ &:last-child {
76
+ .list-group-item:last-child {
77
+ border-bottom: 0;
78
+ @include border-bottom-radius(($panel-border-radius - 1));
79
+ }
80
+ }
81
+ }
82
+ }
83
+ // Collapse space between when there's no additional content.
84
+ .panel-heading + .list-group {
85
+ .list-group-item:first-child {
86
+ border-top-width: 0;
87
+ }
88
+ }
89
+
90
+
91
+ // Tables in panels
92
+ //
93
+ // Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
94
+ // watch it go full width.
95
+
96
+ .panel {
97
+ > .table,
98
+ > .table-responsive > .table {
99
+ margin-bottom: 0;
100
+ }
101
+ // Add border top radius for first one
102
+ > .table:first-child,
103
+ > .table-responsive:first-child > .table:first-child {
104
+ @include border-top-radius(($panel-border-radius - 1));
105
+
106
+ > thead:first-child,
107
+ > tbody:first-child {
108
+ > tr:first-child {
109
+ td:first-child,
110
+ th:first-child {
111
+ border-top-left-radius: ($panel-border-radius - 1);
112
+ }
113
+ td:last-child,
114
+ th:last-child {
115
+ border-top-right-radius: ($panel-border-radius - 1);
116
+ }
117
+ }
118
+ }
119
+ }
120
+ // Add border bottom radius for last one
121
+ > .table:last-child,
122
+ > .table-responsive:last-child > .table:last-child {
123
+ @include border-bottom-radius(($panel-border-radius - 1));
124
+
125
+ > tbody:last-child,
126
+ > tfoot:last-child {
127
+ > tr:last-child {
128
+ td:first-child,
129
+ th:first-child {
130
+ border-bottom-left-radius: ($panel-border-radius - 1);
131
+ }
132
+ td:last-child,
133
+ th:last-child {
134
+ border-bottom-right-radius: ($panel-border-radius - 1);
135
+ }
136
+ }
137
+ }
138
+ }
139
+ > .panel-body + .table,
140
+ > .panel-body + .table-responsive {
141
+ border-top: 1px solid $table-border-color;
142
+ }
143
+ > .table > tbody:first-child > tr:first-child th,
144
+ > .table > tbody:first-child > tr:first-child td {
145
+ border-top: 0;
146
+ }
147
+ > .table-bordered,
148
+ > .table-responsive > .table-bordered {
149
+ border: 0;
150
+ > thead,
151
+ > tbody,
152
+ > tfoot {
153
+ > tr {
154
+ > th:first-child,
155
+ > td:first-child {
156
+ border-left: 0;
157
+ }
158
+ > th:last-child,
159
+ > td:last-child {
160
+ border-right: 0;
161
+ }
162
+ }
163
+ }
164
+ > thead,
165
+ > tbody {
166
+ > tr:first-child {
167
+ > td,
168
+ > th {
169
+ border-bottom: 0;
170
+ }
171
+ }
172
+ }
173
+ > tbody,
174
+ > tfoot {
175
+ > tr:last-child {
176
+ > td,
177
+ > th {
178
+ border-bottom: 0;
179
+ }
180
+ }
181
+ }
182
+ }
183
+ > .table-responsive {
184
+ border: 0;
185
+ margin-bottom: 0;
186
+ }
187
+ }
188
+
189
+
190
+ // Collapsable panels (aka, accordion)
191
+ //
192
+ // Wrap a series of panels in `.panel-group` to turn them into an accordion with
193
+ // the help of our collapse JavaScript plugin.
194
+
195
+ .panel-group {
196
+ margin-bottom: $line-height-computed;
197
+
198
+ // Tighten up margin so it's only between panels
199
+ .panel {
200
+ margin-bottom: 0;
201
+ border-radius: $panel-border-radius;
202
+ + .panel {
203
+ margin-top: 5px;
204
+ }
205
+ }
206
+
207
+ .panel-heading {
208
+ border-bottom: 0;
209
+ + .panel-collapse .panel-body {
210
+ border-top: 1px solid $panel-inner-border;
211
+ }
212
+ }
213
+ .panel-footer {
214
+ border-top: 0;
215
+ + .panel-collapse .panel-body {
216
+ border-bottom: 1px solid $panel-inner-border;
217
+ }
218
+ }
219
+ }
220
+
221
+
222
+ // Contextual variations
223
+ .panel-default {
224
+ @include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
225
+ }
226
+ .panel-primary {
227
+ @include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
228
+ }
229
+ .panel-success {
230
+ @include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
231
+ }
232
+ .panel-info {
233
+ @include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
234
+ }
235
+ .panel-warning {
236
+ @include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
237
+ }
238
+ .panel-danger {
239
+ @include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);
240
+ }
@@ -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
+ @include 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: -$popover-arrow-width; }
27
+ &.right { margin-left: $popover-arrow-width; }
28
+ &.bottom { margin-top: $popover-arrow-width; }
29
+ &.left { margin-left: -$popover-arrow-width; }
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: ($border-radius-large - 1) ($border-radius-large - 1) 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,101 @@
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
+ a[href^="javascript:"]:after,
30
+ a[href^="#"]:after {
31
+ content: "";
32
+ }
33
+
34
+ pre,
35
+ blockquote {
36
+ border: 1px solid #999;
37
+ page-break-inside: avoid;
38
+ }
39
+
40
+ thead {
41
+ display: table-header-group; // h5bp.com/t
42
+ }
43
+
44
+ tr,
45
+ img {
46
+ page-break-inside: avoid;
47
+ }
48
+
49
+ img {
50
+ max-width: 100% !important;
51
+ }
52
+
53
+ p,
54
+ h2,
55
+ h3 {
56
+ orphans: 3;
57
+ widows: 3;
58
+ }
59
+
60
+ h2,
61
+ h3 {
62
+ page-break-after: avoid;
63
+ }
64
+
65
+ // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
66
+ // Once fixed, we can just straight up remove this.
67
+ select {
68
+ background: #fff !important;
69
+ }
70
+
71
+ // Bootstrap components
72
+ .navbar {
73
+ display: none;
74
+ }
75
+ .table {
76
+ td,
77
+ th {
78
+ background-color: #fff !important;
79
+ }
80
+ }
81
+ .btn,
82
+ .dropup > .btn {
83
+ > .caret {
84
+ border-top-color: #000 !important;
85
+ }
86
+ }
87
+ .label {
88
+ border: 1px solid #000;
89
+ }
90
+
91
+ .table {
92
+ border-collapse: collapse !important;
93
+ }
94
+ .table-bordered {
95
+ th,
96
+ td {
97
+ border: 1px solid #ddd !important;
98
+ }
99
+ }
100
+
101
+ }
@@ -0,0 +1,89 @@
1
+ //
2
+ // Progress bars
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Bar animations
7
+ // -------------------------
8
+
9
+ @keyframes progress-bar-stripes {
10
+ from { background-position: 40px 0; }
11
+ to { background-position: 0 0; }
12
+ }
13
+
14
+
15
+
16
+ // Bar itself
17
+ // -------------------------
18
+
19
+ // Outer container
20
+ .progress {
21
+ overflow: hidden;
22
+ height: $line-height-computed;
23
+ margin-bottom: $line-height-computed;
24
+ background-color: $progress-bg;
25
+ border-radius: $border-radius-base;
26
+ @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
27
+ }
28
+
29
+ // Bar of progress
30
+ .progress-bar {
31
+ float: left;
32
+ width: 0%;
33
+ height: 100%;
34
+ font-size: $font-size-small;
35
+ line-height: $line-height-computed;
36
+ color: $progress-bar-color;
37
+ text-align: center;
38
+ background-color: $progress-bar-bg;
39
+ @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
40
+ @include transition(width .6s ease);
41
+ }
42
+
43
+ // Striped bars
44
+ .progress-striped .progress-bar {
45
+ @include gradient-striped();
46
+ background-size: 40px 40px;
47
+ }
48
+
49
+ // Call animation for the active one
50
+ .progress.active .progress-bar {
51
+ @include animation(progress-bar-stripes 2s linear infinite);
52
+ }
53
+
54
+ // Account for lower percentages
55
+ .progress-bar {
56
+ &[aria-valuenow="1"],
57
+ &[aria-valuenow="2"] {
58
+ min-width: 30px;
59
+ }
60
+
61
+ &[aria-valuenow="0"] {
62
+ color: $gray-light;
63
+ min-width: 30px;
64
+ background-color: transparent;
65
+ background-image: none;
66
+ box-shadow: none;
67
+ }
68
+ }
69
+
70
+
71
+
72
+ // Variations
73
+ // -------------------------
74
+
75
+ .progress-bar-success {
76
+ @include progress-bar-variant($progress-bar-success-bg);
77
+ }
78
+
79
+ .progress-bar-info {
80
+ @include progress-bar-variant($progress-bar-info-bg);
81
+ }
82
+
83
+ .progress-bar-warning {
84
+ @include progress-bar-variant($progress-bar-warning-bg);
85
+ }
86
+
87
+ .progress-bar-danger {
88
+ @include progress-bar-variant($progress-bar-danger-bg);
89
+ }
@@ -0,0 +1,34 @@
1
+ // Embeds responsive
2
+ //
3
+ // Credit: Nicolas Gallagher and SUIT CSS.
4
+
5
+ .embed-responsive {
6
+ position: relative;
7
+ display: block;
8
+ height: 0;
9
+ padding: 0;
10
+ overflow: hidden;
11
+
12
+ .embed-responsive-item,
13
+ iframe,
14
+ embed,
15
+ object {
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ bottom: 0;
20
+ height: 100%;
21
+ width: 100%;
22
+ border: 0;
23
+ }
24
+
25
+ // Modifier class for 16:9 aspect ratio
26
+ &.embed-responsive-16by9 {
27
+ padding-bottom: 56.25%;
28
+ }
29
+
30
+ // Modifier class for 4:3 aspect ratio
31
+ &.embed-responsive-4by3 {
32
+ padding-bottom: 75%;
33
+ }
34
+ }