This commit is contained in:
SBD
2024-01-19 18:04:48 +03:00
parent 896ed3df6c
commit b3f2b20fff
2 changed files with 18 additions and 1 deletions

View File

@@ -28,8 +28,22 @@
{% endif %}; {% endif %};
width: 100%; width: 100%;
} }
.{{ name_w }}_{{ widget.id }}_align_btn.desctop{
display: block;
}
.{{ name_w }}_{{ widget.id }}_align_btn.mobile{
display: none;
}
@media (max-width: 800px) {
.{{ name_w }}_{{ widget.id }}_align_btn.desctop{
display: none;
}
.{{ name_w }}_{{ widget.id }}_align_btn.mobile{
display: block;
}
}
</style> </style>
<div class="{{ name_w }}_{{ widget.id }}_align_btn"> <div class="{{ name_w }}_{{ widget.id }}_align_btn{% if mobile %} {{ mobile }}{% else %} desctop{% endif %}">
<a class="{{ name_w }}_{{ widget.id }}_widget_btn_a" href="{{ widget.url }}" target="_blank"> <a class="{{ name_w }}_{{ widget.id }}_widget_btn_a" href="{{ widget.url }}" target="_blank">
{{ widget.but_title }} {{ widget.but_title }}
</a> </a>

View File

@@ -25,4 +25,7 @@
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
{% with name_w='presentAerBim' mobile='mobile' %}
{% include 'blocks/block_elements/be_button.html' %}
{% endwith %}
</div> </div>