@nextcloud/vue
Version:
Nextcloud vue components
439 lines (438 loc) • 15.5 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_fPSY2 {
display: flex;
align-self: center;
justify-self: center;
align-items: center;
justify-content: center;
}
._sidebarTabsButton_Uw0-N {
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_Uw0-N * {
cursor: pointer;
}
._sidebarTabsButton_Uw0-N:not(._sidebarTabsButton_legacy_FsjhV) {
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_Uw0-N:not(._sidebarTabsButton_legacy_FsjhV)::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_Uw0-N:not(._sidebarTabsButton_legacy_FsjhV):hover {
background-color: var(--color-background-hover);
}
._sidebarTabsButton_Uw0-N:not(._sidebarTabsButton_legacy_FsjhV):focus-visible {
outline: 2px solid var(--color-main-text);
outline-offset: 2px;
}
._sidebarTabsButton_legacy_FsjhV {
border-bottom: var(--default-grid-baseline) solid transparent ;
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_FsjhV:hover {
background-color: var(--color-background-hover) ;
}
._sidebarTabsButton_legacy_FsjhV:active, ._sidebarTabsButton_legacy_FsjhV:focus {
background-color: var(--color-main-background) ;
}
._sidebarTabsButton_selected_MiFwn {
cursor: default;
}
._sidebarTabsButton_selected_MiFwn * {
cursor: default;
}
._sidebarTabsButton_Uw0-N:not(._sidebarTabsButton_legacy_FsjhV)._sidebarTabsButton_selected_MiFwn {
background-color: var(--color-background-hover);
}
._sidebarTabsButton_Uw0-N:not(._sidebarTabsButton_legacy_FsjhV)._sidebarTabsButton_selected_MiFwn::after {
width: 80%;
opacity: 1;
}
._sidebarTabsButton_Uw0-N:not(._sidebarTabsButton_legacy_FsjhV)._sidebarTabsButton_selected_MiFwn:hover {
background-color: var(--color-background-dark);
}
._sidebarTabsButton_legacy_FsjhV._sidebarTabsButton_selected_MiFwn {
border-bottom-color: var(--color-primary-element) ;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
._sidebarTabsButton_legacy_FsjhV._sidebarTabsButton_selected_MiFwn:hover {
background-color: var(--color-primary-element-light-hover) ;
color: var(--color-primary-element-light-text) ;
}
._sidebarTabsButton__name_Uzc5r {
font-weight: var(--font-weight-element, normal);
overflow: hidden;
text-overflow: ellipsis;
text-wrap: nowrap;
}
._sidebarTabsButton_legacy_FsjhV._sidebarTabsButton_selected_MiFwn ._sidebarTabsButton__name_Uzc5r {
font-weight: var(--font-weight-element, bold);
}
._sidebarTabsButton__icon_-Zy-g {
display: inline-flex;
align-items: center;
justify-content: center;
}
._sidebarTabsButton__legacyIcon_svLe8 {
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-e74d1502] {
display: flex;
align-self: center;
justify-self: center;
align-items: center;
justify-content: center;
}
.app-sidebar-tabs[data-v-e74d1502] {
display: flex;
flex-direction: column;
min-height: 0;
flex: 1 1 100%;
}
.app-sidebar-tabs__nav[data-v-e74d1502] {
display: flex;
justify-content: stretch;
margin: 10px 8px 0 8px;
border-bottom: 1px solid var(--color-border);
}
.app-sidebar-tabs__nav[data-v-e74d1502]:not(.app-sidebar-tabs__nav--legacy) {
gap: var(--default-grid-baseline);
padding-block-end: var(--default-grid-baseline);
}
.app-sidebar-tabs__tab[data-v-e74d1502] {
flex: 1 1 1px;
}
.app-sidebar-tabs__content[data-v-e74d1502] {
position: relative;
min-height: 256px;
height: 100%;
}
.app-sidebar-tabs__content--multiple[data-v-e74d1502] > :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 ;
}
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-e8979b7f] {
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-e8979b7f] {
--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-e8979b7f] {
position: absolute ;
inset-block-start: var(--app-sidebar-padding);
inset-inline-end: var(--app-sidebar-padding);
z-index: 1001;
}
.app-sidebar .app-sidebar-header[data-v-e8979b7f] {
--app-sidebar-close-button-offset: calc(var(--default-clickable-area) + var(--app-sidebar-padding));
}
.app-sidebar .app-sidebar-header > .app-sidebar__close[data-v-e8979b7f] {
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-e8979b7f] {
flex-direction: row;
}
.app-sidebar .app-sidebar-header--compact.app-sidebar-header--with-figure .app-sidebar-header__info .app-sidebar-header__figure[data-v-e8979b7f] {
--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-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] {
padding-inline-end: var(--app-sidebar-close-button-offset);
}
.app-sidebar .app-sidebar-header .app-sidebar-header__info[data-v-e8979b7f] {
display: flex;
flex-direction: column;
}
.app-sidebar .app-sidebar-header__figure[data-v-e8979b7f] {
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-e8979b7f] {
cursor: pointer;
}
.app-sidebar .app-sidebar-header__desc[data-v-e8979b7f] {
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-e8979b7f] {
padding-inline-start: 6px;
}
.app-sidebar .app-sidebar-header__desc--editable .app-sidebar-header__mainname-form[data-v-e8979b7f], .app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__mainname-form[data-v-e8979b7f] {
margin-top: -2px;
margin-bottom: -2px;
}
.app-sidebar .app-sidebar-header__desc--with-subname--editable .app-sidebar-header__subname[data-v-e8979b7f] {
margin-top: -2px;
}
.app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions[data-v-e8979b7f] {
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-e8979b7f] {
box-shadow: none;
}
.app-sidebar .app-sidebar-header__desc .app-sidebar-header__tertiary-actions .app-sidebar-header__star[data-v-e8979b7f]: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-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] .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-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] {
margin-inline-start: 5px;
}
.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__mainname[data-v-e8979b7f],
.app-sidebar .app-sidebar-header__desc .app-sidebar-header__name-container .app-sidebar-header__subname[data-v-e8979b7f] {
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-e8979b7f] {
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-e8979b7f] * {
vertical-align: text-bottom;
}
.app-sidebar .app-sidebar-header .app-sidebar-header__mainname--hidden[data-v-e8979b7f] {
position: absolute;
top: 0;
inset-inline-start: 0;
margin: 0;
width: 1px;
height: 1px;
overflow: hidden;
}
.app-sidebar .app-sidebar-header__description[data-v-e8979b7f] {
display: flex;
align-items: center;
margin: 0 10px;
}
@media only screen and (max-width: 512px) {
.app-sidebar[data-v-e8979b7f] {
position: absolute;
--app-sidebar-width: 100vw;
}
}
.slide-right-leave-active[data-v-e8979b7f],
.slide-right-enter-active[data-v-e8979b7f] {
transition-duration: var(--animation-quick);
transition-property: margin-inline-end;
}
.slide-right-enter-to[data-v-e8979b7f],
.slide-right-leave[data-v-e8979b7f] {
margin-inline-end: 0;
}
.slide-right-enter-from[data-v-e8979b7f],
.slide-right-leave-to[data-v-e8979b7f] {
margin-inline-end: calc(-1 * var(--app-sidebar-width));
}