* Remove hardcoded instances of education field * WIP Access display_email_on_profile via User Settings * Remove unused profile column * WIP Fix reference to bg_color_hex and text_color_hex * WIP fix issues revealed by systems specs * WIP fix issues revealed by services specs * WIP Fix failing tests * WIP Fix spec failures * wip * Move two attributes from controller to decorator * Update comment * Match user settings changes * More consistently use user.tag_line Even before the profile changes we sometimes used the user.summary attribute directly but used the user.tag_line method in other places. * Remove delegation, rename inline concern * Drop profile columns from users table * Remove duplicated work display from header * Update work profile field handling * Update DUS + spec * Delegate more carefully * Update delegation guard * Adapt for removed delegation * Undo accidental schema changes * Fix seeds * Remove accidentaly change * Fix User#processed_website_url * Update guard clause * Update profile card content * Add Organization#profile * Be more conservative with profile fields * Spec fixes round 1 * Fix typo * Update spec * Limit number of header fields and update card content * Decorate correct model * Update factory * Update schema.rb * Fix validation * How bad could this possibly be? * Pretty bad, nevermind * Remove obsolete code * Reset profile fields during test runs * Move profile fields back to before(:suite) * Spec fixes * Remove accidentally re-added files * More spec fixes * Specs * Change User#tag_keywords_for_search * More spec fixes * Add comment * Undo accidental schema changes * Attempt spec fix * Remove fix attempt * Fix e2e test * Update spec * Remove guard clause * Remove hardcoded instances of education field * WIP Access display_email_on_profile via User Settings * Remove unused profile column * WIP fix issues revealed by systems specs * WIP fix issues revealed by services specs * WIP Fix failing tests * WIP Fix spec failures * wip * Move two attributes from controller to decorator * Update comment * More consistently use user.tag_line Even before the profile changes we sometimes used the user.summary attribute directly but used the user.tag_line method in other places. * Remove education * Add comment * WIP * Clean up mostly_work_with * WIP * Update work profile field handling * More work-related changes * Remove settings_only from display_area enum * Remove quickfix from _metadata partial * Remove special attributes * Remove leftover spec * Retrieve location from profile, not user * Profile.special_attributes no longer exists * Update specs * More spec fixes * Update UsersController * Update UsersController and spec * Fix e2e seeds * Minor cleanup * More e2e seed fixes * Fix profile field CSV * Fix e2e seeds * Move one more attribute in e2e seeds * Remove duplicate line * Clear inputs before typing in them * Fix formatting issues * Profiles::Update -> Users::Update * Remove RegistrationsController#resolve_profile_field_issues * Fix schema.rb * More cleanup * Fix specs * Fix remaining spec Co-authored-by: Jacob Herrington <jacobherringtondeveloper@gmail.com>
277 lines
5 KiB
SCSS
277 lines
5 KiB
SCSS
@import '../config/import';
|
|
@import '../components/buttons';
|
|
|
|
.comment-form {
|
|
--preview-display: none;
|
|
--field-display: flex;
|
|
|
|
display: flex;
|
|
margin-bottom: var(--su-4);
|
|
|
|
&__field {
|
|
display: var(--field-display);
|
|
flex: 1 auto;
|
|
flex-direction: column;
|
|
margin-bottom: var(--su-3);
|
|
background-color: var(--form-bg);
|
|
border: 1px solid var(--form-border);
|
|
color: var(--body-color);
|
|
border-radius: var(--radius);
|
|
transition: all var(--transition-props);
|
|
|
|
&:focus-within {
|
|
background-color: var(--form-bg-focus);
|
|
border-color: var(--form-border-focus);
|
|
box-shadow: 1px 1px 0 var(--form-border-focus);
|
|
}
|
|
}
|
|
|
|
&__inner {
|
|
display: flex;
|
|
flex-flow: column;
|
|
flex: 1 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
.comment-textarea {
|
|
resize: vertical;
|
|
max-height: 40vh;
|
|
|
|
// We need to overwrite default styles for `.crayons-textfield--ghost`
|
|
&,
|
|
&:hover,
|
|
&:focus {
|
|
padding: 0.5em;
|
|
}
|
|
}
|
|
|
|
&__toolbar,
|
|
&__buttons {
|
|
display: none;
|
|
}
|
|
|
|
&--initiated {
|
|
.comment-textarea {
|
|
height: 128px;
|
|
}
|
|
}
|
|
|
|
&--initiated &__toolbar,
|
|
&--initiated &__buttons {
|
|
display: flex;
|
|
}
|
|
|
|
&__toolbar {
|
|
padding: var(--su-1);
|
|
border-top: 1px solid var(--base-20);
|
|
background: var(--form-bg);
|
|
border-radius: 0 0 var(--radius) var(--radius);
|
|
font-size: var(--fs-s);
|
|
}
|
|
|
|
&__preview {
|
|
border-radius: var(--radius);
|
|
padding: var(--su-4);
|
|
border: 1px solid var(--base-20);
|
|
margin-bottom: var(--su-3);
|
|
background: var(--card-bg);
|
|
display: var(--preview-display);
|
|
}
|
|
|
|
&.preview-open {
|
|
--preview-display: block;
|
|
--field-display: none;
|
|
}
|
|
}
|
|
|
|
.comment-wrapper {
|
|
--level-n-indent: var(--su-3);
|
|
--level-1-indent: var(--su-4);
|
|
|
|
@media (min-width: $breakpoint-m) {
|
|
--level-n-indent: calc(var(--su-4) + var(--su-1));
|
|
--level-1-indent: calc(var(--su-6) + var(--su-1));
|
|
}
|
|
position: relative;
|
|
|
|
> summary {
|
|
position: static;
|
|
display: block;
|
|
align-items: center;
|
|
transform: initial;
|
|
top: 0;
|
|
left: var(--indent);
|
|
cursor: pointer;
|
|
font-size: var(--fs-s);
|
|
color: var(--base-60);
|
|
margin-bottom: var(--su-4);
|
|
margin-left: var(--indent);
|
|
padding: var(--su-1) var(--su-2);
|
|
font-style: italic;
|
|
border-radius: var(--radius);
|
|
background: var(--base-0);
|
|
|
|
.expanded {
|
|
display: none;
|
|
}
|
|
|
|
.collapsed {
|
|
display: block;
|
|
}
|
|
|
|
&::-webkit-details-marker {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
&--deep-0 > summary {
|
|
--indent: 0;
|
|
}
|
|
|
|
&--deep-1:not(.root) > summary {
|
|
--indent: var(--level-1-indent);
|
|
}
|
|
|
|
&--deep-2:not(.root) > summary {
|
|
--indent: var(--level-n-indent);
|
|
}
|
|
|
|
&[open] > summary {
|
|
position: absolute;
|
|
top: var(--su-8);
|
|
background: transparent;
|
|
width: auto;
|
|
padding: var(--su-1) 0;
|
|
margin-left: 0;
|
|
|
|
@media (min-width: $breakpoint-s) {
|
|
// display: none;
|
|
}
|
|
|
|
.expanded {
|
|
display: block;
|
|
}
|
|
|
|
.collapsed {
|
|
display: none;
|
|
}
|
|
|
|
.expanded,
|
|
.collapsed {
|
|
opacity: 0.5;
|
|
transition: all var(--transition-props);
|
|
}
|
|
}
|
|
|
|
&[open]:hover {
|
|
> summary {
|
|
display: block;
|
|
}
|
|
|
|
.expanded,
|
|
.collapsed {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.comment {
|
|
--comment-gap: var(--su-4);
|
|
--dropdown-opacity: 0.5;
|
|
--footer-display: flex;
|
|
|
|
@media (min-width: $breakpoint-m) {
|
|
--comment-gap: var(--su-6);
|
|
}
|
|
|
|
&.child {
|
|
&:not(.comment--too-deep) {
|
|
padding-left: var(--level-n-indent);
|
|
}
|
|
&.comment--deep-1 {
|
|
padding-left: var(--level-1-indent);
|
|
}
|
|
}
|
|
|
|
&__dropdown-trigger {
|
|
@media (min-width: $breakpoint-s) {
|
|
opacity: var(--dropdown-opacity);
|
|
}
|
|
}
|
|
|
|
&__dropdown {
|
|
margin-left: auto;
|
|
margin-right: calc(-1 * var(--su-3));
|
|
position: relative;
|
|
top: calc(-1 * var(--su-2));
|
|
}
|
|
|
|
&__inner {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
margin-bottom: var(--comment-gap);
|
|
|
|
&:hover,
|
|
&:focus-within {
|
|
--dropdown-opacity: 1;
|
|
}
|
|
}
|
|
|
|
&__details {
|
|
padding-left: var(--su-2);
|
|
flex: 1 auto;
|
|
min-width: 0;
|
|
|
|
&.replying {
|
|
--footer-display: none;
|
|
}
|
|
}
|
|
|
|
&__content {
|
|
padding: var(--su-1);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
&__header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--su-2) var(--su-3) 0;
|
|
font-size: var(--fs-s);
|
|
|
|
@media (min-width: $breakpoint-m) {
|
|
font-size: var(--fs-base);
|
|
}
|
|
}
|
|
|
|
&__body {
|
|
padding: 0 var(--su-3);
|
|
margin: var(--su-2) 0 var(--su-4);
|
|
}
|
|
|
|
&__footer {
|
|
// border-top: 1px solid var(--base-10);
|
|
padding-top: var(--su-1);
|
|
display: var(--footer-display);
|
|
align-items: center;
|
|
}
|
|
|
|
&__quality-marker {
|
|
border-bottom: 1px solid var(--base-10);
|
|
padding: var(--su-3);
|
|
padding-top: var(--su-2);
|
|
font-weight: var(--fw-medium);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
}
|
|
|
|
.low-quality-comment-marker {
|
|
a {
|
|
color: var(--base-90);
|
|
}
|
|
}
|
|
|
|
.personal-template-button:not(.active),
|
|
.moderator-template-button:not(.active) {
|
|
@extend .crayons-btn--outlined;
|
|
}
|