GrowiSubNavigation.module.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. @use '~/styles/variables' as var;
  2. @use '@growi/core/scss/bootstrap/init' as bs;
  3. @use '~/styles/mixins';
  4. %subnav-buttons-height {
  5. height: 40px;
  6. }
  7. %compact-subnav-buttons-height {
  8. height: 32px;
  9. }
  10. // https://github.com/css-modules/css-modules/issues/295#issuecomment-404873976
  11. // workaround to use '&' in global scope
  12. .grw-subnav {
  13. :global {
  14. min-height: var.$grw-subnav-min-height;
  15. padding-top: 8px;
  16. padding-bottom: 8px;
  17. @include bs.media-breakpoint-up(md) {
  18. min-height: var.$grw-subnav-min-height-md;
  19. }
  20. h1 {
  21. @include mixins.variable-font-size(32px);
  22. line-height: 1.4em;
  23. }
  24. .btn-copy {
  25. &:not(:hover):not(:active) {
  26. background-color: transparent !important;
  27. }
  28. opacity: 0.5;
  29. }
  30. .btn-subscribe {
  31. @extend %subnav-buttons-height;
  32. font-size: 20px;
  33. }
  34. .btn-like,
  35. .btn-bookmark,
  36. .btn-seen-user {
  37. @extend %subnav-buttons-height;
  38. padding-right: 6px;
  39. padding-left: 8px;
  40. font-size: 20px;
  41. svg {
  42. width: 20px;
  43. height: 20px;
  44. }
  45. }
  46. .total-likes,
  47. .total-bookmarks {
  48. display: flex;
  49. align-items: flex-end;
  50. padding-right: 8px;
  51. padding-left: 6px;
  52. font-size: 14px;
  53. font-weight: bs.$font-weight-bold;
  54. }
  55. .seen-user-count {
  56. padding-right: 6px;
  57. padding-left: 6px;
  58. font-size: 14px;
  59. font-weight: bs.$font-weight-bold;
  60. vertical-align: bottom;
  61. }
  62. .btn-page-item-control {
  63. height: 40px;
  64. font-size: 16px;
  65. }
  66. .user-list-popover {
  67. max-width: 200px;
  68. .user-list-content {
  69. direction: rtl;
  70. .liker-user-count,
  71. .seen-user-count {
  72. font-size: 12px;
  73. font-weight: bolder;
  74. }
  75. }
  76. .cls-1 {
  77. isolation: isolate;
  78. }
  79. }
  80. }
  81. &:global {
  82. &:hover {
  83. .btn-copy,
  84. .btn-edit-tags {
  85. // change button opacity
  86. opacity: unset;
  87. }
  88. }
  89. }
  90. }