_topbar.scss 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. .layout-topbar {
  2. position: fixed;
  3. height: 5rem;
  4. z-index: 997;
  5. left: 0;
  6. top: 0;
  7. width: 100%;
  8. padding: 0 2rem;
  9. background-color: var(--surface-card);
  10. transition: left $transitionDuration;
  11. display: flex;
  12. align-items: center;
  13. box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08);
  14. .layout-topbar-logo {
  15. display: flex;
  16. align-items: center;
  17. color: var(--surface-900);
  18. font-size: 1.5rem;
  19. font-weight: 500;
  20. width: 300px;
  21. border-radius: 12px;
  22. img {
  23. height: 2.5rem;
  24. margin-right: .5rem;
  25. }
  26. &:focus {
  27. @include focused();
  28. }
  29. }
  30. .layout-topbar-button {
  31. display: inline-flex;
  32. justify-content: center;
  33. align-items: center;
  34. position: relative;
  35. color: var(--text-color-secondary);
  36. border-radius: 50%;
  37. width: 3rem;
  38. height: 3rem;
  39. cursor: pointer;
  40. transition: background-color $transitionDuration;
  41. &:hover {
  42. color: var(--text-color);
  43. background-color: var(--surface-hover);
  44. }
  45. &:focus {
  46. @include focused();
  47. }
  48. i {
  49. font-size: 1.5rem;
  50. }
  51. span {
  52. font-size: 1rem;
  53. display: none;
  54. }
  55. }
  56. .layout-menu-button {
  57. margin-left: 2rem;
  58. }
  59. .layout-topbar-menu-button {
  60. display: none;
  61. i {
  62. font-size: 1.25rem;
  63. }
  64. }
  65. .layout-topbar-menu {
  66. margin: 0 0 0 auto;
  67. padding: 0;
  68. list-style: none;
  69. display: flex;
  70. .layout-topbar-button {
  71. margin-left: 1rem;
  72. }
  73. }
  74. }
  75. @media (max-width: 991px) {
  76. .layout-topbar {
  77. justify-content: space-between;
  78. .layout-topbar-logo {
  79. width: auto;
  80. order: 2;
  81. }
  82. .layout-menu-button {
  83. margin-left: 0;
  84. order: 1;
  85. }
  86. .layout-topbar-menu-button {
  87. display: inline-flex;
  88. margin-left: 0;
  89. order: 3;
  90. }
  91. .layout-topbar-menu {
  92. margin-left: 0;
  93. position: absolute;
  94. flex-direction: column;
  95. background-color: var(--surface-overlay);
  96. box-shadow: 0px 3px 5px rgba(0,0,0,.02), 0px 0px 2px rgba(0,0,0,.05), 0px 1px 4px rgba(0,0,0,.08);
  97. border-radius: 12px;
  98. padding: 1rem;
  99. right: 2rem;
  100. top: 5rem;
  101. min-width: 15rem;
  102. .layout-topbar-button {
  103. margin-left: 0;
  104. display: flex;
  105. width: 100%;
  106. height: auto;
  107. justify-content: flex-start;
  108. border-radius: 12px;
  109. padding: 1rem;
  110. i {
  111. font-size: 1rem;
  112. margin-right: .5rem;
  113. }
  114. span {
  115. font-weight: medium;
  116. display: block;
  117. }
  118. }
  119. }
  120. }
  121. }