_subnav.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. $easeInOutCubic: cubic-bezier(0.65, 0, 0.35, 1);
  2. %transitionForCompactMode {
  3. // set transition-duration (normal -> compact)
  4. transition: all 300ms $easeInOutCubic;
  5. }
  6. /*
  7. * layout for sticky
  8. */
  9. header.grw-header {
  10. top: $grw-navbar-height;
  11. // Adjust to be on top of the growi subnavigation
  12. z-index: $zindex-sticky;
  13. height: 80px;
  14. pointer-events: none; // disable pointer events for sticky
  15. .grw-subnav {
  16. overflow: unset;
  17. pointer-events: all; // enable pointer events
  18. }
  19. }
  20. /*
  21. * Compact Mode Switching
  22. */
  23. .grw-subnavbar {
  24. &.grw-subnavbar-compact {
  25. @extend %transitionForCompactMode;
  26. h1 {
  27. @include variable-font-size(18px);
  28. @extend %transitionForCompactMode;
  29. }
  30. }
  31. }
  32. /*
  33. * Sticky Mode Switching
  34. */
  35. .grw-subnavbar {
  36. &.grw-subnavbar-sticky {
  37. // set transition-duration (init -> sticky)
  38. transition: all 400ms linear !important;
  39. }
  40. }
  41. /*
  42. * Styles
  43. */
  44. .grw-header {
  45. .title {
  46. padding: 0.5rem 15px;
  47. line-height: 1em;
  48. @include variable-font-size(28px);
  49. line-height: 1.1em;
  50. }
  51. }
  52. .grw-subnavbar {
  53. &:hover {
  54. .btn-copy,
  55. .btn-edit,
  56. .btn-edit-tags {
  57. // change button opacity
  58. opacity: unset;
  59. }
  60. }
  61. h1 {
  62. @include variable-font-size(28px);
  63. line-height: 1.1em;
  64. }
  65. .separator {
  66. margin-right: 0.2em;
  67. margin-left: 0.2em;
  68. }
  69. ul.authors {
  70. padding-left: 1.5em;
  71. margin: 0;
  72. li {
  73. font-size: 12px;
  74. list-style: none;
  75. }
  76. .picture {
  77. width: 22px;
  78. height: 22px;
  79. border: 1px solid #ccc;
  80. &.picture-xs {
  81. width: 14px;
  82. height: 14px;
  83. }
  84. }
  85. }
  86. }