menu.css 2.3 KB

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