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>
|
|
|
|
|
2020-03-19 17:30:36 +01:00
|
|
|
.workspace-context-menu {
|
2020-03-20 10:57:10 +01:00
|
|
|
background-color: $color-white;
|
|
|
|
border-radius: $br-small;
|
|
|
|
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
|
|
|
|
left: 740px;
|
2020-03-19 17:30:36 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 40px;
|
2020-03-25 18:49:59 +01:00
|
|
|
width: 216px;
|
2020-03-19 17:30:36 +01:00
|
|
|
z-index: 12;
|
2020-03-25 18:53:11 +01:00
|
|
|
padding: $x-small 0;
|
2020-03-25 18:49:59 +01:00
|
|
|
|
2020-03-19 17:30:36 +01:00
|
|
|
li {
|
2020-03-20 10:57:10 +01:00
|
|
|
align-items: center;
|
2020-03-25 18:49:59 +01:00
|
|
|
font-size: $fs14;
|
|
|
|
padding: $x-small $medium;
|
2020-03-19 17:30:36 +01:00
|
|
|
cursor: pointer;
|
|
|
|
|
2020-03-25 18:49:59 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
|
|
|
|
&.separator {
|
|
|
|
border-top: 1px solid $color-gray-10;
|
|
|
|
padding: 0px;
|
|
|
|
margin: 2px;
|
2020-03-19 17:30:36 +01:00
|
|
|
}
|
|
|
|
|
2020-03-25 18:49:59 +01:00
|
|
|
span:first-child {
|
2020-03-20 10:57:10 +01:00
|
|
|
color: $color-gray-60;
|
2020-03-19 17:30:36 +01:00
|
|
|
}
|
|
|
|
|
2020-03-25 18:49:59 +01:00
|
|
|
span:last-child {
|
|
|
|
color: $color-gray-20;
|
|
|
|
}
|
|
|
|
|
2020-03-19 17:30:36 +01:00
|
|
|
&:hover {
|
2020-03-20 10:57:10 +01:00
|
|
|
background-color: $color-gray-lightest;
|
2020-03-19 17:30:36 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-02-15 22:55:18 +02:00
|
|
|
.workspace-content {
|
2020-03-03 13:14:37 +01:00
|
|
|
background-color: $color-canvas;
|
2016-02-15 22:55:18 +02:00
|
|
|
display: flex;
|
|
|
|
height: 100%;
|
2020-03-19 17:30:36 +01:00
|
|
|
width: calc(100% - 500px);
|
2019-02-23 11:13:22 +01:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
position: fixed;
|
2020-03-19 17:30:36 +01:00
|
|
|
right: 230px;
|
2015-06-18 19:35:50 +02:00
|
|
|
|
2016-02-18 19:03:11 +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;
|
2019-08-11 00:10:00 +02:00
|
|
|
width: calc(100% - 230px);
|
|
|
|
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;
|
2019-08-11 00:10:00 +02:00
|
|
|
width: calc(100% - 230px);
|
2019-08-12 18:04:01 +02:00
|
|
|
|
2019-08-11 00:10:00 +02:00
|
|
|
&.no-tool-bar-right {
|
|
|
|
width: 100%;
|
|
|
|
}
|
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;
|
2019-08-12 16:50:44 +00:00
|
|
|
width: 100px;
|
|
|
|
padding-bottom: 2px;
|
2016-12-19 11:55:55 +01:00
|
|
|
|
|
|
|
span {
|
|
|
|
color: $color-white;
|
|
|
|
font-size: $fs12;
|
|
|
|
padding-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-12-22 10:11:29 +01:00
|
|
|
.cursor-tooltip {
|
|
|
|
background-color: $color-dark-bg;
|
|
|
|
border-radius: $br-small;
|
|
|
|
color: $color-white;
|
2016-12-22 10:29:34 +01:00
|
|
|
font-size: $fs12;
|
2016-12-22 10:11:29 +01:00
|
|
|
padding: 3px 8px;
|
|
|
|
transition: none;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2019-08-12 18:04:01 +02:00
|
|
|
.workspace-viewport {
|
2019-12-20 10:37:47 +01:00
|
|
|
height: calc(100% - 40px);
|
2016-02-15 22:55:18 +02:00
|
|
|
overflow: scroll;
|
|
|
|
transition: none;
|
2016-02-17 20:09:56 +02:00
|
|
|
width: 100%;
|
2016-02-15 22:55:18 +02:00
|
|
|
|
|
|
|
.viewport {
|
|
|
|
&.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;
|
|
|
|
}
|
|
|
|
|
2019-08-12 18:04:01 +02:00
|
|
|
g.controls {
|
|
|
|
rect.main { pointer-events: none; }
|
2020-01-15 00:15:23 +01:00
|
|
|
circle.rotate { cursor: ns-resize; } // TODO
|
2019-08-12 18:04:01 +02:00
|
|
|
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; }
|
2015-12-31 19:27:21 +02:00
|
|
|
}
|
|
|
|
}
|
2015-12-28 14:31:17 +02:00
|
|
|
|
2016-02-15 22:55:18 +02:00
|
|
|
.viewport, .page-canvas, .page-layout {
|
2016-02-16 19:52:50 +02:00
|
|
|
overflow: visible;
|
2016-02-15 22:55:18 +02:00
|
|
|
}
|
2015-06-18 19:35:50 +02:00
|
|
|
}
|
2015-12-31 19:27:21 +02:00
|
|
|
|
2016-02-15 22:55:18 +02:00
|
|
|
/* Rules */
|
2015-12-31 19:27:21 +02:00
|
|
|
|
2016-02-15 22:55:18 +02:00
|
|
|
.horizontal-rule {
|
|
|
|
transition: none;
|
|
|
|
position: absolute;
|
|
|
|
pointer-events: none;
|
|
|
|
top: 0px;
|
2019-02-23 10:45:56 +01:00
|
|
|
|
|
|
|
rect {
|
2020-03-03 13:14:37 +01:00
|
|
|
fill: $color-canvas;
|
2019-02-23 10:45:56 +01:00
|
|
|
}
|
|
|
|
path {
|
2020-03-03 13:14:37 +01:00
|
|
|
stroke: $color-gray-20;
|
2019-02-23 10:45:56 +01:00
|
|
|
}
|
2016-02-15 22:55:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.vertical-rule {
|
|
|
|
transition: none;
|
|
|
|
pointer-events: none;
|
|
|
|
left: 0px;
|
2019-02-23 10:45:56 +01:00
|
|
|
|
|
|
|
rect {
|
2020-03-03 13:14:37 +01:00
|
|
|
fill: $color-canvas;
|
2019-02-23 10:45:56 +01:00
|
|
|
}
|
2019-02-23 14:39:27 +01:00
|
|
|
path {
|
2020-03-03 13:14:37 +01:00
|
|
|
stroke: $color-gray-20;
|
2019-02-23 14:39:27 +01:00
|
|
|
}
|
2016-02-15 22:55:18 +02:00
|
|
|
}
|
2016-02-17 20:09:56 +02:00
|
|
|
|
2016-02-17 08:56:02 +01:00
|
|
|
}
|