Expand and harmonize color sets.
This commit is contained in:
@@ -9,24 +9,18 @@
|
||||
\providelength{\boxoutpadding}[1em]
|
||||
\providelength{\boxoutrule}[1pt]
|
||||
|
||||
\colorlet{BoxoutBGColor}{PrimePaleBlue}
|
||||
\colorlet{BoxoutFGColor}{PrimeBlue}
|
||||
|
||||
\definecolor{WarningBoxBGColor}{RGB}{255, 221, 118}
|
||||
\definecolor{WarningBoxFGColor}{RGB}{255, 150, 0}
|
||||
|
||||
\NewTblrEnviron{tblrBoxout}
|
||||
\SetTblrInner[tblrBoxout]{
|
||||
cells = {BoxoutBGColor},
|
||||
cells = {boxoutBG},
|
||||
hborder{1} = {belowspace=\boxoutpadding},
|
||||
hborder{Z} = {abovespace=\boxoutpadding},
|
||||
hlines = {0pt,BoxoutBGColor},
|
||||
hline{1,Z} = {\boxoutrule,BoxoutFGColor},
|
||||
hlines = {0pt,boxoutBG},
|
||||
hline{1,Z} = {\boxoutrule,boxoutFG},
|
||||
%row{1} = {font={\bfseries\sbfamily}},
|
||||
vborder{1} = {rightspace=\boxoutpadding},
|
||||
vborder{Z} = {leftspace=\boxoutpadding},
|
||||
vlines = {0pt,BoxoutBGColor},
|
||||
vline{1,Z} = {\boxoutrule,BoxoutFGColor},
|
||||
vlines = {0pt,boxoutBG},
|
||||
vline{1,Z} = {\boxoutrule,boxoutFG},
|
||||
}
|
||||
|
||||
\NewDocumentEnvironment{@boxout}{
|
||||
@@ -51,8 +45,8 @@
|
||||
+b
|
||||
}{%
|
||||
\ifthenelse{\equal{#4}{w}\OR\equal{#4}{W}}{%
|
||||
\colorlet{BoxoutBGColor}{WarningBoxBGColor}%
|
||||
\colorlet{BoxoutFGColor}{WarningBoxFGColor}%
|
||||
\colorlet{boxoutBG}{warningBG}%
|
||||
\colorlet{boxoutFG}{warningFG}%
|
||||
}{}%
|
||||
\IfBlankTF{#3}{%
|
||||
\begin{@boxout}{#1}{#2}{}%
|
||||
@@ -101,7 +95,7 @@
|
||||
|
||||
\NewDocumentEnvironment{WrapBoxout}{
|
||||
% position [l,r,i,o]
|
||||
O{O}
|
||||
O{o}
|
||||
% offset
|
||||
O{\marparwidth}
|
||||
% width
|
||||
|
||||
Reference in New Issue
Block a user