Commit dcf1b60f authored by Chris Rebert's avatar Chris Rebert Committed by Chris Rebert

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

parent 084291aa
...@@ -35,11 +35,9 @@ a.badge { ...@@ -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 @@ ...@@ -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 @@ ...@@ -36,11 +36,13 @@
// 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;
}
} }
......
...@@ -50,14 +50,16 @@ ...@@ -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 { &,
&:after {
position: absolute; position: absolute;
display: block; display: block;
width: 0; width: 0;
height: 0; height: 0;
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;
......
...@@ -71,14 +71,18 @@ ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment