dashboard.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. body {
  2. font-size: .875rem;
  3. }
  4. .feather {
  5. width: 16px;
  6. height: 16px;
  7. vertical-align: text-bottom;
  8. }
  9. /*
  10. * Sidebar
  11. */
  12. .sidebar {
  13. position: fixed;
  14. top: 0;
  15. bottom: 0;
  16. left: 0;
  17. z-index: 100; /* Behind the navbar */
  18. padding: 48px 0 0; /* Height of navbar */
  19. box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
  20. }
  21. .sidebar-sticky {
  22. position: relative;
  23. top: 0;
  24. height: calc(100vh - 48px);
  25. padding-top: .5rem;
  26. overflow-x: hidden;
  27. overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  28. }
  29. @supports ((position: -webkit-sticky) or (position: sticky)) {
  30. .sidebar-sticky {
  31. position: -webkit-sticky;
  32. position: sticky;
  33. }
  34. }
  35. .sidebar .nav-link {
  36. font-weight: 500;
  37. color: #333;
  38. }
  39. .sidebar .nav-link .feather {
  40. margin-right: 4px;
  41. color: #999;
  42. }
  43. .sidebar .nav-link.active {
  44. color: #007bff;
  45. }
  46. .sidebar .nav-link:hover .feather,
  47. .sidebar .nav-link.active .feather {
  48. color: inherit;
  49. }
  50. .sidebar-heading {
  51. font-size: .75rem;
  52. text-transform: uppercase;
  53. }
  54. /*
  55. * Content
  56. */
  57. [role="main"] {
  58. padding-top: 133px; /* Space for fixed navbar */
  59. }
  60. @media (min-width: 768px) {
  61. [role="main"] {
  62. padding-top: 48px; /* Space for fixed navbar */
  63. }
  64. }
  65. /*
  66. * Navbar
  67. */
  68. .navbar-brand {
  69. padding-top: .75rem;
  70. padding-bottom: .75rem;
  71. font-size: 1rem;
  72. background-color: rgba(0, 0, 0, .25);
  73. box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
  74. }
  75. .navbar .form-control {
  76. padding: .75rem 1rem;
  77. border-width: 0;
  78. border-radius: 0;
  79. }
  80. .form-control-dark {
  81. color: #fff;
  82. background-color: rgba(255, 255, 255, .1);
  83. border-color: rgba(255, 255, 255, .1);
  84. }
  85. .form-control-dark:focus {
  86. border-color: transparent;
  87. box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
  88. }