_subnav.scss 2.0 KB

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