-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
71 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
$def with (page) | ||
|
||
$def render_infobox_row(label, itemprop, value): | ||
$if value: | ||
<tr> | ||
<td><strong>$_(label)</strong></td> | ||
<td><span itemprop="$itemprop">$value</span></td> | ||
</tr> | ||
|
||
<div class="infobox"> | ||
<div class="illustration"> | ||
$:render_template("covers/author_photo", page) | ||
$:render_template("covers/change", page, ".bookCover img") | ||
</div> | ||
<table> | ||
$if page.birth_date or page.death_date: | ||
$:render_infobox_row("Born", 'birthDate', page.birth_date) | ||
$:render_infobox_row("Died", 'deathDate', page.death_date) | ||
$elif page.date: | ||
$:render_infobox_row("Date", '', page.date) | ||
</table> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// used in infobox.html | ||
.infobox { | ||
line-height: 1.5em; | ||
background-color: @grey-fafafa; | ||
border-radius: 5px; | ||
padding: 10px; | ||
margin-bottom: 3px; | ||
border-bottom: 1px solid @light-beige; | ||
|
||
.illustration { | ||
margin-bottom: unset; | ||
} | ||
|
||
tr { | ||
// Without this page-user.css makes the background beige | ||
background-color: transparent; | ||
td:first-child { | ||
padding-right: 5px; | ||
} | ||
} | ||
|
||
table { | ||
// Without this page-user.css makes the table very compact | ||
border-collapse: unset; | ||
border-spacing: 3px; | ||
} | ||
} | ||
|
||
.infobox-name { | ||
text-align: center; | ||
margin-bottom: 10px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters