improved next chapitre | partie blocks positioning

This commit is contained in:
2026-02-21 10:56:46 +01:00
parent 367e2353ce
commit 335127647c
5 changed files with 93 additions and 91 deletions

View File

@@ -16,7 +16,7 @@ third_party_settings:
id: mathallo_contenu_3 id: mathallo_contenu_3
theme: mathallo theme: mathallo
region: content region: content
weight: -3 weight: -2
provider: null provider: null
plugin: 'menu_block:contenu' plugin: 'menu_block:contenu'
settings: settings:
@@ -44,3 +44,4 @@ visibility:
node: '@node.node_route_context:node' node: '@node.node_route_context:node'
bundles: bundles:
chapitre: chapitre chapitre: chapitre
partie: partie

View File

@@ -16,7 +16,7 @@ third_party_settings:
id: mathallo_contenu_4 id: mathallo_contenu_4
theme: mathallo theme: mathallo
region: content region: content
weight: 0 weight: -3
provider: null provider: null
plugin: 'menu_block:contenu' plugin: 'menu_block:contenu'
settings: settings:
@@ -44,3 +44,4 @@ visibility:
node: '@node.node_route_context:node' node: '@node.node_route_context:node'
bundles: bundles:
chapitre: chapitre chapitre: chapitre
partie: partie

File diff suppressed because one or more lines are too long

View File

@@ -300,9 +300,8 @@ main[role="main"]{
// next chapitre // next chapitre
nav.prev-chapitre, nav.prev-chapitre,
nav.next-chapitre{ nav.next-chapitre{
position:absolute;
top:-10em;
position:absolute;
padding: 0.5em 1em; padding: 0.5em 1em;
@include menu-contenus; @include menu-contenus;
@@ -321,6 +320,7 @@ main[role="main"]{
// prev // prev
&.prev-chapitre{ &.prev-chapitre{
top:-10em;
left:0; left:0;
a:after{ a:after{
transform: rotate(180deg); transform: rotate(180deg);
@@ -332,6 +332,7 @@ main[role="main"]{
// next // next
&.next-chapitre{ &.next-chapitre{
bottom:500px;
right:0; right:0;
li.in-active-trail + li{ li.in-active-trail + li{
display: block; display: block;
@@ -488,10 +489,9 @@ main[role="main"]{
} }
} }
}
} }
} // div.layout-content
div#partie-principes-pratique{ div#partie-principes-pratique{
position: relative; position: relative;
display: flex; display: flex;
@@ -532,7 +532,7 @@ main[role="main"]{
} }
} }
} } // partie-principes-pratique
// HOME // HOME
div.views-home-chapitres{ div.views-home-chapitres{
@@ -549,46 +549,25 @@ main[role="main"]{
} }
} }
} } // views-home-chapitres
// FORMES // FORMES
.bg-forme{ .bg-forme{
position: absolute; position: absolute;
// background-color: red;
width:300px; height:300px; width:300px; height:300px;
top:50%; top:50%;
left:-300px; left:-300px;
z-index: -1; z-index: -1;
background-position: center;
background-size: contain;
background-repeat: no-repeat;
// &.pyramide{ background-image: url('/themes/custom/mathallo/assets/img/formes/pyramide.svg'); }
// &.infinite{ background-image: url('/themes/custom/mathallo/assets/img/formes/infinite.svg'); }
// &.prct{ background-image: url('/themes/custom/mathallo/assets/img/formes/prct.svg'); }
// &.pi{ background-image: url('/themes/custom/mathallo/assets/img/formes/pi.svg'); }
// &.supeg{ background-image: url('/themes/custom/mathallo/assets/img/formes/supeg.svg'); }
// &.cone{ background-image: url('/themes/custom/mathallo/assets/img/formes/cone.svg'); }
// &.cube{ background-image: url('/themes/custom/mathallo/assets/img/formes/cube.svg'); }
// &.diamant{ background-image: url('/themes/custom/mathallo/assets/img/formes/diamant.svg'); }
// &.croissant{ background-image: url('/themes/custom/mathallo/assets/img/formes/croissant.svg'); }
// &.cylindre{ background-image: url('/themes/custom/mathallo/assets/img/formes/cylindre.svg'); }
filter: drop-shadow(0 0 15px rgba(0,0,0,0.05)); filter: drop-shadow(0 0 15px rgba(0,0,0,0.05));
svg{ svg{
// width: 100%;
// height: 100%;
path,line,rect,circle,ellipse,polygon,polyline{ path,line,rect,circle,ellipse,polygon,polyline{
vector-effect: non-scaling-stroke; vector-effect: non-scaling-stroke;
stroke-width: 1px!important; stroke-width: 1px!important;
} }
}
}
} }
}
}
// ______ _ // ______ _
// | ___| | | // | ___| | |

View File

@@ -0,0 +1,21 @@
{#
/**
* @file
* Default theme implementation to display a region.
*
* Available variables:
* - content: The content for this region, typically blocks.
* - attributes: HTML attributes for the region <div>.
* - region: The name of the region variable as defined in the theme's
* .info.yml file.
*
* @see template_preprocess_region()
*
* @ingroup themeable
*/
#}
{% if content %}
<div{{ attributes }}>
{{ content }}
</div>
{% endif %}