Commit b2b09f67 authored by Mark Otto's avatar Mark Otto
Browse files

Merge pull request #8413 from cvrebert/misc-less-refactoring

refactor {badges,jumbotron,media,popover,print}.less (mostly nesting)
parents e0d1b83e dcf1b60f
3 merge requests!8635ignore Gruntfile.js in jekyll,!8656Added rel="stylesheet" to CDN-Examples,!8527Inner properties move 1
Showing with 32 additions and 29 deletions
+32 -29
...@@ -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 {
margin-right: 10px; > .pull-left {
} margin-right: 10px;
.media > .pull-right { }
margin-left: 10px; > .pull-right {
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 { &,
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 @@ ...@@ -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, }
.dropup > .btn > .caret { }
border-top-color: #000 !important; .btn,
.dropup > .btn {
> .caret {
border-top-color: #000 !important;
}
} }
.label { .label {
border: 1px solid #000; border: 1px solid #000;
......
Supports Markdown
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