snort/src/element/Note.css

156 lines
2.7 KiB
CSS
Raw Normal View History

2022-12-18 14:51:47 +00:00
.note {
2023-01-19 11:43:22 +00:00
margin-bottom: 12px;
2023-01-18 23:31:34 +00:00
border-radius: 16px;
2023-01-18 15:55:25 +00:00
background-color: var(--note-bg);
2023-01-19 11:40:38 +00:00
padding: 12px;
2023-01-18 22:11:31 +00:00
min-height: 110px;
}
2023-01-19 11:40:38 +00:00
@media (min-width: 720px) {
2023-01-19 11:43:22 +00:00
.note { margin-bottom: 24px; padding: 24px; }
2023-01-19 11:40:38 +00:00
}
.note.thread {
border-bottom: none;
2022-12-18 14:51:47 +00:00
}
2023-01-18 23:31:34 +00:00
.note .header {
display: flex;
flex-direction: row;
justify-content: space-between;
2022-12-18 14:51:47 +00:00
}
2022-12-27 23:46:13 +00:00
.note > .header .reply {
2023-01-18 23:31:34 +00:00
font-size: var(--font-size-tiny);
color: var(--font-secondary-color);
2022-12-18 14:51:47 +00:00
}
.note > .header > .info {
2023-01-18 23:31:34 +00:00
font-size: var(--font-size);
2023-01-09 16:18:34 +00:00
white-space: nowrap;
2023-01-18 23:31:34 +00:00
color: var(--font-secondary-color);
2022-12-18 14:51:47 +00:00
}
.note > .body {
2023-01-18 23:31:34 +00:00
margin-top: 12px;
text-overflow: ellipsis;
white-space: pre-wrap;
2022-12-18 14:51:47 +00:00
word-break: normal;
2023-01-19 15:37:47 +00:00
overflow-x: hidden;
overflow-y: visible;
2022-12-18 14:51:47 +00:00
}
2023-01-10 10:30:33 +00:00
.note > .header img:hover, .note > .header .name > .reply:hover, .note .body:hover {
2022-12-18 14:51:47 +00:00
cursor: pointer;
}
2022-12-20 23:14:13 +00:00
.note > .footer {
2023-01-18 23:31:34 +00:00
display: flex;
flex-direction: row-reverse;
2023-01-19 11:43:22 +00:00
margin-top: 12px;
2023-01-18 23:31:34 +00:00
}
.note > .note-creator {
2023-01-19 11:43:22 +00:00
margin-top: 12px;
2023-01-18 23:31:34 +00:00
}
2023-01-19 11:43:22 +00:00
@media (min-width: 720px) {
.note > .footer { margin-top: 24px; }
.note > .note-creator { margin-top: 24px; }
}
2023-01-18 23:31:34 +00:00
.thread.note {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
.thread.note, .indented .note {
margin-bottom: 0;
}
.indented .note {
border-radius: 0;
2023-01-06 13:01:54 +00:00
}
.indented {
border-left: 3px solid var(--gray-tertiary);
2023-01-06 13:01:54 +00:00
padding-left: 2px;
}
2023-01-10 09:53:15 +00:00
2023-01-18 23:31:34 +00:00
.note:last-child {
border-bottom-right-radius: 16px;
margin-bottom: 24px;
}
2023-01-19 10:57:07 +00:00
.indented .note.active:last-child {
border-bottom-right-radius: 16px;
margin-bottom: 24px;
}
2023-01-18 23:31:34 +00:00
.indented > .indented .note:last-child {
border-bottom-right-radius: 0px;
margin-bottom: 0;
}
2023-01-10 09:53:15 +00:00
.indented .active {
2023-01-10 10:06:51 +00:00
background-color: var(--gray-tertiary);
margin-left: -5px;
2023-01-10 09:53:15 +00:00
border-left: 3px solid var(--highlight);
2023-01-18 23:31:34 +00:00
border-radius: 0;
}
.reaction-pill {
display: flex;
flex-direction: row;
2023-01-19 10:19:10 +00:00
padding: 0px 10px;
2023-01-18 23:31:34 +00:00
user-select: none;
color: var(--font-secondary-color);
font-feature-settings: "tnum";
}
.trash-icon {
color: var(--error);
margin-right: auto;
2023-01-18 23:31:34 +00:00
}
.reaction-pill .reaction-pill-number {
margin-left: 8px;
}
.reaction-pill.reacted {
color: var(--highlight);
}
.reaction-pill:hover {
cursor: pointer;
}
.note.active > .header .reply {
color: var(--font-tertiary-color);
}
.note.active > .header > .info {
color: var(--font-tertiary-color);
}
.note.active > .footer > .reaction-pill {
color: var(--font-tertiary-color);
}
@media (prefers-color-scheme: light) {
.indented .active {
background-color: var(--gray-secondary);
}
.note.active > .header .reply {
color: var(--font-secondary-color);
}
.note.active > .header > .info {
color: var(--font-secondary-color);
}
.note.active > .footer > .reaction-pill {
color: var(--font-seco666ndary-color);
}
}