diff options
| author | Mark Otto <[email protected]> | 2012-11-03 13:44:01 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-11-03 13:44:01 -0700 |
| commit | a249d1c8ee597c4f0f29da55b15cf35accd4221c (patch) | |
| tree | efc755be687dab37f3298c76d4be1649bfe5dec6 /less | |
| parent | 1477e081d46ebf6a5e6acb06debb7edb1a324918 (diff) | |
| parent | 5d6cf2ee1939515ad41b052ed1c406f96274ea37 (diff) | |
| download | bootstrap-a249d1c8ee597c4f0f29da55b15cf35accd4221c.tar.xz bootstrap-a249d1c8ee597c4f0f29da55b15cf35accd4221c.zip | |
Merge branch '2.2.2-wip' into exploratory
Conflicts:
docs/assets/css/bootstrap.css
docs/scaffolding.html
docs/templates/pages/scaffolding.mustache
Diffstat (limited to 'less')
| -rw-r--r-- | less/labels-badges.less | 8 | ||||
| -rw-r--r-- | less/popovers.less | 4 | ||||
| -rw-r--r-- | less/reset.less | 70 |
3 files changed, 81 insertions, 1 deletions
diff --git a/less/labels-badges.less b/less/labels-badges.less index 02da1654d..3ca0d6e20 100644 --- a/less/labels-badges.less +++ b/less/labels-badges.less @@ -27,6 +27,14 @@ border-radius: 9px; } +// Empty labels/badges collapse +.label, +.badge { + &:empty { + display: none; + } +} + // Hover state, but only for links a { &.label:hover, diff --git a/less/popovers.less b/less/popovers.less index c4e84c0fd..256aa9451 100644 --- a/less/popovers.less +++ b/less/popovers.less @@ -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 { diff --git a/less/reset.less b/less/reset.less index e8e5c1589..d26b2a2ae 100644 --- a/less/reset.less +++ b/less/reset.less @@ -133,3 +133,73 @@ textarea { overflow: auto; // Remove vertical scrollbar in IE6-9 vertical-align: top; // Readability and alignment cross-browser } + + +// Printing +// ------------------------- +// Source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css + +@media print { + + * { + text-shadow: none !important; + color: #000 !important; // Black prints faster: h5bp.com/s + 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) ")"; + } + + // Don't show links for images, or javascript/internal links + .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; + } +} |
