_subnav.scss 2.0 KB

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