@nextcloud/vue
Version:
Nextcloud vue components
219 lines • 10.1 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-7e90555e] {
display: flex;
align-self: center;
justify-self: center;
align-items: center;
justify-content: center;
}
.list-item__wrapper[data-v-7e90555e] {
display: flex;
position: relative;
width: 100%;
padding: 2px 4px;
}
.list-item__wrapper[data-v-7e90555e]:first-of-type {
padding-block-start: 4px;
}
.list-item__wrapper[data-v-7e90555e]:last-of-type {
padding-block-end: 4px;
}
.list-item__wrapper:not(.list-item__wrapper--legacy):not(.list-item__wrapper--active):not(.active) .list-item[data-v-7e90555e]:hover,
.list-item__wrapper:not(.list-item__wrapper--legacy):not(.list-item__wrapper--active):not(.active) .list-item[data-v-7e90555e]:focus-within,
.list-item__wrapper:not(.list-item__wrapper--legacy):not(.list-item__wrapper--active):not(.active) .list-item[data-v-7e90555e]:has(:active),
.list-item__wrapper:not(.list-item__wrapper--legacy):not(.list-item__wrapper--active):not(.active) .list-item[data-v-7e90555e]:has(:focus-visible) {
background-color: color-mix(in srgb, var(--color-primary-element) 8%, transparent);
}
.list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e], .list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e] {
background-color: var(--color-primary-element-light);
color: var(--color-main-text) ;
}
.list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]:hover, .list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]:focus-within, .list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]:has(:focus-visible), .list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]:has(:active), .list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]:hover, .list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]:focus-within, .list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]:has(:focus-visible), .list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]:has(:active) {
background-color: var(--color-primary-element-light-hover);
}
.list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]::before, .list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item[data-v-7e90555e]::before {
content: "";
position: absolute;
inset-block: calc(var(--default-grid-baseline, 4px) * 2);
inset-inline-start: 0;
width: 3px;
background-color: var(--color-primary-element);
border-radius: 999px;
animation: nc-nav-stripe-in-7e90555e var(--animation-quick, 200ms) ease-out;
}
.list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item-content__name[data-v-7e90555e],
.list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item-content__subname[data-v-7e90555e],
.list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item-content__details[data-v-7e90555e],
.list-item__wrapper--active:not(.list-item__wrapper--legacy) .list-item-details__details[data-v-7e90555e], .list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item-content__name[data-v-7e90555e],
.list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item-content__subname[data-v-7e90555e],
.list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item-content__details[data-v-7e90555e],
.list-item__wrapper.active:not(.list-item__wrapper--legacy) .list-item-details__details[data-v-7e90555e] {
color: var(--color-main-text) ;
}
.list-item__wrapper--active.list-item__wrapper--legacy .list-item[data-v-7e90555e], .list-item__wrapper.active.list-item__wrapper--legacy .list-item[data-v-7e90555e] {
background-color: var(--color-primary-element);
color: var(--color-primary-element-text) ;
}
.list-item__wrapper--active.list-item__wrapper--legacy .list-item[data-v-7e90555e]:hover, .list-item__wrapper--active.list-item__wrapper--legacy .list-item[data-v-7e90555e]:focus-within, .list-item__wrapper--active.list-item__wrapper--legacy .list-item[data-v-7e90555e]:has(:focus-visible), .list-item__wrapper--active.list-item__wrapper--legacy .list-item[data-v-7e90555e]:has(:active), .list-item__wrapper.active.list-item__wrapper--legacy .list-item[data-v-7e90555e]:hover, .list-item__wrapper.active.list-item__wrapper--legacy .list-item[data-v-7e90555e]:focus-within, .list-item__wrapper.active.list-item__wrapper--legacy .list-item[data-v-7e90555e]:has(:focus-visible), .list-item__wrapper.active.list-item__wrapper--legacy .list-item[data-v-7e90555e]:has(:active) {
background-color: var(--color-primary-element-hover);
}
.list-item__wrapper--active.list-item__wrapper--legacy .list-item-content__name[data-v-7e90555e],
.list-item__wrapper--active.list-item__wrapper--legacy .list-item-content__subname[data-v-7e90555e],
.list-item__wrapper--active.list-item__wrapper--legacy .list-item-content__details[data-v-7e90555e],
.list-item__wrapper--active.list-item__wrapper--legacy .list-item-details__details[data-v-7e90555e], .list-item__wrapper.active.list-item__wrapper--legacy .list-item-content__name[data-v-7e90555e],
.list-item__wrapper.active.list-item__wrapper--legacy .list-item-content__subname[data-v-7e90555e],
.list-item__wrapper.active.list-item__wrapper--legacy .list-item-content__details[data-v-7e90555e],
.list-item__wrapper.active.list-item__wrapper--legacy .list-item-details__details[data-v-7e90555e] {
color: var(--color-primary-element-text) ;
}
@keyframes nc-nav-stripe-in-7e90555e {
from {
transform: scaleY(0);
opacity: 0;
}
to {
transform: scaleY(1);
opacity: 1;
}
}
.list-item__wrapper .list-item-content__name[data-v-7e90555e],
.list-item__wrapper .list-item-content__subname[data-v-7e90555e],
.list-item__wrapper .list-item-content__details[data-v-7e90555e],
.list-item__wrapper .list-item-details__details[data-v-7e90555e] {
white-space: nowrap;
margin-block: 0;
margin-inline: 0 auto;
overflow: hidden;
text-overflow: ellipsis;
}
.list-item-content__name[data-v-7e90555e] {
min-width: 100px;
flex: 1 1 10%;
font-weight: var(--font-weight-element, 500);
}
.list-item-content__subname[data-v-7e90555e] {
flex: 1 0;
min-width: 0;
color: var(--color-text-maxcontrast);
}
.list-item-content__subname--bold[data-v-7e90555e] {
font-weight: var(--font-weight-element, 500);
}
.list-item[data-v-7e90555e] {
--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-7e90555e]:hover, .list-item[data-v-7e90555e]:focus-within, .list-item[data-v-7e90555e]:has(:active), .list-item[data-v-7e90555e]:has(:focus-visible) {
background-color: var(--color-background-hover);
}
.list-item[data-v-7e90555e]: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-7e90555e] {
--list-item-padding: calc(0.5 * var(--default-grid-baseline)) var(--default-grid-baseline);
}
.list-item--compact[data-v-7e90555e]:not(:has(.list-item-content__subname)) {
--list-item-height: var(--default-clickable-area);
}
.list-item--one-line[data-v-7e90555e] {
--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-7e90555e] {
display: flex;
justify-content: start;
gap: 12px;
min-width: 0;
}
.list-item--one-line .list-item-content__details[data-v-7e90555e] {
flex-direction: row;
align-items: center;
justify-content: end;
}
.list-item--one-line .list-item-content__name[data-v-7e90555e] {
align-self: center;
max-width: 300px;
}
.list-item__anchor[data-v-7e90555e] {
color: inherit;
display: flex;
flex: 1 0 auto;
align-items: center;
height: var(--list-item-height);
min-width: 0;
}
.list-item__anchor[data-v-7e90555e]:focus-visible {
outline: none;
}
.list-item-content[data-v-7e90555e] {
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-7e90555e] {
flex: 1 0;
width: 0;
margin: auto 0;
}
.list-item-content__main--oneline[data-v-7e90555e] {
display: flex;
}
.list-item-content__details[data-v-7e90555e] {
display: flex;
flex-direction: column;
justify-content: end;
align-items: end;
}
.list-item-content__actions[data-v-7e90555e], .list-item-content__extra-actions[data-v-7e90555e] {
flex: 0 0 auto;
align-self: center;
justify-content: center;
margin-inline-start: var(--default-grid-baseline);
}
.list-item-content__extra-actions[data-v-7e90555e] {
display: flex;
align-items: center;
gap: var(--default-grid-baseline);
}
.list-item-details__details[data-v-7e90555e] {
color: var(--color-text-maxcontrast);
margin: 0 9px ;
font-weight: var(--font-weight-default, normal);
}
.list-item-details__extra[data-v-7e90555e] {
margin: 2px 4px 0 4px;
display: flex;
align-items: center;
}
.list-item-details__indicator[data-v-7e90555e] {
margin: 0 5px;
}
.list-item__extra[data-v-7e90555e] {
margin-top: var(--default-grid-baseline);
}