Skip to content

Commit 237eccf

Browse files
committed
Style Rust logo
1 parent b2b716f commit 237eccf

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

src/styles/app.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ $header-font: 'Alfa Slab One', serif;
3030
--theme-popup-bg: white;
3131
--theme-hover: #cacaca;
3232
--theme-choice-color: black;
33+
--rust-logo-filter: initial;
3334
}
3435

3536
// Dark theme
@@ -57,6 +58,7 @@ $header-font: 'Alfa Slab One', serif;
5758
--theme-popup-bg: #141617;
5859
--theme-hover: #474c51;
5960
--theme-choice-color: #d5cbc6;
61+
--rust-logo-filter: drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);
6062
}
6163

6264
html {
@@ -79,7 +81,7 @@ body {
7981
display: flex;
8082
flex-direction: column;
8183
& > #main-content {
82-
flex: 1;
84+
flex: 1;
8385
}
8486
}
8587

@@ -192,7 +194,7 @@ div.brand {
192194
}
193195

194196
.white {
195-
color: var(--white-elem-color);
197+
color: var(--white-elem-color);
196198
.highlight {
197199
background-color: var(--yellow);
198200
}
@@ -334,7 +336,7 @@ h3, .post h2, header h2 {
334336
h2 {
335337
font-size: 2em;
336338
}
337-
339+
338340
h3 {
339341
display: block;
340342
}
@@ -418,3 +420,7 @@ header h1 {
418420
li.theme-item:hover {
419421
background-color: var(--theme-hover);
420422
}
423+
424+
.rust-logo {
425+
filter: var(--rust-logo-filter);
426+
}

src/styles/noscript.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
--nav-links-a: #2a3439;
2222
--publish-date-author: #2a3439;
2323
--section-header-h2-color: black;
24+
--rust-logo-filter: initial;
2425
}
2526

2627
// Dark theme (probed from user prefs)
@@ -44,6 +45,7 @@
4445
--nav-links-a: #d5cbc6;
4546
--publish-date-author: #d5cbc6;
4647
--section-header-h2-color: white;
48+
--rust-logo-filter: drop-shadow(1px 0 0px #fff) drop-shadow(0 1px 0 #fff) drop-shadow(-1px 0 0 #fff) drop-shadow(0 -1px 0 #fff);
4749
}
4850
}
4951

templates/headers.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<!-- Twitter card -->
2-
<meta name="twitter:card" content="summary">
3-
<meta name="twitter:site" content="@rustlang">
4-
<meta name="twitter:creator" content="@rustlang">
5-
<meta name="twitter:title" content="{{title}}">
6-
<meta name="twitter:description" content="{{blog.description}}">
1+
<!-- Twitter card -->
2+
<meta name="twitter:card" content="summary">
3+
<meta name="twitter:site" content="@rustlang">
4+
<meta name="twitter:creator" content="@rustlang">
5+
<meta name="twitter:title" content="{{title}}">
6+
<meta name="twitter:description" content="{{blog.description}}">
77
<meta name="twitter:image" content="https://www.rust-lang.org/static/images/rust-social.jpg">
88

99
<!-- Facebook OpenGraph -->
@@ -34,5 +34,5 @@
3434
<meta name="msapplication-TileColor" content="#00aba9">
3535
<meta name="theme-color" content="#ffffff">
3636

37-
<!-- atom -->
38-
<link type="application/atom+xml" rel="alternate" href="https://blog.rust-lang.org/{{blog.prefix}}feed.xml" title="{{blog.title}}" />
37+
<!-- atom -->
38+
<link type="application/atom+xml" rel="alternate" href="https://blog.rust-lang.org/{{blog.prefix}}feed.xml" title="{{blog.title}}" />

templates/nav.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<nav class="flex flex-row justify-center justify-end-l items-center flex-wrap ph2 pl3-ns pr4-ns">
22
<div class="brand flex-auto w-100 w-auto-l self-start tc tl-l">
33
<a href="{{root}}{{blog.prefix}}">
4-
<img class="v-mid ml0-l" alt="Rust Logo" src="{{root}}images/rust-logo-blk.svg">
4+
<img class="v-mid ml0-l rust-logo" alt="Rust Logo" src="{{root}}images/rust-logo-blk.svg">
55
<span class="dib ml1 ml0-l">{{blog.title}}</span>
66
</a>
77
</div>

0 commit comments

Comments
 (0)