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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--secondary);
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
2020-04-28 11:19:15 +08:00
|
|
|
padding: 1em 0.53em;
|
2021-01-20 22:57:38 +08:00
|
|
|
list-style: none;
|
2017-08-25 09:04:19 +08:00
|
|
|
|
|
|
|
&.moderator-action {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--highlight-medium);
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.deleted {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--danger-low-mid);
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&.hidden {
|
|
|
|
display: block;
|
|
|
|
opacity: 0.4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-09-27 22:59:26 +08:00
|
|
|
.user-stream-item__header {
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.user-stream-item__details {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
2017-08-25 09:04:19 +08:00
|
|
|
.type,
|
|
|
|
span.name {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2017-08-25 09:04:19 +08: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 14:34:54 +08:00
|
|
|
.delete-info,
|
|
|
|
.draft-type {
|
2022-09-27 22:59:26 +08:00
|
|
|
line-height: var(--line-height-small);
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-down-2;
|
2022-09-27 22:59:26 +08:00
|
|
|
padding-top: 5px;
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
2020-05-06 12:02:49 +08:00
|
|
|
.notification .time {
|
|
|
|
margin-left: auto;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
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
|
|
|
margin-right: 0.5em;
|
2022-09-27 22:59:26 +08:00
|
|
|
margin-left: 0.25em;
|
|
|
|
line-height: var(--line-height-small);
|
|
|
|
padding-top: 3px;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.avatar-link {
|
2022-09-27 22:59:26 +08:00
|
|
|
margin-right: 0.5em;
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.name {
|
2018-01-13 06:27:38 +08:00
|
|
|
font-size: $font-0;
|
2017-08-25 09:04:19 +08:00
|
|
|
max-width: 400px;
|
2019-11-07 03:00:29 +08:00
|
|
|
@include ellipsis;
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.edit-reason {
|
2020-08-04 10:57:10 +08:00
|
|
|
background-color: var(--highlight-medium);
|
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-draft {
|
2017-08-25 09:04:19 +08:00
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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 {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// common/base/header.scss
|
2018-06-08 17:49:31 +08:00
|
|
|
.fa,
|
|
|
|
.icon {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
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;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2019-01-18 06:29:27 +08:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-12-20 06:28:55 +08:00
|
|
|
details.disabled {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2017-12-20 06:28:55 +08:00
|
|
|
}
|
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;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary);
|
2018-11-27 05:49:57 +08:00
|
|
|
&.d-icon-heart {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--love);
|
2018-11-27 05:49:57 +08:00
|
|
|
}
|
2020-11-13 19:51:06 +08:00
|
|
|
&.d-icon-far-trash-alt {
|
|
|
|
color: var(--secondary);
|
|
|
|
}
|
2017-08-25 09:04:19 +08:00
|
|
|
}
|
|
|
|
}
|