Browse Source

Adjusting message colors

pull/2053/head
jlukic 9 years ago
parent
commit
c1f43c18b6
2 changed files with 54 additions and 41 deletions
  1. 49
      src/definitions/collections/message.less
  2. 46
      src/themes/default/collections/message.variables

49
src/definitions/collections/message.less

@ -52,7 +52,7 @@
display: @headerDisplay; display: @headerDisplay;
font-family: @headerFont; font-family: @headerFont;
font-weight: @headerFontWeight; font-weight: @headerFontWeight;
margin: 0em 0em @headerDistance 0em;
margin: @headerMargin;
} }
/* Default font size */ /* Default font size */
@ -149,7 +149,7 @@
} }
.ui.icon.visible.visible.visible.visible.message { .ui.icon.visible.visible.visible.visible.message {
display: table;
display: flex;
} }
/*-------------- /*--------------
@ -207,19 +207,21 @@
---------------*/ ---------------*/
.ui.icon.message { .ui.icon.message {
display: table;
display: flex;
width: 100%; width: 100%;
align-items: center;
} }
.ui.icon.message > .icon:not(.close) { .ui.icon.message > .icon:not(.close) {
display: table-cell;
display: block;
flex: 0 1 auto;
width: auto; width: auto;
vertical-align: @iconVerticalAlign; vertical-align: @iconVerticalAlign;
font-size: @iconSize; font-size: @iconSize;
opacity: @iconOpacity; opacity: @iconOpacity;
} }
.ui.icon.message > .content { .ui.icon.message > .content {
display: table-cell;
width: 100%;
display: block;
flex: 1 1 auto;
vertical-align: @iconVerticalAlign; vertical-align: @iconVerticalAlign;
} }
@ -230,11 +232,6 @@
.ui.icon.message .circular.icon { .ui.icon.message .circular.icon {
width: 1em; width: 1em;
} }
.ui.icon.message .circular.icon + .content {
width: auto;
padding-left: @circularIconContentDistance;
}
/*-------------- /*--------------
Floating Floating
---------------*/ ---------------*/
@ -264,10 +261,7 @@
} }
.ui.positive.message, .ui.positive.message,
.ui.attached.positive.message { .ui.attached.positive.message {
box-shadow:
0px 0px 0px @borderWidth @positiveBorderColor inset,
@shadowShadow
;
box-shadow: @positiveBoxShadow;
} }
.ui.positive.message .header { .ui.positive.message .header {
color: @positiveHeaderColor; color: @positiveHeaderColor;
@ -280,10 +274,7 @@
} }
.ui.negative.message, .ui.negative.message,
.ui.attached.negative.message { .ui.attached.negative.message {
box-shadow:
0px 0px 0px @borderWidth @negativeBorderColor inset,
@shadowShadow
;
box-shadow: @negativeBoxShadow;
} }
.ui.negative.message .header { .ui.negative.message .header {
color: @negativeHeaderColor; color: @negativeHeaderColor;
@ -296,10 +287,7 @@
} }
.ui.info.message, .ui.info.message,
.ui.attached.info.message { .ui.attached.info.message {
box-shadow:
0px 0px 0px @borderWidth @infoBorderColor inset,
@shadowShadow
;
box-shadow: @infoBoxShadow;
} }
.ui.info.message .header { .ui.info.message .header {
color: @infoHeaderColor; color: @infoHeaderColor;
@ -312,10 +300,7 @@
} }
.ui.warning.message, .ui.warning.message,
.ui.attached.warning.message { .ui.attached.warning.message {
box-shadow:
0px 0px 0px @borderWidth @warningBorderColor inset,
@shadowShadow
;
box-shadow: @warningBoxShadow;
} }
.ui.warning.message .header { .ui.warning.message .header {
color: @warningHeaderColor; color: @warningHeaderColor;
@ -328,10 +313,7 @@
} }
.ui.error.message, .ui.error.message,
.ui.attached.error.message { .ui.attached.error.message {
box-shadow:
0px 0px 0px @borderWidth @errorBorderColor inset,
@shadowShadow
;
box-shadow: @errorBoxShadow;
} }
.ui.error.message .header { .ui.error.message .header {
color: @errorHeaderColor; color: @errorHeaderColor;
@ -344,10 +326,7 @@
} }
.ui.success.message, .ui.success.message,
.ui.attached.success.message { .ui.attached.success.message {
box-shadow:
0px 0px 0px @borderWidth @successBorderColor inset,
@shadowShadow
;
box-shadow: @successBoxShadow;
} }
.ui.success.message .header { .ui.success.message .header {
color: @successHeaderColor; color: @successHeaderColor;

46
src/themes/default/collections/message.variables

@ -11,13 +11,13 @@
@verticalMargin: 1em; @verticalMargin: 1em;
@verticalPadding: 1em; @verticalPadding: 1em;
@horizontalPadding: 1.5em; @horizontalPadding: 1.5em;
@background: #EFEFEF;
@background: @darkWhite;
@lineHeightOffset: ((@lineHeight - 1em) / 2); @lineHeightOffset: ((@lineHeight - 1em) / 2);
@borderRadius: @defaultBorderRadius; @borderRadius: @defaultBorderRadius;
@borderWidth: 1px; @borderWidth: 1px;
@borderShadow: 0px 0px 0px @borderWidth @borderColor inset; @borderShadow: 0px 0px 0px @borderWidth @borderColor inset;
@shadowShadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
@shadowShadow: 0px 0px 0px transparent;
@boxShadow: @boxShadow:
@borderShadow, @borderShadow,
@shadowShadow @shadowShadow
@ -31,10 +31,11 @@
; ;
/* Header */ /* Header */
@headerFontSize: 1.1em;
@headerFontSize: @relativeLarge;
@headerFontWeight: bold; @headerFontWeight: bold;
@headerDisplay: block; @headerDisplay: block;
@headerDistance: 0.5rem;
@headerDistance: 0rem;
@headerMargin: -@headerLineHeightOffset 0em @headerDistance 0em;
@headerParagraphDistance: 0.25em; @headerParagraphDistance: 0.25em;
/* Paragraph */ /* Paragraph */
@ -64,9 +65,8 @@
/* Icon Message */ /* Icon Message */
@iconSize: 3em; @iconSize: 3em;
@iconOpacity: 0.8; @iconOpacity: 0.8;
@iconContentDistance: 1.5rem;
@iconContentDistance: 0rem;
@iconVerticalAlign: middle; @iconVerticalAlign: middle;
@circularIconContentDistance: 2em;
/* Attached */ /* Attached */
@attachedXOffset: -1px; @attachedXOffset: -1px;
@ -83,3 +83,37 @@
@floatingShadow, @floatingShadow,
@borderShadow @borderShadow
; ;
/* Warning / Positive / Negative / Info */
/*@positiveBorderColor: transparent;
@negativeBorderColor: transparent;
@negativeBorderColor: transparent;
@infoBorderColor: transparent;
@warningBorderColor: transparent;
@errorBorderColor: transparent;
@successBorderColor: transparent;*/
@positiveBoxShadow:
0px 0px 0px @borderWidth @positiveBorderColor inset,
@shadowShadow
;
@negativeBoxShadow:
0px 0px 0px @borderWidth @negativeBorderColor inset,
@shadowShadow
;
@infoBoxShadow:
0px 0px 0px @borderWidth @infoBorderColor inset,
@shadowShadow
;
@warningBoxShadow:
0px 0px 0px @borderWidth @warningBorderColor inset,
@shadowShadow
;
@errorBoxShadow:
0px 0px 0px @borderWidth @errorBorderColor inset,
@shadowShadow
;
@successBoxShadow:
0px 0px 0px @borderWidth @successBorderColor inset,
@shadowShadow
;
Loading…
Cancel
Save