[CSS] Note actions re-alignment to previous position. Simplified visuals.
This commit is contained in:
parent
f4ac49e7c7
commit
447372d7f6
@ -281,10 +281,11 @@ hr {
|
|||||||
display: flex;
|
display: flex;
|
||||||
background-color: var(--translucent);
|
background-color: var(--translucent);
|
||||||
border-radius: var(--unit-size);
|
border-radius: var(--unit-size);
|
||||||
|
border: solid 2px var(--bg2);
|
||||||
}
|
}
|
||||||
.note-wrapper {
|
.note-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: available;
|
height: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-sidebar {
|
.note-sidebar {
|
||||||
@ -317,13 +318,12 @@ hr {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
max-height: 3rem;
|
max-height: 3rem;
|
||||||
|
|
||||||
border: solid 2px var(--bg2);
|
|
||||||
border-bottom: unset;
|
border-bottom: unset;
|
||||||
border-radius: var(--unit-size) var(--unit-size) 0 0;
|
border-radius: var(--unit-size) var(--unit-size) 0 0;
|
||||||
|
|
||||||
background-color: var(--translucent);
|
background: linear-gradient(to left, var(--translucent), transparent);
|
||||||
font-size: var(--medium-size);
|
font-size: var(--medium-size);
|
||||||
padding: 5px 10px 5px 10px;
|
padding: 5px 10px 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note-author {
|
.note-author {
|
||||||
@ -345,10 +345,10 @@ hr {
|
|||||||
|
|
||||||
background-repeat: no-repeat !important;
|
background-repeat: no-repeat !important;
|
||||||
|
|
||||||
width: var(--main-size) !important;
|
width: var(--medium-size) !important;
|
||||||
height: var(--main-size) !important;
|
height: var(--medium-size) !important;
|
||||||
|
|
||||||
margin-top: var(--unit-size);
|
margin-left: var(--unit-size);
|
||||||
text-indent: -9999em;
|
text-indent: -9999em;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -386,8 +386,6 @@ hr {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.note-content {
|
.note-content {
|
||||||
border: solid 2px var(--bg2);
|
|
||||||
border-top: unset;
|
|
||||||
border-radius: 0 0 var(--unit-size) var(--unit-size);
|
border-radius: 0 0 var(--unit-size) var(--unit-size);
|
||||||
|
|
||||||
height: max-content;
|
height: max-content;
|
||||||
|
@ -3,6 +3,17 @@
|
|||||||
|
|
||||||
<aside class="note-sidebar">
|
<aside class="note-sidebar">
|
||||||
<img class="u-logo avatar" src="{{ note.getAvatarUrl() }}" alt="{{ nickname }}'s avatar" width="32px" height="32px">
|
<img class="u-logo avatar" src="{{ note.getAvatarUrl() }}" alt="{{ nickname }}'s avatar" width="32px" height="32px">
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
<div class="note-wrapper">
|
||||||
|
|
||||||
|
{# TODO: this should link to the note's user profile? #}
|
||||||
|
<div tabindex="0" title="{{ 'Begin a note by the user: ' | trans }} {{ nickname }}." class="note-info">
|
||||||
|
<strong class="note-author u-url">
|
||||||
|
{# Microformat's h-card properties indicates a face icon is a "u-logo" #}
|
||||||
|
{{ nickname }}
|
||||||
|
</strong>
|
||||||
|
|
||||||
{% if app.user %}
|
{% if app.user %}
|
||||||
<div class="note-actions">
|
<div class="note-actions">
|
||||||
{% if have_user %}
|
{% if have_user %}
|
||||||
@ -22,16 +33,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</aside>
|
|
||||||
|
|
||||||
<div class="note-wrapper">
|
|
||||||
|
|
||||||
{# TODO: this should link to the note's user profile? #}
|
|
||||||
<div tabindex="0" title="{{ 'Begin a note by the user: ' | trans }} {{ nickname }}." class="note-info">
|
|
||||||
<strong class="note-author u-url">
|
|
||||||
{# Microformat's h-card properties indicates a face icon is a "u-logo" #}
|
|
||||||
{{ nickname }}
|
|
||||||
</strong>
|
|
||||||
|
|
||||||
{% set reply_to = note.getReplyToNickname() %}
|
{% set reply_to = note.getReplyToNickname() %}
|
||||||
{% if reply_to is not null and not skip_reply_to is defined %}
|
{% if reply_to is not null and not skip_reply_to is defined %}
|
||||||
|
Loading…
Reference in New Issue
Block a user