mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-11 09:11:05 +01:00
1.7 KiB
1.7 KiB
Styling
Our overall styling is a combination of our site-wide style (pixelegg), etemplate2.css and Shoelace styles
Some handy excerpts:
Global CSS variables
:root {
--primary-background-color: #4177a2;
--highlight-background-color: rgba(153, 204, 255, .4);
--label-color: #000000;
/* For fixed width labels - use class 'et2-label-fixed'*/
--label-width: 8em;
--input-border-color: #E6E6E6;
--input-text-color: #26537C;
--warning-color: rgba(255, 204, 0, .5);
--error-color: rgba(204, 0, 51, .5);
}
Useful CSS classes
hide
Hides the element using cssdisplay: none
hideme
Hides the element using cssdisplay: none !important;
et2-label-fixed
Use on a widget to force its label to have a fixed width. This helps line up labels and widgets into columns without
having to use a grid, which allows them to reflow if needed. Set the CSS variable --label_width
to change how much
space the labels get.
These widgets are in an et2-vbox:
Without et2-label-fixed class |
Fixed width labels using et2-label-fixed |
--label_width CSS variable changed for more space Note how 'Responsible' widget wraps |