Skip to content

Commit afc25b5

Browse files
authored
Update styling (#1498)
1 parent c792f1b commit afc25b5

File tree

6 files changed

+35
-6
lines changed

6 files changed

+35
-6
lines changed

_layouts/2017/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
%}
1111
{% include 2017/head.html critical='home' %}
1212

13-
</head><body>
13+
</head><body class='UseCompactHeader HighlightPubFirstLine'>
1414

1515
{% include 2017/top-nav.html page=page is_home=true noedit=true noback=true %}
1616

_layouts/2017/sheet.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{% include 2017/head.html critical='sheet' %}
55
{% include 2017/article-schema.html page=page %}
66

7-
</head><body>
7+
</head><body class='UseCompactHeader HighlightPubFirstLine'>
88

99
{% include 2017/top-nav.html page=page %}
1010

_sass/2017/components/headline-pub.scss

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ $placeholder-bg-size: 450px;
7878

7979
// Hide placeholders after carbon has loaded
8080
#carbonads ~ .placeholder {
81-
display: none;
81+
opacity: 0;
82+
transition: opacity 250ms linear;
83+
pointer-events: none;
8284
}
8385

8486
& > .placeholder {
@@ -135,6 +137,10 @@ $placeholder-bg-size: 450px;
135137
text-align: left;
136138
}
137139

140+
.HighlightPubFirstLine & > div > span:first-line {
141+
font-weight: bold;
142+
}
143+
138144
// Clearfix
139145
& > div > span::after {
140146
content: '';
@@ -149,6 +155,10 @@ $placeholder-bg-size: 450px;
149155
}
150156
}
151157

158+
#carbonads {
159+
animation: 250ms ease-out pub-text-enter;
160+
}
161+
152162
@keyframes placeholder-swish {
153163
0% {
154164
background-position: ($placeholder-bg-size * -1 / 3) 0%;
@@ -162,3 +172,14 @@ $placeholder-bg-size: 450px;
162172
background-position: ($placeholder-bg-size * 2 / 3) 0%;
163173
}
164174
}
175+
176+
@keyframes pub-text-enter {
177+
0% {
178+
opacity: 0;
179+
transform: scale(0.97);
180+
}
181+
182+
100% {
183+
opacity: 1;
184+
}
185+
}

enzyme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ keywords:
1616
## Getting started
1717

1818
### Introduction
19+
{: .-intro}
1920

2021
[Enzyme](http://airbnb.io/enzyme) lets you write unit tests for React components. This guide covers Enzyme 3.x.
2122

httpie.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ $ echo '{"hello": "world"}' | http POST example.com/post
4747

4848
### Options
4949

50-
Print options:
51-
{: .-setup}
50+
#### Printing options
5251

5352
```bash
5453
-v, --verbose # same as --print=HhBb --all

promise.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
11
---
22
title: Promises
33
category: JavaScript
4-
intro: A quick reference to the [Promise API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
4+
layout: 2017/sheet
55
---
66

77
## Reference
88
{:.-three-column}
99

10+
### Introduction
11+
{: .-intro}
12+
13+
intro: A quick reference to the JavaScript [Promise API](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise).
14+
15+
- [Using Promises guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises) _(developer.mozilla.org)_
16+
- [Promise documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) _(developer.mozilla.org)_
17+
1018
### Creating promises
1119

1220
```js

0 commit comments

Comments
 (0)