Skip to content

Commit be4c55c

Browse files
committed
add night theme
1 parent 403cb5a commit be4c55c

2 files changed

Lines changed: 185 additions & 0 deletions

File tree

css/theme/night.css

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
@import url(http://fonts.googleapis.com/css?family=Montserrat:700);
2+
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
3+
/**
4+
* Black theme for reveal.js.
5+
*
6+
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
7+
*/
8+
/*********************************************
9+
* GLOBAL STYLES
10+
*********************************************/
11+
body {
12+
background: #111111;
13+
background-color: #111111;
14+
}
15+
16+
.reveal {
17+
font-family: "Open Sans", Times, "Times New Roman", serif;
18+
font-size: 30px;
19+
font-weight: 200;
20+
letter-spacing: -0.02em;
21+
color: #eeeeee;
22+
}
23+
24+
::selection {
25+
color: white;
26+
background: #e7ad52;
27+
text-shadow: none;
28+
}
29+
30+
/*********************************************
31+
* HEADERS
32+
*********************************************/
33+
.reveal h1,
34+
.reveal h2,
35+
.reveal h3,
36+
.reveal h4,
37+
.reveal h5,
38+
.reveal h6 {
39+
margin: 0 0 20px 0;
40+
color: #eeeeee;
41+
font-family: "Montserrat", Impact, sans-serif;
42+
line-height: 0.9em;
43+
letter-spacing: -0.03em;
44+
text-transform: none;
45+
text-shadow: none;
46+
}
47+
48+
.reveal h1 {
49+
text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
50+
}
51+
52+
/*********************************************
53+
* LINKS
54+
*********************************************/
55+
.reveal a:not(.image) {
56+
color: #e7ad52;
57+
text-decoration: none;
58+
-webkit-transition: color .15s ease;
59+
-moz-transition: color .15s ease;
60+
-ms-transition: color .15s ease;
61+
-o-transition: color .15s ease;
62+
transition: color .15s ease;
63+
}
64+
65+
.reveal a:not(.image):hover {
66+
color: #f3d7ac;
67+
text-shadow: none;
68+
border: none;
69+
}
70+
71+
.reveal .roll span:after {
72+
color: #fff;
73+
background: #d08a1d;
74+
}
75+
76+
/*********************************************
77+
* IMAGES
78+
*********************************************/
79+
.reveal section img {
80+
margin: 15px;
81+
background: rgba(255, 255, 255, 0.12);
82+
border: 4px solid #eeeeee;
83+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
84+
-webkit-transition: all .2s linear;
85+
-moz-transition: all .2s linear;
86+
-ms-transition: all .2s linear;
87+
-o-transition: all .2s linear;
88+
transition: all .2s linear;
89+
}
90+
91+
.reveal a:hover img {
92+
background: rgba(255, 255, 255, 0.2);
93+
border-color: #e7ad52;
94+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.55);
95+
}
96+
97+
/*********************************************
98+
* NAVIGATION CONTROLS
99+
*********************************************/
100+
.reveal .controls div.navigate-left,
101+
.reveal .controls div.navigate-left.enabled {
102+
border-right-color: #e7ad52;
103+
}
104+
105+
.reveal .controls div.navigate-right,
106+
.reveal .controls div.navigate-right.enabled {
107+
border-left-color: #e7ad52;
108+
}
109+
110+
.reveal .controls div.navigate-up,
111+
.reveal .controls div.navigate-up.enabled {
112+
border-bottom-color: #e7ad52;
113+
}
114+
115+
.reveal .controls div.navigate-down,
116+
.reveal .controls div.navigate-down.enabled {
117+
border-top-color: #e7ad52;
118+
}
119+
120+
.reveal .controls div.navigate-left.enabled:hover {
121+
border-right-color: #f3d7ac;
122+
}
123+
124+
.reveal .controls div.navigate-right.enabled:hover {
125+
border-left-color: #f3d7ac;
126+
}
127+
128+
.reveal .controls div.navigate-up.enabled:hover {
129+
border-bottom-color: #f3d7ac;
130+
}
131+
132+
.reveal .controls div.navigate-down.enabled:hover {
133+
border-top-color: #f3d7ac;
134+
}
135+
136+
/*********************************************
137+
* PROGRESS BAR
138+
*********************************************/
139+
.reveal .progress {
140+
background: rgba(0, 0, 0, 0.2);
141+
}
142+
143+
.reveal .progress span {
144+
background: #e7ad52;
145+
-webkit-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
146+
-moz-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
147+
-ms-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
148+
-o-transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
149+
transition: width 800ms cubic-bezier(0.26, 0.86, 0.44, 0.985);
150+
}

css/theme/source/night.scss

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Black theme for reveal.js.
3+
*
4+
* Copyright (C) 2011-2012 Hakim El Hattab, http://hakim.se
5+
*/
6+
7+
8+
// Default mixins and settings -----------------
9+
@import "../template/mixins";
10+
@import "../template/settings";
11+
// ---------------------------------------------
12+
13+
14+
// Include theme-specific fonts
15+
@import url(http://fonts.googleapis.com/css?family=Montserrat:700);
16+
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,700italic);
17+
18+
19+
// Override theme settings (see ../template/settings.scss)
20+
$backgroundColor: #111;
21+
22+
$mainFont: 'Open Sans', Times, 'Times New Roman', serif;
23+
$linkColor: #e7ad52;
24+
$linkColorHover: lighten( $linkColor, 20% );
25+
$headingFont: 'Montserrat', Impact, sans-serif;
26+
$headingTextShadow: none;
27+
$headingLetterSpacing: -0.03em;
28+
$headingTextTransform: none;
29+
$selectionBackgroundColor: #e7ad52;
30+
$mainFontSize: 30px;
31+
32+
33+
// Theme template ------------------------------
34+
@import "../template/theme";
35+
// ---------------------------------------------

0 commit comments

Comments
 (0)