penpot/frontend/src/app/main/ui/viewer/comments.scss

132 lines
2.3 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) KALEIDOS INC Sucursal en España SL
@use "refactor/common-refactor.scss" as deprecated;
// COMMENT DROPDOWN ON HEADER
.view-options {
@include deprecated.body-small-typography;
display: flex;
align-items: center;
position: relative;
gap: deprecated.$s-4;
height: deprecated.$s-32;
padding: deprecated.$s-8;
border-radius: deprecated.$br-8;
background-color: var(--input-background-color);
cursor: pointer;
}
.dropdown {
@extend %menu-dropdown;
right: deprecated.$s-2;
top: calc(deprecated.$s-2 + deprecated.$s-48);
width: deprecated.$s-272;
padding: deprecated.$s-6;
}
.dropdown-title {
@include deprecated.body-small-typography;
flex-grow: 1;
color: var(--input-foreground-color-active);
}
.label {
flex-grow: 1;
color: var(--input-foreground-color);
}
.icon,
.icon-dropdown {
@include deprecated.flex-center;
height: 100%;
width: deprecated.$s-16;
svg {
@extend %button-icon-small;
stroke: var(--icon-foreground);
}
}
.icon-dropdown svg {
transform: rotate(90deg);
}
.dropdown-element {
@extend %dropdown-element-base;
.icon {
@include deprecated.flex-center;
height: 100%;
width: deprecated.$s-16;
svg {
@extend %button-icon-small;
stroke: var(--icon-foreground);
}
}
&:hover .label {
color: var(--input-foreground-color-active);
}
}
.dropdown-element.selected {
.label {
color: var(--input-foreground-color-active);
}
.icon svg {
stroke: var(--input-foreground-color);
}
}
.separator {
height: deprecated.$s-8;
}
// FLOATING COMMENT
.viewer-comments-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: deprecated.$z-index-1;
}
.threads {
position: absolute;
top: 0;
left: 0;
}
// COMMENT SIDEBAR
.comments-sidebar {
position: absolute;
right: 0;
top: deprecated.$s-44;
width: var(--right-sidebar-width);
height: calc(100vh - deprecated.$s-48);
z-index: deprecated.$z-index-10;
background-color: var(--panel-background-color);
}
.settings-bar-inside {
overflow-y: auto;
}
.comments-section {
background-color: var(--panel-background-color);
}