♻️ Remove new-css-system from workspace header

This commit is contained in:
Eva 2023-12-28 14:20:42 +01:00 committed by Alonso Torres
parent c707539f6f
commit 412343f3de
15 changed files with 677 additions and 2184 deletions

View file

@ -613,13 +613,13 @@
}
}
.shortcut {
.shortcut-base {
@include flexCenter;
gap: $s-2;
color: var(--menu-shortcut-foreground-color);
}
.shortcut-key {
.shortcut-key-base {
@include titleTipography;
@include flexCenter;
height: $s-20;
@ -787,7 +787,7 @@
background-color: var(--menu-background-color);
}
.menu-item {
.menu-item-base {
@include titleTipography;
display: flex;
align-items: center;

View file

@ -57,7 +57,6 @@
@import "main/partials/viewer";
@import "main/partials/viewer-header";
@import "main/partials/viewer-thumbnails";
@import "main/partials/zoom-widget";
@import "main/partials/activity-bar";
@import "main/partials/color-palette";
@import "main/partials/text-palette";
@ -84,7 +83,6 @@
@import "main/partials/tool-bar";
@import "main/partials/user-settings";
@import "main/partials/workspace";
@import "main/partials/workspace-header";
@import "main/partials/comments";
@import "main/partials/color-bullet";
@import "main/partials/inspect";

View file

@ -1786,221 +1786,6 @@
}
}
// Export multiple
.export-progress-modal-overlay {
display: flex;
justify-content: center;
position: fixed;
right: 1rem;
top: 3rem;
padding: 16px 18px;
background-color: $color-white;
border: 1px solid $color-gray-20;
border-radius: $br3;
z-index: 1000;
&.transparent {
background-color: rgba($color-white, 0);
}
.export-progress-modal-container {
display: flex;
flex-direction: column;
justify-content: space-around;
height: 100%;
width: 100%;
.progress-bar {
margin-top: 1rem;
}
.export-progress-modal-header {
align-items: center;
display: flex;
justify-content: stretch;
margin-bottom: 7px;
.modal-close-button {
display: flex;
justify-content: center;
background-color: transparent;
border: none;
cursor: pointer;
padding: 2px 0;
svg {
height: 18px;
width: 18px;
transform: rotate(45deg);
}
}
.export-progress-modal-title {
padding: 0;
margin: 0;
color: $color-black;
flex-grow: 1;
font-size: $fs16;
}
.progress {
color: $color-gray-30;
font-size: $fs16;
margin-bottom: 0;
padding-right: 16px;
text-align: right;
}
.retry {
font-size: $fs12;
margin-right: 16px;
padding: 4px 12px;
}
}
}
}
.export-multiple-dialog {
.modal-content {
padding: 0;
}
.body {
overflow-y: auto;
margin: 0 0.5rem 0rem 0;
}
.field {
flex-grow: 0;
margin: 10px 0;
padding: 0px 4px;
overflow: hidden;
text-overflow: ellipsis;
width: 50px;
&.image {
align-items: center;
border: 1px solid $color-gray-10;
border-radius: $br3;
display: flex;
justify-content: center;
height: 32px;
margin: 0 8px;
width: 32px;
svg {
height: 20px;
width: 24px;
}
}
&.check {
cursor: pointer;
height: 18px;
padding: 0;
width: 30px;
svg {
fill: $color-white;
max-width: 18px;
max-height: 18px;
}
& .checked {
svg {
background-color: $color-primary;
}
}
& .intermediate,
.unchecked {
svg {
background-color: $color-gray-10;
}
}
}
&.title {
flex-grow: 1;
font-size: $fs12;
color: $color-black;
}
&.name {
flex-grow: 1;
font-size: $fs16;
color: $color-black;
width: 45%;
white-space: nowrap;
}
&.scale {
width: 6.25rem;
}
&.scale,
&.extension {
color: $color-gray-30;
font-size: $fs12;
}
}
.header {
align-items: center;
border-bottom: 1px solid $color-gray-10;
display: flex;
flex-wrap: wrap;
height: 32px;
justify-content: space-between;
padding: 0.5rem 2rem;
margin: 0;
width: 100%;
.field {
margin: 0;
}
}
.row {
align-items: center;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
height: 3rem;
margin: 0 0.5rem 0 2rem;
width: calc(100% - 2.5rem);
&:not(:first-child) {
border-top: 1px solid $color-gray-10;
}
}
.modal-footer {
padding: 18px;
}
.no-selection {
padding: 2rem 1rem 2rem 2rem;
img {
color: $color-primary-dark;
float: right;
margin-left: 4rem;
width: 176px;
}
a {
font-size: $fs12;
}
p {
color: $color-gray-40;
font-size: $fs16;
padding: 1rem 0 0 0;
}
}
}
.remove-graphics-dialog {
.modal-content {
padding-top: 16px;

View file

@ -1,364 +0,0 @@
// 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) KALEIDOS INC
.workspace-header {
position: relative;
align-items: center;
background-color: $color-gray-50;
border-bottom: 1px solid $color-gray-60;
display: flex;
padding: $size-1 $size-4 $size-1 55px;
justify-content: space-between;
display: grid;
grid-template-areas: "left center right";
grid-template-columns: 1fr auto 1fr;
grid-template-rows: 100%;
padding: 0;
.left-area {
grid-area: left;
display: flex;
height: 100%;
}
.center-area {
grid-area: center;
}
.right-area {
grid-area: right;
display: flex;
justify-content: flex-end;
height: 100%;
}
.main-icon {
align-items: center;
background-color: $color-gray-60;
border-bottom: 1px solid $color-gray-50;
cursor: pointer;
display: flex;
height: 100%;
justify-content: center;
width: 48px;
a {
height: 30px;
svg {
fill: $color-gray-30;
height: 30px;
width: 28px;
}
&:hover {
svg {
fill: $color-primary;
}
}
}
}
.menu-section {
margin-left: 1rem;
display: flex;
justify-content: flex-start;
align-items: center;
}
.shared-badge {
margin-left: $size-1;
height: 16px;
width: 16px;
display: flex;
align-items: center;
justify-content: center;
svg {
fill: $color-gray-20;
height: 12px;
width: 12px;
}
}
.users-section {
display: flex;
}
.options-section {
display: flex;
justify-content: flex-end;
align-items: center;
position: relative;
padding-right: 1rem;
border-right: 1px solid black;
> * {
margin-left: $size-5;
}
.zoom-dropdown {
top: 45px;
left: 98px;
}
}
.project-tree {
align-items: center;
display: flex;
margin-left: $size-1;
padding: $size-1;
svg {
fill: $color-gray-20;
height: 20px;
margin-right: $size-2;
width: 20px;
}
span {
color: $color-white;
font-size: $fs14;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
&.project-name {
color: $color-gray-20;
margin-right: $size-1;
cursor: pointer;
&:hover {
color: $color-primary;
}
}
}
.file-name {
margin: 0;
padding: 0;
border: none;
border-bottom: 1px solid $color-gray-10;
background: $color-gray-50;
color: $color-gray-10;
margin-bottom: -1px;
&:focus,
&:focus-within {
outline: none;
border-radius: $br3;
border: 1px solid $color-primary;
}
}
}
.menu {
position: absolute;
top: 40px;
left: 40px;
width: 195px;
z-index: 12;
background-color: $color-white;
border-radius: $br3;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
:first-child {
&:hover {
border-radius: $br3 $br3 0 0;
}
}
:last-child {
&:hover {
border-radius: 0 0 $br3 $br3;
}
}
li {
cursor: pointer;
font-size: $fs14;
padding: $size-2;
display: flex;
justify-content: space-between;
svg {
fill: $color-gray-60;
height: 12px;
width: 12px;
}
span {
color: $color-gray-60;
margin: 0 $size-1;
}
&:hover {
background-color: $color-primary-lighter;
}
&.info {
border-top: 1px solid $color-gray-10;
}
}
}
.sub-menu {
position: absolute;
left: 238px;
width: 270px;
z-index: 12;
background-color: $color-white;
border-radius: $br3;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
:first-child {
&:hover {
border-radius: $br3 $br3 0 0;
}
}
:last-child {
&:hover {
border-radius: 0 0 $br3 $br3;
}
}
&.file {
top: 40px;
}
&.edit {
top: 77px;
}
&.view {
top: 114px;
}
&.preferences {
top: 150px;
}
&.help-info {
top: 186px;
}
li {
cursor: pointer;
font-size: $fs14;
padding: $size-2;
display: flex;
justify-content: space-between;
span {
color: $color-gray-60;
margin: 0 $size-1;
}
.shortcut {
color: $color-gray-20;
font-size: $fs12;
}
&:hover {
background-color: $color-primary-lighter;
}
&.separator {
border-top: 1px solid $color-gray-10;
}
}
}
.active-users {
flex: 1;
justify-content: center;
display: flex;
margin: 0;
li {
margin-left: $size-2;
position: relative;
img {
border: 3px solid #f3dd14;
border-radius: 50%;
flex-shrink: 0;
height: 25px;
width: 25px;
}
}
}
& button.document-history {
background: $color-gray-60;
border-radius: $br3;
border: none;
cursor: pointer;
height: 24px;
padding: 3px;
width: 24px;
& svg {
width: 18px;
fill: $color-gray-20;
height: 18px;
}
&.selected svg {
fill: $color-primary;
}
}
}
.export-progress-widget {
cursor: pointer;
padding-top: 6px;
}
.persistence-status-widget {
display: flex;
margin-left: 0px;
margin-right: 10px;
width: 150px;
justify-content: flex-end;
> div {
display: flex;
&.error {
.label {
color: $color-danger;
}
.icon svg {
fill: $color-danger;
}
}
&.pending {
.label {
color: $color-warning;
}
.icon svg {
fill: $color-warning;
}
}
}
.icon {
padding: 0px 10px;
}
.label {
color: $color-gray-30;
font-size: $fs14;
}
svg {
width: 12px;
height: 12px;
fill: $color-gray-30;
}
}

View file

@ -57,10 +57,6 @@ $height-palette-max: 80px;
}
}
.workspace-loader {
grid-area: viewport;
}
.workspace-content {
grid-area: viewport;
}
@ -156,15 +152,15 @@ $height-palette-max: 80px;
}
}
.workspace-loader {
display: flex;
justify-content: center;
align-items: center;
// .workspace-loader {
// display: flex;
// justify-content: center;
// align-items: center;
svg {
fill: $color-gray-50;
}
}
// svg {
// fill: $color-gray-50;
// }
// }
.workspace-content {
background-color: $color-canvas;

View file

@ -1,94 +0,0 @@
.zoom-widget {
cursor: pointer;
display: flex;
position: relative;
span {
color: $color-gray-10;
font-size: $fs14;
margin-left: $size-1;
}
.icon svg {
fill: $color-gray-10;
height: 10px;
width: 10px;
}
.dropdown {
position: absolute;
right: 0;
top: 25px;
width: 210px;
z-index: 12;
background-color: $color-white;
border-radius: $br3;
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
li {
color: $color-gray-60;
cursor: pointer;
font-size: $fs14;
display: flex;
padding: $size-2;
&.separator {
border-top: 1px solid $color-gray-10;
padding: 0px;
margin: 2px;
height: 0;
}
&.basic-zoom-bar {
cursor: auto;
display: flex;
justify-content: space-between;
&:hover {
background-color: $color-white;
}
}
span {
color: $color-gray-20;
font-size: $fs14;
margin-left: auto;
&.zoom-btns {
display: flex;
margin-left: 2px;
color: $color-gray-60;
p {
margin-bottom: 0;
font-size: $fs14;
padding: 0 3px;
}
}
}
&:hover {
background-color: $color-primary-lighter;
}
button {
cursor: pointer;
background-color: $color-white;
border: none;
&:hover {
color: $color-primary-darker;
}
}
.reset-btn {
color: $color-primary-dark;
}
.zoom-size {
min-width: 40px;
display: flex;
align-items: center;
justify-content: flex-end;
}
}
}
}