_subnav.scss 2.0 KB

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