2019-04-03 01:19:46 +08:00
|
|
|
.flex-row {
|
2020-03-09 05:11:46 +08:00
|
|
|
&:not([hidden]) { display: flex; }
|
2019-04-03 01:19:46 +08:00
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.flex-column {
|
2020-03-09 05:11:46 +08:00
|
|
|
&:not([hidden]) { display: flex; }
|
2019-04-03 01:19:46 +08:00
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2020-03-10 22:25:43 +08:00
|
|
|
.ellipsis {
|
2019-04-03 01:19:46 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
2020-03-09 21:26:39 +08:00
|
|
|
.selectable {
|
2020-03-10 21:08:18 +08:00
|
|
|
cursor: pointer;
|
2020-03-13 23:52:24 +08:00
|
|
|
position: relative; // kotva pro selected::before
|
2020-03-09 21:26:39 +08:00
|
|
|
|
|
|
|
&.selected {
|
2020-03-13 23:52:24 +08:00
|
|
|
xbackground-color: var(--primary-tint); // FIXME jak zvyraznovat?
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: var(--border-width);
|
|
|
|
background-color: var(--primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: 0;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
right: 0;
|
|
|
|
background-color: var(--primary-tint);
|
|
|
|
}
|
2020-03-09 21:26:39 +08:00
|
|
|
}
|
|
|
|
}
|
2020-03-10 17:07:30 +08:00
|
|
|
|
|
|
|
.item {
|
|
|
|
.flex-row;
|
|
|
|
.selectable;
|
2020-03-11 05:11:36 +08:00
|
|
|
|
2020-03-10 22:25:43 +08:00
|
|
|
padding: 8px;
|
2020-03-10 17:07:30 +08:00
|
|
|
|
2020-03-13 23:52:24 +08:00
|
|
|
&:nth-child(odd) {
|
2020-03-10 17:07:30 +08:00
|
|
|
background-color: var(--bg-alt);
|
|
|
|
}
|
2020-03-10 22:25:43 +08:00
|
|
|
|
2020-03-11 17:55:18 +08:00
|
|
|
> .icon {
|
|
|
|
margin-right: var(--icon-spacing);
|
|
|
|
filter: drop-shadow(var(--text-shadow));
|
|
|
|
}
|
2020-03-11 05:11:36 +08:00
|
|
|
|
|
|
|
.title {
|
2020-03-13 17:54:50 +08:00
|
|
|
font-weight: bold;
|
|
|
|
// FIXME take line-height, at vychazi celociselne
|
2020-03-11 05:11:36 +08:00
|
|
|
font-size: var(--font-size-large);
|
2020-03-11 21:21:04 +08:00
|
|
|
min-width: 0;
|
|
|
|
.ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
&:first-of-type { margin-left: auto; }
|
|
|
|
.icon { width: 32px; }
|
2020-03-11 05:11:36 +08:00
|
|
|
}
|
2020-03-10 22:25:43 +08:00
|
|
|
}
|