2024-06-18 10:46:56 -04:00
|
|
|
/*!
|
2024-05-10 09:09:14 -04:00
|
|
|
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2017-01-11 08:16:05 -05:00
|
|
|
*/
|
2022-05-04 03:27:46 -04:00
|
|
|
@use 'variables';
|
|
|
|
|
@import 'functions';
|
2017-01-11 08:16:05 -05:00
|
|
|
|
|
|
|
|
/* GLOBAL ------------------------------------------------------------------- */
|
2016-12-22 05:17:06 -05:00
|
|
|
[class^='icon-'], [class*=' icon-'] {
|
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
background-position: center;
|
|
|
|
|
min-width: 16px;
|
|
|
|
|
min-height: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-breadcrumb {
|
|
|
|
|
background-image: url('../img/breadcrumb.svg?v=1');
|
|
|
|
|
}
|
|
|
|
|
|
2017-01-11 08:16:05 -05:00
|
|
|
/* LOADING ------------------------------------------------------------------ */
|
2018-06-14 03:25:19 -04:00
|
|
|
.loading,
|
|
|
|
|
.loading-small,
|
|
|
|
|
.icon-loading,
|
|
|
|
|
.icon-loading-dark,
|
|
|
|
|
.icon-loading-small,
|
|
|
|
|
.icon-loading-small-dark {
|
2016-12-22 05:17:06 -05:00
|
|
|
position: relative;
|
2017-01-11 08:12:39 -05:00
|
|
|
&:after {
|
|
|
|
|
z-index: 2;
|
|
|
|
|
content: '';
|
2017-09-14 05:07:51 -04:00
|
|
|
height: 28px;
|
|
|
|
|
width: 28px;
|
2017-01-11 08:12:39 -05:00
|
|
|
margin: -16px 0 0 -16px;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 50%;
|
2023-12-19 13:12:52 -05:00
|
|
|
inset-inline-start: 50%;
|
2017-01-11 08:12:39 -05:00
|
|
|
border-radius: 100%;
|
|
|
|
|
-webkit-animation: rotate .8s infinite linear;
|
|
|
|
|
animation: rotate .8s infinite linear;
|
|
|
|
|
-webkit-transform-origin: center;
|
|
|
|
|
-ms-transform-origin: center;
|
|
|
|
|
transform-origin: center;
|
2018-06-14 03:25:19 -04:00
|
|
|
border: 2px solid var(--color-loading-light);
|
|
|
|
|
border-top-color: var(--color-loading-dark);
|
2022-04-01 09:19:15 -04:00
|
|
|
// revert if background is too bright
|
2022-04-20 04:40:09 -04:00
|
|
|
filter: var(--background-invert-if-dark);
|
2022-04-01 09:19:15 -04:00
|
|
|
|
|
|
|
|
.primary &,
|
|
|
|
|
.primary + & {
|
|
|
|
|
// revert if primary is too bright
|
|
|
|
|
filter: var(--primary-invert-if-bright);
|
|
|
|
|
}
|
2017-01-11 08:12:39 -05:00
|
|
|
}
|
2016-12-22 05:17:06 -05:00
|
|
|
}
|
|
|
|
|
|
2017-01-11 08:12:39 -05:00
|
|
|
.icon-loading-dark:after,
|
|
|
|
|
.icon-loading-small-dark:after {
|
2018-06-14 03:25:19 -04:00
|
|
|
border: 2px solid var(--color-loading-dark);
|
|
|
|
|
border-top-color: var(--color-loading-light);
|
2016-12-22 05:17:06 -05:00
|
|
|
}
|
|
|
|
|
|
2017-01-11 08:12:39 -05:00
|
|
|
.icon-loading-small:after,
|
|
|
|
|
.icon-loading-small-dark:after {
|
2017-09-14 05:07:51 -04:00
|
|
|
height: 12px;
|
|
|
|
|
width: 12px;
|
2016-12-22 05:17:06 -05:00
|
|
|
margin: -8px 0 0 -8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* Css replaced elements don't have ::after nor ::before */
|
2020-02-27 04:35:54 -05:00
|
|
|
audio, canvas, embed, iframe, img, input, object, video {
|
2020-02-27 04:25:58 -05:00
|
|
|
&.icon-loading {
|
2017-01-11 08:12:39 -05:00
|
|
|
background-image: url('../img/loading.gif');
|
2016-12-22 05:17:06 -05:00
|
|
|
}
|
2020-02-27 04:25:58 -05:00
|
|
|
&.icon-loading-dark {
|
2017-01-11 08:12:39 -05:00
|
|
|
background-image: url('../img/loading-dark.gif');
|
|
|
|
|
}
|
2020-02-27 04:25:58 -05:00
|
|
|
&.icon-loading-small {
|
2017-01-11 08:12:39 -05:00
|
|
|
background-image: url('../img/loading-small.gif');
|
|
|
|
|
}
|
2020-02-27 04:25:58 -05:00
|
|
|
&.icon-loading-small-dark {
|
2017-01-11 08:12:39 -05:00
|
|
|
background-image: url('../img/loading-small-dark.gif');
|
2016-12-22 05:17:06 -05:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@keyframes rotate {
|
|
|
|
|
from {
|
|
|
|
|
transform: rotate(0deg);
|
|
|
|
|
}
|
|
|
|
|
to {
|
|
|
|
|
transform: rotate(360deg);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-32 {
|
|
|
|
|
background-size: 32px !important;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-04 03:27:46 -04:00
|
|
|
.icon-white.icon-shadow,
|
|
|
|
|
.icon-audio-white,
|
|
|
|
|
.icon-audio-off-white,
|
|
|
|
|
.icon-fullscreen-white,
|
|
|
|
|
.icon-screen-white,
|
|
|
|
|
.icon-screen-off-white,
|
|
|
|
|
.icon-video-white,
|
2016-12-22 05:17:06 -05:00
|
|
|
.icon-video-off-white {
|
2018-06-29 10:10:53 -04:00
|
|
|
filter: drop-shadow(1px 1px 4px var(--color-box-shadow));
|
2016-12-22 05:17:06 -05:00
|
|
|
}
|
|
|
|
|
|
2022-05-10 10:47:48 -04:00
|
|
|
/* ICONS -------------------------------------------------------------------
|
|
|
|
|
* These icon classes are generated automatically with the following pattern
|
|
|
|
|
* .icon-close (black icon)
|
|
|
|
|
* .icon-close-white (white icon)
|
|
|
|
|
* .icon-close.icon-white (white icon)
|
|
|
|
|
*
|
|
|
|
|
* Some class definitions are kept as before, since they don't follow the pattern
|
|
|
|
|
* or have some additional styling like drop shadows
|
|
|
|
|
*/
|
2019-02-13 16:48:20 -05:00
|
|
|
|
2022-05-10 10:47:48 -04:00
|
|
|
@import url('../../dist/icons.css');
|