pleroma-fe/src/components/color_input/color_input.scss

74 lines
1.2 KiB
SCSS
Raw Normal View History

2023-01-09 19:02:16 +01:00
@import "../../variables";
2020-01-12 02:44:06 +01:00
.color-input {
display: inline-flex;
&-field.input {
display: inline-flex;
flex: 0 0 0;
max-width: 9em;
align-items: stretch;
2023-01-09 19:02:16 +01:00
padding: 0.2em 8px;
2020-01-12 02:44:06 +01:00
input {
background: none;
color: $fallback--lightText;
color: var(--inputText, $fallback--lightText);
border: none;
padding: 0;
margin: 0;
&.textColor {
flex: 1 0 3em;
min-width: 3em;
padding: 0;
}
&.nativeColor {
flex: 0 0 2em;
min-width: 2em;
2022-11-01 22:21:50 +01:00
align-self: stretch;
min-height: 100%;
2020-01-12 02:44:06 +01:00
}
}
2023-01-09 19:02:16 +01:00
.computedIndicator,
2020-01-12 02:44:06 +01:00
.transparentIndicator {
flex: 0 0 2em;
min-width: 2em;
2022-11-01 22:21:50 +01:00
align-self: stretch;
min-height: 100%;
}
2023-01-09 19:02:16 +01:00
.transparentIndicator {
2020-01-12 02:44:06 +01:00
// forgot to install counter-strike source, ooops
2023-01-09 19:02:16 +01:00
background-color: #f0f;
2020-01-12 02:44:06 +01:00
position: relative;
2023-01-09 19:02:16 +01:00
&::before,
&::after {
2020-01-12 02:44:06 +01:00
display: block;
2023-01-09 19:02:16 +01:00
content: "";
background-color: #000;
2020-01-12 02:44:06 +01:00
position: absolute;
height: 50%;
width: 50%;
}
2023-01-09 19:02:16 +01:00
2020-01-12 02:44:06 +01:00
&::after {
top: 0;
left: 0;
}
2023-01-09 19:02:16 +01:00
2020-01-12 02:44:06 +01:00
&::before {
bottom: 0;
right: 0;
}
}
}
.label {
flex: 1 1 auto;
}
}