diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2020-08-19 10:20:38 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2020-08-19 10:20:38 +0000 |
| commit | ddeeb240acf229d159e7f85f508a9d92213e2be4 (patch) | |
| tree | 3f1fbde59bc3c4831f4a46cf0b7efbc3556f37fb /src/components/notification/notification.scss | |
| parent | 1a8840c7c3bb698f3984028db5c1b71025d9d6a1 (diff) | |
| parent | 800047b81f4375577e7d7298409cea5bd751ea71 (diff) | |
Merge branch 'css-fixes' into 'develop'
Css fixes
See merge request pleroma/pleroma-fe!1211
Diffstat (limited to 'src/components/notification/notification.scss')
| -rw-r--r-- | src/components/notification/notification.scss | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/components/notification/notification.scss b/src/components/notification/notification.scss new file mode 100644 index 00000000..d0e63d81 --- /dev/null +++ b/src/components/notification/notification.scss @@ -0,0 +1,52 @@ +// TODO Copypaste from Status, should unify it somehow +.Notification { + &.-muted { + padding: 0.25em 0.6em; + height: 1.2em; + line-height: 1.2em; + text-overflow: ellipsis; + overflow: hidden; + display: flex; + flex-wrap: nowrap; + + & .status-username, + & .mute-thread, + & .mute-words { + word-wrap: normal; + word-break: normal; + white-space: nowrap; + } + + & .status-username, + & .mute-words { + text-overflow: ellipsis; + overflow: hidden; + } + + .status-username { + font-weight: normal; + flex: 0 1 auto; + margin-right: 0.2em; + font-size: smaller; + } + + .mute-thread { + flex: 0 0 auto; + } + + .mute-words { + flex: 1 0 5em; + margin-left: 0.2em; + + &::before { + content: ' '; + } + } + + .unmute { + flex: 0 0 auto; + margin-left: auto; + display: block; + } + } +} |
