menu.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. .menu{
  2. display: flex;
  3. flex-direction: column;
  4. align-items: center;
  5. background: rgb(0, 27, 45);
  6. flex-basis: 18vw;
  7. height: 100vh;
  8. transition: width 0.3s;
  9. flex-grow: 0;
  10. flex-shrink: 0;
  11. }
  12. .menuHead{
  13. display: flex;
  14. justify-content: center;
  15. align-items: center;
  16. padding: 0 20px;
  17. margin-top: 10px;
  18. font-size: 22px;
  19. font-weight: bold;
  20. margin-bottom: 100px;
  21. text-decoration: none;
  22. }
  23. .menuLogo{
  24. width: 25%;
  25. height: 25%;
  26. }
  27. .menuHead a{
  28. display: flex;
  29. align-items: center;
  30. color: white;
  31. text-decoration: none;
  32. }
  33. .menuHead button{
  34. background: none;
  35. border-style: none;
  36. color: white;
  37. font-size: 35px;
  38. cursor: pointer;
  39. outline: none;
  40. }
  41. .menuHead button:hover{
  42. color: rgb(201, 201, 201);
  43. }
  44. .menuHead > button::-moz-focus-inner{
  45. border: 0;
  46. }
  47. .menu > button svg{
  48. stroke: white;
  49. margin-right: 25px;
  50. }
  51. .menu > button{
  52. display: flex;
  53. align-items: center;
  54. background: none;
  55. border-style: none;
  56. color: white;
  57. font-size: 20px;
  58. margin: 15px 0;
  59. padding: 0 0 0 50px;
  60. width: 100%;
  61. height: 75px;
  62. cursor: pointer;
  63. text-align: left;
  64. border: 0;
  65. }
  66. .menu > button::-moz-focus-inner{
  67. border: 0;
  68. }
  69. .menu > button:hover{
  70. background: rgb(201, 201, 201);
  71. color: black;
  72. fill: black;
  73. }
  74. .menu > button:hover svg{
  75. stroke: black;
  76. }
  77. .menu > .active{
  78. background: rgb(179, 191, 209);
  79. cursor: default;
  80. }
  81. .menu > .active:hover{
  82. background: rgb(179, 191, 209);
  83. color: white;
  84. }
  85. .menu > .active:hover svg{
  86. stroke: white;
  87. }
  88. .logout{
  89. display: flex;
  90. justify-content: center;
  91. position: absolute;
  92. bottom: 25px;
  93. color: white;
  94. text-decoration: none;
  95. font-size: 20px;
  96. }
  97. .logout img{
  98. height: 25px;
  99. width: 25px;
  100. }
  101. /* Minimized menu */
  102. .menuMinimized{
  103. width: 5vw;
  104. }
  105. .menuLogoMin{
  106. width: 100%;
  107. height: 100%;
  108. }
  109. .menuHeadMin{
  110. flex-direction: column;
  111. }
  112. .menuMinimized button{
  113. justify-content: center;
  114. padding: 0;
  115. }
  116. .menuMinimized button svg{
  117. margin: 0;
  118. }