mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-25 06:31:59 +01:00
Define some system-wide CSS variables that can be used anywhere, set error color
This commit is contained in:
parent
bd066ef321
commit
5a324e448a
@ -23,8 +23,6 @@ export const colorsDefStyles = css`
|
|||||||
|
|
||||||
--btn-label-color: #000000;
|
--btn-label-color: #000000;
|
||||||
|
|
||||||
--input-border-color: #E6E6E6;
|
|
||||||
--input-text-color: #26537C;
|
|
||||||
|
|
||||||
/****** Backgrounds *******/
|
/****** Backgrounds *******/
|
||||||
--bg_color_0_gray : #FFFFFF;
|
--bg_color_0_gray : #FFFFFF;
|
||||||
|
@ -3,20 +3,49 @@
|
|||||||
*
|
*
|
||||||
* @version: $Id$
|
* @version: $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Magic suggest / tag list widget
|
* Naming convention:
|
||||||
|
* --[block][--element][--modifier]-attribute
|
||||||
|
*
|
||||||
|
* Some system-wide variables
|
||||||
|
* These are logical (eg: error, active, highlight, header) not stylistic (red, grey)
|
||||||
|
* By defining them here they are available inside WebComponents as well, though any CSS defined here that
|
||||||
|
* applies to slotted elements takes precedence over what's in the WebComponent's style.
|
||||||
|
*
|
||||||
|
* For variables it is better to omit the block and element parts of the name.
|
||||||
|
* For example, --error-color is better than --message_wrapper--message--error-color because it can be used in
|
||||||
|
* more places (logically, no technical limitation on the variable).
|
||||||
|
* If a specific value is needed for some element, it is probably better to re-set
|
||||||
|
* the less specific variable rather than define a new variable:
|
||||||
|
* :root {
|
||||||
|
* --error-color: pink;
|
||||||
|
* --error-background-color: initial;
|
||||||
|
* }
|
||||||
|
* .nextmatch--header {
|
||||||
|
* --error-color: fuchsia;
|
||||||
|
* --error-background-color: black;
|
||||||
|
* }
|
||||||
|
* This will have any child elements under the block with nextmatch--header class use the more specific values, while
|
||||||
|
* letting us stick with one variable.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @see http://getbem.com/naming/ for what inspired naming convention
|
||||||
*/
|
*/
|
||||||
/* These imports processed by framework */
|
:root {
|
||||||
/*@import url("../../../vendor/egroupware/magicsuggest/magicsuggest.css");*/
|
--primary-background-color: #4177a2;
|
||||||
/*@import url("../../js/jquery/jquery-ui-timepicker-addon.css");*/
|
--highlight-background-color: rgba(153, 204, 255, .4);
|
||||||
/*@import url("../../js/jquery/blueimp/css/blueimp-gallery.min.css");*/
|
|
||||||
/*@import url("../../js/dhtmlxtree/codebase/dhtmlxtree.css");*/
|
--label-color: #000000;
|
||||||
/*@import url("../../js/egw_action/test/skins/dhtmlxmenu_egw.css");*/
|
|
||||||
/*@import url("../../../vendor/bower-asset/diff2html/dist/diff2html.css");*/
|
--input-border-color: #E6E6E6;
|
||||||
/*@import url("../../../vendor/bower-asset/cropper/dist/cropper.min.css");*/
|
--input-text-color: #26537C;
|
||||||
/*@import url("css/flags.css");*/
|
|
||||||
/*@import url("css/htmlarea.css");*/
|
--warning-color: rgba(255, 204, 0, .5);
|
||||||
/*@import url("def_tutorials.css");*/
|
--error-color: rgba(204, 0, 51, .5);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Top level
|
* Top level
|
||||||
*/
|
*/
|
||||||
@ -1937,7 +1966,7 @@ td.et2_required {
|
|||||||
-moz-border-radius: 0 4px 4px 0;
|
-moz-border-radius: 0 4px 4px 0;
|
||||||
-moz-box-shadow: 0 0 6px #DDDDDD;
|
-moz-box-shadow: 0 0 6px #DDDDDD;
|
||||||
background-color: #FFFE36;
|
background-color: #FFFE36;
|
||||||
border: 1px solid #E1E16D;
|
border: 1px solid var(--error-color, #E1E16D);
|
||||||
color: #000000;
|
color: #000000;
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
min-height: 15px;
|
min-height: 15px;
|
||||||
@ -2042,8 +2071,8 @@ div.message.floating, lion-validation-feedback[type] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.message.validation_error, lion-validation-feedback[type="error"] {
|
.message.validation_error, lion-validation-feedback[type="error"] {
|
||||||
color: #a93030;
|
color: var(--error-color);
|
||||||
border-color: #a93030;
|
border-color: var(--error-color);
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4078,7 +4078,7 @@ div#egwpopup_message {
|
|||||||
}
|
}
|
||||||
#msg,
|
#msg,
|
||||||
.message {
|
.message {
|
||||||
color: red;
|
color: var(--error-color);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
@ -4058,7 +4058,7 @@ div#egwpopup_message {
|
|||||||
}
|
}
|
||||||
#msg,
|
#msg,
|
||||||
.message {
|
.message {
|
||||||
color: red;
|
color: var(--error-color);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
@ -4068,7 +4068,7 @@ div#egwpopup_message {
|
|||||||
}
|
}
|
||||||
#msg,
|
#msg,
|
||||||
.message {
|
.message {
|
||||||
color: red;
|
color: var(--error-color);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
@ -249,7 +249,7 @@ div#egwpopup_message {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#msg,.message {
|
#msg,.message {
|
||||||
color: red;
|
color: var(--error-color);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
background: @gray_0;
|
background: @gray_0;
|
||||||
}
|
}
|
||||||
|
@ -4089,7 +4089,7 @@ div#egwpopup_message {
|
|||||||
}
|
}
|
||||||
#msg,
|
#msg,
|
||||||
.message {
|
.message {
|
||||||
color: red;
|
color: var(--error-color);
|
||||||
font-style: italic;
|
font-style: italic;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user