You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

102 regels
3.2 KiB

  1. .navbar-toggler {
  2. appearance: none;
  3. cursor: pointer;
  4. width: 3.5rem;
  5. height: 2.5rem;
  6. color: white;
  7. position: absolute;
  8. top: 0.5rem;
  9. right: 1rem;
  10. border: 1px solid rgba(255, 255, 255, 0.1);
  11. background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
  12. }
  13. .navbar-toggler:checked {
  14. background-color: rgba(255, 255, 255, 0.5);
  15. }
  16. .top-row {
  17. height: 3.5rem;
  18. background-color: rgba(0,0,0,0.4);
  19. }
  20. .navbar-brand {
  21. font-size: 1.1rem;
  22. }
  23. .bi {
  24. display: inline-block;
  25. position: relative;
  26. width: 1.25rem;
  27. height: 1.25rem;
  28. margin-right: 0.75rem;
  29. top: -1px;
  30. background-size: cover;
  31. }
  32. .bi-house-door-fill-nav-menu {
  33. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
  34. }
  35. .bi-plus-square-fill-nav-menu {
  36. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
  37. }
  38. .bi-list-nested-nav-menu {
  39. background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
  40. }
  41. .nav-item {
  42. font-size: 0.9rem;
  43. padding-bottom: 0.5rem;
  44. }
  45. .nav-item:first-of-type {
  46. padding-top: 1rem;
  47. }
  48. .nav-item:last-of-type {
  49. padding-bottom: 1rem;
  50. }
  51. .nav-item ::deep a {
  52. color: #d7d7d7;
  53. border-radius: 4px;
  54. height: 3rem;
  55. display: flex;
  56. align-items: center;
  57. line-height: 3rem;
  58. }
  59. .nav-item ::deep a.active {
  60. background-color: rgba(255,255,255,0.37);
  61. color: white;
  62. }
  63. .nav-item ::deep a:hover {
  64. background-color: rgba(255,255,255,0.1);
  65. color: white;
  66. }
  67. .nav-scrollable {
  68. display: none;
  69. }
  70. .navbar-toggler:checked ~ .nav-scrollable {
  71. display: block;
  72. }
  73. @media (min-width: 641px) {
  74. .navbar-toggler {
  75. display: none;
  76. }
  77. .nav-scrollable {
  78. /* Never collapse the sidebar for wide screens */
  79. display: block;
  80. /* Allow sidebar to scroll for tall menus */
  81. height: calc(100vh - 3.5rem);
  82. overflow-y: auto;
  83. }
  84. }