2025-03-31 15:33:30 +02:00

174 lines
2.9 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
@import "refactor/common-refactor.scss";
.attributes-image-as-color-row {
max-width: $s-240;
}
.attributes-color-row {
display: grid;
grid-template-columns: $s-16 $s-72 $s-144;
gap: $s-4;
}
.bullet-wrapper {
@include flexCenter;
height: $s-32;
}
.format-wrapper {
width: $s-72;
height: $s-32;
}
.image-format {
@include uppercaseTitleTipography;
height: $s-32;
padding: $s-8 0;
color: var(--menu-foreground-color-rest);
}
.select-format-wrapper {
width: 100%;
padding: $s-8 $s-2;
background-color: transparent;
border-color: transparent;
color: var(--menu-foreground-color-rest);
}
.format-info {
@include uppercaseTitleTipography;
display: flex;
align-items: center;
width: 100%;
height: 100%;
padding-left: $s-2;
font-size: $fs-12;
color: var(--menu-foreground-color-rest);
}
.color-row-copy-btn {
max-width: $s-144;
}
.color-info {
display: flex;
align-items: flex-start;
gap: $s-4;
flex-grow: 1;
max-width: $s-144;
button {
visibility: hidden;
min-width: $s-28;
}
&:hover button {
visibility: visible;
}
}
.one-line {
max-height: $s-32;
}
.two-line {
display: grid;
grid-template-rows: auto 1fr;
gap: $s-4;
}
.color-name-wrapper {
@include bodySmallTypography;
@include flexColumn;
padding: $s-8 $s-4 $s-8 $s-8;
height: $s-32;
max-width: $s-80;
}
.opacity-info {
@include bodySmallTypography;
color: var(--menu-foreground-color);
padding: $s-8 0;
}
.first-row {
display: grid;
grid-template-columns: 1fr $s-28;
height: fit-content;
width: 100%;
padding: 0;
margin: 0;
}
.name-opacity {
height: fit-content;
width: 100%;
line-height: $s-16;
display: grid;
grid-template-columns: 1fr auto;
}
.color-value-wrapper {
@include textEllipsis;
@include inspectValue;
text-transform: uppercase;
&.gradient-name {
text-transform: none;
}
}
.opacity-info {
@include inspectValue;
text-transform: uppercase;
width: 100%;
}
.second-row {
min-height: $s-16;
padding-right: $s-8;
width: 100%;
text-align: left;
margin: 0;
padding: 0;
}
.color-name-library {
@include inspectValue;
color: var(--menu-foreground-color-rest);
word-break: break-word;
}
.image-download {
grid-column: 1 / 4;
}
.download-button {
@extend .button-secondary;
@include uppercaseTitleTipography;
height: $s-32;
width: 100%;
margin-top: $s-4;
}
.image-wrapper {
background-color: var(--menu-background-color);
position: relative;
@include flexCenter;
width: $s-240;
height: $s-160;
max-height: $s-160;
max-width: $s-248;
margin: $s-8 0;
border-radius: $br-8;
img {
height: 100%;
width: 100%;
object-fit: contain;
}
}