mirror of
https://github.com/penpot/penpot.git
synced 2025-01-24 15:39:50 -05:00
138 lines
2.7 KiB
SCSS
138 lines
2.7 KiB
SCSS
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
//
|
|
// Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>
|
|
// Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
|
|
|
|
.workspace-content {
|
|
background-color: $color-canvas;
|
|
display: flex;
|
|
height: 100%;
|
|
/* width: 100%; */
|
|
/* padding: 0 230px 0 230px; */
|
|
/* position: relative; */
|
|
width: calc(100% - 460px);
|
|
padding: 0;
|
|
margin: 0;
|
|
position: fixed;
|
|
right: 190px;
|
|
|
|
&.scrolling {
|
|
cursor: grab;
|
|
}
|
|
|
|
&.no-tool-bar-right {
|
|
padding-right: 0;
|
|
width: calc(100% - 230px);
|
|
right: 0;
|
|
|
|
.coordinates {
|
|
right: 10px;
|
|
}
|
|
}
|
|
|
|
&.no-tool-bar-left {
|
|
padding-left: 0;
|
|
width: calc(100% - 230px);
|
|
|
|
&.no-tool-bar-right {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.coordinates {
|
|
background-color: $color-dark-bg;
|
|
border-radius: $br-small;
|
|
bottom: 0px;
|
|
padding-left: 5px;
|
|
position: fixed;
|
|
right: 240px;
|
|
text-align: center;
|
|
width: 100px;
|
|
padding-bottom: 2px;
|
|
|
|
span {
|
|
color: $color-white;
|
|
font-size: $fs12;
|
|
padding-right: 5px;
|
|
}
|
|
}
|
|
|
|
.cursor-tooltip {
|
|
background-color: $color-dark-bg;
|
|
border-radius: $br-small;
|
|
color: $color-white;
|
|
font-size: $fs12;
|
|
padding: 3px 8px;
|
|
transition: none;
|
|
text-align: center;
|
|
}
|
|
|
|
.workspace-viewport {
|
|
height: calc(100% - 40px);
|
|
overflow: scroll;
|
|
transition: none;
|
|
width: 100%;
|
|
|
|
.viewport {
|
|
|
|
&.drawing {
|
|
cursor: cell;
|
|
}
|
|
|
|
rect.selection-rect {
|
|
fill: rgba(235, 215, 92, 0.1);
|
|
stroke: #000000;
|
|
stroke-width: 0.1px;
|
|
}
|
|
|
|
g.controls {
|
|
rect.main { pointer-events: none; }
|
|
circle.rotate { cursor: ns-resize; } // TODO
|
|
circle.top-left { cursor: nwse-resize; }
|
|
circle.bottom-right { cursor: nwse-resize; }
|
|
circle.top-right { cursor: nesw-resize; }
|
|
circle.bottom-left { cursor: nesw-resize; }
|
|
circle.top { cursor: ns-resize; }
|
|
circle.bottom { cursor: ns-resize; }
|
|
circle.left { cursor: ew-resize; }
|
|
circle.right { cursor: ew-resize; }
|
|
}
|
|
}
|
|
|
|
.viewport, .page-canvas, .page-layout {
|
|
overflow: visible;
|
|
}
|
|
}
|
|
|
|
/* Rules */
|
|
|
|
.horizontal-rule {
|
|
transition: none;
|
|
position: absolute;
|
|
pointer-events: none;
|
|
top: 0px;
|
|
|
|
rect {
|
|
fill: $color-canvas;
|
|
}
|
|
path {
|
|
stroke: $color-gray-20;
|
|
}
|
|
}
|
|
|
|
.vertical-rule {
|
|
transition: none;
|
|
pointer-events: none;
|
|
left: 0px;
|
|
|
|
rect {
|
|
fill: $color-canvas;
|
|
}
|
|
path {
|
|
stroke: $color-gray-20;
|
|
}
|
|
}
|
|
|
|
}
|