Skip to content

Commit 71304e2

Browse files
author
christopheschwyzer
committed
add upgrade info
1 parent 9e9f4b3 commit 71304e2

File tree

3 files changed

+44
-1
lines changed

3 files changed

+44
-1
lines changed

_layouts/default.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,10 @@
300300
</svg>
301301
<!-- SVG SOURCE ends-->
302302

303+
<div class="upgrade-info">
304+
<p>Some of the used technologies are not supported. You might want to upgrade your browser!</p>
305+
<p>More info: <a href="http://whatbrowser.org/">whatbrowser.org</a></p>
306+
</div>
303307
<header id="header">
304308
<div class="logo-wrapper">
305309
<span class="logo" title="Made in Basel"></span>

css/main.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,24 @@ strong {
170170
.divider-horizontal:after {
171171
content: ' >';
172172
}
173+
.upgrade-info {
174+
display: none;
175+
padding: 12px;
176+
text-align: center;
177+
background: #ff3922;
178+
color: #ffffff;
179+
}
180+
.upgrade-info p {
181+
margin: 0;
182+
}
183+
.upgrade-info a {
184+
color: #ffffff;
185+
font-weight: bold;
186+
}
187+
html.no-svg .upgrade-info,
188+
html.no-flexbox .upgrade-info {
189+
display: block;
190+
}
173191
#header {
174192
height: 100%;
175193
position: relative;

css/main.less

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
@import (less) "lesshat.less";
22

33
@blue: #008FA9;
4+
@error: #ff3922;
45

56
@colorFg: #404041;
67
@colorBgBody: #eeeeee;
78
@colorBg: whitesmoke;
89
@colorFgAlternative: #fff;
9-
@colorBgAlternative: #0099CC;
1010
@colorBgAlternative: #008FA9;
1111
@colorFgShy: lighten(@colorFg, 20);
1212
@colorFgBorder: #c3c3c3;
@@ -210,6 +210,27 @@ strong {
210210
}
211211
}
212212

213+
.upgrade-info {
214+
display: none;
215+
padding: 12px;
216+
text-align: center;
217+
background: @error;
218+
color: @colorFgAlternative;
219+
220+
p {
221+
margin: 0;
222+
}
223+
224+
a {
225+
color: @colorFgAlternative;
226+
font-weight: bold;
227+
}
228+
229+
html.no-svg &, html.no-flexbox & {
230+
display: block;
231+
}
232+
}
233+
213234
#header {
214235
height: 100%;
215236

0 commit comments

Comments
 (0)