@nextcloud/vue
Version:
Nextcloud vue components
177 lines • 6.17 kB
CSS
/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/**
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
/*
* Ensure proper alignment of the vue material icons
*/
.material-design-icon[data-v-532f3807] {
display: flex;
align-self: center;
justify-self: center;
align-items: center;
justify-content: center;
}
.list-item__wrapper[data-v-532f3807] {
display: flex;
position: relative;
width: 100%;
padding: 2px 4px;
}
.list-item__wrapper[data-v-532f3807]:first-of-type {
padding-block-start: 4px;
}
.list-item__wrapper[data-v-532f3807]:last-of-type {
padding-block-end: 4px;
}
.list-item__wrapper--active .list-item[data-v-532f3807], .list-item__wrapper.active .list-item[data-v-532f3807] {
background-color: var(--color-primary-element);
color: var(--color-primary-element-text) ;
}
.list-item__wrapper--active .list-item[data-v-532f3807]:hover, .list-item__wrapper--active .list-item[data-v-532f3807]:focus-within, .list-item__wrapper--active .list-item[data-v-532f3807]:has(:focus-visible), .list-item__wrapper--active .list-item[data-v-532f3807]:has(:active), .list-item__wrapper.active .list-item[data-v-532f3807]:hover, .list-item__wrapper.active .list-item[data-v-532f3807]:focus-within, .list-item__wrapper.active .list-item[data-v-532f3807]:has(:focus-visible), .list-item__wrapper.active .list-item[data-v-532f3807]:has(:active) {
background-color: var(--color-primary-element-hover);
}
.list-item__wrapper--active .list-item-content__name[data-v-532f3807],
.list-item__wrapper--active .list-item-content__subname[data-v-532f3807],
.list-item__wrapper--active .list-item-content__details[data-v-532f3807],
.list-item__wrapper--active .list-item-details__details[data-v-532f3807], .list-item__wrapper.active .list-item-content__name[data-v-532f3807],
.list-item__wrapper.active .list-item-content__subname[data-v-532f3807],
.list-item__wrapper.active .list-item-content__details[data-v-532f3807],
.list-item__wrapper.active .list-item-details__details[data-v-532f3807] {
color: var(--color-primary-element-text) ;
}
.list-item__wrapper .list-item-content__name[data-v-532f3807],
.list-item__wrapper .list-item-content__subname[data-v-532f3807],
.list-item__wrapper .list-item-content__details[data-v-532f3807],
.list-item__wrapper .list-item-details__details[data-v-532f3807] {
white-space: nowrap;
margin-block: 0;
margin-inline: 0 auto;
overflow: hidden;
text-overflow: ellipsis;
}
.list-item-content__name[data-v-532f3807] {
min-width: 100px;
flex: 1 1 10%;
font-weight: 500;
}
.list-item-content__subname[data-v-532f3807] {
flex: 1 0;
min-width: 0;
color: var(--color-text-maxcontrast);
}
.list-item-content__subname--bold[data-v-532f3807] {
font-weight: 500;
}
.list-item[data-v-532f3807] {
--list-item-padding: var(--default-grid-baseline);
--list-item-height: 2lh;
--list-item-border-radius: var(--border-radius-element, 32px);
box-sizing: border-box;
display: flex;
position: relative;
flex: 0 0 auto;
justify-content: flex-start;
padding: var(--list-item-padding);
width: 100%;
border-radius: var(--border-radius-element, 32px);
cursor: pointer;
transition: background-color var(--animation-quick) ease-in-out;
list-style: none;
}
.list-item[data-v-532f3807]:hover, .list-item[data-v-532f3807]:focus-within, .list-item[data-v-532f3807]:has(:active), .list-item[data-v-532f3807]:has(:focus-visible) {
background-color: var(--color-background-hover);
}
.list-item[data-v-532f3807]:has(.list-item__anchor:focus-visible) {
outline: 2px solid var(--color-main-text);
box-shadow: 0 0 0 4px var(--color-main-background);
}
.list-item--compact[data-v-532f3807] {
--list-item-padding: calc(0.5 * var(--default-grid-baseline)) var(--default-grid-baseline);
}
.list-item--compact[data-v-532f3807]:not(:has(.list-item-content__subname)) {
--list-item-height: var(--default-clickable-area);
}
.list-item--one-line[data-v-532f3807] {
--list-item-height: var(--default-clickable-area);
--list-item-border-radius: var(--border-radius-element, calc(var(--default-clickable-area) / 2));
--list-item-padding: var(--default-grid-baseline);
}
.list-item--one-line .list-item-content__main[data-v-532f3807] {
display: flex;
justify-content: start;
gap: 12px;
min-width: 0;
}
.list-item--one-line .list-item-content__details[data-v-532f3807] {
flex-direction: row;
align-items: center;
justify-content: end;
}
.list-item--one-line .list-item-content__name[data-v-532f3807] {
align-self: center;
max-width: 300px;
}
.list-item__anchor[data-v-532f3807] {
color: inherit;
display: flex;
flex: 1 0 auto;
align-items: center;
height: var(--list-item-height);
min-width: 0;
}
.list-item__anchor[data-v-532f3807]:focus-visible {
outline: none;
}
.list-item-content[data-v-532f3807] {
display: flex;
flex: 1 0;
justify-content: space-between;
padding-inline-start: calc(2 * var(--default-grid-baseline));
min-width: 0;
}
.list-item-content__main[data-v-532f3807] {
flex: 1 0;
width: 0;
margin: auto 0;
}
.list-item-content__main--oneline[data-v-532f3807] {
display: flex;
}
.list-item-content__details[data-v-532f3807] {
display: flex;
flex-direction: column;
justify-content: end;
align-items: end;
}
.list-item-content__actions[data-v-532f3807], .list-item-content__extra-actions[data-v-532f3807] {
flex: 0 0 auto;
align-self: center;
justify-content: center;
margin-inline-start: var(--default-grid-baseline);
}
.list-item-content__extra-actions[data-v-532f3807] {
display: flex;
align-items: center;
gap: var(--default-grid-baseline);
}
.list-item-details__details[data-v-532f3807] {
color: var(--color-text-maxcontrast);
margin: 0 9px ;
font-weight: normal;
}
.list-item-details__extra[data-v-532f3807] {
margin: 2px 4px 0 4px;
display: flex;
align-items: center;
}
.list-item-details__indicator[data-v-532f3807] {
margin: 0 5px;
}
.list-item__extra[data-v-532f3807] {
margin-top: var(--default-grid-baseline);
}