mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 07:06:36 +02:00
refactor {badges,jumbotron,media,popover,print}.less (mostly nesting)
This commit is contained in:
committed by
Chris Rebert
parent
084291aac7
commit
dcf1b60f2b
@@ -35,11 +35,9 @@ 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
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
@@ -36,11 +36,13 @@
|
|||||||
// Media image alignment
|
// Media image alignment
|
||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
.media > .pull-left {
|
.media {
|
||||||
margin-right: 10px;
|
> .pull-left {
|
||||||
}
|
margin-right: 10px;
|
||||||
.media > .pull-right {
|
}
|
||||||
margin-left: 10px;
|
> .pull-right {
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -50,14 +50,16 @@
|
|||||||
//
|
//
|
||||||
// .arrow is outer, .arrow:after is inner
|
// .arrow is outer, .arrow:after is inner
|
||||||
|
|
||||||
.popover .arrow,
|
.popover .arrow {
|
||||||
.popover .arrow:after {
|
&,
|
||||||
position: absolute;
|
&:after {
|
||||||
display: block;
|
position: absolute;
|
||||||
width: 0;
|
display: block;
|
||||||
height: 0;
|
width: 0;
|
||||||
border-color: transparent;
|
height: 0;
|
||||||
border-style: solid;
|
border-color: transparent;
|
||||||
|
border-style: solid;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.popover .arrow {
|
.popover .arrow {
|
||||||
border-width: @popover-arrow-outer-width;
|
border-width: @popover-arrow-outer-width;
|
||||||
|
@@ -71,13 +71,17 @@
|
|||||||
.navbar {
|
.navbar {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.table td,
|
.table {
|
||||||
.table th {
|
td,
|
||||||
background-color: #fff !important;
|
th {
|
||||||
|
background-color: #fff !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.btn > .caret,
|
.btn,
|
||||||
.dropup > .btn > .caret {
|
.dropup > .btn {
|
||||||
border-top-color: #000 !important;
|
> .caret {
|
||||||
|
border-top-color: #000 !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.label {
|
.label {
|
||||||
border: 1px solid #000;
|
border: 1px solid #000;
|
||||||
|
Reference in New Issue
Block a user