some little text-sm fixes

- button text size
- dropdown text size
- dropdown toggle icon alignment
- top-nav brand image margin
- added docs part
pull/2256/head
REJack 2019-09-17 10:42:32 +02:00
parent 1261a7e36c
commit 8799b5497c
No known key found for this signature in database
GPG Key ID: 9F3976CC630CC888
4 changed files with 32 additions and 0 deletions

View File

@ -30,6 +30,10 @@
top: 0;
}
}
.text-sm & {
font-size: $font-size-sm !important;
}
}
// Button color variations

View File

@ -12,6 +12,16 @@
// }
//}
.text-sm {
.dropdown-menu {
font-size: $font-size-sm !important;
}
.dropdown-toggle::after {
vertical-align: .2rem
}
}
.dropdown-item-title {
font-size: $font-size-base;
margin: 0;

View File

@ -352,6 +352,11 @@ body,
.layout-top-nav & {
margin-left: 0;
& .text-sm {
.brand-image {
margin-top: -.5rem;
}
}
& .main-sidebar {
bottom: inherit;

View File

@ -5,6 +5,19 @@ title: Miscellaneous
AdminLTE has smaller custom classes that not related to other components are listed here.
### Text Size
You can change the font sizes with adding to any element `.text-*` e.g. (`.text-sm`).
- `.text-xs` (0.75rem)
- `.text-sm` (0.875rem)
- `.text-md` (1rem)
- `.text-lg` (1.25rem)
- `.text-xl` (2rem)
> ##### Tip!
> You can also add `.text-sm` to `body`, with this you get a complete smaller font on the UI or can you add `.text-sm` to `.main-sidebar` or `.main-header` & `.brand-link`.
{: .quote-info}
### Dropdown Menu Large
You can add the `.dropdown-menu-lg` to `.dropdown-menu` for a bigger dropdown menu.