UNPKG

@nextcloud/vue

Version:
393 lines (392 loc) 13.6 kB
/** * 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_1y2dv_12 { display: flex; align-self: center; justify-self: center; align-items: center; justify-content: center; } ._sidebarTabsButton_1y2dv_20 { border: none; border-bottom: var(--default-grid-baseline) solid transparent !important; border-radius: var(--border-radius-small); background-color: var(--color-main-background); color: var(--color-main-text); font-size: var(--default-font-size); cursor: pointer; display: flex; flex-direction: column; gap: var(--default-grid-baseline); padding: var(--border-radius-small); transition: background-color var(--animation-quick), border-bottom-color var(--animation-quick); min-width: var(--default-clickable-area); } ._sidebarTabsButton_1y2dv_20:hover { background-color: var(--color-background-hover) !important; } ._sidebarTabsButton_1y2dv_20:active, ._sidebarTabsButton_1y2dv_20:focus { background-color: var(--color-main-background) !important; } ._sidebarTabsButton_1y2dv_20 * { cursor: pointer; } ._sidebarTabsButton_selected_1y2dv_45 { border-bottom-color: var(--color-primary-element) !important; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; cursor: default; } ._sidebarTabsButton_selected_1y2dv_45:hover { background-color: var(--color-primary-element-light-hover) !important; color: var(--color-primary-element-light-text) !important; } ._sidebarTabsButton_selected_1y2dv_45 * { cursor: default; } ._sidebarTabsButton__name_1y2dv_59 { font-weight: normal; overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap; } ._sidebarTabsButton_selected_1y2dv_45 ._sidebarTabsButton__name_1y2dv_59 { font-weight: bold; } ._sidebarTabsButton__icon_1y2dv_70 { display: inline-flex; align-items: center; justify-content: center; } ._sidebarTabsButton__legacyIcon_1y2dv_76 { background-size: 20px; display: flex; align-items: center; justify-content: center; }/** * 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-1e2d5bfb] { display: flex; align-self: center; justify-self: center; align-items: center; justify-content: center; } .app-sidebar-tabs[data-v-1e2d5bfb] { display: flex; flex-direction: column; min-height: 0; flex: 1 1 100%; } .app-sidebar-tabs__nav[data-v-1e2d5bfb] { display: flex; justify-content: stretch; margin: 10px 8px 0 8px; border-bottom: 1px solid var(--color-border); } .app-sidebar-tabs__tab[data-v-1e2d5bfb] { flex: 1 1 1px; } .app-sidebar-tabs__content[data-v-1e2d5bfb] { position: relative; min-height: 256px; height: 100%; } .app-sidebar-tabs__content--multiple[data-v-1e2d5bfb] > :not(section) { display: none; }/** * 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 { display: flex; align-self: center; justify-self: center; align-items: center; justify-content: center; } @property --app-sidebar-offset { syntax: "<length>"; initial-value: 0; inherits: true; } body { /** * The padding between the toggle button and the page border */ --app-sidebar-padding: calc(var(--default-grid-baseline, 4px) * 2); /** * The minimal offset width required to be reserved for the toggle button. * Automatically changes to 0 when there is no toggle button. */ --app-sidebar-offset: 0; transition: --app-sidebar-offset 0ms !important; } body:has(.app-sidebar.slide-right-enter-active), body:has(.app-sidebar.slide-right-leave-active) { transition: --app-sidebar-offset var(--animation-quick); } body:has(.app-sidebar__toggle) { --app-sidebar-offset: calc(var(--app-sidebar-padding) + var(--default-clickable-area)); }/** * 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-104e67d6] { display: flex; align-self: center; justify-self: center; align-items: center; justify-content: center; } /* Sidebar: to be used within #content app-content will be shrunk properly */ .app-sidebar[data-v-104e67d6] { --app-sidebar-width: clamp(300px, 27vw, 500px); --app-sidebar-padding: calc(var(--default-grid-baseline, 4px) * 2); width: var(--app-sidebar-width); z-index: 1500; top: 0; inset-inline-end: 0; display: flex; overflow-x: hidden; overflow-y: auto; flex-direction: column; flex-shrink: 0; height: 100%; border-inline-start: 1px solid var(--color-border); background: var(--color-main-background); position: relative; } .app-sidebar__toggle[data-v-104e67d6] { position: absolute !important; inset-block-start: var(--app-sidebar-padding); inset-inline-end: var(--app-sidebar-padding); z-index: 1001; } .app-sidebar .app-sidebar-header[data-v-104e67d6] { --app-sidebar-close-button-offset: calc(var(--default-clickable-area) + var(--app-sidebar-padding)); } .app-sidebar .app-sidebar-header > .app-sidebar__close[data-v-104e67d6] { position: absolute; z-index: 100; top: var(--app-sidebar-padding); inset-inline-end: var(--app-sidebar-padding); width: var(--default-clickable-area); height: var(--default-clickable-area); } .app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info[data-v-104e67d6] { flex-direction: row; } .app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__figure[data-v-104e67d6] { --figure-size: calc($desc-height + var(--app-sidebar-padding)); z-index: 2; width: var(--figure-size); height: var(--figure-size); margin: calc(var(--app-sidebar-padding) / 2); border-radius: 3px; flex: 0 0 auto; } .app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc[data-v-104e67d6] { padding-inline-start: 0; flex: 1 1 auto; min-width: 0; padding-inline-end: calc(var(--default-clickable-area) + var(--app-sidebar-close-button-offset)); padding-top: var(--app-sidebar-padding); } .app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc.app-sidebar-header__desc--without-actions[data-v-104e67d6] { padding-inline-end: var(--app-sidebar-close-button-offset); } .app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc .app-sidebar-header__tertiary-actions[data-v-104e67d6] { z-index: 3; position: absolute; top: calc(var(--app-sidebar-padding) / 2); inset-inline-start: calc(-1 * var(--default-clickable-area)); gap: 0; } .app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__desc .app-sidebar-header__menu[data-v-104e67d6] { top: var(--app-sidebar-padding); inset-inline-end: var(--app-sidebar-close-button-offset); position: absolute; } .app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__menu[data-v-104e67d6] { position: absolute; top: var(--app-sidebar-padding); inset-inline-end: var(--app-sidebar-close-button-offset); } .app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__desc[data-v-104e67d6] { padding-inline-end: calc(var(--default-clickable-area) + var(--app-sidebar-close-button-offset)); } .app-sidebar .app-sidebar-header:not(.app-sidebar-header--with-figure) .app-sidebar-header__desc.app-sidebar-header__desc--without-actions[data-v-104e67d6] { padding-inline-end: var(--app-sidebar-close-button-offset); } .app-sidebar .app-sidebar-header .app-sidebar-header__info[data-v-104e67d6] { display: flex; flex-direction: column; } .app-sidebar .app-sidebar-header__figure[data-v-104e67d6] { width: 100%; height: 250px; max-height: 250px; background-repeat: no-repeat; background-position: center; background-size: contain; } .app-sidebar .app-sidebar-header__figure--with-action[data-v-104e67d6] { cursor: pointer; } .app-sidebar .app-sidebar-header__desc[data-v-104e67d6] { position: relative; display: flex; flex-direction: row; justify-content: center; align-items: center; padding-inline: var(--app-sidebar-padding); padding-block: var(--app-sidebar-padding) calc(var(--app-sidebar-padding) / 2); gap: 0 4px; } .app-sidebar .app-sidebar-header__desc--with-tertiary-action[data-v-104e67d6] { padding-inline-start: 6px; } .app-sidebar .app-sidebar-header__desc--editable .app-sidebar-header__mainname-form[data-v-104e67d6], .app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__mainname-form[data-v-104e67d6] { margin-top: -2px; margin-bottom: -2px; } .app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__subname[data-v-104e67d6] { margin-top: -2px; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions[data-v-104e67d6] { display: flex; height: var(--default-clickable-area); width: var(--default-clickable-area); justify-content: center; flex: 0 0 auto; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions .app-sidebar-header__star[data-v-104e67d6] { box-shadow: none; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions .app-sidebar-header__star[data-v-104e67d6]:not([aria-pressed=true]):hover { box-shadow: none; background-color: var(--color-background-hover); } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container[data-v-104e67d6] { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; min-width: 0; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container[data-v-104e67d6] { display: flex; align-items: center; min-height: var(--default-clickable-area); } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname[data-v-104e67d6] { padding: 0; min-height: 30px; font-size: 20px; line-height: 30px; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname[data-v-104e67d6] .linkified { cursor: pointer; text-decoration: underline; margin: 0; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname-form[data-v-104e67d6] { display: flex; flex: 1 1 auto; align-items: center; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__mainname-form input.app-sidebar-header__mainname-input[data-v-104e67d6] { flex: 1 1 auto; margin: 0; padding: 7px; font-size: 20px; font-weight: bold; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__menu[data-v-104e67d6] { margin-inline-start: 5px; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname[data-v-104e67d6], .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-104e67d6] { overflow: hidden; width: 100%; margin: 0; white-space: nowrap; text-overflow: ellipsis; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-104e67d6] { color: var(--color-text-maxcontrast); font-size: var(--default-font-size); padding: 0; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-104e67d6] * { vertical-align: text-bottom; } .app-sidebar .app-sidebar-header .app-sidebar-header__mainname--hidden[data-v-104e67d6] { position: absolute; top: 0; inset-inline-start: 0; margin: 0; width: 1px; height: 1px; overflow: hidden; } .app-sidebar .app-sidebar-header__description[data-v-104e67d6] { display: flex; align-items: center; margin: 0 10px; } @media only screen and (max-width: 512px) { .app-sidebar[data-v-104e67d6] { position: absolute; --app-sidebar-width: 100vw; } } .slide-right-leave-active[data-v-104e67d6], .slide-right-enter-active[data-v-104e67d6] { transition-duration: var(--animation-quick); transition-property: margin-inline-end; } .slide-right-enter-to[data-v-104e67d6], .slide-right-leave[data-v-104e67d6] { margin-inline-end: 0; } .slide-right-enter-from[data-v-104e67d6], .slide-right-leave-to[data-v-104e67d6] { margin-inline-end: calc(-1 * var(--app-sidebar-width)); }