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-06-17 09:54:56 +02:00
|
|
|
#workspace {
|
|
|
|
user-select: none;
|
|
|
|
}
|
|
|
|
|
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-10-19 13:33:34 +02:00
|
|
|
width: 240px;
|
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-24 14:38:13 +01:00
|
|
|
background-color: $color-primary-lighter;
|
2020-03-19 17:30:36 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-28 09:46:38 +02:00
|
|
|
.workspace-loader {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
svg#loader-pencil {
|
|
|
|
fill: $color-gray-50;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-06-09 08:15:41 +02:00
|
|
|
width: calc(100% - #{$width-left-toolbar} - 2 * #{$width-settings-bar});
|
2019-02-23 11:13:22 +01:00
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
position: fixed;
|
2020-06-09 08:15:41 +02:00
|
|
|
right: $width-settings-bar;
|
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 {
|
2020-06-09 08:15:41 +02:00
|
|
|
width: calc(100% - #{$width-left-toolbar} - #{$width-settings-bar});
|
2019-08-11 00:10:00 +02:00
|
|
|
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 {
|
2020-06-09 08:15:41 +02:00
|
|
|
width: calc(100% - #{$width-left-toolbar} - #{$width-settings-bar});
|
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;
|
2020-05-12 13:05:14 +02:00
|
|
|
bottom: -10px;
|
2016-12-19 11:55:55 +01:00
|
|
|
padding-left: 5px;
|
|
|
|
position: fixed;
|
2020-06-09 08:15:41 +02:00
|
|
|
right: calc(#{$width-settings-bar} + 10px);
|
2016-12-19 11:55:55 +01:00
|
|
|
text-align: center;
|
2021-02-04 14:50:10 +01:00
|
|
|
width: 125px;
|
|
|
|
white-space: nowrap;
|
2019-08-12 16:50:44 +00:00
|
|
|
padding-bottom: 2px;
|
2021-02-04 14:50:10 +01:00
|
|
|
transition: bottom 0.5s;
|
|
|
|
|
|
|
|
&.color-palette-open {
|
|
|
|
bottom: 5rem;
|
|
|
|
}
|
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 {
|
2020-05-11 08:06:41 +02:00
|
|
|
height: calc(100% - 40px);
|
2020-05-07 15:15:39 +02:00
|
|
|
overflow: hidden;
|
2016-02-15 22:55:18 +02:00
|
|
|
transition: none;
|
2016-02-17 20:09:56 +02:00
|
|
|
width: 100%;
|
2020-05-07 15:15:39 +02:00
|
|
|
|
|
|
|
display: grid;
|
|
|
|
grid-template-rows: 20px 1fr;
|
|
|
|
grid-template-columns: 20px 1fr;
|
2016-02-15 22:55:18 +02:00
|
|
|
|
|
|
|
.viewport {
|
2021-01-28 13:06:47 +01:00
|
|
|
cursor: none;
|
2020-05-11 08:06:41 +02:00
|
|
|
grid-column: 1 / span 2;
|
|
|
|
grid-row: 1 / span 2;
|
|
|
|
overflow: hidden;
|
2020-05-07 15:15:39 +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; }
|
2015-12-31 19:27:21 +02:00
|
|
|
}
|
|
|
|
}
|
2015-12-28 14:31:17 +02:00
|
|
|
|
2020-05-11 08:06:41 +02:00
|
|
|
.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
|
|
|
|
2020-05-07 15:15:39 +02:00
|
|
|
.empty-rule-square {
|
|
|
|
grid-column: 1 / span 1;
|
|
|
|
grid-row: 1 / span 1;
|
|
|
|
}
|
|
|
|
|
2016-02-15 22:55:18 +02:00
|
|
|
.horizontal-rule {
|
|
|
|
transition: none;
|
|
|
|
pointer-events: none;
|
2020-05-07 15:15:39 +02:00
|
|
|
grid-column: 2 / span 1;
|
|
|
|
grid-row: 1 / span 1;
|
|
|
|
z-index: 13;
|
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;
|
2020-05-07 15:15:39 +02:00
|
|
|
grid-column: 1 / span 1;
|
|
|
|
grid-row: 2 / span 1;
|
|
|
|
z-index: 13;
|
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
|
|
|
}
|
2020-03-25 12:15:27 +01:00
|
|
|
|
|
|
|
.workspace-frame-label {
|
2020-04-14 10:15:39 +02:00
|
|
|
fill: $color-gray-40;
|
2020-03-25 12:15:27 +01:00
|
|
|
font-size: $fs12;
|
|
|
|
}
|
|
|
|
|
|
|
|
.selected .workspace-frame-label {
|
|
|
|
fill: $color-primary-dark;
|
|
|
|
}
|
|
|
|
|
2020-04-08 13:04:32 +02:00
|
|
|
.multiuser-cursor {
|
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
z-index: 10000;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
height: 15px;
|
|
|
|
fill: #f3dd14;
|
|
|
|
width: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
background-color: #f3dd14;
|
|
|
|
border-radius: $br-small;
|
|
|
|
color: $color-black;
|
|
|
|
font-size: $fs12;
|
|
|
|
margin-left: $small;
|
|
|
|
padding: $x-small;
|
|
|
|
}
|
|
|
|
}
|
2020-11-16 13:00:39 +01:00
|
|
|
|
|
|
|
.viewport-actions {
|
|
|
|
position: absolute;
|
|
|
|
margin-left: auto;
|
|
|
|
width: 100%;
|
|
|
|
margin-top: 2rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.path-actions {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
background: white;
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 0.5rem;
|
|
|
|
border: 1px solid $color-gray-20;
|
|
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.viewport-actions-group {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
border-right: 1px solid $color-gray-20;
|
|
|
|
}
|
|
|
|
|
|
|
|
.viewport-actions-entry {
|
2020-11-18 11:37:10 +01:00
|
|
|
width: 28px;
|
|
|
|
height: 28px;
|
2020-11-16 13:00:39 +01:00
|
|
|
margin: 0 0.25rem;
|
|
|
|
cursor: pointer;
|
2020-11-18 11:37:10 +01:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 3px;
|
2020-11-16 13:00:39 +01:00
|
|
|
|
|
|
|
svg {
|
2020-11-25 17:10:39 +01:00
|
|
|
pointer-events: none;
|
2020-11-18 11:37:10 +01:00
|
|
|
width: 20px;
|
2020-11-16 13:00:39 +01:00
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover svg {
|
|
|
|
fill: $color-primary;
|
|
|
|
}
|
|
|
|
|
2020-11-18 11:37:10 +01:00
|
|
|
&.is-disabled {
|
2020-11-16 13:00:39 +01:00
|
|
|
opacity: 0.3;
|
|
|
|
|
|
|
|
&:hover svg {
|
|
|
|
fill: initial;
|
|
|
|
}
|
|
|
|
}
|
2020-11-18 11:37:10 +01:00
|
|
|
|
|
|
|
&.is-toggled {
|
|
|
|
background: $color-black;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: $color-primary;
|
|
|
|
}
|
|
|
|
}
|
2020-11-16 13:00:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.viewport-actions-entry-wide {
|
|
|
|
width: 27px;
|
|
|
|
height: 20px;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
width: 27px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.path-actions > :first-child .viewport-actions-entry {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.path-actions > :last-child {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.path-actions > :last-child .viewport-actions-entry {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|