[CSS] .section-widget class and derivatives replaced as .frame-section, since a widget implies a simple element with a specific function

This commit is contained in:
2022-01-19 23:54:45 +00:00
committed by Diogo Peralta Cordeiro
parent 7d546e8901
commit f731850f5c
36 changed files with 321 additions and 398 deletions

View File

@@ -2,9 +2,9 @@
{% block collection_items %}
{% for key, attachment in attachments %}
<section class="section-widget section-padding">
<section class="frame-section frame-section-padding">
{% include '/cards/attachments/view.html.twig' with {'attachment': attachment, 'note': bare_notes[key], 'title': attachment.getBestTitle(bare_notes[key])} only %}
<a class="section-widget-button-like"
<a class="frame-section-button-like"
href="{{ attachment.getDownloadUrl(bare_notes[key]) }}"> {{ 'Download link' | trans }}</a>
</section>
{% else %}

View File

@@ -1,6 +1,6 @@
{% import '/cards/note/view.html.twig' as noteView %}
<section class="section-widget section-padding">
<section class="frame-section frame-section-padding">
<div class="section-title">
<h2 class="heading-no-margin">
{{ 'Notes related' | trans }}

View File

@@ -1,4 +1,4 @@
<section class="section-widget section-padding">
<section class="frame-section frame-section-padding">
<div class="section-title">
<h2 class="heading-no-margin">
{{ 'Attachment tags' | trans }}

View File

@@ -1,5 +1,5 @@
{% if actor_tags is not empty %}
<div class="section-widget section-padding">
<div class="frame-section frame-section-padding">
<h2>Related tags:</h2>
{% for at in actor_tags %}
{% include 'cards/tag/actor_tag.html.twig' with { 'tag': at, 'actor': null } %}

View File

@@ -1,5 +1,5 @@
{% if note_tags is not empty %}
<div class="section-widget section-padding">
<div class="frame-section frame-section-padding">
<h2>Related tags:</h2>
{% for nt in note_tags %}

View File

@@ -8,7 +8,7 @@
{% block body %}
{% if note is defined or actor is defined %}
<div class="section-padding">
<div class="frame-section-padding">
{% if note is defined and note is not null %}
{{ noteView.macro_note(note, {}) }}
{% elseif actor is defined and actor is not null %}
@@ -20,7 +20,7 @@
<p>{{ label }}</p>
{{ form(tags_form) }}
{% endif %}
<div class="section-widget-button-like">
<div class="frame-section-button-like">
<a href="{{ url('settings', {'open': 'settings-muting-' ~ type ~ '-tags-details'}) }}">{% trans %}Go to %type% muting settings{% endtrans %}</a>
</div>
{% endblock %}

View File

@@ -1,6 +1,6 @@
<section class="section-widget">
<details class="section-widget-title-details" title="Expand if you want to access more options.">
<summary class="section-title-summary">
<section class="frame-section">
<details class="section-details-title" title="Expand if you want to access more options.">
<summary class="details-title-summary">
<h2>Web Monetization</h2>
</summary>
<section class="section-form">