logo

pleroma-fe

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

desktop_nav.scss (2215B)


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