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 {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--secondary);
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2020-04-27 23:19:15 -04:00
|
|
|
padding: 1em 0.53em;
|
2017-08-24 21:04:19 -04:00
|
|
|
|
|
|
|
&.moderator-action {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--highlight-medium);
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.deleted {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--danger-low-mid);
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
display: block;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.type,
|
|
|
|
span.name {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
2020-05-06 00:02:49 -04:00
|
|
|
float: right;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2018-01-12 17:27:38 -05:00
|
|
|
font-size: $font-down-2;
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
|
2020-05-06 00:02:49 -04:00
|
|
|
.notification .time {
|
|
|
|
margin-left: auto;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
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;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--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 {
|
2020-08-03 22:57:10 -04:00
|
|
|
background-color: var(--highlight-medium);
|
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 {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// common/base/header.scss
|
2018-06-08 05:49:31 -04:00
|
|
|
.fa,
|
|
|
|
.icon {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
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;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2019-01-17 17:29:27 -05:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-12-19 17:28:55 -05:00
|
|
|
details.disabled {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary-medium);
|
2017-12-19 17:28:55 -05:00
|
|
|
}
|
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;
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--primary);
|
2018-11-26 16:49:57 -05:00
|
|
|
&.d-icon-heart {
|
2020-08-03 22:57:10 -04:00
|
|
|
color: var(--love);
|
2018-11-26 16:49:57 -05:00
|
|
|
}
|
2017-08-24 21:04:19 -04:00
|
|
|
}
|
|
|
|
}
|