-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.styl
114 lines (106 loc) · 2.43 KB
/
index.styl
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
// Customize reveal.js font and related features
:root
--r-main-font: Merriweather, serif
--r-heading-font: Merriweather, serif
--r-heading-text-transform: none
--r-background-color: black // Full black background
--r-selection-background-color: #444
// Small-caps heading option
//.reveal
// h1, h2, h3, h4, h5, h6
// font-variant: small-caps
// Extend fragment animations to 1 second
.reveal .slides section .fragment
opacity: 0
visibility: hidden
transition: all 1s ease
will-change: initial
&.visible
opacity: 1
visibility: inherit
// For debugging slide size, uncomment the following:
//.reveal .slides section
// background: #111
// height: 100%
// Left-justify bullets
ul, ol
width: calc(100% - 1em) // account for 1em left margin
box-sizing: border-box
// Inverse table headings
th
color: black
background: #ccc
border-color: black
// Citation styling: purple, never bold, smaller in headings
cite
color: #c0a5c0
font-weight: normal
/h2 &
font-size: 85%
// Column formatting:
// .columns
// .column = regular column, minimal possible width
// .column.arrow = rightward arrow
// .column.space = some blank space
// .column.fill = column that grows to fill available width
.columns
width: 100%
display: flex
align-items: center
justify-content: space-evenly
.column
text-align: center !important
max-height: 100%
display: flex
flex-direction: column
align-items: center
&.fill
flex-basis: 0
flex-grow: 1
align-self: stretch
&.space
width: 30px
&.arrow
margin: 0 10px
font-size: 200%
&:before
content: '🡆'
// Bootstrap helpers
.text-center
text-align: center !important
.vertical-middle
vertical-align: middle !important
.d-inline-block
display: inline-block
.justify-content-center
justify-content: center
.justify-content-between
justify-content: space-between
.h-100
height: 100%
.ml-1, span.space
margin-left: 0.25em
.ml-2
margin-left: 0.5em
// Additional helpers
.hidden
position: absolute
display: block
.invert
filter: invert(1) hue-rotate(180deg)
&.pop
filter: invert(1) hue-rotate(180deg) drop-shadow(0 0 1px white)
&.bright
filter: invert(1) hue-rotate(180deg) brightness(1.75) drop-shadow(0 0 1px white)
.full
margin: 0
max-width: 100%
max-height: 100%
.url
display: block
font-size: 40%
font-family: monospace
.sep
display: inline-block
color: #9a5b9a
margin: 0 0.25em