GrowiSubNavigation.module.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. @use '~/styles/variables' as var;
  2. @use '~/styles/bootstrap/init' as bs;
  3. @use '~/styles/mixins';
  4. %subnav-buttons-height {
  5. height: 40px;
  6. }
  7. %compact-subnav-buttons-height {
  8. height: 32px;
  9. }
  10. // https://github.com/css-modules/css-modules/issues/295#issuecomment-404873976
  11. // workaround to use '&' in global scope
  12. .grw-subnav {
  13. :global {
  14. min-height: var.$grw-subnav-min-height;
  15. padding-top: 8px;
  16. padding-bottom: 8px;
  17. @include bs.media-breakpoint-up(md) {
  18. min-height: var.$grw-subnav-min-height-md;
  19. }
  20. .grw-drawer-toggler {
  21. width: 50px;
  22. height: 50px;
  23. font-size: 24px;
  24. }
  25. h1 {
  26. @include mixins.variable-font-size(32px);
  27. line-height: 1.4em;
  28. }
  29. .grw-taglabels-container {
  30. margin-bottom: 0.5rem;
  31. }
  32. .grw-page-path-nav {
  33. .separator {
  34. margin-right: 0.2em;
  35. margin-left: 0.2em;
  36. }
  37. }
  38. .btn-skelton {
  39. @extend %subnav-buttons-height;
  40. width: 100%;
  41. }
  42. .btn-subscribe {
  43. @extend %subnav-buttons-height;
  44. font-size: 20px;
  45. }
  46. .btn-like,
  47. .btn-bookmark,
  48. .btn-seen-user {
  49. @extend %subnav-buttons-height;
  50. padding-right: 6px;
  51. padding-left: 8px;
  52. font-size: 20px;
  53. svg {
  54. width: 20px;
  55. height: 20px;
  56. }
  57. }
  58. .total-likes,
  59. .total-bookmarks {
  60. display: flex;
  61. align-items: flex-end;
  62. padding-right: 8px;
  63. padding-left: 6px;
  64. font-size: 14px;
  65. font-weight: bs.$font-weight-bold;
  66. }
  67. .seen-user-count {
  68. padding-right: 6px;
  69. padding-left: 6px;
  70. font-size: 14px;
  71. font-weight: bs.$font-weight-bold;
  72. vertical-align: bottom;
  73. }
  74. .btn-page-item-control {
  75. height: 40px;
  76. font-size: 16px;
  77. }
  78. .user-list-popover {
  79. max-width: 200px;
  80. .user-list-content {
  81. direction: rtl;
  82. .liker-user-count,
  83. .seen-user-count {
  84. font-size: 12px;
  85. font-weight: bolder;
  86. }
  87. }
  88. .cls-1 {
  89. isolation: isolate;
  90. }
  91. }
  92. }
  93. &:global {
  94. &:hover {
  95. .btn-copy,
  96. .btn-edit,
  97. .btn-edit-tags {
  98. // change button opacity
  99. opacity: unset;
  100. }
  101. }
  102. /*
  103. * Compact Mode
  104. */
  105. &.grw-subnav-compact {
  106. min-height: 70px;
  107. @include bs.media-breakpoint-up(md) {
  108. min-height: 90px;
  109. }
  110. .btn-skelton {
  111. @extend %compact-subnav-buttons-height;
  112. width: 100%;
  113. }
  114. .btn-like,
  115. .btn-bookmark,
  116. .btn-subscribe {
  117. width: 32px;
  118. @extend %compact-subnav-buttons-height;
  119. padding: 4px;
  120. font-size: 16px;
  121. }
  122. .btn-seen-user {
  123. width: 48px;
  124. @extend %compact-subnav-buttons-height;
  125. padding: 4px;
  126. font-size: 16px;
  127. svg {
  128. width: 16px;
  129. height: 16px;
  130. }
  131. }
  132. .btn-page-item-control {
  133. width: 32px;
  134. @extend %compact-subnav-buttons-height;
  135. font-size: 12px;
  136. }
  137. }
  138. }
  139. }
  140. /*
  141. * shadow
  142. */
  143. .grw-subnav-append-shadow-container {
  144. .grw-subnav {
  145. box-shadow: 0px 0px 6px 3px rgba(black, 0.15);
  146. }
  147. }