aboutsummaryrefslogtreecommitdiffhomepage
path: root/static/note.css
diff options
context:
space:
mode:
Diffstat (limited to 'static/note.css')
-rw-r--r--static/note.css121
1 files changed, 121 insertions, 0 deletions
diff --git a/static/note.css b/static/note.css
new file mode 100644
index 0000000..7795882
--- /dev/null
+++ b/static/note.css
@@ -0,0 +1,121 @@
+.timelineReason {
+ background: #fee4;
+ border: 1px solid #3b005e44;
+ border-bottom: none;
+ border-radius: 8px 8px 0 0;
+ margin: 16px 16px -16px 16px;
+ padding: 8px;
+ display: grid;
+ grid-template-columns: max-content 1fr;
+ align-items: center;
+ gap: 8px;
+
+ .icon {
+ font-size: 24px;
+ }
+ a {
+ text-decoration: none;
+ font-weight: bold;
+ color: inherit;
+ }
+
+ + article.note {
+ border-top-left-radius: 0;
+ border-top-right-radius: 0;
+ }
+}
+
+article.note {
+ background: #fee4;
+ border: 1px solid #3b005e44;
+ border-radius: 8px;
+ margin: 16px;
+ padding: 16px;
+ display: grid;
+ grid-template-columns: max-content 1fr;
+ gap: 16px;
+
+ img.avatar {
+ width: 64px;
+ aspect-ratio: 1;
+ }
+
+ &.selected {
+ background: #ebf4;
+ }
+
+ .content {
+ font-size: 12pt;
+ padding: 4px 0;
+ .selected & {
+ font-size: 16pt;
+ }
+ }
+
+ .infoLine {
+ display: grid;
+ grid-template-columns: max-content 1fr max-content;
+ align-items: baseline;
+ margin-bottom: 4px;
+ gap: 8px;
+
+ .authorName {
+ font-weight: bold;
+ }
+ .authorHandle,
+ .timestamp {
+ font-size: 10pt;
+ text-overflow: ellipsis;
+ overflow: hidden;
+ }
+ a.timestamp {
+ color: inherit;
+ text-decoration: none;
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+ }
+
+ .replyInfo a {
+ font-size: 10pt;
+ color: #555;
+ text-decoration: none;
+ &:hover {
+ text-decoration: underline;
+ }
+ }
+
+ .buttons {
+ margin-top: 8px;
+ padding: 0;
+ display: grid;
+ grid-auto-flow: column;
+ gap: 16px;
+ width: max-content;
+
+ button {
+ width: 24px;
+ font-size: 24px;
+ color: #3b005e44;
+ cursor: pointer;
+
+ &:disabled {
+ opacity: 0.5;
+ }
+
+ &.like.active {
+ color: #8c22d8;
+ }
+ &.dislike.active {
+ color: #c02e2e;
+ }
+ &.reshare.active {
+ color: #21a821;
+ }
+ &.reply.active {
+ color: #0761b6;
+ }
+ }
+ }
+}