Skip to content

Commit 126c36d

Browse files
committed
refactor: [slides] Move slides styles into scss
Remove styles from 'slides/style.html' and move them into SASS partial 'styles/_slides.scss'. Import the partial in 'styles/app.scss'.
1 parent 4a8dfe8 commit 126c36d

File tree

3 files changed

+32
-48
lines changed

3 files changed

+32
-48
lines changed

assets/styles/_slides.scss

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
:root {
2+
--r-background-color: #{$background--light};
3+
--r-code-font: #{$font-family-mono};
4+
--r-heading-color: #{$text--light};
5+
--r-heading-font: #{$font-family-title};
6+
--r-link-color: #{$text-links--light};
7+
--r-main-color: #{$text--light};
8+
--r-main-font-size: #{$font-size};
9+
--r-main-font: #{$font-family-normal};
10+
}
11+
12+
.reveal {
13+
width: 100%;
14+
height: $spacer-large * 25;
15+
}
16+
17+
.header-left,
18+
.footer-left {
19+
position: absolute;
20+
left: 0%;
21+
margin: $spacer-large;
22+
padding: $spacer-small;
23+
}
24+
25+
.header-left {
26+
top: 0%;
27+
}
28+
29+
.footer-left {
30+
bottom: 0%;
31+
}

assets/styles/app.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@
1313
/* code syntax highlight */
1414
@import "gen_syntax";
1515
@import "syntax";
16+
@import "slides";

layouts/partials/slides/style.html

Lines changed: 0 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,3 @@
11
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/reveal.min.css" />
22
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/theme/black.min.css" id="theme" />
33
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/4.4.0/plugin/highlight/monokai.min.css" />
4-
5-
<style type="text/css">
6-
:root {
7-
--r-background-color: rgb(29, 33, 44);
8-
--r-main-color: aqua;
9-
--r-heading-color: aqua;
10-
--r-heading-text-transform: none;
11-
--r-main-font-size: 1.2em;
12-
--r-main-font: Arial, Helvetica, Verdana, sans-serif;
13-
--r-heading-font: "Times New Roman", Garamond, Georgia, serif;
14-
--r-code-font: "Ubuntu mono", "Fira code", monospace;
15-
--r-selection-color: white;
16-
--r-selection-background-color: blue;
17-
--r-link-color: lightgreen;
18-
--r-link-color-hover: magenta;
19-
}
20-
21-
code,
22-
kbd {
23-
color: #23b0ff;
24-
background: rgba(35, 176, 255, 0.2);
25-
padding: 1px 6px;
26-
margin: 0 2px;
27-
}
28-
29-
.header-left {
30-
position: absolute;
31-
top: 0%;
32-
left: 0%;
33-
margin: 20px;
34-
padding: 10px;
35-
}
36-
37-
.footer-left {
38-
position: absolute;
39-
bottom: 0%;
40-
left: 0%;
41-
margin: 20px;
42-
padding: 10px;
43-
}
44-
45-
@media print {
46-
@page {
47-
size: A4 landscape;
48-
margin: 1in;
49-
}
50-
}
51-
</style>

0 commit comments

Comments
 (0)