-
Notifications
You must be signed in to change notification settings - Fork 0
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
5 changed files
with
72 additions
and
6 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
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,31 @@ | ||
/* This is the styling of the category overview pages. | ||
* | ||
* The corresponding template is ``theme/mischback/category.html``. | ||
*/ | ||
|
||
.main-category { | ||
display: grid; | ||
grid-template: | ||
". spotlight ." | ||
". cat_body ." | ||
/ 1fr calc(min($max-article-width, 100%)) 1fr; | ||
|
||
@include for-breakpoint(layout-single-column) { | ||
grid-template: | ||
". spotlight spotlight spotlight ." | ||
". cat_body cat_body cat_body ." | ||
/ 1fr $max-article-width 3fr 20rem 1fr; | ||
} | ||
|
||
.spotlight { | ||
@include content-box-visual; | ||
|
||
grid-area: spotlight; | ||
} | ||
|
||
.category-body { | ||
@include content-box-visual; | ||
|
||
grid-area: cat_body; | ||
} | ||
} |
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,25 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block main_container %} | ||
<main class="main-category"> | ||
<section class="spotlight"> | ||
<header> | ||
{{ title }} Spotlight | ||
</header> | ||
<div> | ||
<a href="{{ pathto(meta.spotlight_uri) }}">spotlight</a> | ||
</div> | ||
</section> | ||
|
||
<section class="category-body"> | ||
<div> | ||
{% if theme_show_breadcrumbs %} | ||
<nav class="breadcrumbs" aria-label="Top Breadcrumbs"> | ||
{% include "includes/breadcrumbs.html" %} | ||
</nav> | ||
{% endif %} | ||
</div> | ||
{{ body }} | ||
</section> | ||
</main> | ||
{% endblock main_container %} |