-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmarp-naereen.css
90 lines (78 loc) · 2.84 KB
/
marp-naereen.css
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
/* Custom CSS for slides written in Markdown with Marp
- Ref: https://github.com/yhatt/marp/#customizing-slide-css
- Marp: https://github.com/yhatt/marp
- Author: Lilian Besson (Naereen) https://github.com/Naereen/
- License: MIT (https://lbesson.mit-license.org/)
*/
/* @theme naereen */
.slide {
/* Use the Palatino font for text */
font-family: "Palatino", "Palatino Linotype", "Palatino LT STD", "TeX Gyre Pagella", "Book Antiqua", Georgia, serif;
font-size: 95%;
}
.slide code, .slide pre {
/* Use the Fira Code font for code */
font-family: "Fira Code", "DejaVu Sans Mono", "Ubuntu Mono", "DejaVu Sans Mono Book", "Courier New", Courier, monospace;
font-size: 85%;
}
/* Enable all text ligatures in all the slides */
.slide {
-webkit-font-feature-settings: "liga" on, "hlig" on, "hist" on, "dlig" on, "zero" off, "calt" on, "swsh" on, "kern" on, "locl" on !important;
-moz-font-feature-settings: "liga" on, "hlig" on, "hist" on, "dlig" on, "zero" off, "calt" on, "swsh" on, "kern" on, "locl" on !important;
-ms-font-feature-settings: "liga" on, "hlig" on, "hist" on, "dlig" on, "zero" off, "calt" on, "swsh" on, "kern" on, "locl" on !important;
font-feature-settings: "liga" on, "hlig" on, "hist" on, "dlig" on, "zero" off, "calt" on, "swsh" on, "kern" on, "locl" on !important;
}
/* See https://stackoverflow.com/questions/3912694/using-markdown-how-do-i-center-an-image-and-its-caption */
.slide img[src*="#center"] {
display: block;
margin-left: auto;
margin-right: auto;
}
.slide img[src*="#right"] {
display: block;
margin-left: auto;
margin-right: 0;
}
.slide img[src*="#left"] {
display: block;
margin-left: 0;
margin-right: auto;
}
/* Justify paragraph? It was ugly in some tables... */
/* .slide_inner p {
text-align: justify;
text-align-last: left;
text-justify: inter-word;
} */
/* Try to align the slide to the top of the page */
.slide_inner {
position: absolute !important;
top: 8% !important;
}
.slide_inner code, .slide_inner pre {
max-width: 110%;
}
.slide_inner li code, .slide_inner li pre {
max-width: 80%;
}
/* Increase font-size for footer */
.slide .slide_footer {
font-size: 95% !important;
}
/* Use my own Hand-Written font for the "thank you" message at the end */
@font-face {
font-family: "Fontify";
src: url("../common/Fontify-Regular.ttf") format("truetype"),
url("../common/Fontify-Regular.otf") format("opentype"),
url("../common/Fontify-Regular.woff") format("woff");
}
.slide .fontify {
font-family: "Fontify", "Palatino", "Palatino Linotype", "Palatino LT STD", "TeX Gyre Pagella", "Book Antiqua", Georgia, serif;
font-size: 150%;
letter-spacing: -0.15em;
word-spacing: 0.30em;
text-align: right;
display: block;
margin-left: auto;
margin-right: 0;
}