libreoffice-online/browser/css/color-palette.css
Pedro Pinto Silva 8d49e0cff5 CSS refactor: Fix duplicated & outdate px across light/dark modes
Do not place px in light or dark mode css instead use the shared
cool.css :root for that
- This avoid outdated values in the future
  - There was already one like that: --annotation-input-size
  had different values between light and dark mode

Signed-off-by: Pedro Pinto Silva <pedro.silva@collabora.com>
Change-Id: I5cd95a36e160003101f6f92108bb5244bfafcdd4
2023-04-11 13:01:54 +02:00

40 lines
1.5 KiB
CSS

:root {
/*LibreOffice Colors: https://wiki.documentfoundation.org/Marketing/Branding#Colors
* this is the color prefab for light mode
----------------------------------[to do]*/
--blue1-txt-primary-color: 3, 105, 163;
--green0-txt-primary-color: 16, 104, 2; /*green1 lacks contrast against white*/
--orange1-txt-primary-color: 163, 62, 3;
--yellow0-txt-primary-color: 135, 105, 0; /*yellow1 lacks contrast against white*/
--color-main-text: #333333;
--color-text-dark: #333333; /* select */
--color-text-darker: #000; /* hover */
--color-text-lighter: #696969; /* secondard text, disabled */
--color-main-background: #F8F9FA;
--color-background-dark: #e8e8e8; /* select */
--color-background-darker: #c0bfbc; /* todo: apply to pressed (active), li:hover(top menu on classic mode)*/
--color-background-lighter: #fff; /* hover, toolbar, dialog, disabled */
--color-overlay: #1c5fa814;
--color-primary: #0b87e7; /* border-color */
--color-primary-text: #fff; /* text color when primary-lighter is background */
--color-primary-dark: #0063b1;
--color-primary-darker: #004b86;
--color-primary-lighter: #83beec; /* background-color */
--color-border: #b6b6b6;
--color-border-dark: #cecece; /* select */
--color-border-darker: #c0bfbc; /* hover */
--color-border-lighter: #f1f1f1; /* disabled */
--color-btn-border: #b6b6b6;
--color-btn-border-dis: #c0bfbc;
--color-error: #e9322d;
--color-warning: #eca700;
--color-success: #46ba61;
--color-box-shadow: rgba(77, 77, 77, 0.5);
}