diff --git a/assets/styles/_product.scss b/assets/styles/_product.scss index 528883b..8472e7c 100644 --- a/assets/styles/_product.scss +++ b/assets/styles/_product.scss @@ -45,7 +45,7 @@ } &.less { - max-height: 500px; + max-height: 1000px; transition: max-height .3s ease-in-out; } } diff --git a/assets/styles/_utilities.scss b/assets/styles/_utilities.scss index 9aab182..a9bde42 100644 --- a/assets/styles/_utilities.scss +++ b/assets/styles/_utilities.scss @@ -109,30 +109,13 @@ } } -p > strong { - > a { +.page-content { + a { color: $blue-500;; - position: relative; text-decoration: none; - transition: .5s; - - &:after { - background-color: $blue-500; - content: ""; - height: 2px; - left: 0; - position: absolute; - top: 100%; - transform: scaleX(0); - transform-origin: right; - transition: transform .5s; - width: 100%; - } - - &:hover:after { - transform: scaleX(1); - transform-origin: left; - } + } + a:hover { + text-decoration: underline; } } diff --git a/fixtures/test/page.yaml b/fixtures/test/page.yaml index 54fd53f..117f596 100644 --- a/fixtures/test/page.yaml +++ b/fixtures/test/page.yaml @@ -68,7 +68,7 @@ App\Entity\Page:

 


Dépôt

-

Toutes les informations sur le projet et le code sont disponibles sur le dépôt public.

+

Toutes les informations sur le projet et le code sont disponibles sur le dépôt public.

 


Démo

diff --git a/templates/cms/page.html.twig b/templates/cms/page.html.twig index 9c3ef2d..3076cba 100644 --- a/templates/cms/page.html.twig +++ b/templates/cms/page.html.twig @@ -5,7 +5,7 @@ {% block title %}{{ page is not null ? page.name : brand }}{% endblock %} {% block body %} -
+
{% if page is not null %} {{ page.content|raw }} {% else %}