snort/src/Element/Note.css

203 lines
3.4 KiB
CSS
Raw Normal View History

2023-01-22 11:17:50 +00:00
.note {
min-height: 110px;
}
.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-25 18:08:53 +00:00
.note>.header .reply a {
color: var(--highlight);
}
.note>.header .reply a:hover {
text-decoration-color: var(--highlight);
}
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 {
2023-01-25 18:08:53 +00:00
margin-top: 4px;
2023-01-26 06:13:25 +00:00
margin-bottom: 24px;
2023-01-20 22:59:26 +00:00
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-26 06:51:03 +00:00
.note .footer .footer-reactions {
display: flex;
flex-direction: row;
margin-left: auto;
}
@media (min-width: 720px) {
.note .footer .footer-reactions {
margin-left: 0;
}
}
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;
2023-01-21 11:59:19 +00:00
min-width: 0;
}
.note>.footer .ctx-menu li {
display: grid;
grid-template-columns: 2rem auto;
}
.ctx-menu .red {
color: var(--error);
2023-01-20 22:59:26 +00:00
}
.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-21 11:59:19 +00:00
margin-left: 56px;
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-26 06:13:09 +00:00
font-weight: 500;
2023-01-18 23:31:34 +00:00
}
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-20 22:59:26 +00:00
2023-01-21 21:34:52 +00:00
.light .indented .active {
background-color: var(--gray-secondary);
}
2023-01-20 22:59:26 +00:00
2023-01-21 21:34:52 +00:00
.light .note.active>.header .reply {
color: var(--font-secondary-color);
}
2023-01-20 22:59:26 +00:00
2023-01-21 21:34:52 +00:00
.light .note.active>.header>.info {
color: var(--font-secondary-color);
}
.light .note.active>.footer>.reaction-pill {
color: var(--note-bg);
}
.light .note.active>.footer>.reaction-pill.reacted {
color: var(--highlight);
}
2023-01-28 20:38:53 +00:00
.note-expand .body {
max-height: 300px;
overflow-y: hidden;
mask-image: linear-gradient(to bottom, var(--note-bg) 60%, rgba(0,0,0,0));
-webkit-mask-image: linear-gradient(to bottom, var(--note-bg) 60%, rgba(0,0,0,0));
2023-01-28 21:43:56 +00:00
}
2023-01-28 18:51:08 +00:00
.hidden-note .header {
display: flex;
align-items: center;
}
.card.note.hidden-note {
min-height: unset;
}
.hidden-note button {
max-height: 30px;
}