converter/src/app/text-input-field/text-input-field.component....

80 lines
1.4 KiB
SCSS
Raw Normal View History

div {
2024-01-28 02:40:04 +01:00
border: 1px solid #888;
2024-01-28 02:15:39 +01:00
display: block;
margin: 0 0 1em 0;
padding: 0 1em 0 0;
&.collapsed {
margin-bottom: 0;
}
}
.arrow_box {
position: relative;
2024-01-28 02:40:04 +01:00
transition: border ease-in-out 200ms;
2024-01-28 02:05:01 +01:00
2024-01-28 02:40:04 +01:00
&:after, &:before {
border: solid transparent;
content: " ";
height: 0;
2024-01-28 02:15:39 +01:00
left: 50%;
pointer-events: none;
position: absolute;
top: 100%;
2024-01-28 02:40:04 +01:00
transition: background-color ease-in-out 200ms, border ease-in-out 200ms;
2024-01-28 02:15:39 +01:00
width: 0;
}
2024-01-28 02:05:01 +01:00
2024-01-28 02:40:04 +01:00
&:after {
border-top-color: #222;
border-width: 1em;
margin-left: -1em;
}
&:before {
border-top-color: #888;
border-width: calc(1em + 1px);
margin-left: calc(-1em - 1px);
}
&:has(>textarea:focus, >textarea:hover) {
&:after {
border-top-color: #333;
}
&:before {
border-top-color: #bbb;
}
}
&:hover {
border-color: #bbb;
}
}
2024-01-28 02:05:01 +01:00
textarea {
2024-01-28 02:40:04 +01:00
background-color: #222;
border: none;
2024-01-28 02:40:04 +01:00
color: #ddd;
2024-01-28 02:05:01 +01:00
font-family: "Liberation Mono", monospace;
height: 10em;
margin: 0;
padding: 0.5em;
resize: vertical;
2024-01-28 02:40:04 +01:00
transition: background-color ease-in-out 200ms, border-color ease-in-out 200ms, color ease-in-out 200ms;
width: 100%;
2024-01-28 02:05:01 +01:00
.collapsed & {
height: 1.5em;
padding: 0;
color: #888;
text-align: center;
transition: all ease-in-out 200ms;
}
2024-01-28 02:05:01 +01:00
&:focus, &:hover {
2024-01-28 02:40:04 +01:00
background-color: #333;
border-color: #bbb;
color: #fff;
}
}