[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

@@ -3,7 +3,7 @@
{% block title %}{{ title }}{% endblock %}
{% block body %}
<section class="section-widget section-padding">
<section class="frame-section frame-section-padding">
<h1 class="section-title">{{ title }}</h1>
<div>
@@ -18,7 +18,7 @@
</form>
</div>
<div class="section-padding">
<div class="frame-section-padding">
{% if actors is defined and actors is not empty %}
{% for actor in actors %}
{% block profile_view %}{% include 'cards/profile/view.html.twig' %}{% endblock profile_view %}

View File

@@ -3,8 +3,8 @@
{% block title %}{{ page_title | trans }}{% endblock %}
{% block body %}
<div class="section-widget section-padding">
<h2 class="section-widget-title">{{ page_title | trans }}</h2>
<div class="frame-section frame-section-padding">
<h2 class="frame-section-title">{{ page_title | trans }}</h2>
{% block collection_items %}
{% endblock collection_items %}
</div>

View File

@@ -3,14 +3,14 @@
{% block title %}{{ page_title | trans }}{% endblock %}
{% block body %}
<div class="section-widget section-padding">
<h2 class="section-widget-title">{{ page_title | trans }}</h2>
<div class="frame-section frame-section-padding">
<h2 class="frame-section-title">{{ page_title | trans }}</h2>
{% if add_collection %}
<div class="section-widget section-form">
<div class="frame-section section-form">
{{ form(add_collection) }}
</div>
{% endif %}
<div class="section-widget collections-list">
<div class="frame-section collections-list">
<h3>{{ list_title | trans }}</h3>
{% for col in collections %}
<div class="collection-item">

View File

@@ -14,12 +14,11 @@
{% endfor %}
{% if notes is defined %}
<article>
<header class="feed-header">
{% if page_title is defined %}
<h1 class="heading-no-margin">{{ page_title | trans }}</h1>
{% else %}
<h1 class="heading-no-margin">{{ 'Notes' | trans }}</h1>
<h3 class="heading-no-margin">{{ 'Notes' | trans }}</h3>
{% endif %}
<nav class="feed-actions">
<details class="feed-actions-details">
@@ -38,20 +37,19 @@
</header>
{% if notes is not empty %}
{# Backwards compatibility with hAtom 0.1 #}
<section class="feed h-feed hfeed notes" tabindex="0" role="feed">
{% for conversation in notes %}
{% block current_note %}
{% if conversation is instanceof('array') %}
{{ noteView.macro_note(conversation['note'], conversation['replies']) }}
{% else %}
{{ noteView.macro_note(conversation) }}
{% endif %}
<hr tabindex="0" title="{{ 'End of note and replies.' | trans }}">
{% endblock current_note %}
{% endfor %}
</section>
{# Backwards compatibility with hAtom 0.1 #}
<section class="feed h-feed hfeed notes" tabindex="0" role="feed">
{% for conversation in notes %}
{% block current_note %}
{% if conversation is instanceof('array') %}
{{ noteView.macro_note(conversation['note'], conversation['replies']) }}
{% else %}
{{ noteView.macro_note(conversation) }}
{% endif %}
<hr tabindex="0" title="{{ 'End of note and replies.' | trans }}">
{% endblock current_note %}
{% endfor %}
</section>
{% endif %}
</article>
{% endif %}
{% endblock body %}

View File

@@ -1,6 +1,6 @@
<section class="section-widget collections">
<details class="section-widget-title-details" title="Expand if you want to access more options.">
<summary class="section-title-summary">
<section class="frame-section collections">
<details class="section-details-title" title="Expand if you want to access more options.">
<summary class="details-title-summary">
<h2>{{ctitle}}</h2>
</summary>
{% if has_collections %}
@@ -8,9 +8,9 @@
{{ form(add_form) }}
</section>
<details class="section-widget-subtitle-details section-padding"
<details class="section-details-subtitle frame-section-padding"
title="Expand if you want to access more options.">
<summary class="section-subtitle-summary">
<summary class="details-subtitle-summary">
<strong>{% trans %}Other options{% endtrans %}</strong>
</summary>
<section class="section-form">