snort/src/Element/Note.css

154 lines
2.6 KiB
CSS
Raw Normal View History

.note.thread {
2023-01-20 22:59:26 +00:00
border-bottom: none;
2022-12-18 14:51:47 +00:00
}
2023-01-20 22:59:26 +00:00
.note>.header .reply {
font-size: var(--font-size-tiny);
color: var(--font-secondary-color);
2022-12-18 14:51:47 +00:00
}
2023-01-20 22:59:26 +00:00
.note>.header>.info {
font-size: var(--font-size);
white-space: nowrap;
color: var(--font-secondary-color);
2022-12-18 14:51:47 +00:00
}
2023-01-20 22:59:26 +00:00
.note>.body {
margin-top: 12px;
padding-left: 56px;
text-overflow: ellipsis;
white-space: pre-wrap;
word-break: normal;
overflow-x: hidden;
overflow-y: visible;
2022-12-18 14:51:47 +00:00
}
2023-01-20 22:59:26 +00:00
.note>.footer {
padding-left: 46px;
2023-01-20 15:57:45 +00:00
}
2023-01-20 22:59:26 +00:00
.note>.footer .ctx-menu {
background-color: var(--note-bg);
color: var(--font-secondary-color);
border: 1px solid var(--font-secondary-color);
border-radius: 16px;
}
.note>.header img:hover, .note>.header .name>.reply:hover, .note .body:hover {
cursor: pointer;
2022-12-18 14:51:47 +00:00
}
2022-12-20 23:14:13 +00:00
2023-01-20 22:59:26 +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) {
2023-01-20 22:59:26 +00:00
.note>.footer {
margin-top: 24px;
}
.note>.note-creator {
margin-top: 24px;
}
2023-01-19 11:43:22 +00:00
}
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 {
2023-01-20 22:59:26 +00:00
border-left: 3px solid var(--gray-tertiary);
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-20 22:59:26 +00:00
.indented>.indented .note:last-child {
2023-01-18 23:31:34 +00:00
border-bottom-right-radius: 0px;
margin-bottom: 0;
}
2023-01-10 09:53:15 +00:00
.indented .active {
2023-01-20 22:59:26 +00:00
background-color: var(--gray-tertiary);
margin-left: -5px;
border-left: 3px solid var(--highlight);
border-radius: 0;
2023-01-18 23:31:34 +00:00
}
.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";
}
2023-01-18 23:31:34 +00:00
.reaction-pill .reaction-pill-number {
margin-left: 8px;
}
.reaction-pill.reacted {
2023-01-20 22:59:26 +00:00
color: var(--highlight);
2023-01-18 23:31:34 +00:00
}
.reaction-pill:hover {
cursor: pointer;
}
2023-01-20 11:02:03 +00:00
.trash-icon {
color: var(--error);
margin-right: auto;
}
2023-01-20 22:59:26 +00:00
.note.active>.header .reply {
2023-01-18 23:31:34 +00:00
color: var(--font-tertiary-color);
}
2023-01-20 22:59:26 +00:00
.note.active>.header>.info {
2023-01-18 23:31:34 +00:00
color: var(--font-tertiary-color);
}
2023-01-20 22:59:26 +00:00
.note.active>.footer>.reaction-pill {
2023-01-18 23:31:34 +00:00
color: var(--font-tertiary-color);
}
2023-01-20 22:59:26 +00:00
.note.active>.footer>.reaction-pill.reacted {
2023-01-20 15:57:45 +00:00
color: var(--highlight);
}
2023-01-18 23:31:34 +00:00
@media (prefers-color-scheme: light) {
.indented .active {
2023-01-20 22:59:26 +00:00
background-color: var(--gray-secondary);
2023-01-18 23:31:34 +00:00
}
2023-01-20 22:59:26 +00:00
.note.active>.header .reply {
2023-01-18 23:31:34 +00:00
color: var(--font-secondary-color);
}
2023-01-20 22:59:26 +00:00
.note.active>.header>.info {
2023-01-18 23:31:34 +00:00
color: var(--font-secondary-color);
}
2023-01-20 22:59:26 +00:00
.note.active>.footer>.reaction-pill {
2023-01-20 08:35:19 +00:00
color: var(--font-secondary-color);
}
2023-01-20 22:59:26 +00:00
}