Merge pull request #23 from pmoreno-rodriguez/develop

Updated some CSS and SCSS files and Blog Twig Template
This commit is contained in:
Pedro Moreno 2023-02-08 22:49:30 +01:00
parent 2ae6bbc444
commit c79e479f71
9 changed files with 114 additions and 74 deletions

View file

@ -38,7 +38,7 @@ miniposts: true
miniposts_number: 3
latestposts: true
miniposts_category: minipost
displaycustommenus:
custommenus:
enabled: false
dropdown:
enabled: true

View file

@ -2036,11 +2036,12 @@ ul.icons li > * .label {
ul.posts {
list-style: none;
padding: 0;
margin-bottom: 0.25rem;
}
ul.posts li {
border-top: dotted 1px rgba(160, 160, 160, 0.3);
margin: 1.5em 0 0 0;
padding: 1.5em 0 0 0;
margin: 0.25em 0 0 0;
padding: 0.25em 0 0 0;
}
ul.posts li:first-child {
border-top: 0;
@ -2076,6 +2077,7 @@ ul.posts article header {
ul.posts article header h3 {
font-size: 0.7em;
margin-top: 0.125em;
margin-bottom: 0.25em;
}
ul.posts article header .published {
display: block;
@ -2176,6 +2178,12 @@ ul.posts article header > :last-child {
margin: 0 0 3em 0;
position: relative;
}
.post img {
max-width: 100%;
}
.post .modular-row.gallery-container {
margin-bottom: 2.75rem;
}
.post > header {
display: -moz-flex;
display: -ms-flex;
@ -2684,6 +2692,7 @@ table.alt tfoot {
.menulink {
margin: 0;
padding: 0;
margin-top: -0.3rem;
}
ul.menulink > li,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -13,6 +13,14 @@
margin: 0 0 _size(section-spacing) 0;
position: relative;
img {
max-width: 100%;
}
.modular-row.gallery-container {
margin-bottom: 2.75rem;
}
> header {
@include vendor('display', 'flex');
border-bottom: solid 1px _palette(border);

View file

@ -9,11 +9,12 @@
ul.posts {
list-style: none;
padding: 0;
margin-bottom: 0.25rem;
li {
border-top: dotted 1px _palette(border);
margin: (_size(element-margin) * 0.75) 0 0 0;
padding: (_size(element-margin) * 0.75) 0 0 0;
margin: (_size(element-margin) * 0.125) 0 0 0;
padding: (_size(element-margin) * 0.125) 0 0 0;
&:first-child {
border-top: 0;
@ -46,6 +47,7 @@
h3 {
font-size: 0.7em;
margin-top: 0.125em;
margin-bottom: 0.25em;
}
.published {

View file

@ -11,17 +11,18 @@
.menulink {
margin: 0;
padding: 0;
margin-top: -0.3rem;
}
ul.menulink > li,
ul.menulink > li > ul
{
{
list-style: none;
font-family: _font(family-heading);
padding: 0.1em 0 0 0;
margin: 0em;
line-height: 2.3em;
}
}
ul.menulink > li a.tags {
border: dotted 1px rgba(119, 118, 118, 0.65);
padding: 0.2em;
@ -74,7 +75,8 @@ ul.subitem_hide {
display:none;
}
ul.subitem_hide > li > ul,
ul.subitem_hide > li a span {
ul.subitem_hide > li a span
{
-webkit-transition: color 0.2s ease;
transition: color 0.2s ease;
@ -85,8 +87,7 @@ ul.subitem_hide > li a span {
ul.subitem_hide > li {
list-style-type: none;
margin-left: 0.4em;
}
}
.dropdown-btn {
cursor: pointer;
}

View file

@ -6,7 +6,7 @@
/* Intro */
#intro {
#intro {
.logo {
border-bottom: 0;
display: inline-block;
@ -54,6 +54,7 @@
header {
h2 {
font-size: 2em;
font-weight: _font(weight-heading-extrabold);
}
p {
@ -82,6 +83,20 @@
> :last-child {
margin-bottom: 0;
}
.logo {
margin: 0 0 (_size(element-margin) * 0.25) 0;
}
header {
h2 {
font-size: 1.25em;
}
> :last-child {
margin-bottom: 0;
}
}
}
}
}

View file

@ -14,6 +14,16 @@
{% set show_pagination = true %}
{% endif %}
{% if uri.param('category') %}
{% set page_title = theme_config.listing_title.taxonomy.category | default('Posts in Category: ') ~ uri.param('category') %}
{% elseif uri.param('tag') %}
{% set page_title = theme_config.listing_title.taxonomy.tag | default('Posts with Tag: ') ~ uri.param('tag') %}
{% elseif uri.param('author') %}
{% set page_title = theme_config.listing_title.taxonomy.author | default('Posts from Author: ') ~ uri.param('author') %}
{% else %}
{% set page_title = theme_config.listing_title.blog | default('') %}
{% endif %}
{% if base_url == '/' %}
{% set base_url = '' %}
{% endif %}
@ -31,6 +41,10 @@
{% include 'partials/breadcrumbs.html.twig' %}
{% endif %}
<h2>
{{page_title}}
</h2>
{% for child in collection %}
{% include 'partials/blog_item.html.twig' with {'page':child, 'truncate':true} %}
{% endfor %}
@ -45,5 +59,3 @@
{% endblock %}
{% endembed %}