_subnav.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. .grw-subnav {
  2. min-height: $grw-subnav-min-height;
  3. padding-top: 8px;
  4. padding-bottom: 8px;
  5. @include media-breakpoint-up(md) {
  6. min-height: $grw-subnav-min-height-md;
  7. }
  8. &:hover {
  9. .btn-copy,
  10. .btn-edit,
  11. .btn-edit-tags {
  12. // change button opacity
  13. opacity: unset;
  14. }
  15. }
  16. .grw-drawer-toggler {
  17. width: 50px;
  18. height: 50px;
  19. font-size: 24px;
  20. }
  21. h1 {
  22. @include variable-font-size(32px);
  23. line-height: 1.4em;
  24. }
  25. .grw-taglabels-container {
  26. margin-bottom: 0.5rem;
  27. }
  28. .grw-page-path-nav {
  29. .separator {
  30. margin-right: 0.2em;
  31. margin-left: 0.2em;
  32. }
  33. }
  34. .btn-subscribe {
  35. height: 40px;
  36. font-size: 20px;
  37. }
  38. .btn-like,
  39. .btn-bookmark,
  40. .btn-seen-user {
  41. height: 40px;
  42. padding-right: 6px;
  43. padding-left: 8px;
  44. font-size: 20px;
  45. svg {
  46. width: 20px;
  47. height: 20px;
  48. }
  49. }
  50. .total-likes,
  51. .total-bookmarks {
  52. display: flex;
  53. align-items: end;
  54. padding-right: 8px;
  55. padding-left: 6px;
  56. font-size: 14px;
  57. font-weight: $font-weight-bold;
  58. }
  59. .seen-user-count {
  60. padding-right: 6px;
  61. padding-left: 6px;
  62. font-size: 14px;
  63. font-weight: $font-weight-bold;
  64. vertical-align: bottom;
  65. }
  66. .btn-page-item-control {
  67. height: 40px;
  68. font-size: 16px;
  69. }
  70. ul.authors {
  71. li {
  72. font-size: 12px;
  73. list-style: none;
  74. }
  75. .text-date {
  76. font-size: 11px;
  77. }
  78. .picture {
  79. width: 22px;
  80. height: 22px;
  81. border: 1px solid $gray-300;
  82. &.picture-xs {
  83. width: 14px;
  84. height: 14px;
  85. }
  86. }
  87. }
  88. /*
  89. * Compact Mode
  90. */
  91. &.grw-subnav-compact {
  92. min-height: 70px;
  93. @include media-breakpoint-up(md) {
  94. min-height: 90px;
  95. }
  96. .btn-like,
  97. .btn-bookmark,
  98. .btn-subscribe {
  99. width: 32px;
  100. height: 32px;
  101. padding: 4px;
  102. font-size: 16px;
  103. }
  104. .btn-seen-user {
  105. width: 48px;
  106. height: 32px;
  107. padding: 4px;
  108. font-size: 16px;
  109. svg {
  110. width: 16px;
  111. height: 16px;
  112. }
  113. }
  114. .btn-page-item-control {
  115. width: 32px;
  116. height: 32px;
  117. font-size: 12px;
  118. }
  119. }
  120. }
  121. /*
  122. * shadow
  123. */
  124. .grw-subnav-append-shadow-container {
  125. .grw-subnav {
  126. box-shadow: 0px 0px 6px 3px rgba(black, 0.15);
  127. }
  128. }
  129. /*
  130. * Fixed ver
  131. */
  132. $easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
  133. .grw-subnav-fixed-container {
  134. top: $grw-navbar-border-width;
  135. z-index: $zindex-sticky - 5;
  136. }
  137. /*
  138. * Switching show/hide
  139. */
  140. .grw-subnav-switcher {
  141. .grw-subnav-fixed-container {
  142. transition: transform 150ms $easeInOutCubic;
  143. }
  144. &.grw-subnav-switcher-hidden {
  145. .grw-subnav-fixed-container {
  146. transition: unset;
  147. transform: translateY(-100%);
  148. }
  149. }
  150. }
  151. .user-list-popover {
  152. max-width: 200px;
  153. .user-list-content {
  154. direction: rtl;
  155. .liker-user-count,
  156. .seen-user-count {
  157. font-size: 12px;
  158. font-weight: bolder;
  159. }
  160. }
  161. .cls-1 {
  162. isolation: isolate;
  163. }
  164. }