@nextcloud/vue
Version:
Nextcloud vue components
214 lines (207 loc) • 8.37 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-ee07f8f8] {
display: flex;
align-self: center;
justify-self: center;
align-items: center;
justify-content: center;
}
/**
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
.app-navigation-entry[data-v-ee07f8f8] {
position: relative;
display: flex;
flex-shrink: 0;
flex-wrap: wrap;
width: 100%;
min-height: var(--default-clickable-area);
transition: background-color var(--animation-quick) ease-in-out;
transition: background-color 200ms ease-in-out;
border-radius: var(--border-radius-element);
}
.app-navigation-entry-wrapper[data-v-ee07f8f8] {
position: relative;
display: flex;
flex-shrink: 0;
flex-wrap: wrap;
width: 100%;
}
.app-navigation-entry-wrapper.app-navigation-entry--collapsible:not(.app-navigation-entry--opened) > ul[data-v-ee07f8f8] {
display: none;
}
.app-navigation-entry.active[data-v-ee07f8f8] {
background-color: var(--color-primary-element) ;
}
.app-navigation-entry.active[data-v-ee07f8f8]:hover {
background-color: var(--color-primary-element-hover) ;
}
.app-navigation-entry.active .app-navigation-entry-link[data-v-ee07f8f8], .app-navigation-entry.active .app-navigation-entry-button[data-v-ee07f8f8] {
color: var(--color-primary-element-text) ;
}
.app-navigation-entry[data-v-ee07f8f8]:focus-within, .app-navigation-entry[data-v-ee07f8f8]:hover {
background-color: var(--color-background-hover);
}
.app-navigation-entry.active .app-navigation-entry__children[data-v-ee07f8f8], .app-navigation-entry:focus-within .app-navigation-entry__children[data-v-ee07f8f8], .app-navigation-entry:hover .app-navigation-entry__children[data-v-ee07f8f8] {
background-color: var(--color-main-background);
}
.app-navigation-entry.active .app-navigation-entry__utils .app-navigation-entry__actions[data-v-ee07f8f8], .app-navigation-entry.app-navigation-entry--deleted .app-navigation-entry__utils .app-navigation-entry__actions[data-v-ee07f8f8], .app-navigation-entry:focus .app-navigation-entry__utils .app-navigation-entry__actions[data-v-ee07f8f8], .app-navigation-entry:focus-within .app-navigation-entry__utils .app-navigation-entry__actions[data-v-ee07f8f8], .app-navigation-entry:hover .app-navigation-entry__utils .app-navigation-entry__actions[data-v-ee07f8f8] {
display: inline-block;
}
.app-navigation-entry .app-navigation-entry__actions[data-v-ee07f8f8]:hover .button-vue {
background-color: var(--color-background-dark) ;
}
.app-navigation-entry.active .app-navigation-entry__actions[data-v-ee07f8f8]:hover .button-vue {
background-color: var(--color-primary-element) ;
}
.app-navigation-entry[data-v-ee07f8f8] {
/* hide deletion/collapse of subitems */
}
.app-navigation-entry.app-navigation-entry--deleted > ul[data-v-ee07f8f8] {
display: none;
}
.app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-link[data-v-ee07f8f8], .app-navigation-entry:not(.app-navigation-entry--editing) .app-navigation-entry-button[data-v-ee07f8f8] {
padding-inline-end: calc((var(--default-clickable-area) - 16px) / 2);
}
.app-navigation-entry .app-navigation-entry-link[data-v-ee07f8f8], .app-navigation-entry .app-navigation-entry-button[data-v-ee07f8f8] {
z-index: 100; /* above the bullet to allow click*/
display: flex;
overflow: hidden;
flex: 1 1 0;
min-height: var(--default-clickable-area);
padding: 0;
white-space: nowrap;
color: var(--color-main-text);
background-repeat: no-repeat;
background-position: calc((var(--default-clickable-area) - 16px) / 2) center;
background-size: 16px 16px;
line-height: var(--default-clickable-area);
}
.app-navigation-entry .app-navigation-entry-link .app-navigation-entry-icon[data-v-ee07f8f8], .app-navigation-entry .app-navigation-entry-button .app-navigation-entry-icon[data-v-ee07f8f8] {
display: flex;
align-items: center;
flex: 0 0 var(--default-clickable-area);
justify-content: center;
width: var(--default-clickable-area);
height: var(--default-clickable-area);
background-size: 16px 16px;
background-repeat: no-repeat;
background-position: calc((var(--default-clickable-area) - 16px) / 2) center;
}
.app-navigation-entry .app-navigation-entry-link .app-navigation-entry__name[data-v-ee07f8f8], .app-navigation-entry .app-navigation-entry-button .app-navigation-entry__name[data-v-ee07f8f8] {
overflow: hidden;
max-width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
}
.app-navigation-entry .app-navigation-entry-link .editingContainer[data-v-ee07f8f8], .app-navigation-entry .app-navigation-entry-button .editingContainer[data-v-ee07f8f8] {
width: calc(100% - var(--default-clickable-area));
margin: auto;
}
.app-navigation-entry .app-navigation-entry-link[data-v-ee07f8f8]:focus-visible, .app-navigation-entry .app-navigation-entry-button[data-v-ee07f8f8]:focus-visible {
box-shadow: 0 0 0 4px var(--color-main-background);
outline: 2px solid var(--color-main-text);
border-radius: var(--border-radius-element);
}
/* Second level nesting for lists */
.app-navigation-entry__children[data-v-ee07f8f8] {
--app-navigation-item-child-offset: 10px;
position: relative;
display: flex;
flex: 0 1 auto;
flex-direction: column;
width: 100%;
gap: var(--default-grid-baseline, 4px);
padding-inline-start: var(--app-navigation-item-child-offset);
}
.app-navigation-entry__children .app-navigation-entry[data-v-ee07f8f8] {
display: inline-flex;
flex-wrap: wrap;
}
.app-navigation-entry__children .app-navigation-entry__children .app-navigation-entry__children .app-navigation-entry__children .app-navigation-entry__children .app-navigation-entry__children .app-navigation-entry__children[data-v-ee07f8f8] {
--app-navigation-item-child-offset: 0;
}
/* Deleted entries */
.app-navigation-entry__deleted[data-v-ee07f8f8] {
display: inline-flex;
flex: 1 1 0;
padding-inline-start: calc(var(--default-clickable-area) - (var(--default-clickable-area) - 16px) / 2) ;
}
.app-navigation-entry__deleted .app-navigation-entry__deleted-description[data-v-ee07f8f8] {
position: relative;
overflow: hidden;
flex: 1 1 0;
white-space: nowrap;
text-overflow: ellipsis;
line-height: var(--default-clickable-area);
}
/* counter and actions */
.app-navigation-entry__utils[data-v-ee07f8f8] {
display: flex;
min-width: var(--default-clickable-area);
align-items: center;
flex: 0 1 auto;
justify-content: flex-end;
}
.app-navigation-entry__utils.app-navigation-entry__utils--display-actions .action-item.app-navigation-entry__actions[data-v-ee07f8f8] {
display: inline-block;
}
.app-navigation-entry__utils[data-v-ee07f8f8] {
/* counter */
}
.app-navigation-entry__utils .app-navigation-entry__counter-wrapper[data-v-ee07f8f8] {
margin-inline-end: calc(var(--default-grid-baseline) * 2);
display: flex;
align-items: center;
flex: 0 1 auto;
}
.app-navigation-entry__utils[data-v-ee07f8f8] {
/* actions */
}
.app-navigation-entry__utils .action-item.app-navigation-entry__actions[data-v-ee07f8f8] {
display: none;
}
/* editing state */
.app-navigation-entry--editing .app-navigation-entry-edit[data-v-ee07f8f8] {
z-index: 250;
opacity: 1;
}
/* deleted state */
.app-navigation-entry--deleted .app-navigation-entry-deleted[data-v-ee07f8f8] {
z-index: 250;
transform: translateX(0);
}
/* pinned state */
.app-navigation-entry--pinned[data-v-ee07f8f8] {
order: 2;
margin-top: auto;
}
.app-navigation-entry--pinned ~ .app-navigation-entry--pinned[data-v-ee07f8f8] {
margin-top: 0;
}
[data-themes*=highcontrast] .app-navigation-entry[data-v-ee07f8f8]:active {
background-color: var(--color-primary-element-light-hover) ;
}
.app-navigation-new-item__name[data-v-ee07f8f8] {
overflow: hidden;
max-width: 100%;
white-space: nowrap;
text-overflow: ellipsis;
padding-inline-start: 7px;
font-size: 14px;
}
.newItemContainer[data-v-ee07f8f8] {
width: calc(100% - var(--default-clickable-area));
margin: auto;
}