0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-05 05:49:07 -05:00
penpot/frontend/resources/styles/main/layouts/handoff.scss

144 lines
2.4 KiB
SCSS
Raw Normal View History

2022-01-26 15:16:21 +01:00
$width-left-toolbar: 48px;
$width-settings-bar: 256px;
2020-10-30 14:02:35 +01:00
.handoff-layout {
height: 100vh;
display: grid;
grid-template-rows: 48px auto;
grid-template-columns: 1fr;
user-select: none;
.viewer-header {
grid-column: 1 / span 1;
grid-row: 1 / span 1;
}
.viewer-content {
grid-column: 1 / span 1;
grid-row: 2 / span 1;
}
}
.fullscreen.handoff-layout.force-visible {
display: grid;
grid-template-rows: 1fr;
& .viewer-header {
position: fixed;
top: 0;
transition: top 400ms ease 300ms;
margin-bottom: 0;
z-index: 2;
}
& .viewer-bottom {
position: fixed;
bottom: 0;
transition: bottom 400ms ease 300ms;
z-index: 2;
}
}
.fullscreen.handoff-layout:not(.force-visible) {
& .viewer-header {
width: 100%;
position: fixed;
top: -48px;
left: 0;
transition: top 400ms ease 300ms;
z-index: 2;
margin-bottom: 48px;
&::after {
content: " ";
position: absolute;
width: 100%;
height: 1rem;
left: 0;
top: 48px;
}
}
& .viewer-header:hover {
top: 0;
transition: top 200ms;
}
& .viewer-bottom {
width: 100%;
position: fixed;
bottom: -48px;
left: 0;
transition: bottom 400ms ease 300ms;
z-index: 2;
&::after {
content: " ";
position: absolute;
width: 100%;
height: 1rem;
left: 0;
bottom: 0px;
}
}
& .viewer-bottom:hover {
bottom: 0px;
transition: bottom 200ms;
}
& .viewer-content {
grid-row: 1 / span 2;
}
}
2020-10-30 14:02:35 +01:00
.handoff-layout {
2021-11-02 15:19:11 +01:00
.viewer-section {
2020-10-30 14:02:35 +01:00
flex-wrap: nowrap;
margin-top: 0;
2022-01-26 08:54:50 +01:00
&.fullscreen {
.settings-bar,
.settings-bar {
2022-01-26 08:54:50 +01:00
padding-top: 48px;
}
}
2020-10-30 14:02:35 +01:00
}
2022-01-26 08:54:50 +01:00
2020-10-30 14:02:35 +01:00
.settings-bar {
transition: width 0.2s;
2022-02-07 16:34:31 +01:00
width: $width-settings-bar;
2020-10-30 14:02:35 +01:00
&.expanded {
width: $width-settings-bar * 3;
}
&.settings-bar-right,
&.settings-bar-left {
2022-02-07 16:34:31 +01:00
height: 100%;
2020-10-30 14:02:35 +01:00
position: relative;
left: unset;
right: unset;
.settings-bar-inside {
padding-top: 0.5rem;
2022-02-07 16:34:31 +01:00
overflow-y: auto;
2020-10-30 14:02:35 +01:00
}
}
}
.handoff-svg-wrapper {
flex: 1;
overflow: hidden;
flex-direction: column;
justify-content: flex-start;
}
.handoff-svg-container {
display: grid;
width: 100%;
height: 100%;
2020-10-30 14:02:35 +01:00
overflow: auto;
align-items: center;
justify-content: safe center;
margin: 0 auto;
}
}