snort/packages/app/src/Element/Note.css

271 lines
4.4 KiB
CSS
Raw Normal View History

2023-01-22 11:17:50 +00:00
.note {
min-height: 110px;
}
2023-02-28 01:16:43 +00:00
.note:hover {
cursor: pointer;
}
.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);
display: flex;
align-items: center;
}
.note > .header > .info .saved {
margin-right: 12px;
font-weight: 600;
font-size: 10px;
line-height: 12px;
letter-spacing: 0.11em;
text-transform: uppercase;
display: flex;
align-items: center;
}
2023-04-05 15:10:14 +00:00
.note > .header > .info .saved svg {
margin-right: 8px;
}
.note > .header > .pinned {
font-size: var(--font-size-small);
color: var(--font-secondary-color);
font-weight: 500;
line-height: 22px;
display: flex;
flex-direction: row;
align-items: center;
}
.note > .header > .pinned svg {
margin-right: 8px;
2022-12-18 14:51:47 +00:00
}
2023-04-18 21:20:13 +00:00
.note-quote {
border: 1px solid var(--gray);
}
.note-quote.note > .body {
padding-left: 0;
}
.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;
align-items: center;
justify-content: center;
2023-01-26 06:51:03 +00:00
margin-left: auto;
2023-03-02 18:39:29 +00:00
gap: 1em;
padding-left: 0.8em;
2023-01-26 06:51:03 +00:00
}
@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;
}
.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;
}
2023-04-05 15:10:14 +00:00
2023-02-09 11:24:15 +00:00
.note > .footer .ctx-menu li:last-of-type {
padding-bottom: 12px;
border-bottom-left-radius: 16px;
border-bottom-right-radius: 16px;
}
2023-02-10 11:12:11 +00:00
.note > .footer .ctx-menu li:hover {
2023-02-09 11:24:15 +00:00
color: white;
background: #2a2a2a;
}
2023-02-10 11:12:11 +00:00
.light .note > .footer .ctx-menu li:hover {
2023-02-09 11:24:15 +00:00
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,
2023-02-28 01:16:43 +00:00
.note > .header .name > .reply: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
}
2023-04-05 15:10:14 +00:00
.note .poll-body {
padding: 5px;
user-select: none;
}
.note .poll-body > div {
border: 1px solid var(--font-secondary-color);
border-radius: 5px;
margin-bottom: 3px;
position: relative;
overflow: hidden;
}
.note .poll-body > div > div {
padding: 5px 10px;
z-index: 2;
}
.note .poll-body > div:hover {
cursor: pointer;
border: 1px solid var(--highlight);
}
.note .poll-body > div > .progress {
background-color: var(--gray);
height: stretch;
position: absolute;
z-index: 1;
}
2023-01-18 23:31:34 +00:00
.reaction-pill {
display: flex;
min-width: 1rem;
align-items: center;
justify-content: center;
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;
2023-02-10 11:12:11 +00:00
font-feature-settings: "tnum";
2023-01-18 23:31:34 +00:00
}
.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;
color: var(--highlight);
2023-01-18 23:31:34 +00:00
}
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
}
2023-02-12 12:31:48 +00:00
.note .reactions-link {
color: var(--font-secondary-color);
font-weight: 400;
font-size: 14px;
line-height: 24px;
margin-top: 4px;
font-feature-settings: "tnum";
}
.note .reactions-link:hover {
text-decoration: underline;
}
2023-02-14 22:47:28 +00:00
.close-menu {
position: absolute;
width: 100vw;
height: 100vh;
top: -400px;
left: -600px;
}
.close-menu-container {
position: absolute;
}