Skip to content

Commit 1c4981d

Browse files
committed
Fix issues with Camelia images
- Hide faded Camelia on home page - Reduce opacity on faded Camelia - Use SVG Camelia on home page instead of PNG - Made table rows transparent to prevent chopping up faded Camelia BG into slices
1 parent 767288b commit 1c4981d

File tree

8 files changed

+350
-921
lines changed

8 files changed

+350
-921
lines changed

assets/sass/style.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ img, svg {
7171
}
7272

7373
table.pod-table tr:nth-child(odd) {
74-
background-color: #f8f8f8;
74+
background-color: rgba(0, 0, 0, 0.031373);
7575
}
7676
table.pod-table tr:nth-child(even) {
7777
background-color: none;
@@ -321,10 +321,7 @@ td, th {
321321
overflow: hidden;
322322
max-width: 800px;
323323
background: #FFF;
324-
background-repeat: no-repeat;
325-
background-position: right 2em top 2em;
326-
background-image: url(/images/Camelia-faded.svg);
327-
324+
328325
dt {
329326
font-weight: bold;
330327
margin-bottom: 0.2em;
@@ -361,6 +358,12 @@ td, th {
361358
padding-top: 0.25em;
362359
}
363360
}
361+
#content:not(.content_HomePage) {
362+
background-repeat: no-repeat;
363+
background-position: right 2rem top 2rem;
364+
background-size: 243px;
365+
background-image: url(/images/Camelia-faded.svg);
366+
}
364367

365368
@media (min-width: 110em) {
366369
#content {

doc/HomePage.pod6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
=begin Html
2-
<img style="float: right; margin: 0 0 1em 1em" src="/images/camelia.png" alt="" id="home_logo"/>
2+
<img style="float: right; margin: 0 0 1em 1em"
3+
width=261 src="/images/Camelia.svg" alt="" id="home_logo"/>
34
Welcome to the official documentation of the <a href="https://perl6.org">Perl 6</a>
45
programming language!
56
Besides online browsing and searching, you can also

html/images/Camelia-faded.svg

Lines changed: 168 additions & 457 deletions
Loading

html/images/Camelia.svg

Lines changed: 168 additions & 456 deletions
Loading

html/images/camelia-faded.png

-50.9 KB
Binary file not shown.

html/images/camelia.png

-56.3 KB
Binary file not shown.

htmlify.p6

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ sub header-html($current-selection, $pod-path) is cached {
124124
}
125125

126126
$header.subst('MENU', $menu-items ~ $sub-menu-items)
127-
.subst('EDITURL', $edit-url);
127+
.subst('EDITURL', $edit-url)
128+
.subst('CONTENT_CLASS', 'content_'
129+
~ $pod-path.subst(/\.pod6$/, '').subst: /\W/, '_', :g);
128130
}
129131

130132
sub p2h($pod, $selection = 'nothing selected', :$pod-path = Nil) {

template/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
MENU
1717
</div>
1818
</div>
19-
<div id="content" class="pretty-box yellow">
19+
<div id="content" class="pretty-box yellow CONTENT_CLASS">
2020
EDITURL

0 commit comments

Comments
 (0)