Skip to content

Commit 67a35bb

Browse files
committed
Add logo in the background
1 parent 214c438 commit 67a35bb

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

_sass/_page-header.scss

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,20 @@
1010
background: var(--color-bg-warm);
1111
border-bottom: 1px solid var(--color-border);
1212
padding: 80px var(--container-padding) 56px;
13+
overflow: hidden;
1314

1415
/* --plain: no background, no border (downloads) */
1516
&--plain {
1617
background: transparent;
1718
border-bottom: none;
1819
}
1920

21+
&--plain &__inner::after,
22+
&--article &__inner::after,
23+
&--split &__inner::after {
24+
display: none;
25+
}
26+
2027
/* --article: tighter top padding, used in post layout */
2128
&--article {
2229
padding-top: 64px;
@@ -38,6 +45,20 @@
3845
.page-header__inner {
3946
max-width: var(--container-max-width);
4047
margin: 0 auto;
48+
position: relative;
49+
50+
&::after {
51+
content: '';
52+
position: absolute;
53+
right: 0;
54+
top: 50%;
55+
transform: translateY(-50%);
56+
width: 340px;
57+
height: 340px;
58+
background: url('/assets/images/mruby_logo_red_icon.png') no-repeat center / contain;
59+
opacity: 0.07;
60+
pointer-events: none;
61+
}
4162
}
4263

4364
/* Left column in split layouts (implicit — no special style needed) */
@@ -177,6 +198,10 @@
177198
.page-header__aside {
178199
padding-bottom: 0;
179200
}
201+
202+
.page-header__inner::after {
203+
display: none;
204+
}
180205
}
181206

182207
/* ------------------------------------------------------------

0 commit comments

Comments
 (0)