logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git

desktop_nav.scss (2305B)


  1. .DesktopNav {
  2. width: 100%;
  3. z-index: var(--ZI_navbar);
  4. input {
  5. color: var(--inputTopbarText, var(--inputText));
  6. }
  7. a {
  8. color: var(--link);
  9. }
  10. .inner-nav {
  11. display: grid;
  12. grid-template-rows: var(--navbar-height);
  13. grid-template-columns: 2fr auto 2fr;
  14. grid-template-areas: "sitename logo actions";
  15. box-sizing: border-box;
  16. padding: 0 1.2em;
  17. margin: auto;
  18. max-width: 980px;
  19. }
  20. &.-column-stretch .inner-nav {
  21. --miniColumn: 25rem;
  22. --maxiColumn: 45rem;
  23. --columnGap: 1em;
  24. max-width:
  25. calc(
  26. var(--sidebarColumnWidth, var(--miniColumn)) +
  27. var(--contentColumnWidth, var(--maxiColumn)) +
  28. var(--columnGap)
  29. );
  30. }
  31. &.-logoLeft .inner-nav {
  32. grid-template-columns: auto 2fr 2fr;
  33. grid-template-areas: "logo sitename actions";
  34. }
  35. &.-column-stretch.-wide .inner-nav {
  36. max-width:
  37. calc(
  38. var(--sidebarColumnWidth, var(--miniColumn)) +
  39. var(--contentColumnWidth, var(--maxiColumn)) +
  40. var(--notifsColumnWidth, var(--miniColumn)) +
  41. var(--columnGap)
  42. );
  43. }
  44. .button-default {
  45. &,
  46. svg {
  47. color: var(--text);
  48. }
  49. }
  50. .logo {
  51. grid-area: logo;
  52. position: relative;
  53. transition: opacity;
  54. transition-timing-function: ease-out;
  55. transition-duration: 100ms;
  56. @media all and (min-width: 800px) {
  57. /* stylelint-disable-next-line declaration-no-important */
  58. opacity: 1 !important;
  59. }
  60. .mask {
  61. mask-repeat: no-repeat;
  62. mask-position: center;
  63. mask-size: contain;
  64. background-color: var(--text);
  65. position: absolute;
  66. top: 0;
  67. bottom: 0;
  68. left: 0;
  69. right: 0;
  70. }
  71. img {
  72. display: inline-block;
  73. height: var(--navbar-height);
  74. }
  75. }
  76. .nav-icon {
  77. margin-left: 0.2em;
  78. width: 2em;
  79. height: 100%;
  80. text-align: center;
  81. .svg-inline--fa {
  82. color: var(--link);
  83. }
  84. }
  85. .sitename {
  86. grid-area: sitename;
  87. }
  88. .actions {
  89. grid-area: actions;
  90. }
  91. .item {
  92. flex: 1;
  93. line-height: var(--navbar-height);
  94. height: var(--navbar-height);
  95. overflow: hidden;
  96. display: flex;
  97. flex-wrap: wrap;
  98. &.right {
  99. justify-content: flex-end;
  100. text-align: right;
  101. }
  102. }
  103. .spacer {
  104. width: 1em;
  105. }
  106. }