ds4/scss/components/actor/_actor_header.scss

59 lines
949 B
SCSS

/*
* SPDX-FileCopyrightText: 2021 Johannes Loher
*
* SPDX-License-Identifier: MIT
*/
@use "../../utils/mixins";
.ds4-actor-header {
display: flex;
flex-grow: 0;
flex-shrink: 0;
gap: 1em;
&__img {
border: none;
height: 100px;
width: 100px;
&--editable {
cursor: pointer;
}
}
&__data {
display: flex;
flex-direction: column;
}
&__data-row {
align-content: center;
display: flex;
flex: 1;
flex-direction: row;
gap: 0.5em;
> * {
flex: 1;
}
}
&__name {
display: flex;
align-items: center;
border-bottom: 0;
margin: 0;
container-type: inline-size;
}
&__name-input[type="text"] {
@include mixins.font-heading-upper;
background-color: transparent;
border: none;
flex: 1;
font-size: clamp(0.75em, 8cqi, 1.25em);
height: auto;
// Use lighter font weight for better readability
font-weight: 300;
}
}