2017-08-25 09:04:19 +08:00
|
|
|
// Common styles for "user-stream-item" component
|
|
|
|
.user-stream {
|
|
|
|
// DEPRECATED:
|
|
|
|
// The ".item" class should be 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 {
|
|
|
|
background-color: $secondary;
|
|
|
|
border-bottom: 1px solid $primary-low;
|
|
|
|
|
|
|
|
&.moderator-action {
|
|
|
|
background-color: $highlight-medium;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.deleted {
|
|
|
|
opacity: 0.8;
|
2018-06-08 17:49:31 +08:00
|
|
|
background-color: dark-light-diff(
|
|
|
|
rgba($danger, 0.7),
|
|
|
|
$secondary,
|
|
|
|
50%,
|
|
|
|
-10%
|
|
|
|
);
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
display: block;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.type,
|
|
|
|
span.name {
|
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
|
|
|
|
.time,
|
FEATURE: Drafts view in user profile
* add drafts.json endpoint, user profile tab with drafts stream
* improve drafts stream display in user profile
* truncate excerpts in drafts list, better handling for resume draft action
* improve draft stream SQL query, add rspec tests
* if composer is open, quietly close it when user opens another draft from drafts stream; load PM draft only when user is in /u/username/messages (instead of /u/username)
* cleanup
* linting fixes
* apply prettier styling to modified files
* add client tests for drafts, includes a fixture for drafts.json
* improvements to code following review
* refresh drafts route when user deletes a draft open in the composer while being in the drafts route; minor prettier scss fix
* added more spec tests, deleted an acceptance test for removing drafts that was too finicky, formatting and code style fixes, added appEvent for draft:destroyed
* prettier, eslint fixes
* use "username_lower" from users table, added error handling for rejected promises
* adds guardian spec for can_see_drafts, adds improvements following code review
* move DraftsController spec to its own file
* fix failing drafts qunit test, use getOwner instead of deprecated this.container
* limit test fixture for draft.json testing to new_topic request only
2018-08-01 14:34:54 +08:00
|
|
|
.delete-info,
|
|
|
|
.draft-type {
|
2017-08-25 09:04:19 +08:00
|
|
|
display: block;
|
|
|
|
float: right;
|
2019-08-10 08:53:59 +08:00
|
|
|
color: $primary-medium;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-2;
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
FEATURE: Drafts view in user profile
* add drafts.json endpoint, user profile tab with drafts stream
* improve drafts stream display in user profile
* truncate excerpts in drafts list, better handling for resume draft action
* improve draft stream SQL query, add rspec tests
* if composer is open, quietly close it when user opens another draft from drafts stream; load PM draft only when user is in /u/username/messages (instead of /u/username)
* cleanup
* linting fixes
* apply prettier styling to modified files
* add client tests for drafts, includes a fixture for drafts.json
* improvements to code following review
* refresh drafts route when user deletes a draft open in the composer while being in the drafts route; minor prettier scss fix
* added more spec tests, deleted an acceptance test for removing drafts that was too finicky, formatting and code style fixes, added appEvent for draft:destroyed
* prettier, eslint fixes
* use "username_lower" from users table, added error handling for rejected promises
* adds guardian spec for can_see_drafts, adds improvements following code review
* move DraftsController spec to its own file
* fix failing drafts qunit test, use getOwner instead of deprecated this.container
* limit test fixture for draft.json testing to new_topic request only
2018-08-01 14:34:54 +08:00
|
|
|
.draft-type {
|
|
|
|
clear: right;
|
|
|
|
}
|
|
|
|
|
2018-11-27 05:49:57 +08:00
|
|
|
.delete-info .d-icon {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.expand-item,
|
|
|
|
.collapse-item {
|
2017-08-25 09:04:19 +08:00
|
|
|
float: right;
|
|
|
|
margin-right: 0.5em;
|
2018-01-13 06:27:38 +08:00
|
|
|
line-height: $line-height-small;
|
2019-08-10 08:53:59 +08:00
|
|
|
color: $primary-medium;
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.avatar-link {
|
|
|
|
float: left;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2017-08-25 09:04:19 +08:00
|
|
|
max-width: 400px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.edit-reason {
|
2018-06-08 17:49:31 +08:00
|
|
|
background-color: dark-light-choose(
|
|
|
|
$highlight-medium,
|
|
|
|
scale-color($highlight, $lightness: -50%)
|
|
|
|
);
|
2017-08-25 09:04:19 +08:00
|
|
|
padding: 3px 5px 5px 5px;
|
|
|
|
}
|
|
|
|
|
FEATURE: Drafts view in user profile
* add drafts.json endpoint, user profile tab with drafts stream
* improve drafts stream display in user profile
* truncate excerpts in drafts list, better handling for resume draft action
* improve draft stream SQL query, add rspec tests
* if composer is open, quietly close it when user opens another draft from drafts stream; load PM draft only when user is in /u/username/messages (instead of /u/username)
* cleanup
* linting fixes
* apply prettier styling to modified files
* add client tests for drafts, includes a fixture for drafts.json
* improvements to code following review
* refresh drafts route when user deletes a draft open in the composer while being in the drafts route; minor prettier scss fix
* added more spec tests, deleted an acceptance test for removing drafts that was too finicky, formatting and code style fixes, added appEvent for draft:destroyed
* prettier, eslint fixes
* use "username_lower" from users table, added error handling for rejected promises
* adds guardian spec for can_see_drafts, adds improvements following code review
* move DraftsController spec to its own file
* fix failing drafts qunit test, use getOwner instead of deprecated this.container
* limit test fixture for draft.json testing to new_topic request only
2018-08-01 14:34:54 +08:00
|
|
|
.remove-bookmark,
|
|
|
|
.remove-draft {
|
2017-08-25 09:04:19 +08:00
|
|
|
float: right;
|
|
|
|
margin-top: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.notification {
|
|
|
|
li {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
display: inline-block;
|
FEATURE: Drafts view in user profile
* add drafts.json endpoint, user profile tab with drafts stream
* improve drafts stream display in user profile
* truncate excerpts in drafts list, better handling for resume draft action
* improve draft stream SQL query, add rspec tests
* if composer is open, quietly close it when user opens another draft from drafts stream; load PM draft only when user is in /u/username/messages (instead of /u/username)
* cleanup
* linting fixes
* apply prettier styling to modified files
* add client tests for drafts, includes a fixture for drafts.json
* improvements to code following review
* refresh drafts route when user deletes a draft open in the composer while being in the drafts route; minor prettier scss fix
* added more spec tests, deleted an acceptance test for removing drafts that was too finicky, formatting and code style fixes, added appEvent for draft:destroyed
* prettier, eslint fixes
* use "username_lower" from users table, added error handling for rejected promises
* adds guardian spec for can_see_drafts, adds improvements following code review
* move DraftsController spec to its own file
* fix failing drafts qunit test, use getOwner instead of deprecated this.container
* limit test fixture for draft.json testing to new_topic request only
2018-08-01 14:34:54 +08:00
|
|
|
|
2019-05-25 21:53:03 +08:00
|
|
|
span:first-child {
|
2017-08-25 09:04:19 +08:00
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.time {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 10px;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// common/base/header.scss
|
2018-06-08 17:49:31 +08:00
|
|
|
.fa,
|
|
|
|
.icon {
|
2017-10-11 04:07:46 +08:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-up-4;
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.excerpt {
|
2019-01-18 06:29:27 +08:00
|
|
|
margin: 1em 0 0 0;
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2017-08-25 09:04:19 +08:00
|
|
|
word-wrap: break-word;
|
|
|
|
color: $primary;
|
2019-01-18 06:29:27 +08:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-12-20 06:28:55 +08:00
|
|
|
details.disabled {
|
|
|
|
color: $primary-medium;
|
|
|
|
}
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
2018-05-09 09:35:53 +08:00
|
|
|
|
|
|
|
.group-member-info {
|
|
|
|
display: flex;
|
|
|
|
}
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.user-stream .child-actions, /* DEPRECATED: '.user-stream .child-actions' selector*/
|
FEATURE: Drafts view in user profile
* add drafts.json endpoint, user profile tab with drafts stream
* improve drafts stream display in user profile
* truncate excerpts in drafts list, better handling for resume draft action
* improve draft stream SQL query, add rspec tests
* if composer is open, quietly close it when user opens another draft from drafts stream; load PM draft only when user is in /u/username/messages (instead of /u/username)
* cleanup
* linting fixes
* apply prettier styling to modified files
* add client tests for drafts, includes a fixture for drafts.json
* improvements to code following review
* refresh drafts route when user deletes a draft open in the composer while being in the drafts route; minor prettier scss fix
* added more spec tests, deleted an acceptance test for removing drafts that was too finicky, formatting and code style fixes, added appEvent for draft:destroyed
* prettier, eslint fixes
* use "username_lower" from users table, added error handling for rejected promises
* adds guardian spec for can_see_drafts, adds improvements following code review
* move DraftsController spec to its own file
* fix failing drafts qunit test, use getOwner instead of deprecated this.container
* limit test fixture for draft.json testing to new_topic request only
2018-08-01 14:34:54 +08:00
|
|
|
.user-stream-item-actions,
|
|
|
|
.user-stream-item-draft-actions {
|
2017-08-25 09:04:19 +08:00
|
|
|
margin-top: 8px;
|
|
|
|
|
|
|
|
.avatar-link {
|
|
|
|
float: none;
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
width: 15px;
|
|
|
|
display: inline-block;
|
|
|
|
color: $primary;
|
2018-11-27 05:49:57 +08:00
|
|
|
&.d-icon-heart {
|
|
|
|
color: $love;
|
|
|
|
}
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
}
|