module image title

This commit is contained in:
2023-06-19 14:13:27 +02:00
parent 8df9fc6ecc
commit 8cab24aee5
23 changed files with 266 additions and 344 deletions
-50
View File
@@ -3,56 +3,6 @@
# To activate this feature, follow the instructions at the top of the
# 'example.settings.local.php' file, which sits next to this file.
parameters:
twig.config:
# Twig debugging:
#
# When debugging is enabled:
# - The markup of each Twig template is surrounded by HTML comments that
# contain theming information, such as template file name suggestions.
# - Note that this debugging markup will cause automated tests that directly
# check rendered HTML to fail. When running automated tests, 'debug'
# should be set to FALSE.
# - The dump() function can be used in Twig templates to output information
# about template variables.
# - Twig templates are automatically recompiled whenever the source code
# changes (see auto_reload below).
#
# For more information about debugging Twig templates, see
# https://www.drupal.org/node/1906392.
#
# Not recommended in production environments
# @default false
debug: true
# Twig auto-reload:
#
# Automatically recompile Twig templates whenever the source code changes.
# If you don't provide a value for auto_reload, it will be determined
# based on the value of debug.
#
# Not recommended in production environments
# @default null
auto_reload: null
# Twig cache:
#
# By default, Twig templates will be compiled and stored in the filesystem
# to increase performance. Disabling the Twig cache will recompile the
# templates from source each time they are used. In most cases the
# auto_reload setting above should be enabled rather than disabling the
# Twig cache.
#
# Not recommended in production environments
# @default true
cache: false
# Cacheability debugging:
#
# Responses with cacheability metadata (CacheableResponseInterface instances)
# get X-Drupal-Cache-Tags and X-Drupal-Cache-Contexts headers.
#
# For more information about debugging cacheable responses, see
# https://www.drupal.org/developing/api/8/response/cacheable-response-interface
#
# Not recommended in production environments
# @default false
http.response.debug_cacheability_headers: true
services:
cache.backend.null:
@@ -12,22 +12,21 @@ table {
border: 1px solid #333;
text-align: center;
font-weight: bold;
padding: 1rem; }
padding: 1rem;
background-color: grey; }
table tbody td {
border: 1px solid #333;
text-align: center;
padding: 1rem; }
#paragraph-id--226 td {
#paragraph-id--226 tbody td {
text-align: start;
padding: 0rem;
padding-left: 1rem;
padding-right: 1rem; }
#paragraph-id--226 tbody {
border-collapse: collapse; }
#paragraph-id--226 tbody tr {
border-collapse: collapse; }
#paragraph-id--226 tbody tr {
border: red; }
#paragraph-id--227 td {
text-align: start; }
@@ -154,6 +153,19 @@ table {
grid-column: 1 / span 10;
grid-row: 6; }
.region-sidebar-second {
margin: 2rem; }
.region-sidebar-first {
margin: 2rem; }
.sidebar {
display: flex;
flex-direction: row; }
.block-system-breadcrumb-block {
margin: 4rem; }
a {
text-decoration: none; }
@@ -13,6 +13,7 @@ table{
text-align: center;
font-weight: bold;
padding: 1rem;
background-color: grey;
}
tbody td {
@@ -25,17 +26,16 @@ table{
#paragraph-id--226{
td{
text-align: start;
padding: 0rem;
padding-left: 1rem;
padding-right: 1rem;
}
tbody {
border-collapse:collapse;
td{
text-align: start;
padding: 0rem;
padding-left: 1rem;
padding-right: 1rem;
}
tr{
border-collapse:collapse;
border:red;
}
}
}
@@ -65,32 +65,19 @@
}
}
// .path-frontpage{
// margin: 0;
// }
// .path-node {
// margin: 0;
.region-sidebar-second{
margin: 2rem;
}
// main{
// width: 100%;
// }
// .main-content{
// margin-top: 7rem;
// }
// .field--name-field-titre{
// .field__item{
// color: $blue-dark;
// font-weight: 900;
// font-size: 2rem;
// }
// .field__label{
// visibility: hidden;
// }
// }
// .inter-titre {
// color: $blue-light;
// // text-transform: uppercase;
// }
// }
.region-sidebar-first{
margin: 2rem;
}
.sidebar{
display: flex;
flex-direction: row;
}
.block-system-breadcrumb-block{
margin: 4rem;
}
@@ -65,20 +65,22 @@
{% endif %} #}
</main>
<aside role="book navigation">
{% if page.sidebar_first %}
<aside class="layout-sidebar-first" role="complementary">
{{ page.sidebar_first }}
</aside>
{% endif %}
<aside class="layout-sidebar" role="book navigation">
<div class="sidebar">
{% if page.sidebar_first %}
<aside class="layout-sidebar-first" role="complementary">
{{ page.sidebar_first }}
</aside>
{% endif %}
{% if page.sidebar_second %}
<aside class="layout-sidebar-second" role="complementary">
{{ page.sidebar_second }}
</aside>
{% endif %}
<div class="book-navigation">
{{ page.sidebar }}
{% if page.sidebar_second %}
<aside class="layout-sidebar-second" role="complementary">
{{ page.sidebar_second }}
</aside>
{% endif %}
<div class="book-navigation">
{{ page.sidebar }}
</div>
</div>
</aside>
@@ -0,0 +1,21 @@
{#
/**
* @file
* Default theme implementation to display a formatted image field.
*
* Available variables:
* - image: A collection of image data.
* - image_style: An optional image style.
* - url: An optional URL the image can be linked to.
*
* @see template_preprocess_image_formatter()
*
* @ingroup themeable
*/
#}
{% if url %}
{{ link(image, url) }}
{% else %}
{{ image }}
{{attributes}}
{% endif %}