aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/css/default.css
diff options
context:
space:
mode:
Diffstat (limited to 'apps/theming/css/default.css')
-rw-r--r--apps/theming/css/default.css121
1 files changed, 91 insertions, 30 deletions
diff --git a/apps/theming/css/default.css b/apps/theming/css/default.css
index 4bd9fb13bb8..41f0272f017 100644
--- a/apps/theming/css/default.css
+++ b/apps/theming/css/default.css
@@ -1,57 +1,118 @@
+/** SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors */
+/** SPDX-License-Identifier: AGPL-3.0-or-later */
:root {
--color-main-background: #ffffff;
--color-main-background-rgb: 255,255,255;
--color-main-background-translucent: rgba(var(--color-main-background-rgb), .97);
+ --color-main-background-blur: rgba(var(--color-main-background-rgb), .8);
+ --filter-background-blur: blur(25px);
--gradient-main-background: var(--color-main-background) 0%, var(--color-main-background-translucent) 85%, transparent 100%;
--color-background-hover: #f5f5f5;
+ /** Can be used e.g. to colorize selected table rows */
--color-background-dark: #ededed;
+ /** This should only be used for elements, not as a text background! Otherwise it will not work for accessibility. */
--color-background-darker: #dbdbdb;
--color-placeholder-light: #e6e6e6;
--color-placeholder-dark: #cccccc;
- --color-primary: #0082c9;
- --color-primary-text: #ffffff;
- --color-primary-hover: #329bd3;
- --color-primary-light: #e5f2f9;
- --color-primary-light-text: #0082c9;
- --color-primary-light-hover: #1e2b32;
- --color-primary-text-dark: #ededed;
- --color-primary-element: #0082c9;
- --color-primary-element-hover: #198ece;
- --color-primary-element-light: #17adff;
- --color-primary-element-lighter: #d8ecf6;
--color-main-text: #222222;
- --color-text-maxcontrast: #767676;
- --color-text-light: #222222;
- --color-text-lighter: #767676;
- --color-error: #e9322d;
- --color-error-hover: #ed5a56;
- --color-warning: #eca700;
- --color-warning-hover: #efb832;
- --color-success: #46ba61;
- --color-success-hover: #6ac780;
+ --color-text-maxcontrast: #6b6b6b;
+ --color-text-maxcontrast-default: #6b6b6b;
+ --color-text-maxcontrast-background-blur: #595959;
+ /** @deprecated use ` --color-main-text` instead */
+ --color-text-light: var(--color-main-text);
+ /** @deprecated use `--color-text-maxcontrast` instead */
+ --color-text-lighter: var(--color-text-maxcontrast);
+ --color-scrollbar: var(--color-border-maxcontrast) transparent;
+ --color-error: #DB0606;
+ --color-error-rgb: 219,6,6;
+ --color-error-hover: #df2525;
+ --color-error-text: #c20505;
+ --color-warning: #A37200;
+ --color-warning-rgb: 163,114,0;
+ --color-warning-hover: #8a6000;
+ --color-warning-text: #7f5900;
+ --color-success: #2d7b41;
+ --color-success-rgb: 45,123,65;
+ --color-success-hover: #428854;
+ --color-success-text: #286c39;
+ --color-info: #0071ad;
+ --color-info-rgb: 0,113,173;
+ --color-info-hover: #197fb5;
+ --color-info-text: #006499;
+ --color-favorite: #A37200;
--color-loading-light: #cccccc;
--color-loading-dark: #444444;
--color-box-shadow-rgb: 77,77,77;
--color-box-shadow: rgba(var(--color-box-shadow-rgb), 0.5);
--color-border: #ededed;
--color-border-dark: #dbdbdb;
- --font-face: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', Arial, sans-serif, 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
+ --color-border-maxcontrast: #7d7d7d;
+ --font-face: system-ui, -apple-system, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
--default-font-size: 15px;
+ --font-size-small: 13px;
+ /* 1.5 x font-size for accessibility */
+ --default-line-height: 1.5;
--animation-quick: 100ms;
--animation-slow: 300ms;
- --border-radius: 3px;
- --border-radius-large: 10px;
+ /** Border width for input elements such as text fields and selects */
+ --border-width-input: 1px;
+ --border-width-input-focused: 2px;
+
+ /* Border radii (new values) */
+ --border-radius-small: 4px; /* For smaller elements */
+ --border-radius-element: 8px; /* For interactive elements such as buttons, input, navigation and list items */
+ --border-radius-container: 12px; /* For smaller containers like action menus */
+ --border-radius-container-large: 16px; /* For larger containers like body or modals */
+
+ /* Border radii (deprecated) */
+ --border-radius: var(--border-radius-small);
+ --border-radius-large: var(--border-radius-element);
+ --border-radius-rounded: 28px;
--border-radius-pill: 100px;
- --default-line-height: 24px;
+
+ --default-clickable-area: 34px;
+ --clickable-area-large: 48px;
+ --clickable-area-small: 24px;
+ --default-grid-baseline: 4px;
+
--header-height: 50px;
+ --header-menu-item-height: 44px;
+ /* An alpha mask to be applied to all icons on the navigation bar (header menu).
+ * Icons are have a size of 20px but usually we use MDI which have a content of 16px so 2px padding top bottom,
+ * for better gradient we must at first begin at those 2px (10% of height) as start and stop positions.
+ */
+ --header-menu-icon-mask: linear-gradient(var(--color-background-plain-text) 25%, color-mix(in srgb, var(--color-background-plain-text), 55% transparent) 90%) alpha;
+
--navigation-width: 300px;
--sidebar-min-width: 300px;
--sidebar-max-width: 500px;
- --list-min-width: 200px;
- --list-max-width: 300px;
- --header-menu-item-height: 44px;
- --header-menu-profile-item-height: 66px;
+ /* Border radius of the body container */
+ --body-container-radius: var(--border-radius-container-large);
+ /* Margin of the body container */
+ --body-container-margin: calc(var(--default-grid-baseline) * 2);
+ /* Height of the body container to fully fill the view port */
+ --body-height: calc(100% - env(safe-area-inset-bottom) - var(--header-height) - var(--body-container-margin));
--breakpoint-mobile: 1024px;
- --primary-invert-if-bright: unset;
- --background-invert-if-dark: unset;
+ --background-invert-if-dark: no;
+ --background-invert-if-bright: invert(100%);
+ --background-image-invert-if-bright: no;
+ --primary-invert-if-bright: no;
+ --primary-invert-if-dark: invert(100%);
+ --color-primary: #00679e;
+ --color-primary-text: #ffffff;
+ --color-primary-hover: #3285b1;
+ --color-primary-light: #e5eff5;
+ --color-primary-light-text: #00293f;
+ --color-primary-light-hover: #dbe4ea;
+ --color-primary-element: #00679e;
+ --color-primary-element-hover: #005a8a;
+ --color-primary-element-text: #ffffff;
+ --color-primary-element-text-dark: #f5f5f5;
+ --color-primary-element-light: #e5eff5;
+ --color-primary-element-light-hover: #dbe4ea;
+ --color-primary-element-light-text: #00293f;
+ --gradient-primary-background: linear-gradient(40deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
+ --color-background-plain: #00679e;
+ --color-background-plain-text: #ffffff;
+ --image-background: url('/apps/theming/img/background/jenna-kim-the-globe.webp');
}