forked from tuna/thulib-latex-talk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
beamerthemematerial.sty
46 lines (38 loc) · 1.74 KB
/
beamerthemematerial.sty
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
\mode<presentation>
% Requirement
\RequirePackage{tikz}
\RequirePackage{xcolor}
\RequirePackage[sfdefault]{roboto}
\RequirePackage[many]{tcolorbox}
% Settings
\useinnertheme{material}
\useoutertheme{material}
\usecolortheme{material}
\setbeamertemplate{navigation symbols}{}
\setbeamerfont*{title}{size=\Huge}
\setbeamerfont*{frametitle}{size=\large}
\newenvironment{card}{%
\begin{tcolorbox}[colback=BGgrey04, colbacktitle=primary, %
enhanced, sharpish corners=all,%
fuzzy shadow={0mm}{ 0.9mm}{ 0.6mm}{0.2mm}{shadow!20!BGgrey03}, % top
fuzzy shadow={0mm}{-0.6mm}{-0.1mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
fuzzy shadow={0mm}{-0.2mm}{-0.2mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
title filled, boxrule=0mm,
left=2mm, right=2mm, top=0mm, bottom=0mm, middle=1mm,
segmentation code={\path[draw=BGgrey01](segmentation.west) -- (segmentation.east);}]%
}{%
\end{tcolorbox}%
}
\newenvironment{cardTitle}[1]{%
\begin{tcolorbox}[colback=BGgrey04, colbacktitle=primary, %
enhanced, sharpish corners=all,%
fuzzy shadow={0mm}{ 0.9mm}{ 0.6mm}{0.2mm}{shadow!20!BGgrey03}, % top
fuzzy shadow={0mm}{-0.6mm}{-0.1mm}{0.2mm}{shadow!40!BGgrey03}, % bottomSmall
fuzzy shadow={0mm}{-0.2mm}{-0.2mm}{0.2mm}{shadow!20!BGgrey03}, % bottomBig
title filled, boxrule=0mm, title=#1,
left=2mm, right=2mm, top=2mm, bottom=2mm, middle=2mm, toptitle=2mm, bottomtitle=2mm,
segmentation code={\path[draw=BGgrey01](segmentation.west) -- (segmentation.east);}]%
}{%
\end{tcolorbox}%
}
\mode<all>