Skip to content

Commit abbc43f

Browse files
authored
Merge pull request #599 from xxyy/fix/inline-styles
Externalise some trivial inline styles from slide.ejs
2 parents 881e800 + af935e4 commit abbc43f

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

public/css/slide.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,10 @@ pre.abc > svg {
258258
transform-style: preserve-3d;
259259
}
260260

261+
.slides, #meta {
262+
display: none;
263+
}
264+
261265
.reveal .slides > section,
262266
.reveal .slides > section > section {
263267
transform-style: flat;
@@ -283,12 +287,25 @@ pre.abc > svg {
283287
padding: 25px 15px;
284288
}
285289

290+
.footer .gray-font {
291+
color: #777;
292+
}
293+
286294
.footer > * {
287295
margin-left: auto;
288296
margin-right: auto;
289297
max-width: 758px;
290298
}
291299

300+
.footer .ui-no-lastchangeuser {
301+
width: 18px;
302+
}
303+
304+
.footer .slides-disqus {
305+
margin-top: 25px;
306+
margin-bottom: 15px;
307+
}
308+
292309
html, body {
293310
height: 100%;
294311
width: 100%;
@@ -330,4 +347,4 @@ html, body {
330347

331348
.print-pdf .footer {
332349
display: none;
333-
}
350+
}

public/views/slide.ejs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@
5454
<body>
5555
<div class="container">
5656
<div class="reveal">
57-
<div class="slides" style="display: none;"><%= body %></div>
57+
<div class="slides"><%= body %></div>
5858
</div>
5959

60-
<div id="meta" style="display: none;"><%= meta %></div>
60+
<div id="meta"><%= meta %></div>
6161

6262
<div class="footer">
63-
<div class="unselectable hidden-print" style="color: #777;">
63+
<div class="unselectable hidden-print gray-font">
6464
<small>
6565
<span>
6666
<% if(lastchangeuserprofile) { %>
6767
<span class="ui-lastchangeuser">&thinsp;<i class="ui-user-icon small" style="background-image: url(<%- lastchangeuserprofile.photo %>);" data-toggle="tooltip" data-placement="right" title="<%- lastchangeuserprofile.name %>"></i></span>
6868
<% } else { %>
69-
<span class="ui-no-lastchangeuser">&thinsp;<i class="fa fa-clock-o fa-fw" style="width: 18px;"></i></span>
69+
<span class="ui-no-lastchangeuser">&thinsp;<i class="fa fa-clock-o fa-fw"></i></span>
7070
<% } %>
7171
&nbsp;<span class="text-uppercase ui-status-lastchange"></span>
7272
<span class="ui-lastchange text-uppercase" data-createtime="<%- createtime %>" data-updatetime="<%- updatetime %>"></span>
@@ -82,7 +82,7 @@
8282
</small>
8383
</div>
8484
<% if(typeof disqus !== 'undefined' && disqus) { %>
85-
<div style="margin-top: 25px; margin-bottom: 15px;">
85+
<div class="slides-disqus">
8686
<%- include shared/disqus %>
8787
</div>
8888
<% } %>

0 commit comments

Comments
 (0)