Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/main/admin/questions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1019,7 +1019,7 @@ function build_question_type_icon_html(int $type): string

if (!empty($deleteUrl)) {
$question->questionData .= Display::url(
get_lang('Delete'),
Display::getMdiIcon(ActionIcon::DELETE, 'ch-tool-icon text-white', null, ICON_SIZE_SMALL, get_lang('Delete')).' '.get_lang('Delete'),
$deleteUrl,
[
'class' => 'inline-flex items-center rounded-lg bg-danger px-3 py-1.5 text-sm font-semibold text-white hover:bg-danger/90',
Expand Down
4 changes: 2 additions & 2 deletions public/main/template/default/admin/questions.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<style>
details > summary::-webkit-details-marker { display: none; }
details > summary { list-style: none; }
.ch-q-preview a { color: rgb(var(--color-primary-base)); text-decoration: underline; }
.ch-q-preview a { color: rgb(var(--color-primary-base)); }
.ch-q-preview img { max-width: 100%; height: auto; border-radius: 12px; }
.ch-q-preview table { width: 100%; border-collapse: separate; border-spacing: 0; }
.ch-q-preview th, .ch-q-preview td { border: 1px solid #e4e9ed; padding: 8px; vertical-align: top; }
Expand Down Expand Up @@ -124,7 +124,7 @@
</summary>

<div class="px-5 pb-5">
<div class="rounded-2xl border border-gray-25 bg-gray-10 p-4">
<div class="rounded-2xl border border-gray-25 bg-gray-10 p-4 mt-4">
<div class="ch-q-preview text-body-2 text-gray-90 leading-6">
{{ question.questionData }}
</div>
Expand Down
14 changes: 10 additions & 4 deletions src/CoreBundle/Resources/views/Layout/cookie_banner.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{# Cookie banner (C1-compatible behavior) #}
{% set cookieWarningRaw = chamilo_settings_get('platform.cookie_warning')|default('')|trim|lower %}
{% set cookieWarningEnabled = (cookieWarningRaw == 'true') %}
{% set cookieAck = app.request.cookies.get('ChamiloUsesCookies') %}
Expand All @@ -21,12 +20,19 @@
aria-hidden="true">!</span>

<div class="text-sm text-gray-90">
<div class="leading-snug">
{{ youAcceptCookiesText }}
<div class="leading-snug
[&_a]:font-semibold
[&_a]:underline [&_a]:underline-offset-2
[&_a]:text-primary hover:[&_a]:text-primary/80">
{{ youAcceptCookiesText|raw }}
</div>

<div id="chamilo-cookie-banner-more"
class="mt-2 hidden text-sm leading-relaxed text-gray-90">
class="mt-2 hidden text-sm leading-relaxed text-gray-90
[&_a]:font-semibold
[&_a]:underline [&_a]:underline-offset-2
[&_a]:text-primary hover:[&_a]:text-primary/80
[&_a:hover]:opacity-90">
{{ helpCookieUsageValidationHtml|raw }}
</div>

Expand Down
Loading