Skip to content

Commit febf1a4

Browse files
Port banner and grayscale filter from reactjs.org (reactjs#1115)
1 parent 109af55 commit febf1a4

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

site/jekyll/_assets/stylesheets/react.scss

+13-2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,17 @@ html {
5252
background: $pageBg;
5353
}
5454

55+
.grayscale {
56+
filter:grayscale(100%);
57+
-webkit-filter:grayscale(100%);
58+
}
59+
60+
.top-banner {
61+
font-size: 20px;
62+
height: 60px;
63+
text-align: center;
64+
padding: 20px;
65+
}
5566

5667

5768
.left {
@@ -64,7 +75,7 @@ html {
6475

6576

6677
.container {
67-
padding-top: $navHeight;
78+
padding-top: 110px;
6879
min-width: $contentWidth + (2 * $contentPadding);
6980
}
7081

@@ -120,7 +131,7 @@ h1, h2, h3, h4, h5, h6 {
120131
color: $lightTextColor;
121132
position: fixed;
122133
top: 0;
123-
height: $navHeight;
134+
height: 110px;
124135
box-shadow: 0 0 5px rgba(0, 0, 0, .5);
125136
width: 100%;
126137
z-index: 100;

site/jekyll/_layouts/default.html

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
<body>
3838
<div class="container">
3939
<div class="nav-main">
40-
<div class="wrap">
40+
<div class="top-banner">Black Lives Matter. <a style="color:#61dafb" target="_blank" rel="noreferrer" href="https://support.eji.org/give/153413/#!/donation/checkout">Support&nbsp;the&nbsp;Equal&nbsp;Justice&nbsp;Initiative.</a></div>
41+
<div class="wrap grayscale">
4142
<a class="nav-home" href="/">
4243
<img class="nav-logo" src="/img/logo.svg" width="48" height="36">
4344
{{ site.name }}
@@ -53,7 +54,9 @@
5354
</div>
5455
</div>
5556

57+
<div class="grayscale">
5658
{{ content }}
59+
</div>
5760

5861
<footer class="wrap">
5962
<div class="right">

0 commit comments

Comments
 (0)