0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-27 00:49:28 -05:00
penpot/frontend/resources/styles/main/partials/workspace-canvas.scss

104 lines
2 KiB
SCSS
Raw Normal View History

2016-03-01 20:39:13 +02:00
// 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 {
2016-02-17 08:56:02 +01:00
background-color: $canvas-bg;
display: flex;
height: 100%;
2015-06-18 19:35:50 +02:00
width: 100%;
2016-02-17 20:09:56 +02:00
padding: 0 230px 0 230px;
2016-02-12 18:50:51 +02:00
position: relative;
2015-06-18 19:35:50 +02:00
&.scrolling {
cursor: grab;
}
2016-02-12 16:26:11 +01:00
&.no-tool-bar-right {
2016-02-17 20:09:56 +02:00
padding-right: 0;
2016-12-19 11:55:55 +01:00
.coordinates {
right: 10px;
}
2015-06-18 19:35:50 +02:00
}
2016-02-12 16:26:11 +01:00
&.no-tool-bar-left {
2016-02-17 20:09:56 +02:00
padding-left: 0;
2016-02-12 16:26:11 +01:00
}
2016-12-19 11:55:55 +01:00
.coordinates {
background-color: $color-dark-bg;
border-radius: $br-small;
bottom: 0px;
padding-left: 5px;
position: fixed;
right: 240px;
text-align: center;
width: 80px;
span {
color: $color-white;
font-size: $fs12;
padding-right: 5px;
}
}
.workspace-canvas {
2016-02-17 20:09:56 +02:00
height: calc(100vh - 50px);
overflow: scroll;
transition: none;
2016-02-17 20:09:56 +02:00
width: 100%;
.viewport {
2016-02-16 19:52:50 +02:00
&.drawing {
cursor: cell;
2016-01-02 14:36:09 +02:00
}
2016-02-16 19:52:50 +02:00
rect.selection-rect {
fill: rgba(235, 215, 92, 0.1);
stroke: #000000;
stroke-width: 0.1px;
}
svg {
g.controls {
rect.main { pointer-events: none; }
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; }
}
2016-01-02 14:36:09 +02:00
}
}
2015-12-28 14:31:17 +02:00
.viewport, .page-canvas, .page-layout {
2016-02-16 19:52:50 +02:00
overflow: visible;
}
2015-06-18 19:35:50 +02:00
}
/* Rules */
.horizontal-rule {
transition: none;
position: absolute;
pointer-events: none;
top: 0px;
}
.vertical-rule {
transition: none;
pointer-events: none;
left: 0px;
}
2016-02-17 20:09:56 +02:00
2016-02-17 08:56:02 +01:00
}