Skip to content

A platform for community discussion. Free, open, simple.

UX: Right align notification item time, adjust mobile space, consolodate

Krisf9a44488e9c9
diff --git a/app/assets/stylesheets/common/components/user-stream-item.scss b/app/assets/stylesheets/common/components/user-stream-item.scss
index 284d0ba4795..76321a2eb26 100644
--- a/app/assets/stylesheets/common/components/user-stream-item.scss
+++ b/app/assets/stylesheets/common/components/user-stream-item.scss
@@ -9,6 +9,7 @@
.user-stream-item {
background-color: $secondary;
border-bottom: 1px solid $primary-low;
+ padding: 1em 0.53em;
&.moderator-action {
background-color: $highlight-medium;
@@ -38,8 +39,7 @@
.time,
.delete-info,
.draft-type {
- display: block;
- float: right;
+ margin-left: auto;
color: $primary-medium;
font-size: $font-down-2;
}
@@ -103,12 +103,6 @@
}
}
- .time {
- display: inline-block;
- margin-left: 10px;
- float: none;
- }
-
// common/base/header.scss
.fa,
.icon {
diff --git a/app/assets/stylesheets/desktop/components/user-stream-item.scss b/app/assets/stylesheets/desktop/components/user-stream-item.scss
index d1da43f9982..52ef60c37de 100644
--- a/app/assets/stylesheets/desktop/components/user-stream-item.scss
+++ b/app/assets/stylesheets/desktop/components/user-stream-item.scss
@@ -1,15 +1,5 @@
// Desktop styles for "user-stream-item" component
.user-stream {
- // DEPRECATION:
- // The ".item" class should be eventually removed because it's too generic.
- // Once ".item" has been removed, ".user-stream-item" can replace
- // ".user-stream" as the top-level selector on this file as all other
- // selectors below are its children
- .item,
- .user-stream-item {
- padding: 1em 0.53em;
- }
-
.time,
.delete-info,
.draft-type {
diff --git a/app/assets/stylesheets/mobile/components/user-stream-item.scss b/app/assets/stylesheets/mobile/components/user-stream-item.scss
index 0960cd470c1..833568f0093 100644
--- a/app/assets/stylesheets/mobile/components/user-stream-item.scss
+++ b/app/assets/stylesheets/mobile/components/user-stream-item.scss
@@ -1,15 +1,5 @@
// Mobile styles for "user-stream-item" component
.user-stream {
- // DEPRECATION:
- // The ".item" class should be eventually removed because it's too generic.
- // Once ".item" has been removed, ".user-stream-item" can replace
- // ".user-stream" as the top-level selector on this file as all other
- // selectors below are its children
- .item,
- .user-stream-item {
- padding: 20px 0 15px 0;
- }
-
.name {
vertical-align: middle;
}