From 46d2e0510a2d3073a5416b8bab67beb060bfc22d Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Wed, 4 May 2016 16:26:42 -0400 Subject: [PATCH] fixed standard out ansi color codes --- awx/ui/client/legacy-styles/stdout.less | 37 +++++++++++-------- .../src/shared/branding/colors.default.less | 5 ++- 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/awx/ui/client/legacy-styles/stdout.less b/awx/ui/client/legacy-styles/stdout.less index 61a29dd706..7d15a11c53 100644 --- a/awx/ui/client/legacy-styles/stdout.less +++ b/awx/ui/client/legacy-styles/stdout.less @@ -5,6 +5,8 @@ * */ + @import "awx/ui/client/src/shared/branding/colors.default.less"; + #jobs-stdout { margin-bottom: 20px; @@ -43,22 +45,25 @@ .ansi3 { font-weight: italic; } .ansi4 { text-decoration: underline; } .ansi9 { text-decoration: line-through; } -.ansi30 { color: #000316; } -.ansi31 { color: @red; } -.ansi32 { color: @green; } -.ansi33 { color: @changed; } -.ansi34 { color: #0000AA; } -.ansi35 { color: #E850A8; } -.ansi36 { color: @skipped; } -.ansi37 { color: #F5F1DE; } -.ansi40 { background-color: #000316; } -.ansi41 { background-color: @red; } -.ansi42 { background-color: @green; } -.ansi43 { background-color: @changed; } -.ansi44 { background-color: #0000AA; } -.ansi45 { background-color: #E850A8; } -.ansi46 { background-color: @skipped; } -.ansi47 { background-color: #F5F1DE; } +.ansi30 { color: @default-stdout-txt; } +.ansi31 { color: @default-err; } +.ansi1.ansi31 { + color: @default-unreachable; +} +.ansi32 { color: @default-succ; } +.ansi33 { color: @default-warning; } +.ansi34 { color: @default-link; } +.ansi35 { color: @default-magenta; } +.ansi36 { color: @default-cyan; } +.ansi37 { color: @default-bg; } +.ansi40 { background-color: @default-stdout-txt; } +.ansi41 { background-color: @default-err; } +.ansi42 { background-color: @default-succ; } +.ansi43 { background-color: @default-warning; } +.ansi44 { background-color: @default-link; } +.ansi45 { background-color: @default-magenta; } +.ansi46 { background-color: @default-cyan; } +.ansi47 { background-color: @default-bg; } #pre-container-content > span { display: inline-block; diff --git a/awx/ui/client/src/shared/branding/colors.default.less b/awx/ui/client/src/shared/branding/colors.default.less index e1453af845..2e986fdb9f 100644 --- a/awx/ui/client/src/shared/branding/colors.default.less +++ b/awx/ui/client/src/shared/branding/colors.default.less @@ -20,13 +20,16 @@ @default-stdout-txt: #707070; @default-dark: #000000; -// TODO: not used yet! @default-warning: #F0AD4E; @default-warning-hov: #EC971F; @default-unreachable: #FF0000; @default-unreachable-hov:#D81F1F; @default-white-button-bord:#E1E1E1; +// these are not used in the app, there derived from an engineering standard, and we just to include them in case some standard out came back using those ansi codes +@default-magenta: #E1539E; +@default-cyan: #2DBABA; + // layout @page-bg: @default-secondary-bg;