Skip to content

Commit

Permalink
Fixes twbs#5776: Reside white-space for popovers
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Nov 3, 2012
1 parent a8b9342 commit 2c93190
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 66 deletions.
118 changes: 53 additions & 65 deletions docs/assets/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,58 @@ textarea {
vertical-align: top;
}

@media print {
* {
color: #000 !important;
text-shadow: none !important;
background: transparent !important;
box-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
@page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}

.clearfix {
*zoom: 1;
}
Expand Down Expand Up @@ -210,71 +262,6 @@ a:hover {
border-radius: 500px;
}

/* ==========================================================================
Print styles.
Inlined to avoid required HTTP connection: h5bp.com/r
========================================================================== */

@media print {
{
/*
* Don't show links for images, or javascript/internal links
*/

}
* {
color: #000 !important;
text-shadow: none !important;
background: transparent !important;
box-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]:after {
content: " (" attr(href) ")";
}
abbr[title]:after {
content: " (" attr(title) ")";
}
.ir a:after,
a[href^="javascript:"]:after,
a[href^="#"]:after {
content: "";
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
thead {
display: table-header-group;
/* h5bp.com/t */

}
tr,
img {
page-break-inside: avoid;
}
img {
max-width: 100% !important;
}
@page {
margin: 0.5cm;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}

.row {
margin-left: -20px;
*zoom: 1;
Expand Down Expand Up @@ -5236,6 +5223,7 @@ input[type="submit"].btn.btn-mini {
display: none;
width: 236px;
padding: 1px;
white-space: normal;
background-color: #ffffff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
Expand Down
4 changes: 3 additions & 1 deletion less/popovers.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@
.border-radius(6px);
.box-shadow(0 5px 10px rgba(0,0,0,.2));

// Overrides for proper insertion
white-space: normal;

// Offset the popover to account for the popover arrow
&.top { margin-top: -10px; }
&.right { margin-left: 10px; }
&.bottom { margin-top: 10px; }
&.left { margin-left: -10px; }

}

.popover-title {
Expand Down

0 comments on commit 2c93190

Please sign in to comment.