mirror of
https://github.com/penpot/penpot.git
synced 2026-02-12 14:42:56 +00:00
58 lines
1.3 KiB
SCSS
58 lines
1.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
|
|
|
|
@use "ds/_borders.scss" as *;
|
|
@use "ds/spacing.scss" as *;
|
|
@use "ds/_sizes.scss" as *;
|
|
@use "ds/typography.scss" as t;
|
|
@use "ds/_utils.scss" as *;
|
|
|
|
.input-wrapper {
|
|
--input-padding-size: var(--sp-xs);
|
|
--opacity-button: 0;
|
|
@include t.use-typography("code-font");
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--sp-xs);
|
|
inline-size: 100%;
|
|
position: relative;
|
|
|
|
&:hover {
|
|
--opacity-button: 1;
|
|
}
|
|
&:focus-within {
|
|
--opacity-button: 1;
|
|
}
|
|
}
|
|
|
|
.icon {
|
|
color: var(--color-foreground-secondary);
|
|
min-inline-size: var(--sp-l);
|
|
}
|
|
|
|
.text-icon {
|
|
color: var(--color-foreground-secondary);
|
|
@include t.use-typography("code-font");
|
|
inline-size: fit-content;
|
|
min-inline-size: px2rem(40);
|
|
}
|
|
|
|
.invisible-button {
|
|
position: absolute;
|
|
inset-inline-end: 0;
|
|
inset-block-start: 0;
|
|
opacity: var(--opacity-button);
|
|
background-color: var(--color-background-quaternary);
|
|
&:hover {
|
|
background-color: var(--color-background-quaternary);
|
|
--opacity-button: 1;
|
|
}
|
|
&:focus {
|
|
background-color: var(--color-background-quaternary);
|
|
--opacity-button: 1;
|
|
}
|
|
}
|