_subnav.scss 2.0 KB

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