0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-03 04:49:03 -05:00
penpot/frontend/resources/styles/main/partials/viewer.scss

215 lines
3.5 KiB
SCSS
Raw Normal View History

2020-04-02 17:08:24 +02:00
.viewer-content {
background-color: black;
display: grid;
grid-template-rows: 232px auto;
grid-template-columns: 1fr;
}
.fullscreen.viewer-layout {
.viewer-section {
& .viewer-go-prev,
& .viewer-go-next {
.arrow {
display: none;
}
}
}
}
.fullscreen.viewer-layout.force-visible {
.viewer-section {
& .viewer-go-prev,
& .viewer-go-next {
.arrow {
display: flex;
}
}
}
}
2020-04-02 17:08:24 +02:00
.viewer-loader {
svg#loader-pencil {
fill: $color-gray-50;
}
}
2021-11-02 15:19:11 +01:00
.viewer-section {
2021-11-02 11:08:44 +01:00
height: calc(100vh - 48px);
2020-04-02 17:08:24 +02:00
grid-row: 1 / span 2;
grid-column: 1 / span 1;
display: flex;
align-items: center;
flex-flow: wrap;
2021-10-29 10:43:53 +02:00
overflow: auto;
&.fullscreen {
height: 100vh;
margin-top: 0px;
}
2022-06-08 12:12:23 +02:00
& .viewer-go-prev,
& .viewer-go-next {
position: absolute;
height: 100%;
display: flex;
align-items: center;
2022-06-21 11:10:05 +02:00
width: 53px;
z-index: 2;
2022-06-08 12:12:23 +02:00
.arrow {
display: flex;
2022-06-08 12:12:23 +02:00
align-items: center;
justify-content: center;
border-radius: $br12;
2022-06-08 12:12:23 +02:00
background: $color-gray-50;
width: 24px;
height: 24px;
cursor: pointer;
fill: $color-gray-30;
svg {
width: 12px;
height: 12px;
}
&:hover {
background: $color-primary;
fill: $color-black;
}
}
}
& .viewer-go-next {
2022-08-25 09:11:00 +02:00
right: 8px;
width: 46px;
2022-06-08 12:12:23 +02:00
svg {
margin-left: 2px;
}
}
& .viewer-go-next.right-bar {
right: 0;
2022-06-08 12:12:23 +02:00
}
& .viewer-go-prev {
left: 0;
padding-left: 29px;
svg {
margin-right: 2px;
}
}
& .viewer-go-prev.left-bar {
left: 0;
2022-06-08 12:12:23 +02:00
}
& .viewer-bottom {
position: absolute;
2022-08-25 09:11:00 +02:00
bottom: 8px;
height: 30px;
2022-06-08 12:12:23 +02:00
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
2022-08-25 09:11:00 +02:00
z-index: 2;
2022-06-08 12:12:23 +02:00
&.left-bar {
width: 100%;
2022-06-08 12:12:23 +02:00
}
.reset {
display: flex;
align-items: center;
border-radius: $br12;
2022-06-08 12:12:23 +02:00
background: $color-gray-50;
width: 24px;
height: 24px;
cursor: pointer;
fill: $color-gray-30;
margin-left: 29px;
svg {
margin-left: 4px;
width: 15px;
height: 15px;
}
&:hover {
background: $color-primary;
fill: $color-black;
}
}
.counter {
display: flex;
align-items: center;
justify-content: center;
border-radius: $br12;
2022-06-08 12:12:23 +02:00
background: $color-gray-50;
width: 67px;
height: 25px;
fill: $color-gray-20;
}
}
2021-10-29 10:43:53 +02:00
& .viewer-wrapper {
2022-08-25 09:11:00 +02:00
margin-left: auto;
margin-right: auto;
2022-01-10 14:40:12 +01:00
position: relative;
}
& .viewer-clipper {
2021-10-29 10:43:53 +02:00
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 1fr;
justify-items: center;
align-items: center;
2022-01-10 14:40:12 +01:00
overflow: hidden;
2021-10-29 10:43:53 +02:00
svg {
transform-origin: center;
}
}
2022-06-08 12:12:23 +02:00
& .viewer-wrapper-out {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}
& .comments-right-sidebar {
position: absolute;
right: 0;
top: 50px;
width: 256px;
height: calc(100vh - 48px);
2023-07-03 13:06:31 +02:00
z-index: 9;
2022-06-08 12:12:23 +02:00
}
.empty-state {
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
}
2020-04-02 17:08:24 +02:00
}
2021-10-29 10:43:53 +02:00
.viewport-container {
clip-path: inset(0 0 0 0);
2021-10-29 10:43:53 +02:00
grid-column: 1 / 1;
grid-row: 1 / 1;
.not-fixed {
position: absolute;
}
.fixed {
position: fixed;
pointer-events: none;
.frame-children g {
pointer-events: auto;
}
}
2021-10-29 10:43:53 +02:00
}