1
0
Fork 0
mirror of https://github.com/codex-team/codex.docs.git synced 2025-07-19 21:29:41 +02:00

refactor: stretched function (#252)

* delete stretched function
This commit is contained in:
Alexander Chernyaev 2022-09-12 16:48:13 +03:00 committed by GitHub
parent 07927ccb53
commit 0aeab51286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 16 deletions

View file

@ -4,10 +4,6 @@
{% set classes = classes|merge(['block-image__content--bordered']) %} {% set classes = classes|merge(['block-image__content--bordered']) %}
{% endif %} {% endif %}
{% if stretched %}
{% set classes = classes|merge(['block-image__content--stretched']) %}
{% endif %}
{% if withBackground %} {% if withBackground %}
{% set classes = classes|merge(['block-image__content--with-background']) %} {% set classes = classes|merge(['block-image__content--with-background']) %}
{% endif %} {% endif %}

View file

@ -278,16 +278,6 @@
max-width: 100%; max-width: 100%;
} }
&--stretched {
max-width: none !important;
width: calc(100% + 120px) !important;
margin-left: -60px;
img, video {
width: 100%;
}
}
&--bordered { &--bordered {
img, video { img, video {
border: 3px solid var(--color-line-gray); border: 3px solid var(--color-line-gray);

View file

@ -104,9 +104,10 @@
@apply --text-content-title; @apply --text-content-title;
} }
.ce-block { .ce-block {
@apply --content-block; @apply --content-block;
} }
.cdx-settings-button[data-tune="stretched"] {
display: none;
}