[Posting][CSS] Fix for qtwebengine and gecko not displaying background color on input elements.
Minor bug fixes.
This commit is contained in:
parent
67d62cf37b
commit
baeb1dde7a
@ -25,6 +25,7 @@ use App\Core\Cache;
|
|||||||
use App\Core\DB\DB;
|
use App\Core\DB\DB;
|
||||||
use App\Core\Event;
|
use App\Core\Event;
|
||||||
use App\Core\Form;
|
use App\Core\Form;
|
||||||
|
use App\Core\GSFile;
|
||||||
use function App\Core\I18n\_m;
|
use function App\Core\I18n\_m;
|
||||||
use App\Core\Modules\Component;
|
use App\Core\Modules\Component;
|
||||||
use App\Entity\Actor;
|
use App\Entity\Actor;
|
||||||
@ -159,7 +160,7 @@ class Posting extends Component
|
|||||||
|
|
||||||
if ($processed_attachments != []) {
|
if ($processed_attachments != []) {
|
||||||
foreach ($processed_attachments as [$a, $fname]) {
|
foreach ($processed_attachments as [$a, $fname]) {
|
||||||
if (DB::count('actor_to_attachment', $args = ['attachment_id' => $a->getId(), 'actor_id' => $args['actor_id']]) === 0) {
|
if (DB::count('actor_to_attachment', $args = ['attachment_id' => $a->getId(), 'actor_id' => $actor->getId()]) === 0) {
|
||||||
DB::persist(ActorToAttachment::create($args));
|
DB::persist(ActorToAttachment::create($args));
|
||||||
}
|
}
|
||||||
DB::persist(AttachmentToNote::create(['attachment_id' => $a->getId(), 'note_id' => $note->getId(), 'title' => $fname]));
|
DB::persist(AttachmentToNote::create(['attachment_id' => $a->getId(), 'note_id' => $note->getId(), 'title' => $fname]));
|
||||||
|
@ -568,10 +568,10 @@ label, button {
|
|||||||
select,
|
select,
|
||||||
button,
|
button,
|
||||||
textarea,
|
textarea,
|
||||||
input:not([type=checkbox], [type=radio]) {
|
input {
|
||||||
font-size: inherit !important;
|
font-size: inherit !important;
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
padding: 4px 8px;
|
padding: 2px 8px;
|
||||||
border: 2px solid var(--bg2);
|
border: 2px solid var(--bg2);
|
||||||
border-radius: var(--unit-size);
|
border-radius: var(--unit-size);
|
||||||
background-color: var(--translucent);
|
background-color: var(--translucent);
|
||||||
@ -579,7 +579,8 @@ input:not([type=checkbox], [type=radio]) {
|
|||||||
|
|
||||||
button {
|
button {
|
||||||
background: var(--bg-button);
|
background: var(--bg-button);
|
||||||
padding: 4px 8px;
|
padding: 2px 8px;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
@ -601,6 +602,13 @@ input[type=radio] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input[type=checkbox] {
|
input[type=checkbox] {
|
||||||
|
all: unset;
|
||||||
|
|
||||||
|
display: inline-block;
|
||||||
|
width: var(--medium-size);
|
||||||
|
height: var(--medium-size);
|
||||||
|
vertical-align: middle;
|
||||||
|
|
||||||
background-color: var(--bg2) !important;
|
background-color: var(--bg2) !important;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<aside class="panel-content accessibility-target">
|
<aside class="panel-content accessibility-target">
|
||||||
|
|
||||||
{% set post_form = handle_event('AppendRightPostingBlock', {'request': request}) %}
|
{% set post_form = handle_event('AppendRightPostingBlock', {'request': request}) %}
|
||||||
|
{% if post_form is defined %}
|
||||||
<section class="section-widget" title={{ 'Create a new note.' | trans }}>
|
<section class="section-widget" title={{ 'Create a new note.' | trans }}>
|
||||||
<details class="section-title-details" title={{ 'Expand if you want to access more options.' | trans }}>
|
<details class="section-title-details" title={{ 'Expand if you want to access more options.' | trans }}>
|
||||||
<summary class="section-title-summary">
|
<summary class="section-title-summary">
|
||||||
@ -34,7 +35,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% set current_path = app.request.get('_route') %}
|
{% set current_path = app.request.get('_route') %}
|
||||||
|
|
||||||
{% if right_panel_vars is defined %}
|
{% if right_panel_vars is defined %}
|
||||||
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
|
{% for block in handle_event('AppendRightPanelBlock', {'path': current_path, 'vars': right_panel_vars}) %}
|
||||||
{{ block | raw }}
|
{{ block | raw }}
|
||||||
@ -44,5 +48,6 @@
|
|||||||
{{ block | raw }}
|
{{ block | raw }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user