Skip to content

Commit c2df98a

Browse files
committed
Misc minor
1 parent 157605f commit c2df98a

File tree

4 files changed

+66
-38
lines changed

4 files changed

+66
-38
lines changed

assets/css/_base.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ button,
1515
display: flex;
1616
background: var(--color-themed-bg);
1717
color: inherit;
18+
text-decoration: none;
1819
padding: var(--spacer-small);
1920
border-radius: var(--spacer-small);
2021
transition: var(--transition);
@@ -35,7 +36,6 @@ button,
3536
transition: 0.2s var(--transitionFunction);
3637
}
3738

38-
&.button-small,
3939
&.u-button-small {
4040
padding: var(--spacer-xsmall);
4141
border-radius: var(--spacer-xsmall);
@@ -47,6 +47,7 @@ select {
4747
display: flex;
4848
font-family: inherit;
4949
font-size: 1rem;
50+
line-height: inherit;
5051
margin: 0;
5152
padding: var(--spacer-xsmall);
5253
outline: none;

assets/css/_typography.css

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
@font-face {
22
font-family: 'gidole';
3-
src:
4-
url('~/assets/fonts/gidole-regular.woff2') format('woff2'),
5-
url('~/assets/fonts/gidole-regular.woff') format('woff');
3+
src: url('~/assets/fonts/gidole-regular.woff2') format('woff2');
64
font-weight: normal;
75
font-style: normal;
86
}
@@ -19,12 +17,18 @@ body {
1917
letter-spacing: 0.2px;
2018
}
2119

22-
h1, h2, h3, h4, h5, h6 {
20+
h1,
21+
h2,
22+
h3,
23+
h4,
24+
h5,
25+
h6 {
2326
line-height: 1.1; /* Good enough for now... */
2427
letter-spacing: 0;
2528
}
2629

27-
h1, h2 {
30+
h1,
31+
h2 {
2832
color: var(--color-themed-bg);
2933
background-color: var(--color-themed-fg);
3034
display: inline-block;
@@ -66,8 +70,9 @@ input {
6670
font-family: inherit;
6771
}
6872

69-
pre, code {
70-
font-family: Monaco, Menlo, Consolas, "Lucida Console", monospace;
73+
pre,
74+
code {
75+
font-family: Monaco, Menlo, Consolas, 'Lucida Console', monospace;
7176
font-size: 0.8rem;
7277
line-height: calc(var(--lineHeight-body) * 3 / 4);
7378
letter-spacing: 0;
@@ -104,38 +109,26 @@ pre {
104109
}
105110
}
106111

107-
.layout .u-section a {
112+
.layout .u-section a:not(.u-button) {
108113
background-image: linear-gradient(var(--color-brand), var(--color-brand));
109114
background-repeat: no-repeat;
110115
background-size: 100% 1.5px;
111116
background-position: center bottom;
112117
background-origin: padding-box;
113-
text-shadow:
114-
0 0.12em var(--color-themed-bg),
115-
0 0.06em var(--color-themed-bg),
116-
0 -0.06em var(--color-themed-bg),
117-
0 -0.12em var(--color-themed-bg),
118-
0.06em 0.12em var(--color-themed-bg),
119-
0.06em 0.06em var(--color-themed-bg),
120-
0.06em 0 var(--color-themed-bg),
121-
0.06em -0.06em var(--color-themed-bg),
122-
0.06em -0.12em var(--color-themed-bg),
123-
-0.06em 0.12em var(--color-themed-bg),
124-
-0.06em 0.06em var(--color-themed-bg),
125-
-0.06em 0em var(--color-themed-bg),
118+
text-shadow: 0 0.12em var(--color-themed-bg), 0 0.06em var(--color-themed-bg),
119+
0 -0.06em var(--color-themed-bg), 0 -0.12em var(--color-themed-bg),
120+
0.06em 0.12em var(--color-themed-bg), 0.06em 0.06em var(--color-themed-bg),
121+
0.06em 0 var(--color-themed-bg), 0.06em -0.06em var(--color-themed-bg),
122+
0.06em -0.12em var(--color-themed-bg), -0.06em 0.12em var(--color-themed-bg),
123+
-0.06em 0.06em var(--color-themed-bg), -0.06em 0em var(--color-themed-bg),
126124
-0.06em -0.06em var(--color-themed-bg),
127-
-0.06em -0.12em var(--color-themed-bg),
128-
0.12em 0.12em var(--color-themed-bg),
129-
0.12em 0.06em var(--color-themed-bg),
130-
0.12em 0 var(--color-themed-bg),
131-
0.12em -0.06em var(--color-themed-bg),
132-
0.12em -0.12em var(--color-themed-bg),
133-
-0.12em 0.12em var(--color-themed-bg),
134-
-0.12em 0.06em var(--color-themed-bg),
135-
-0.12em 0 var(--color-themed-bg),
136-
-0.12em -0.06em var(--color-themed-bg),
125+
-0.06em -0.12em var(--color-themed-bg), 0.12em 0.12em var(--color-themed-bg),
126+
0.12em 0.06em var(--color-themed-bg), 0.12em 0 var(--color-themed-bg),
127+
0.12em -0.06em var(--color-themed-bg), 0.12em -0.12em var(--color-themed-bg),
128+
-0.12em 0.12em var(--color-themed-bg), -0.12em 0.06em var(--color-themed-bg),
129+
-0.12em 0 var(--color-themed-bg), -0.12em -0.06em var(--color-themed-bg),
137130
-0.12em -0.12em var(--color-themed-bg);
138-
transition: color .1s ease-out;
131+
transition: color 0.1s ease-out;
139132
}
140133

141134
.t-codeLabel {

assets/fonts/gidole-regular.woff

-17.7 KB
Binary file not shown.

pages/easing-gradients.vue

Lines changed: 39 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,33 @@
1111
</p>
1212
<p>
1313
It's currently a <a href="https://github.com/w3c/csswg-drafts/issues/1332">CSSWG proposal</a> and you can use the
14-
<ul>
15-
<li><a href="#editor">editor below</a></li>
16-
<li><a href="https://github.com/larsenwork/postcss-easing-gradients">PostCSS plugin</a></li>
17-
<li><a href="https://github.com/larsenwork/sketch-easing-gradient">Sketch plugin</a></li>
18-
</ul>
1914
</p>
15+
<ul class="u-grid p-easingGradients-cta">
16+
<li>
17+
<a
18+
class="u-button u-button-small"
19+
href="#editor"
20+
>
21+
Editor here
22+
</a>
23+
</li>
24+
<li>
25+
<a
26+
class="u-button u-button-small"
27+
href="https://github.com/larsenwork/postcss-easing-gradients"
28+
>
29+
PostCSS plugin
30+
</a>
31+
</li>
32+
<li>
33+
<a
34+
class="u-button u-button-small"
35+
href="https://github.com/larsenwork/sketch-easing-gradient#readme"
36+
>
37+
Sketch plugin
38+
</a>
39+
</li>
40+
</ul>
2041
<h2>
2142
Examples
2243
</h2>
@@ -125,3 +146,16 @@ export default {
125146
},
126147
}
127148
</script>
149+
150+
<style lang="postcss">
151+
@import '../assets/css/_media.css';
152+
153+
.p-easingGradients-cta {
154+
grid-template-columns: repeat(2, 1fr);
155+
margin-top: var(--lineHeight-margin-small);
156+
157+
@media (--medium) {
158+
grid-template-columns: repeat(3, 1fr);
159+
}
160+
}
161+
</style>

0 commit comments

Comments
 (0)