From e1f0a47344a30315559325ca8898b9941d7fea01 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Mon, 24 Jun 2024 15:16:20 +0200 Subject: Corrections in the theme --- theme/bulma/mine.scss | 24 ++++++++++++++++++------ theme/bulma/templates/article.html | 2 +- theme/bulma/templates/base.html | 7 ++++--- 3 files changed, 23 insertions(+), 10 deletions(-) (limited to 'theme') diff --git a/theme/bulma/mine.scss b/theme/bulma/mine.scss index 0c3ad20..136d276 100644 --- a/theme/bulma/mine.scss +++ b/theme/bulma/mine.scss @@ -5,7 +5,7 @@ @use "bulma/sass/utilities/derived-variables.scss" with ( $primary: rgb(216,222,233) ); -@use "bulma/sass/base" ; +@use "bulma/sass/base"; @use "bulma/sass/themes"; @use "bulma/sass/elements/title.scss" with ( $title-family: "'Noto Serif Display', serif", @@ -20,6 +20,8 @@ @use "bulma/sass/helpers/typography.scss"; @use "bulma/sass/helpers/spacing.scss"; @use "bulma/sass/components/pagination.scss"; +@use "bulma/sass/utilities/mixins.scss" as mx; +@use "bulma/sass/helpers/float.scss"; html[data-theme="dark"] { --main-text-color: #d8dee9; @@ -50,20 +52,26 @@ body { background-color: var(--main-background-color); } + main { font-size: 1.5em; font-weight: 300; } -main article header p{ - font-weight: lighter; -} - .aside { background-color: var(--side-background-color); --bulma-link-text: #eceff4; --bulma-text: #eceff4; - min-height: 100vh; + @include mx.desktop { + min-height: 100vh; + } +} +aside { + @include mx.desktop { + position: fixed; + left: 11%; + transform: translate(-50%, 0); + } } .aside .title, .aside .subtitle { @@ -95,3 +103,7 @@ main article header p{ h1 { @extend .title, .is-1 } h2 { @extend .title, .is-2 } h3 { @extend .title, .is-3 } + +.figure.align-center { @extend .has-text-centered } +.figure.align-left { @extend .has-text-left } +.figure.align-right { @extend .has-text-right } diff --git a/theme/bulma/templates/article.html b/theme/bulma/templates/article.html index bc78ec9..69a746b 100644 --- a/theme/bulma/templates/article.html +++ b/theme/bulma/templates/article.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% block html_lang %}{{ article.lang }}{% endblock %} -{% block title %}{{ SITENAME }} - {{ article.title|striptags }}{% endblock %} +{% block title %} - {{ article.title|striptags }}{% endblock %} {% block head %} {{ super() }} diff --git a/theme/bulma/templates/base.html b/theme/bulma/templates/base.html index 6b281d6..d3eb571 100644 --- a/theme/bulma/templates/base.html +++ b/theme/bulma/templates/base.html @@ -4,6 +4,7 @@ {% block head %} + {% if FEED_ALL_ATOM %} @@ -56,12 +57,12 @@ -
-
+
+
{% include "partial/sidebar.html" %} {% include "partial/nav.html" %}
-
+
{% block content %} {% endblock %} {% include "partial/footer.html" %} -- cgit v1.2.3