UNPKG

@nextcloud/vue

Version:
493 lines (492 loc) 17.2 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_gOcTi { display: flex; align-self: center; justify-self: center; align-items: center; justify-content: center; } ._sidebarTabsButton_aa3cA { border: none; color: var(--color-main-text); font-size: var(--default-font-size); cursor: pointer; display: flex; flex-direction: column; gap: var(--default-grid-baseline); min-width: var(--default-clickable-area); } ._sidebarTabsButton_aa3cA * { cursor: pointer; } ._sidebarTabsButton_aa3cA:not(._sidebarTabsButton_legacy_3fPRl) { position: relative; border-radius: var(--border-radius-element); background-color: var(--color-main-background); padding: var(--default-grid-baseline); padding-block-end: calc(var(--default-grid-baseline) * 2); transition: background-color var(--animation-quick); } ._sidebarTabsButton_aa3cA:not(._sidebarTabsButton_legacy_3fPRl)::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 0; height: 4px; border-radius: 999px; background-color: var(--color-primary-element); opacity: 0; transform: translateX(-50%); transition: width var(--animation-quick), opacity var(--animation-quick); } ._sidebarTabsButton_aa3cA:not(._sidebarTabsButton_legacy_3fPRl):hover { background-color: var(--color-background-hover); } ._sidebarTabsButton_aa3cA:not(._sidebarTabsButton_legacy_3fPRl):focus-visible { outline: 2px solid var(--color-main-text); outline-offset: 2px; } ._sidebarTabsButton_legacy_3fPRl { border-bottom: var(--default-grid-baseline) solid transparent !important; border-radius: var(--border-radius-small); background-color: var(--color-main-background); padding: var(--border-radius-small); transition: background-color var(--animation-quick), border-bottom-color var(--animation-quick); } ._sidebarTabsButton_legacy_3fPRl:hover { background-color: var(--color-background-hover) !important; } ._sidebarTabsButton_legacy_3fPRl:active, ._sidebarTabsButton_legacy_3fPRl:focus { background-color: var(--color-main-background) !important; } ._sidebarTabsButton_selected_debVN { cursor: default; } ._sidebarTabsButton_selected_debVN * { cursor: default; } ._sidebarTabsButton_aa3cA:not(._sidebarTabsButton_legacy_3fPRl)._sidebarTabsButton_selected_debVN { background-color: color-mix(in srgb, var(--color-primary-element) 8%, transparent); } ._sidebarTabsButton_aa3cA:not(._sidebarTabsButton_legacy_3fPRl)._sidebarTabsButton_selected_debVN::after { width: 80%; opacity: 1; } ._sidebarTabsButton_aa3cA:not(._sidebarTabsButton_legacy_3fPRl)._sidebarTabsButton_selected_debVN:hover { background-color: color-mix(in srgb, var(--color-primary-element) 8%, transparent); } ._sidebarTabsButton_animatedHighlight_EJHSj:not(._sidebarTabsButton_legacy_3fPRl) { background-color: transparent; } ._sidebarTabsButton_animatedHighlight_EJHSj:not(._sidebarTabsButton_legacy_3fPRl):hover { background-color: transparent; } ._sidebarTabsButton_legacy_3fPRl._sidebarTabsButton_selected_debVN { border-bottom-color: var(--color-primary-element) !important; border-bottom-left-radius: 0; border-bottom-right-radius: 0; } ._sidebarTabsButton_legacy_3fPRl._sidebarTabsButton_selected_debVN:hover { background-color: var(--color-primary-element-light-hover) !important; color: var(--color-primary-element-light-text) !important; } ._sidebarTabsButton__name_g3K0J { font-weight: var(--font-weight-element, normal); overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap; } ._sidebarTabsButton_legacy_3fPRl._sidebarTabsButton_selected_debVN ._sidebarTabsButton__name_g3K0J { font-weight: var(--font-weight-element, bold); } ._sidebarTabsButton__icon_T3-X1 { display: inline-grid; place-items: center; } ._sidebarTabsButton__iconLayer_MCKYo { grid-area: 1/1; display: inline-flex; transition: opacity var(--animation-slow) ease-in-out; } ._sidebarTabsButton__iconLayer_hidden_6R-Pu { opacity: 0; } ._sidebarTabsButton__icon_pop_EE96A { animation: _sidebar-tab-icon-pop_l-b-c var(--animation-slow) ease-in-out; } @keyframes _sidebar-tab-icon-pop_l-b-c { 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } } ._sidebarTabsButton__legacyIcon_uRnaK { 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-74190d2a] { display: flex; align-self: center; justify-self: center; align-items: center; justify-content: center; } .app-sidebar-tabs[data-v-74190d2a] { display: flex; flex-direction: column; min-height: 0; flex: 1 1 100%; } .app-sidebar-tabs__nav[data-v-74190d2a] { position: relative; display: flex; justify-content: stretch; margin: 10px 8px 0 8px; border-bottom: 1px solid var(--color-border); isolation: isolate; } .app-sidebar-tabs__nav[data-v-74190d2a]:not(.app-sidebar-tabs__nav--legacy) { gap: var(--default-grid-baseline); padding-block-end: var(--default-grid-baseline); } .app-sidebar-tabs__highlight[data-v-74190d2a] { position: absolute; top: 0; left: 0; width: 0; height: 0; z-index: 0; pointer-events: none; opacity: 0; border-radius: var(--border-radius-element); background-color: color-mix(in srgb, var(--color-primary-element) 8%, transparent); will-change: transform, width, height; transition: opacity var(--animation-quick) ease-in-out, background-color var(--animation-quick) ease-in-out; } .app-sidebar-tabs__highlight--animated[data-v-74190d2a] { transition: transform var(--animation-quick) ease-in-out, width var(--animation-quick) ease-in-out, height var(--animation-quick) ease-in-out, opacity var(--animation-quick) ease-in-out, background-color var(--animation-quick) ease-in-out; } .app-sidebar-tabs__highlight--visible[data-v-74190d2a] { opacity: 1; } .app-sidebar-tabs__highlight--over-active[data-v-74190d2a] { background-color: transparent; } .app-sidebar-tabs__tab[data-v-74190d2a] { position: relative; z-index: 1; flex: 1 1 1px; } .app-sidebar-tabs__content[data-v-74190d2a] { position: relative; min-height: 256px; height: 100%; } .app-sidebar-tabs__content--multiple[data-v-74190d2a] > :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-slow); } 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-c2c6820b] { 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-c2c6820b] { --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-c2c6820b] { 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-c2c6820b] { --app-sidebar-close-button-offset: calc(var(--default-clickable-area) + var(--app-sidebar-padding)); } .app-sidebar .app-sidebar-header > .app-sidebar__close[data-v-c2c6820b] { 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-c2c6820b] { flex-direction: row; } .app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__figure[data-v-c2c6820b] { --figure-size: calc(52px + 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-c2c6820b] { 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-c2c6820b] { 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-c2c6820b] { 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-c2c6820b] { 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-c2c6820b] { 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-c2c6820b] { 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-c2c6820b] { padding-inline-end: var(--app-sidebar-close-button-offset); } .app-sidebar .app-sidebar-header .app-sidebar-header__info[data-v-c2c6820b] { display: flex; flex-direction: column; } .app-sidebar .app-sidebar-header__figure[data-v-c2c6820b] { 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-c2c6820b] { cursor: pointer; } .app-sidebar .app-sidebar-header__desc[data-v-c2c6820b] { 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-c2c6820b] { padding-inline-start: 6px; } .app-sidebar .app-sidebar-header__desc--editable .app-sidebar-header__mainname-form[data-v-c2c6820b], .app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__mainname-form[data-v-c2c6820b] { margin-top: -2px; margin-bottom: -2px; } .app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__subname[data-v-c2c6820b] { margin-top: -2px; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions[data-v-c2c6820b] { 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-c2c6820b] { box-shadow: none; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions .app-sidebar-header__star[data-v-c2c6820b]: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-c2c6820b] { 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-c2c6820b] { 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-c2c6820b] { 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-c2c6820b] .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-c2c6820b] { 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-c2c6820b] { flex: 1 1 auto; margin: 0; padding: 7px; font-size: 20px; font-weight: var(--font-weight-heading, bold); } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname-container .app-sidebar-header__menu[data-v-c2c6820b] { margin-inline-start: 5px; } .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname[data-v-c2c6820b], .app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-c2c6820b] { 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-c2c6820b] { 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-c2c6820b] * { vertical-align: text-bottom; } .app-sidebar .app-sidebar-header .app-sidebar-header__mainname--hidden[data-v-c2c6820b] { position: absolute; top: 0; inset-inline-start: 0; margin: 0; width: 1px; height: 1px; overflow: hidden; } .app-sidebar .app-sidebar-header__description[data-v-c2c6820b] { display: flex; align-items: center; margin: 0 10px; } @media only screen and (max-width: 512px) { .app-sidebar[data-v-c2c6820b] { position: absolute; --app-sidebar-width: 100vw; } } .slide-right-leave-active[data-v-c2c6820b], .slide-right-enter-active[data-v-c2c6820b] { transition-duration: var(--animation-slow); transition-property: margin-inline-end; } .slide-right-enter-to[data-v-c2c6820b], .slide-right-leave[data-v-c2c6820b] { margin-inline-end: 0; } .slide-right-enter-from[data-v-c2c6820b], .slide-right-leave-to[data-v-c2c6820b] { margin-inline-end: calc(-1 * var(--app-sidebar-width)); }