| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- @use '@growi/core-styles/scss/bootstrap/init' as bs;
- @use '@growi/core-styles/scss/variables/growi-official-colors';
- @use '~/styles/variables' as var;
- @use '../button-styles';
- // GROWI Logo
- .grw-app-title :global {
- .grw-logo {
- $width: var.$grw-sidebar-nav-width;
- $height: var.$grw-sidebar-nav-width; // declare $height with the same value as the sidebar nav width
- $logomark-width: 27.7px;
- $logomark-height: 24px;
- width: $width;
- svg {
- width: $width;
- height: $height;
- padding: (($height - $logomark-height) / 2) (($width - $logomark-width) / 2);
- }
- }
- .confidential-tooltip {
- max-width: 180px;
- }
- }
- // == Location
- .on-subnavigation {
- top: 0;
- @include bs.media-breakpoint-up(md) {
- left: var.$grw-sidebar-nav-width;
- }
- }
- // == App title truncation
- .on-subnavigation {
- // set width for truncation
- $grw-page-controls-width: 280px;
- $grw-page-editor-mode-manager-width: 90px;
- $grw-contextual-subnavigation-padding-right: 12px;
- $gap: 8px;
- @include bs.media-breakpoint-up(sm) {
- width: calc(100vw - #{$grw-page-controls-width + $grw-page-editor-mode-manager-width + $grw-contextual-subnavigation-padding-right + $gap * 2});
- }
- @include bs.media-breakpoint-up(md) {
- $grw-page-editor-mode-manager-width: 140px;
- $gap: 24px;
- $grw-contextual-subnavigation-padding-right: 24px;
- width: calc(100vw - #{var.$grw-sidebar-nav-width + $grw-page-controls-width + $grw-page-editor-mode-manager-width + $grw-contextual-subnavigation-padding-right + $gap * 2});
- }
- }
- .on-sidebar-head {
- $toggle-collapse-button-width: 50px;
- // set width for truncation
- width: calc(100% - $toggle-collapse-button-width);
- }
- // == Interaction
- @keyframes bounce-to-right {
- 10% { transform:translateX(3px); }
- 20% { transform:translateX(0%); }
- 25% { transform:translateX(2px); }
- 27% { transform:translateX(0%); }
- }
- .on-subnavigation {
- animation: bounce-to-right 1s ease;
- }
- @keyframes bounce-to-left {
- 0% { transform:translateX(48px); }
- 100% { transform:translateX(0%); }
- }
- .on-sidebar-head {
- animation: bounce-to-left 0.2s ease;
- }
- // == Colors
- .grw-app-title :global {
- .grw-site-name {
- --bs-link-color-rgb: var(--grw-app-title-color-rgb, var(--bs-tertiary-color-rgb));
- --bs-link-opacity: 0.5;
- }
- }
|