_subnav.scss 1.7 KB

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