snort/src/Element/Note.css

169 lines
2.8 KiB
CSS
Raw Normal View History

2023-01-22 11:17:50 +00:00
.note {
min-height: 110px;
}
.note > .header .reply {
2023-02-06 21:42:47 +00:00
font-size: 13px;
2023-01-20 22:59:26 +00:00
color: var(--font-secondary-color);
2022-12-18 14:51:47 +00:00
}
.note > .header .reply a {
2023-01-25 18:08:53 +00:00
color: var(--highlight);
}
.note > .header .reply a:hover {
2023-01-25 18:08:53 +00:00
text-decoration-color: var(--highlight);
}
.note > .header > .info {
2023-01-20 22:59:26 +00:00
font-size: var(--font-size);
2023-02-06 21:42:47 +00:00
margin-left: 4px;
2023-01-20 22:59:26 +00:00
white-space: nowrap;
color: var(--font-secondary-color);
2022-12-18 14:51:47 +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
}
.note > .footer {
2023-01-20 22:59:26 +00:00
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;
}
}
.note > .footer .ctx-menu {
2023-01-20 22:59:26 +00:00
color: var(--font-secondary-color);
2023-02-09 11:24:15 +00:00
background: transparent;
box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
2023-01-21 11:59:19 +00:00
min-width: 0;
2023-02-09 11:24:15 +00:00
margin: 0;
padding: 0;
border-radius: 16px;
}
.light .note > .footer .ctx-menu {
2023-01-21 11:59:19 +00:00
}
.note > .footer .ctx-menu li {
2023-02-09 11:24:15 +00:00
background: #1e1e1e;
padding-top: 8px;
padding-bottom: 8px;
2023-01-21 11:59:19 +00:00
display: grid;
grid-template-columns: 2rem auto;
}
2023-02-09 11:24:15 +00:00
.light .note > .footer .ctx-menu li {
background: var(--note-bg);
}
.note > .footer .ctx-menu li:first-of-type {
padding-top: 12px;
border-top-left-radius: 16px;
border-top-right-radius: 16px;
}
.note > .footer .ctx-menu li:last-of-type {
padding-bottom: 12px;
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}
.light .note > .footer .ctx-menu li:hover {
color: white;
background: #2a2a2a;
}
.note > .footer .ctx-menu li:hover {
color: white;
background: var(--font-secondary-color);
}
2023-01-21 11:59:19 +00:00
.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 {
2023-01-20 22:59:26 +00:00
cursor: pointer;
2022-12-18 14:51:47 +00:00
}
2022-12-20 23:14:13 +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
}
.reaction-pill {
display: flex;
flex-direction: row;
2023-02-06 21:42:47 +00:00
margin: 0px 14px;
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-28 20:38:53 +00:00
.note-expand .body {
max-height: 300px;
overflow-y: hidden;
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;
2023-01-28 18:51:08 +00:00
}
2023-01-29 22:18:37 +00:00
2023-02-06 21:42:47 +00:00
.expand-note {
padding: 0 0 16px 0;
2023-01-29 22:18:37 +00:00
font-weight: 400;
color: var(--highlight);
2023-02-06 21:42:47 +00:00
cursor: pointer;
2023-01-29 22:18:37 +00:00
}
2023-02-06 21:42:47 +00:00
.note.active {
border-left: 1px solid var(--highlight);
border-bottom-left-radius: 0;
margin-left: -1px;
2023-01-29 22:18:37 +00:00
}