Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
vor 3 Jahren
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. ---
  2. layout: page
  3. title: Layout
  4. ---
  5. > ##### Tip!
  6. > The [starter page](https://adminlte.io/themes/v3/starter.html) is a good place to start building your app if you'd
  7. > like to start from scratch.
  8. > {: .quote-info .mt-0}
  9. The layout consists of four major parts:
  10. - Wrapper `.wrapper`. A div that wraps the whole site.
  11. - Main Header `.main-header`. Contains the logo and navbar.
  12. - Content `.content-wrapper`. Contains the page header and content.
  13. #### Layout Options
  14. {: .mt-4}
  15. > ##### Note!
  16. > You cannot use both layout-boxed and layout-navbar-fixed or layout-footer-fixed at the same time. Anything else can be
  17. > mixed together.
  18. > {: .quote-danger}
  19. AdminLTE 3.1 provides a set of options to apply to your main layout. Each one of these classes can be added to the body
  20. tag to get the desired goal.
  21. - Fixed Sidebar: use the class `.layout-fixed` to get a fixed sidebar.
  22. - Fixed Navbar: use the class `.layout-navbar-fixed` to get a fixed navbar.
  23. - Fixed Footer: use the class `.layout-footer-fixed` to get a fixed footer.
  24. - Collapsed Sidebar: use the class `.sidebar-collapse` to have a collapsed sidebar upon loading.
  25. - Boxed Layout: use the class `.layout-boxed` to get a boxed layout that stretches only to 1250px.
  26. - Top Navigation: use the class `.layout-top-nav` to remove the sidebar and have your links at the top navbar.
  27. ##### Responsive Variations
  28. You can also use the following classes for responsive changes with placing
  29. - Fixed Navbar:
  30. - use the class `.layout-*-navbar-fixed` to get a fixed navbar.
  31. - use the class `.layout-*-navbar-not-fixed` to get a not fixed navbar.
  32. - Fixed Footer:
  33. - use the class `.layout-*-footer-fixed` to get a fixed footer.
  34. - use the class `.layout-*-footer-not-fixed` to get a not fixed footer.
  35. > ##### Tip!
  36. > If you want to use anchors with a fixed navbar, you need to add `.anchor` to you hidden anchor,
  37. > e.g. `<a id="testAnchor" class="anchor"></a>`.
  38. >
  39. > To get a smooth scrolling to the anchor you need to add `.scroll-smooth` to your HTML tag like
  40. > this `<html class="scroll-smooth">` otherwise it jumps directly to your anchor, `.scroll-smooth` can cause issues with
  41. > a
  42. > Chrome extension called ScrollAnywhere.
  43. > {: .quote-info}
  44. #### Preloader
  45. Preloader to
  46. avoid [https://github.com/ColorlibHQ/AdminLTE/discussions/3319](https://github.com/ColorlibHQ/AdminLTE/discussions/3319)
  47. ```html
  48. <div class="wrapper">
  49. <!-- Preloader -->
  50. <div class="preloader">
  51. <img src="dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
  52. </div>
  53. </div>
  54. ```
  55. - Preloader elements should be added inside `.wrapper` element.
  56. - You can replace image OR modify size OR include any preload items inside `.preloader` element.
  57. #### Dark Mode
  58. AdminLTE 3.1 provides a dark mode option. You can add in body tag:
  59. - `.dark-mode`
  60. #### Color Variations
  61. AdminLTE 3.1 provides a set of color variations to apply to your sidebar (light & dark) & navbar. You can combine any
  62. available color with these class prefixes:
  63. - `.navbar-*`
  64. - `.sidebar-dark-*`
  65. - `.sidebar-light-*`
  66. - `.accent-*`
  67. > ###### New
  68. > You can use override the link/accent color in AdminLTE, you can add `.accent-*` to `body`.
  69. > {: .quote-info}
  70. > ###### Info
  71. > You can combine `.navbar-*` with `.navbar-light` or `.navbar-dark`.
  72. > {: .quote-info}
  73. > ###### Recommended for Dark Mode
  74. > You must use only `.navbar-dark` without only combination.
  75. > {: .quote-info}
  76. The following colors are available:
  77. ##### Theme Colors
  78. <div class="row">
  79. <div class="col-sm-4 col-lg-3 p-3 bg-primary"> Primary (primary) / Blue (blue)</div>
  80. <div class="col-sm-4 col-lg-3 p-3 bg-secondary"> Secondary (secondary)</div>
  81. <div class="col-sm-4 col-lg-3 p-3 bg-success"> Success (success) / Green (green)</div>
  82. <div class="col-sm-4 col-lg-3 p-3 bg-info"> Info (info) / Cyan (cyan)</div>
  83. <div class="col-sm-4 col-lg-3 p-3 bg-warning"> Warning (warning) / Yellow (yellow)</div>
  84. <div class="col-sm-4 col-lg-3 p-3 bg-danger"> Danger (danger) / Red (red)</div>
  85. </div>
  86. ##### Black/White Nuances
  87. {: .mt-4}
  88. <div class="row">
  89. <div class="col-sm-4 col-lg-3 p-3 bg-black"> Black (black)</div>
  90. <div class="col-sm-4 col-lg-3 p-3 bg-gray-dark"> Gray Dark (gray-dark)</div>
  91. <div class="col-sm-4 col-lg-3 p-3 bg-gray"> Gray (gray)</div>
  92. <div class="col-sm-4 col-lg-3 p-3 bg-light"> Light (light)</div>
  93. </div>
  94. ##### Colors
  95. {: .mt-4}
  96. <div class="row">
  97. <div class="col-sm-4 col-lg-3 p-3 bg-indigo"> Indigo (indigo)</div>
  98. <div class="col-sm-4 col-lg-3 p-3 bg-navy"> Navy (navy)</div>
  99. <div class="col-sm-4 col-lg-3 p-3 bg-purple"> Purple (purple)</div>
  100. <div class="col-sm-4 col-lg-3 p-3 bg-fuchsia"> Fuchsia (fuchsia)</div>
  101. <div class="col-sm-4 col-lg-3 p-3 bg-pink"> Pink (pink)</div>
  102. <div class="col-sm-4 col-lg-3 p-3 bg-maroon"> Maroon (maroon)</div>
  103. <div class="col-sm-4 col-lg-3 p-3 bg-orange"> Orange (orange)</div>
  104. <div class="col-sm-4 col-lg-3 p-3 bg-lime"> Lime (lime)</div>
  105. <div class="col-sm-4 col-lg-3 p-3 bg-teal"> Teal (teal)</div>
  106. <div class="col-sm-4 col-lg-3 p-3 bg-olive"> Olive (olive)</div>
  107. </div>
  108. > ##### Tip!
  109. > You can use these color variations even with `.text-*`, `.bg-*` & much more.
  110. > {: .quote-info}
  111. ##### Custom Range / Switch
  112. For custom colored custom-checkbox & custom-radio you can add this classes:
  113. - `.custom-control-input-*`
  114. You can also change the look to outlined checkbox & radio with adding the `.custom-control-input-outline` on the custom
  115. control input.
  116. For custom colored custom-range you can add this classes:
  117. - `.custom-range-*`
  118. For custom colored custom-range you can add this classes:
  119. - `.custom-range-*`
  120. For custom colored custom-switch you can add this classes:
  121. - `.custom-switch-off-*` (for custom switch off)
  122. - `.custom-switch-on-*` (for custom switch on)
  123. ##### Toasts
  124. You can also use `bg-*` beside the `.toast` to get a nice colored toast.
  125. ##### Plugin Support
  126. You can use the all the colors above with these plugins:
  127. - Bootstrap Slider
  128. - `.slider-*` (wrapped around the slider)
  129. - iCheck-Bootstrap
  130. - `.icheck-*`