summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bfh-ci/bfh-layout-boxes.cfg
blob: 9eb7c6da2676efbaa0ca39a3bdcea42c412b0b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
%% This is file `bfh-layout-boxes.cfg' version 2.2.1 (2024-03-11),
%% it is part of
%% BFH-CI -- Corporate Design for Bern University of Applied Sciences
%% ----------------------------------------------------------------------------
%%
%%  Copyright (C) 2021–2024 by
%%      Marei Peischl <marei@peitex.de>
%%      Andreas Habegger <andreas.habegger@bfh.ch>
%%
%% ============================================================================
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2008/05/04 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%%
%% The Current Maintainers of this work are
%%   Marei Peischl <bfh-ci@peitex.de>
%%   Andreas Habegger <andreas.habegger@bfh.ch>
%%
%% The development respository can be found at
%% https://gitlab.ti.bfh.ch/bfh-latex/bfh-ci/
%% Please use the issue tracker for feedback!
%%
%% ============================================================================
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{bfh-layout-boxes.cfg}[2024-03-11 v2.2.1 boxes configuration for bfhlayout]
\RequirePackage{bfhcolors}
\RequirePackage{fontawesome}
\PassOptionsToPackage{most}{tcolorbox}
\RequirePackage{tcolorbox}
%%
%% Usage of "bfhBox" :
%% \begin{bfhBox}{TITLE} Some Text \end{bfhBox}
%% \begin{bfhBox}[SOME_COLOR]{TITLE} Some Text \end{bfhBox}
%%
\newtcolorbox{bfhBox}[2][BFH-MediumGreen]{%
	enhanced,
	boxsep=1.5pt,
	arc=.25ex,
	colback=#1!10,
	colframe=#1!50,
	boxrule=1pt,
	title={\normalsize\sffamily\bfseries#2},
}%

\colorlet{BFH-warnbox}{BFH-Orange!10}
\colorlet{BFH-warnboxframe}{BFH-Orange!50}

\newtcolorbox{bfhWarnBox}{%
	enhanced,
	boxsep=1.5pt,
	arc=.25ex,
	colback=BFH-warnbox,
	colframe=BFH-warnboxframe,
	boxrule=1pt,
	leftrule=24pt,
	overlay unbroken and first ={%
			\node[rotate=0,
				minimum width=24mm,
				anchor=south,
				font=\normalsize\sffamily\bfseries,
				yshift=-8pt,
				xshift=12pt,
				white]
			at (frame.west) {\large\faWarning}; }%
}%

\colorlet{BFH-alertbox}{BFH-DarkRed!10}
\colorlet{BFH-alertboxframe}{BFH-DarkRed!50}

\newtcolorbox{bfhAlertBox}{%
	enhanced,
	boxsep=1.5pt,
	arc=.25ex,
	colback=BFH-alertbox,
	colframe=BFH-alertboxframe,
	boxrule=1pt,
	leftrule=24pt,
	overlay unbroken and first ={%
			\node[rotate=0,
				minimum width=24mm,
				anchor=south,
				font=\normalsize\sffamily\bfseries,
				yshift=-8pt,
				xshift=12pt,
				white]
			at (frame.west) {\large\faExclamationCircle}; }%
}%

\colorlet{BFH-notebox}{BFH-MediumBlue!10}
\colorlet{BFH-noteboxframe}{BFH-MediumBlue!50}

\newtcolorbox{bfhNoteBox}{%
	enhanced,
	boxsep=1.5pt,
	arc=.25ex,
	colback=BFH-notebox,
	colframe=BFH-noteboxframe,
	boxrule=1pt,
	leftrule=24pt,
	overlay unbroken and first ={%
			\node[rotate=0,
				minimum width=24mm,
				anchor=south,
				font=\normalsize\sffamily\bfseries,
				yshift=-8pt,
				xshift=12pt,
				white]
			at (frame.west) {\large\faInfoCircle}; }%
}%

\colorlet{BFH-recyclebox}{BFH-MediumGreen!10}
\colorlet{BFH-recycleframe}{BFH-MediumGreen!50}

\newtcolorbox{bfhRecycleBox}{%
	enhanced,
	boxsep=1.5pt,
	arc=.25ex,
	colback=BFH-recyclebox,
	colframe=BFH-recycleframe,
	boxrule=1pt,
	leftrule=24pt,
	overlay unbroken and first ={%
			\node[rotate=0,
				minimum width=24mm,
				anchor=south,
				font=\normalsize\sffamily\bfseries,
				yshift=-10pt,
				xshift=12pt,
				white]
			at (frame.west) {\large\faRecycle}; }%
}%

\colorlet{BFH-readbox}{BFH-MediumPurple!10}
\colorlet{BFH-readboxframe}{BFH-MediumPurple!50}

\newtcolorbox{bfhReadBox}{%
	enhanced,
	boxsep=1.5pt,
	arc=.25ex,
	colback=BFH-readbox,
	colframe=BFH-readboxframe,
	boxrule=1pt,
	leftrule=24pt,
	overlay unbroken and first ={%
			\node[rotate=0,
				minimum width=24mm,
				anchor=south,
				font=\normalsize\sffamily\bfseries,
				yshift=-9pt,
				xshift=12pt,
				white]
			at (frame.west) {\large\faBook}; }%
}%

\colorlet{BFH-processingbox}{BFH-MediumOcher!10}
\colorlet{BFH-processingboxframe}{BFH-MediumOcher!50}

\newtcolorbox{bfhProcessingBox}{%
	enhanced,
	boxsep=1.5pt,
	arc=.25ex,
	colback=BFH-processingbox,
	colframe=BFH-processingboxframe,
	boxrule=1pt,
	leftrule=24pt,
	overlay unbroken and first ={%
			\node[rotate=0,
				minimum width=24mm,
				anchor=south,
				font=\normalsize\sffamily\bfseries,
				yshift=-10pt,
				xshift=12pt,
				white]
			at (frame.west) {\large\faCogs}; }%
}%

\endinput