ds4/src/scss/components/_items.scss

85 lines
1.5 KiB
SCSS
Raw Normal View History

@use "sass:color";
2020-10-29 16:18:38 +01:00
.items-list {
2020-12-23 17:09:02 +01:00
list-style: none;
margin: 7px 0;
padding: 0;
overflow-y: auto;
2020-10-29 16:18:38 +01:00
2020-12-23 17:09:02 +01:00
.item-header {
font-weight: bold;
}
2020-10-29 16:18:38 +01:00
2020-12-23 17:09:02 +01:00
.item {
height: 30px;
line-height: 24px;
padding: 3px 0;
border-bottom: 1px solid #bbb;
2020-10-29 16:18:38 +01:00
2020-12-23 17:09:02 +01:00
.item-image {
flex: 0 0 24px;
height: 100%;
//margin-right: 5px;
@include centered-content;
2020-12-23 17:09:02 +01:00
}
2020-10-29 16:18:38 +01:00
2020-12-23 17:09:02 +01:00
img {
display: block;
2020-12-30 01:06:21 +01:00
border: none;
2020-12-23 17:09:02 +01:00
}
input {
border: 0;
padding: 0;
}
input[type="checkbox"] {
width: auto;
height: 100%;
margin: 0px;
}
2020-10-29 16:18:38 +01:00
}
2020-12-23 17:09:02 +01:00
.item-name {
margin: 0;
}
2020-10-29 16:18:38 +01:00
2020-12-23 17:09:02 +01:00
.item-controls {
flex: 0 0 86px;
text-align: right;
}
.item-num-val {
text-align: center;
width: 2.5em;
padding: 0;
}
.item-num-val:invalid {
background-color: color.mix(lightcoral, $c-light-grey, 25%);
}
.item-description {
font-size: 75%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
height: 100%;
p {
text-overflow: ellipsis;
overflow: hidden;
}
p:first-child {
margin-top: 0px;
padding-top: 0px;
}
}
2020-12-23 17:09:02 +01:00
}
.items-list-title {
margin-top: 2em;
margin-bottom: 0px;
padding-left: 1em;
border-bottom: 2px groove $c-border-groove;
font-weight: bold;
}