Cleanup some CSS

This commit is contained in:
the-djmaze 2022-02-14 17:37:58 +01:00
parent 5c22933628
commit 88c16f5c40
21 changed files with 17 additions and 60 deletions

View file

@ -6,7 +6,6 @@
// Make the div behave like a button
.btn-group {
position: relative;
font-size: 0; // remove as part 1 of font-size inline-block hack
white-space: nowrap; // prevent buttons from wrapping when in tight spaces (e.g., the table on the tests page)
}
@ -16,9 +15,6 @@
// Optional: Group multiple button groups together for a toolbar
.btn-toolbar {
font-size: 0; // Hack to remove whitespace that results from using inline-block
margin-top: 0;
margin-bottom: 0;
.btn-group {
display: inline-block;
}
@ -37,14 +33,6 @@
.btn-group > .btn + .btn {
margin-left: -1px;
}
.btn-group > .dropdown-menu {
font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
}
// Reset fonts for other sizes
.btn-group > .btn-small {
font-size: 12px;
}
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
.btn-group > .btn:first-child {

View file

@ -12,7 +12,6 @@
display: inline-block;
padding: 4px 13px;
font-size: @baseFontSize;
line-height: @baseLineHeight;
text-align: center;
vertical-align: middle;
@ -60,7 +59,7 @@
// Large
.btn-large {
padding: 9px 14px;
font-size: @baseFontSize + 3px;
font-size: 121%;
line-height: normal;
border-radius: 5px;
}
@ -68,8 +67,8 @@
// Small
.btn-small {
padding: 3px 9px;
font-size: (@baseFontSize * 0.85);
line-height: (@baseLineHeight * 0.85);
font-size: 80%;
line-height: 1;
}
// Block button

View file

@ -5,7 +5,7 @@
.close {
float: right;
font-size: 20px;
font-size: 143%;
font-weight: bold;
line-height: @baseLineHeight;
color: inherit;

View file

@ -10,10 +10,6 @@ samp,
pre {
padding: 0 3px 2px;
font-family: var(--fontMono);
font-size: @baseFontSize;
font-weight: normal;
line-height: @baseLineHeight;
font-size: @baseFontSize - 2;
border-radius: 3px;
}
@ -28,8 +24,6 @@ pre {
display: block;
padding: (@baseLineHeight / 2);
margin: 0 0 (@baseLineHeight / 2);
font-size: @baseFontSize - 1; // 14px to 13px
line-height: @baseLineHeight;
white-space: pre-wrap;
border: 1px solid rgba(0,0,0,.15);
border-radius: 4px;

View file

@ -14,7 +14,6 @@ form {
// Identify controls by their labels
label {
display: block;
font-size: @baseFontSize;
font-weight: normal;
line-height: @baseLineHeight;
margin-bottom: 5px;

View file

@ -26,9 +26,6 @@ em {
cite {
font-style: normal;
}
.muted {
color: @grayLight;
}
// Headings

View file

@ -20,13 +20,11 @@
text-transform: none !important;
speak: never;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
[data-icon]::before {
content: attr(data-icon);
display: inline-block;
height: 1em;
margin-right: 0.5em;
min-width: 1em;
}