2017-08-24 21:04:19 -04: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 05:49:31 -04:00
|
|
|
background-color: dark-light-diff(
|
|
|
|
rgba($danger, 0.7),
|
|
|
|
$secondary,
|
|
|
|
50%,
|
|
|
|
-10%
|
|
|
|
);
|
2017-08-24 21:04:19 -04: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 02:34:54 -04:00
|
|
|
.delete-info,
|
|
|
|
.draft-type {
|
2017-08-24 21:04:19 -04:00
|
|
|
display: block;
|
|
|
|
float: right;
|
2019-08-09 20:53:59 -04:00
|
|
|
color: $primary-medium;
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-down-2;
|
2017-08-24 21:04:19 -04: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 02:34:54 -04:00
|
|
|
.draft-type {
|
|
|
|
clear: right;
|
|
|
|
}
|
|
|
|
|
2018-11-26 16:49:57 -05:00
|
|
|
.delete-info .d-icon {
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-0;
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04:00
|
|
|
.expand-item,
|
|
|
|
.collapse-item {
|
2017-08-24 21:04:19 -04:00
|
|
|
float: right;
|
|
|
|
margin-right: 0.5em;
|
2018-01-12 17:27:38 -05:00
|
|
|
line-height: $line-height-small;
|
2019-08-09 20:53:59 -04:00
|
|
|
color: $primary-medium;
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.avatar-link {
|
|
|
|
float: left;
|
|
|
|
margin-right: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2017-08-24 21:04:19 -04:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-0;
|
2017-08-24 21:04:19 -04:00
|
|
|
max-width: 400px;
|
2019-11-06 14:00:29 -05:00
|
|
|
@include ellipsis;
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.edit-reason {
|
2018-06-08 05:49:31 -04:00
|
|
|
background-color: dark-light-choose(
|
|
|
|
$highlight-medium,
|
|
|
|
scale-color($highlight, $lightness: -50%)
|
|
|
|
);
|
2017-08-24 21:04:19 -04: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 02:34:54 -04:00
|
|
|
.remove-bookmark,
|
|
|
|
.remove-draft {
|
2017-08-24 21:04:19 -04: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 02:34:54 -04:00
|
|
|
|
2019-05-25 09:53:03 -04:00
|
|
|
span:first-child {
|
2017-08-24 21:04:19 -04:00
|
|
|
color: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.time {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 10px;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// common/base/header.scss
|
2018-06-08 05:49:31 -04:00
|
|
|
.fa,
|
|
|
|
.icon {
|
2017-10-10 16:07:46 -04:00
|
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-up-4;
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.excerpt {
|
2019-01-17 17:29:27 -05:00
|
|
|
margin: 1em 0 0 0;
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-0;
|
2017-08-24 21:04:19 -04:00
|
|
|
word-wrap: break-word;
|
|
|
|
color: $primary;
|
2019-01-17 17:29:27 -05:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-12-19 17:28:55 -05:00
|
|
|
details.disabled {
|
|
|
|
color: $primary-medium;
|
|
|
|
}
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
2018-05-08 21:35:53 -04:00
|
|
|
|
|
|
|
.group-member-info {
|
|
|
|
display: flex;
|
|
|
|
}
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
|
2018-06-08 05:49:31 -04: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 02:34:54 -04:00
|
|
|
.user-stream-item-actions,
|
|
|
|
.user-stream-item-draft-actions {
|
2017-08-24 21:04:19 -04:00
|
|
|
margin-top: 8px;
|
|
|
|
|
|
|
|
.avatar-link {
|
|
|
|
float: none;
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fa {
|
|
|
|
width: 15px;
|
|
|
|
display: inline-block;
|
|
|
|
color: $primary;
|
2018-11-26 16:49:57 -05:00
|
|
|
&.d-icon-heart {
|
|
|
|
color: $love;
|
|
|
|
}
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
}
|