navbar.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. @import '_variables';
  2. nav {
  3. display: flex;
  4. align-items: center;
  5. position: fixed;
  6. background-color: var(--bg_overlays);
  7. box-shadow: 0 0 4px $shadow;
  8. padding: 0;
  9. width: 100%;
  10. height: 50px;
  11. z-index: 1000;
  12. a, .icon-button button {
  13. color: var(--fg_nav);
  14. }
  15. }
  16. .inner-nav {
  17. margin: auto;
  18. box-sizing: border-box;
  19. padding: 0 10px;
  20. display: flex;
  21. align-items: center;
  22. flex-basis: 920px;
  23. height: 50px;
  24. }
  25. .site-name {
  26. font-weight: 600;
  27. line-height: 1;
  28. &:hover {
  29. color: var(--accent_light);
  30. text-decoration: unset;
  31. }
  32. }
  33. .site-logo {
  34. display: block;
  35. width: 35px;
  36. height: 35px;
  37. }
  38. .nav-item {
  39. display: flex;
  40. flex: 1;
  41. line-height: 50px;
  42. height: 50px;
  43. overflow: hidden;
  44. flex-wrap: wrap;
  45. align-items: center;
  46. &.right {
  47. text-align: right;
  48. justify-content: flex-end;
  49. }
  50. &.right a {
  51. padding-left: 4px;
  52. &:hover {
  53. color: var(--accent_light);
  54. text-decoration: unset;
  55. }
  56. }
  57. }
  58. .lp {
  59. height: 13px;
  60. display: block;
  61. fill: var(--fg_nav);
  62. &:hover {
  63. fill: var(--accent_light);
  64. }
  65. }