mirror of https://github.com/ColorlibHQ/AdminLTE
some little text-sm fixes
- button text size - dropdown text size - dropdown toggle icon alignment - top-nav brand image margin - added docs partpull/2256/head
parent
1261a7e36c
commit
8799b5497c
|
@ -30,6 +30,10 @@
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.text-sm & {
|
||||||
|
font-size: $font-size-sm !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Button color variations
|
// Button color variations
|
||||||
|
|
|
@ -12,6 +12,16 @@
|
||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
.text-sm {
|
||||||
|
.dropdown-menu {
|
||||||
|
font-size: $font-size-sm !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dropdown-toggle::after {
|
||||||
|
vertical-align: .2rem
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown-item-title {
|
.dropdown-item-title {
|
||||||
font-size: $font-size-base;
|
font-size: $font-size-base;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -352,6 +352,11 @@ body,
|
||||||
.layout-top-nav & {
|
.layout-top-nav & {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
|
||||||
|
& .text-sm {
|
||||||
|
.brand-image {
|
||||||
|
margin-top: -.5rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
& .main-sidebar {
|
& .main-sidebar {
|
||||||
bottom: inherit;
|
bottom: inherit;
|
||||||
|
|
|
@ -5,6 +5,19 @@ title: Miscellaneous
|
||||||
AdminLTE has smaller custom classes that not related to other components are listed here.
|
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
|
### Dropdown Menu Large
|
||||||
You can add the `.dropdown-menu-lg` to `.dropdown-menu` for a bigger dropdown menu.
|
You can add the `.dropdown-menu-lg` to `.dropdown-menu` for a bigger dropdown menu.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue