-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8200 from weseek/imprv/responsive-layout
imprv: Responsive layout
- Loading branch information
Showing
44 changed files
with
419 additions
and
249 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
apps/app/src/components/Admin/UserGroupDetail/UserGroupDetailPage.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@use '@growi/ui/src/styles/molecules/page_list'; | ||
@use '@growi/ui/scss/molecules/page_list'; | ||
|
18 changes: 18 additions & 0 deletions
18
apps/app/src/components/Common/DrawerToggler/DrawerToggler.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@use '@growi/core/scss/bootstrap/init' as bs; | ||
|
||
@use '@growi/ui/scss/atoms/btn-muted'; | ||
|
||
@use '~/styles/variables' as var; | ||
|
||
|
||
.grw-drawer-toggler :global { | ||
.btn { | ||
--bs-btn-color: rgba(var(--bs-tertiary-color-rgb), 0.5); | ||
--bs-btn-bg: transparent; | ||
|
||
--bs-btn-hover-color: rgba(var(--bs-tertiary-color-rgb), 0.7); | ||
|
||
width: var.$grw-sidebar-nav-width; | ||
height: var.$grw-sidebar-nav-width; | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
apps/app/src/components/Common/DrawerToggler/DrawerToggler.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { type ReactNode } from 'react'; | ||
|
||
import { useDrawerOpened } from '~/stores/ui'; | ||
|
||
|
||
import styles from './DrawerToggler.module.scss'; | ||
|
||
const moduleClass = styles['grw-drawer-toggler']; | ||
|
||
|
||
type Props = { | ||
className?: string, | ||
children?: ReactNode, | ||
} | ||
|
||
export const DrawerToggler = (props: Props): JSX.Element => { | ||
|
||
const { className, children } = props; | ||
|
||
const { data: isOpened, mutate } = useDrawerOpened(); | ||
|
||
return ( | ||
<div className={`${moduleClass} ${className ?? ''}`}> | ||
<button | ||
className="btn d-flex align-items-center border-0" | ||
type="button" | ||
aria-expanded="false" | ||
aria-label="Toggle navigation" | ||
onClick={() => mutate(!isOpened)} | ||
> | ||
{children} | ||
</button> | ||
</div> | ||
); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './DrawerToggler'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
@use '@growi/ui/src/styles/molecules/page_list'; | ||
@use '~/styles/molecules/page-accessories-control'; | ||
|
||
.grw-page-accessories-control :global { | ||
@extend %grw-page-accessories-control; | ||
} | ||
@use '@growi/ui/scss/molecules/page_list'; |
2 changes: 1 addition & 1 deletion
2
apps/app/src/components/InAppNotification/PageNotification/ModelNotification.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,37 @@ | ||
@use '@growi/core/scss/bootstrap/init' as bs; | ||
|
||
@use '~/styles/variables' as var; | ||
|
||
|
||
.page-view-layout :global { | ||
min-height: calc(100vh - 48px - 250px); // 100vh - subnavigation height - page-comments-row minimum height | ||
|
||
.grw-side-contents-container { | ||
margin-bottom: 1rem; | ||
|
||
@include bs.media-breakpoint-up(lg) { | ||
width: 250px; | ||
min-width: 250px; | ||
margin-left: 30px; | ||
} | ||
} | ||
} | ||
|
||
// md/lg layout padding | ||
.page-view-layout :global { | ||
@include bs.media-breakpoint-between(md, xl) { | ||
padding-left: var.$grw-sidebar-nav-width; | ||
} | ||
} | ||
|
||
// sticky side contents | ||
.page-view-layout :global { | ||
.grw-side-contents-sticky-container { | ||
position: sticky; | ||
|
||
$subnavigation-height: 50px; | ||
$page-view-layout-margin-top: 32px; | ||
$page-path-nav-height: 99px; | ||
top: calc($subnavigation-height + $page-view-layout-margin-top + $page-path-nav-height + 4px); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.