1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-10 07:37:27 +02:00

refactor {badges,jumbotron,media,popover,print}.less (mostly nesting)

This commit is contained in:
Chris Rebert
2013-07-06 22:02:58 -07:00
committed by Chris Rebert
parent 084291aac7
commit dcf1b60f2b
5 changed files with 31 additions and 28 deletions

View File

@@ -35,12 +35,10 @@ a.badge {
} }
// Quick fix for labels/badges in buttons // Quick fix for labels/badges in buttons
.btn { .btn .badge {
.badge {
position: relative; position: relative;
top: -1px; top: -1px;
} }
}
// Account for counters in navs // Account for counters in navs
a.list-group-item.active > .badge, a.list-group-item.active > .badge,

View File

@@ -18,13 +18,10 @@
p { p {
line-height: 1.4; line-height: 1.4;
} }
}
@media screen and (min-width: @screen-tablet) { @media screen and (min-width: @screen-tablet) {
.jumbotron {
padding: 50px 60px; padding: 50px 60px;
border-radius: @border-radius-large; // Only round corners at higher resolutions border-radius: @border-radius-large; // Only round corners at higher resolutions
h1 { h1 {
font-size: (@font-size-base * 4.5); font-size: (@font-size-base * 4.5);
} }

View File

@@ -36,12 +36,14 @@
// Media image alignment // Media image alignment
// ------------------------- // -------------------------
.media > .pull-left { .media {
> .pull-left {
margin-right: 10px; margin-right: 10px;
} }
.media > .pull-right { > .pull-right {
margin-left: 10px; margin-left: 10px;
} }
}
// Media list variation // Media list variation

View File

@@ -50,8 +50,9 @@
// //
// .arrow is outer, .arrow:after is inner // .arrow is outer, .arrow:after is inner
.popover .arrow, .popover .arrow {
.popover .arrow:after { &,
&:after {
position: absolute; position: absolute;
display: block; display: block;
width: 0; width: 0;
@@ -59,6 +60,7 @@
border-color: transparent; border-color: transparent;
border-style: solid; border-style: solid;
} }
}
.popover .arrow { .popover .arrow {
border-width: @popover-arrow-outer-width; border-width: @popover-arrow-outer-width;
} }

View File

@@ -71,14 +71,18 @@
.navbar { .navbar {
display: none; display: none;
} }
.table td, .table {
.table th { td,
th {
background-color: #fff !important; background-color: #fff !important;
} }
.btn > .caret, }
.dropup > .btn > .caret { .btn,
.dropup > .btn {
> .caret {
border-top-color: #000 !important; border-top-color: #000 !important;
} }
}
.label { .label {
border: 1px solid #000; border: 1px solid #000;
} }