[Cards][Profile] Fixing nested anchor tags.
This commit is contained in:
parent
a439b7130e
commit
64c881173b
@ -779,6 +779,7 @@ input[type=file] {
|
|||||||
/* PROFILE */
|
/* PROFILE */
|
||||||
.profile {
|
.profile {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
font-family: var(--main-font);
|
font-family: var(--main-font);
|
||||||
@ -806,9 +807,7 @@ input[type=file] {
|
|||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
.profile-info-stats {
|
.profile-info-stats {
|
||||||
margin-top: var(--unit-size);.content {
|
margin-top: var(--unit-size);
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.profile-avatar {
|
.profile-avatar {
|
||||||
@ -879,6 +878,9 @@ and (max-width: 1200px) {
|
|||||||
.container {
|
.container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.content {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
#panel-left-toggle:not(:checked) ~ .panel-content,
|
#panel-left-toggle:not(:checked) ~ .panel-content,
|
||||||
#panel-right-toggle:not(:checked) ~ .panel-content {
|
#panel-right-toggle:not(:checked) ~ .panel-content {
|
||||||
|
@ -4,22 +4,12 @@
|
|||||||
{% set actor_bio = actor.getBio() %}
|
{% set actor_bio = actor.getBio() %}
|
||||||
|
|
||||||
{% block profile_view %}
|
{% block profile_view %}
|
||||||
<section title="{{ actor_nickname }}'s {{ 'profile information.' | trans }}">
|
<section class='profile' title="{{ actor_nickname }}'s {{ 'profile information.' | trans }}">
|
||||||
<a class='profile' href="{{ path('actor_view_nickname', {'nickname' : actor_nickname}) }}">
|
<a href="{{ path('actor_view_nickname', {'nickname' : actor_nickname}) }}">
|
||||||
<img src='{{ actor_avatar }}' class="profile-avatar" alt="{{ actor_nickname }}{{ '\'s avatar.' | trans }}">
|
|
||||||
<div class="profile-info">
|
<div class="profile-info">
|
||||||
|
<img src='{{ actor_avatar }}' class="profile-avatar" alt="{{ actor_nickname }}{{ '\'s avatar.' | trans }}">
|
||||||
<strong id="profile-info-nickname" title="{{ actor_nickname }}{{ '\'s nickname.' | trans }}">{{ actor_nickname }}</strong>
|
<strong id="profile-info-nickname" title="{{ actor_nickname }}{{ '\'s nickname.' | trans }}">{{ actor_nickname }}</strong>
|
||||||
|
|
||||||
<nav class="profile-info-tags">
|
|
||||||
{% if actor_tags %}
|
|
||||||
{% for tag in actor_tags %}
|
|
||||||
<a href='#'><em>#{{ tag }}</em></a>
|
|
||||||
{% endfor %}
|
|
||||||
{% else %}
|
|
||||||
{{ '(No tags)' | trans }}
|
|
||||||
{% endif %}
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
<section class="profile-info-bio">
|
<section class="profile-info-bio">
|
||||||
{% if actor_bio %}
|
{% if actor_bio %}
|
||||||
<p>{{ actor_bio }}</p>
|
<p>{{ actor_bio }}</p>
|
||||||
@ -27,13 +17,23 @@
|
|||||||
<p>{{ '(No bio)' | trans }}</p>
|
<p>{{ '(No bio)' | trans }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="profile-info-stats">
|
|
||||||
<div><strong>{{ 'Subscriptions' | trans }}</strong>{{ actor.getSubscriptionsCount() }}</div>
|
|
||||||
<div><strong>{{ 'Subscribers' | trans }}</strong>{{ actor.getSubscribersCount() }}</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
<section class="profile-info-stats">
|
||||||
|
<div><strong>{{ 'Subscriptions' | trans }}</strong>{{ actor.getSubscriptionsCount() }}</div>
|
||||||
|
<div><strong>{{ 'Subscribers' | trans }}</strong>{{ actor.getSubscribersCount() }}</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<nav class="profile-info-tags">
|
||||||
|
{% if actor_tags %}
|
||||||
|
{% for tag in actor_tags %}
|
||||||
|
<a href='#'><em>#{{ tag }}</em></a>
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
{{ '(No tags)' | trans }}
|
||||||
|
{% endif %}
|
||||||
|
</nav>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
Loading…
Reference in New Issue
Block a user