mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 06:23:43 +08:00
f72899401d
This PR refactors the following: * leaving all the CSS applied to the old `modal-body` classes in their respective files * made new clean styling for `.d-modal` and refactored the template to use the new BEM classes * `inner-`, `middle-`, `outer-` container classes are gone and replaced with simplified `wrapper` and `container` classes * use standardised max-sizes with modifiers `-large` and `-max` * lighter backdrop, * min-width to prevent puny modals * other styling changes regarding padding, close button,… * pulled out all modal overrides into a general `modal-overrides` file + cleanup of outdated CSS * pulled out login and create account modal styling into their own file, cause it's such a big override * removed old general login.scss file for mobile & desktop * only kept some remainders I don't want to touch in `app/assets/stylesheets/common/base/login.scss`
142 lines
2.1 KiB
SCSS
142 lines
2.1 KiB
SCSS
// styles that apply to the "share" modal & popup when sharing a link to a post or topic
|
|
|
|
.link-share-container,
|
|
.notify-user-input {
|
|
display: flex;
|
|
gap: 0.5em;
|
|
|
|
input,
|
|
.select-kit {
|
|
cursor: auto;
|
|
width: 100%;
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
.link-share-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
|
|
button {
|
|
margin-top: 0.5em;
|
|
margin-right: 0.5em;
|
|
}
|
|
|
|
.sources {
|
|
display: flex;
|
|
}
|
|
|
|
.new-topic {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
|
|
.share-twitter {
|
|
.d-icon {
|
|
color: var(--twitter);
|
|
}
|
|
}
|
|
.share-facebook {
|
|
.d-icon {
|
|
color: var(--facebook);
|
|
}
|
|
}
|
|
|
|
// topic invite modal
|
|
|
|
.create-invite-modal {
|
|
form {
|
|
margin: 0;
|
|
}
|
|
|
|
input {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
label {
|
|
margin-right: 0.5em;
|
|
.d-icon {
|
|
color: var(--primary-medium);
|
|
margin-right: 0.75em;
|
|
}
|
|
}
|
|
|
|
textarea {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.input-group:not(:last-of-type) {
|
|
margin-bottom: 1em;
|
|
}
|
|
.input-group.input-expires-at,
|
|
.input-group.input-email,
|
|
.input-group.invite-max-redemptions {
|
|
input[type="text"] {
|
|
width: unset;
|
|
}
|
|
}
|
|
|
|
.existing-topic,
|
|
p {
|
|
// p is for "no topics found"
|
|
margin-left: 1.75em;
|
|
margin-top: 0.25em;
|
|
}
|
|
|
|
.input-group.input-email {
|
|
display: flex;
|
|
align-items: baseline;
|
|
label {
|
|
display: inline;
|
|
}
|
|
}
|
|
|
|
.invite-email-container {
|
|
flex: 1 1 auto;
|
|
#invite-email {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.invite-max-redemptions {
|
|
label {
|
|
display: inline;
|
|
}
|
|
input {
|
|
width: 80px;
|
|
}
|
|
}
|
|
|
|
.invite-custom-message {
|
|
label {
|
|
margin-left: 1.75em;
|
|
}
|
|
}
|
|
|
|
.input-group {
|
|
textarea#invite-message,
|
|
&.invite-to-topic input[type="text"],
|
|
.group-chooser,
|
|
.topic-chooser,
|
|
.user-chooser,
|
|
.future-date-input-selector,
|
|
.future-date-input-date-picker,
|
|
.future-date-input-time-picker {
|
|
margin-left: 1.75em;
|
|
width: calc(100% - 1.75em);
|
|
}
|
|
|
|
.future-date-input-date-picker,
|
|
.future-date-input-time-picker {
|
|
display: inline-block;
|
|
margin: 0em 0em 0em 1.75em;
|
|
width: calc(50% - 2em);
|
|
|
|
input {
|
|
height: 34px;
|
|
}
|
|
}
|
|
}
|
|
}
|