Skip to content

Commit 4fd24dd

Browse files
Updated slide theme styles.
1 parent 607fe29 commit 4fd24dd

2 files changed

Lines changed: 68 additions & 6 deletions

File tree

framework/css/theme-llc.css

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ h1, h2 {
5757
h2 {
5858
font-size: 40px;
5959
}
60+
h2 + pre {
61+
margin-top: 25px;
62+
}
63+
h2 code {
64+
font-size: inherit;
65+
text-transform: lowercase;
66+
font-weight: normal;
67+
}
6068

6169
h3 {
6270
margin-bottom: 5px;
@@ -66,6 +74,14 @@ h3 + p {
6674
margin-top: 0;
6775
}
6876

77+
h4 {
78+
margin-bottom: 6px;
79+
letter-spacing: 0;
80+
}
81+
h4 + pre {
82+
margin-top: 6px;
83+
}
84+
6985
a {
7086
color: #444444;
7187
}
@@ -74,6 +90,9 @@ a:hover {
7490
color: #b109aa;
7591
}
7692

93+
pre {
94+
margin: 8px 0;
95+
}
7796
pre code {
7897
overflow-y: auto;
7998
}
@@ -118,6 +137,11 @@ footer .license img {
118137
padding: 45px 5%;
119138
height: 96%;
120139
}
140+
.slide:after {
141+
content: " ";
142+
display: block;
143+
height: 200px;
144+
}
121145
.slide img {
122146
max-width: 100%;
123147
}
@@ -177,8 +201,9 @@ textarea.snippet {
177201
font-size: 14px;
178202
padding: 2px 7px;
179203
position: relative;
180-
bottom: -33px;
204+
bottom: -10px;
181205
right: 8px;
206+
margin-bottom: -25px;
182207
}
183208

184209
/* table styles */
@@ -197,6 +222,9 @@ table img {
197222
.example p {
198223
margin: 10px 0;
199224
}
225+
.example:last-child {
226+
margin-bottom: 50px;
227+
}
200228

201229
/* Incremental slides */
202230
.delayed.displayed,

framework/sass/theme-llc.scss

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,15 @@ h1, h2 {
5858
}
5959
h2 {
6060
font-size: $font-size-h2;
61+
62+
+ pre {
63+
margin-top: 25px;
64+
}
65+
code {
66+
font-size: inherit;
67+
text-transform: lowercase;
68+
font-weight: normal;
69+
}
6170
}
6271
h3 {
6372
margin-bottom: 5px;
@@ -67,6 +76,14 @@ h3 {
6776
margin-top: 0;
6877
}
6978
}
79+
h4 {
80+
margin-bottom: 6px;
81+
letter-spacing: 0;
82+
83+
+ pre {
84+
margin-top: 6px;
85+
}
86+
}
7087

7188
a {
7289
color: $gray;
@@ -77,8 +94,12 @@ a {
7794
}
7895
}
7996

80-
pre code {
81-
overflow-y: auto;
97+
pre {
98+
margin: 8px 0;
99+
100+
code {
101+
overflow-y: auto;
102+
}
82103
}
83104
code {
84105
font-family: Monaco, Andale Mono, monospace;
@@ -122,7 +143,15 @@ footer {
122143
.slide {
123144
padding: 45px 5%;
124145
height: 96%;
125-
146+
147+
// Adds extra space to the bottom of the slides to allow
148+
// presenters to scroll the page up so people in the back
149+
// of the room can see the bottom of the slides.
150+
&:after {
151+
content: " ";
152+
display: block;
153+
height: 200px;
154+
}
126155
img {
127156
max-width: 100%;
128157
}
@@ -190,8 +219,9 @@ textarea.snippet {
190219
font-size: 14px;
191220
padding: 2px 7px;
192221
position: relative;
193-
bottom: -33px;
194-
right: 8px;
222+
bottom: -10px;
223+
right: 8px;
224+
margin-bottom: -25px;
195225
}
196226

197227

@@ -214,6 +244,10 @@ table {
214244
p {
215245
margin: 10px 0;
216246
}
247+
248+
&:last-child {
249+
margin-bottom: 50px;
250+
}
217251
}
218252

219253
/* Incremental slides */

0 commit comments

Comments
 (0)