| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174 |
- @use '~/styles/variables' as var;
- @use '@growi/core/scss/bootstrap/init' as bs;
- @use '~/styles/mixins';
- %subnav-buttons-height {
- height: 40px;
- }
- %compact-subnav-buttons-height {
- height: 32px;
- }
- // https://github.com/css-modules/css-modules/issues/295#issuecomment-404873976
- // workaround to use '&' in global scope
- .grw-subnav {
- :global {
- min-height: var.$grw-subnav-min-height;
- padding-top: 8px;
- padding-bottom: 8px;
- @include bs.media-breakpoint-up(md) {
- min-height: var.$grw-subnav-min-height-md;
- }
- .grw-drawer-toggler {
- width: 50px;
- height: 50px;
- font-size: 24px;
- }
- h1 {
- @include mixins.variable-font-size(32px);
- line-height: 1.4em;
- }
- .grw-taglabels-container {
- margin-bottom: 0.5rem;
- }
- .grw-page-path-nav {
- .separator {
- margin-right: 0.2em;
- margin-left: 0.2em;
- }
- }
- .btn-copy {
- &:not(:hover):not(:active) {
- background-color: transparent !important;
- }
- opacity: 0.5;
- }
- .btn-edit-tags {
- opacity: 0.5;
- &.no-tags {
- opacity: 0.7;
- }
- }
- .btn-skeleton {
- @extend %subnav-buttons-height;
- width: 100%;
- }
- .btn-subscribe {
- @extend %subnav-buttons-height;
- font-size: 20px;
- }
- .btn-like,
- .btn-bookmark,
- .btn-seen-user {
- @extend %subnav-buttons-height;
- padding-right: 6px;
- padding-left: 8px;
- font-size: 20px;
- svg {
- width: 20px;
- height: 20px;
- }
- }
- .total-likes,
- .total-bookmarks {
- display: flex;
- align-items: flex-end;
- padding-right: 8px;
- padding-left: 6px;
- font-size: 14px;
- font-weight: bs.$fw-bold;
- }
- .seen-user-count {
- padding-right: 6px;
- padding-left: 6px;
- font-size: 14px;
- font-weight: bs.$fw-bold;
- vertical-align: bottom;
- }
- .btn-page-item-control {
- height: 40px;
- font-size: 16px;
- }
- .user-list-popover {
- max-width: 200px;
- .user-list-content {
- direction: rtl;
- .liker-user-count,
- .seen-user-count {
- font-size: 12px;
- font-weight: bolder;
- }
- }
- .cls-1 {
- isolation: isolate;
- }
- }
- }
- &:global {
- &:hover {
- .btn-copy,
- .btn-edit-tags {
- // change button opacity
- opacity: unset;
- }
- }
- /*
- * Compact Mode
- */
- &.grw-subnav-compact {
- min-height: 70px;
- @include bs.media-breakpoint-up(md) {
- min-height: 90px;
- }
- .btn-skeleton {
- @extend %compact-subnav-buttons-height;
- width: 100%;
- }
- .btn-like,
- .btn-bookmark,
- .btn-subscribe {
- width: 32px;
- @extend %compact-subnav-buttons-height;
- padding: 4px;
- font-size: 16px;
- }
- .btn-seen-user {
- width: 48px;
- @extend %compact-subnav-buttons-height;
- padding: 4px;
- font-size: 16px;
- svg {
- width: 16px;
- height: 16px;
- }
- }
- .btn-page-item-control {
- width: 32px;
- @extend %compact-subnav-buttons-height;
- font-size: 12px;
- }
- }
- }
- }
|