mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-20 17:54:23 +01:00
Fixes #6190: Add print utility classes
This commit is contained in:
parent
6a9cd513c0
commit
0fe9148b91
13
docs/assets/css/bootstrap-responsive.css
vendored
13
docs/assets/css/bootstrap-responsive.css
vendored
@ -95,6 +95,19 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.visible-print {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
.visible-print {
|
||||||
|
display: inherit !important;
|
||||||
|
}
|
||||||
|
.hidden-print {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (min-width: 1200px) {
|
@media (min-width: 1200px) {
|
||||||
.row {
|
.row {
|
||||||
margin-left: -30px;
|
margin-left: -30px;
|
||||||
|
6
docs/assets/js/bootstrap-popover.js
vendored
6
docs/assets/js/bootstrap-popover.js
vendored
@ -58,8 +58,8 @@
|
|||||||
, $e = this.$element
|
, $e = this.$element
|
||||||
, o = this.options
|
, o = this.options
|
||||||
|
|
||||||
content = $e.attr('data-content')
|
content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
|
||||||
|| (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
|
|| $e.attr('data-content')
|
||||||
|
|
||||||
return content
|
return content
|
||||||
}
|
}
|
||||||
@ -111,4 +111,4 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
}(window.jQuery);
|
}(window.jQuery);
|
||||||
|
2
docs/assets/js/bootstrap-tooltip.js
vendored
2
docs/assets/js/bootstrap-tooltip.js
vendored
@ -67,7 +67,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, getOptions: function (options) {
|
, getOptions: function (options) {
|
||||||
options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data())
|
options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options)
|
||||||
|
|
||||||
if (options.delay && typeof options.delay == 'number') {
|
if (options.delay && typeof options.delay == 'number') {
|
||||||
options.delay = {
|
options.delay = {
|
||||||
|
9
docs/assets/js/bootstrap.js
vendored
9
docs/assets/js/bootstrap.js
vendored
@ -1109,7 +1109,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
, getOptions: function (options) {
|
, getOptions: function (options) {
|
||||||
options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data())
|
options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options)
|
||||||
|
|
||||||
if (options.delay && typeof options.delay == 'number') {
|
if (options.delay && typeof options.delay == 'number') {
|
||||||
options.delay = {
|
options.delay = {
|
||||||
@ -1406,8 +1406,8 @@
|
|||||||
, $e = this.$element
|
, $e = this.$element
|
||||||
, o = this.options
|
, o = this.options
|
||||||
|
|
||||||
content = $e.attr('data-content')
|
content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
|
||||||
|| (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
|
|| $e.attr('data-content')
|
||||||
|
|
||||||
return content
|
return content
|
||||||
}
|
}
|
||||||
@ -1459,7 +1459,8 @@
|
|||||||
return this
|
return this
|
||||||
}
|
}
|
||||||
|
|
||||||
}(window.jQuery);/* =============================================================
|
}(window.jQuery);
|
||||||
|
/* =============================================================
|
||||||
* bootstrap-scrollspy.js v2.3.0
|
* bootstrap-scrollspy.js v2.3.0
|
||||||
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
|
||||||
* =============================================================
|
* =============================================================
|
||||||
|
2
docs/assets/js/bootstrap.min.js
vendored
2
docs/assets/js/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
@ -48,3 +48,12 @@
|
|||||||
// Hide
|
// Hide
|
||||||
.hidden-phone { display: none !important; }
|
.hidden-phone { display: none !important; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Print utilities
|
||||||
|
.visible-print { display: none !important; }
|
||||||
|
.hidden-print { }
|
||||||
|
|
||||||
|
@media print {
|
||||||
|
.visible-print { display: inherit !important; }
|
||||||
|
.hidden-print { display: none !important; }
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user