Skip to content

Commit 0fe9148

Browse files
committed
Fixes twbs#6190: Add print utility classes
1 parent 6a9cd51 commit 0fe9148

6 files changed

+32
-9
lines changed

docs/assets/css/bootstrap-responsive.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,19 @@
9595
}
9696
}
9797

98+
.visible-print {
99+
display: none !important;
100+
}
101+
102+
@media print {
103+
.visible-print {
104+
display: inherit !important;
105+
}
106+
.hidden-print {
107+
display: none !important;
108+
}
109+
}
110+
98111
@media (min-width: 1200px) {
99112
.row {
100113
margin-left: -30px;

docs/assets/js/bootstrap-popover.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
, $e = this.$element
5959
, o = this.options
6060

61-
content = $e.attr('data-content')
62-
|| (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
61+
content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
62+
|| $e.attr('data-content')
6363

6464
return content
6565
}
@@ -111,4 +111,4 @@
111111
return this
112112
}
113113

114-
}(window.jQuery);
114+
}(window.jQuery);

docs/assets/js/bootstrap-tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
}
6868

6969
, getOptions: function (options) {
70-
options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data())
70+
options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options)
7171

7272
if (options.delay && typeof options.delay == 'number') {
7373
options.delay = {

docs/assets/js/bootstrap.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@
11091109
}
11101110

11111111
, getOptions: function (options) {
1112-
options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data())
1112+
options = $.extend({}, $.fn[this.type].defaults, this.$element.data(), options)
11131113

11141114
if (options.delay && typeof options.delay == 'number') {
11151115
options.delay = {
@@ -1406,8 +1406,8 @@
14061406
, $e = this.$element
14071407
, o = this.options
14081408

1409-
content = $e.attr('data-content')
1410-
|| (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
1409+
content = (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
1410+
|| $e.attr('data-content')
14111411

14121412
return content
14131413
}
@@ -1459,7 +1459,8 @@
14591459
return this
14601460
}
14611461

1462-
}(window.jQuery);/* =============================================================
1462+
}(window.jQuery);
1463+
/* =============================================================
14631464
* bootstrap-scrollspy.js v2.3.0
14641465
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
14651466
* =============================================================

docs/assets/js/bootstrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/responsive-utilities.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,12 @@
4848
// Hide
4949
.hidden-phone { display: none !important; }
5050
}
51+
52+
// Print utilities
53+
.visible-print { display: none !important; }
54+
.hidden-print { }
55+
56+
@media print {
57+
.visible-print { display: inherit !important; }
58+
.hidden-print { display: none !important; }
59+
}

0 commit comments

Comments
 (0)