navbar.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. font-size: 16px;
  13. a,
  14. .icon-button button {
  15. color: var(--fg_nav);
  16. }
  17. }
  18. .inner-nav {
  19. margin: auto;
  20. box-sizing: border-box;
  21. padding: 0 10px;
  22. display: flex;
  23. align-items: center;
  24. flex-basis: 920px;
  25. height: 50px;
  26. }
  27. .site-name {
  28. font-size: 15px;
  29. font-weight: 600;
  30. line-height: 1;
  31. &:hover {
  32. color: var(--accent_light);
  33. text-decoration: unset;
  34. }
  35. }
  36. .site-logo {
  37. display: block;
  38. width: 35px;
  39. height: 35px;
  40. }
  41. .nav-item {
  42. display: flex;
  43. flex: 1;
  44. line-height: 50px;
  45. height: 50px;
  46. overflow: hidden;
  47. flex-wrap: wrap;
  48. align-items: center;
  49. &.right {
  50. text-align: right;
  51. justify-content: flex-end;
  52. }
  53. &.right a {
  54. padding-left: 4px;
  55. &:hover {
  56. color: var(--accent_light);
  57. text-decoration: unset;
  58. }
  59. }
  60. }
  61. .lp {
  62. height: 14px;
  63. display: inline-block;
  64. position: relative;
  65. top: 2px;
  66. fill: var(--fg_nav);
  67. &:hover {
  68. fill: var(--accent_light);
  69. }
  70. }
  71. .icon-info:before {
  72. margin: 0 -3px;
  73. }
  74. .icon-cog {
  75. font-size: 15px;
  76. }