Comments decorations
This commit is contained in:
parent
7f0a902d04
commit
9ec3e9a525
|
@ -1,18 +1,40 @@
|
||||||
.comment {
|
.comment {
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
margin: 0 -2.4rem 1.5em;
|
margin: 0 -2.4rem 0.5em;
|
||||||
padding: 0.8rem 2.4rem;
|
padding: 0.8rem 2.4rem;
|
||||||
transition: background-color 0.3s;
|
transition: background-color 0.3s;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
&:hover {
|
&:last-child {
|
||||||
background-color: #f6f6f6;
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.commentControlReply,
|
.comment {
|
||||||
.commentControlShare,
|
&:before,
|
||||||
.commentControlDelete,
|
&:after {
|
||||||
.commentControlEdit,
|
content: '';
|
||||||
.commentControlComplain {
|
left: 0;
|
||||||
opacity: 1;
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:before {
|
||||||
|
border-bottom: 2px solid #ccc;
|
||||||
|
border-left: 2px solid #ccc;
|
||||||
|
border-radius: 0 0 0 1.2rem;
|
||||||
|
top: -1rem;
|
||||||
|
height: 2.4rem;
|
||||||
|
width: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:after {
|
||||||
|
background: #ccc;
|
||||||
|
height: 100%;
|
||||||
|
top: 0;
|
||||||
|
width: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:last-child:after {
|
||||||
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,6 +54,18 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.commentContent {
|
||||||
|
&:hover {
|
||||||
|
.commentControlReply,
|
||||||
|
.commentControlShare,
|
||||||
|
.commentControlDelete,
|
||||||
|
.commentControlEdit,
|
||||||
|
.commentControlComplain {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.commentControls {
|
.commentControls {
|
||||||
@include font-size(1.2rem);
|
@include font-size(1.2rem);
|
||||||
margin-bottom: 0.5em;
|
margin-bottom: 0.5em;
|
||||||
|
|
|
@ -135,7 +135,7 @@ export default (props: {
|
||||||
<textarea name="reply" id="reply" rows="5" />
|
<textarea name="reply" id="reply" rows="5" />
|
||||||
<div class={styles.replyFormControls}>
|
<div class={styles.replyFormControls}>
|
||||||
<button class="button button--light" onClick={() => setIsReplyVisible(false)}>
|
<button class="button button--light" onClick={() => setIsReplyVisible(false)}>
|
||||||
{t('Cancel')}
|
{t('cancel')}
|
||||||
</button>
|
</button>
|
||||||
<button class="button">{t('Send')}</button>
|
<button class="button">{t('Send')}</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -102,7 +102,7 @@ export const CommentsTree = (props: { shoutSlug: string }) => {
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul>
|
<ul class={styles.comments}>
|
||||||
<For each={nestComments(reactions().reverse())}>
|
<For each={nestComments(reactions().reverse())}>
|
||||||
{(reaction: NestedReaction) => (
|
{(reaction: NestedReaction) => (
|
||||||
<Comment
|
<Comment
|
||||||
|
|
|
@ -184,11 +184,11 @@
|
||||||
"discussion": "дискурс",
|
"discussion": "дискурс",
|
||||||
"Personal": "Личные",
|
"Personal": "Личные",
|
||||||
"Groups": "Группы",
|
"Groups": "Группы",
|
||||||
"All": "Все",
|
|
||||||
"create_chat": "Создать чат",
|
"create_chat": "Создать чат",
|
||||||
"create_group": "Создать группу",
|
"create_group": "Создать группу",
|
||||||
"discourse_theme": "Тема дискурса",
|
"discourse_theme": "Тема дискурса",
|
||||||
"cancel": "Отмена",
|
"cancel": "Отмена",
|
||||||
|
"Send": "Отправить",
|
||||||
"group_chat": "Общий чат",
|
"group_chat": "Общий чат",
|
||||||
"Profile settings": "Настройки профиля",
|
"Profile settings": "Настройки профиля",
|
||||||
"Here you can customize your profile the way you want.": "Здесь можно настроить свой профиль так, как вы хотите.",
|
"Here you can customize your profile the way you want.": "Здесь можно настроить свой профиль так, как вы хотите.",
|
||||||
|
|
|
@ -251,6 +251,20 @@ img {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.comments {
|
||||||
|
margin: 0;
|
||||||
|
|
||||||
|
&,
|
||||||
|
ul {
|
||||||
|
list-style: none;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
ul {
|
||||||
|
margin: 1em 0 0 2.4rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.commentsHeaderWrapper {
|
.commentsHeaderWrapper {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user