_subnav.scss 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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-like,
  35. .btn-bookmark {
  36. height: 40px;
  37. font-size: 20px;
  38. border-radius: $border-radius-xl;
  39. }
  40. .btn-bookmark {
  41. display: flex;
  42. align-items: center;
  43. }
  44. .total-likes,
  45. .total-bookmarks {
  46. font-size: 17px;
  47. font-weight: $font-weight-bold;
  48. }
  49. ul.authors {
  50. li {
  51. font-size: 12px;
  52. list-style: none;
  53. }
  54. .text-date {
  55. font-size: 11px;
  56. }
  57. .picture {
  58. width: 22px;
  59. height: 22px;
  60. border: 1px solid $gray-300;
  61. &.picture-xs {
  62. width: 14px;
  63. height: 14px;
  64. }
  65. }
  66. }
  67. /*
  68. * Compact Mode
  69. */
  70. &.grw-subnav-compact {
  71. min-height: 70px;
  72. @include media-breakpoint-up(md) {
  73. min-height: 90px;
  74. }
  75. .btn-like,
  76. .btn-bookmark {
  77. @extend .btn-sm;
  78. height: 30px;
  79. font-size: 15px !important;
  80. border-radius: $border-radius-xl;
  81. }
  82. .total-likes,
  83. .total-bookmarks {
  84. height: 12px;
  85. font-size: 12px;
  86. }
  87. }
  88. }
  89. /*
  90. * Fixed ver
  91. */
  92. $easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
  93. .grw-subnav-fixed-container {
  94. top: $grw-navbar-border-width;
  95. z-index: $zindex-sticky - 5;
  96. .grw-subnav {
  97. box-shadow: 0px 0px 6px 3px rgba(black, 0.15);
  98. }
  99. }
  100. /*
  101. * Switching show/hide
  102. */
  103. .grw-subnav-switcher {
  104. .grw-subnav-fixed-container {
  105. transition: transform 150ms $easeInOutCubic;
  106. }
  107. &.grw-subnav-switcher-hidden {
  108. .grw-subnav-fixed-container {
  109. transition: unset;
  110. transform: translateY(-100%);
  111. }
  112. }
  113. }