Files
discourse/app/assets/stylesheets/common/base/login.scss
David Taylor d88ee33eb6 DEV: Introduce stylelint (#29852)
Stylelint is a css linter: https://stylelint.io/

As part of this change we have added two javascript scripts:

```
pnpm lint:css
pnpm lint:css:fix
```

Look at `.vscode/settings.json.sample` and `.vscode/extensions.json` for
configuration in VSCode.

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
2025-01-20 15:27:42 +00:00

142 lines
2.3 KiB
SCSS

body.invite-page {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Oxygen-Sans, Ubuntu, Cantarell, Arial, sans-serif;
#main-outlet-wrapper {
padding: 0;
}
}
.invites-show,
.admin-invite-page {
#modal-alert {
box-sizing: border-box;
display: inline-block;
// if you want to use flexbox here make sure child elements like <b> don't cause line breaks
padding: 1em 3.5em 1em 1em; // large right padding to make sure long text isn't under the close button
width: 100%;
max-width: 100%;
margin-bottom: 0;
min-height: 35px;
}
#modal-alert:empty {
min-height: 0;
padding: 0;
overflow: hidden;
display: inline;
}
}
#login-link,
#new-account-link {
cursor: pointer;
text-align: left;
// the second button can wrap in some locales, and this helps alignment
}
.password-reset-page {
.change-password-form {
margin: 0 auto;
display: flex;
flex-direction: column;
width: 400px;
input {
padding: 0.75em 0.77em;
min-width: 250px;
margin-bottom: 0.25em;
width: 100%;
}
.input {
position: relative;
margin-bottom: 1em;
}
.tip {
display: block;
}
}
}
.signup-fullpage .input-group input[type="password"] {
padding-right: 3em;
}
.toggle-password-mask {
position: absolute;
right: 0;
top: 0;
padding: 0.75em 0.77em; // alligns with input padding
.ios-device & {
// reset form-item-sizing mixin styles
padding: 0.7em;
font-size: var(--font-0);
}
}
.auth-message {
padding: 0 15px 15px 15px;
&:empty {
padding: 0;
}
}
#security-key {
display: flex;
flex-wrap: wrap;
align-items: center;
p {
margin: 0;
font-size: var(--font-0);
}
a {
display: inline-block;
padding: 1em 0.5em 1em 0;
color: var(--tertiary);
}
button {
margin-right: 1em;
}
}
.email-login {
border-radius: 10px;
background-color: var(--secondary);
padding: 20px;
margin: 0 auto;
.content-wrapper {
padding: 1em 2.5em 1em 2.5em;
.image-wrapper {
text-align: center;
padding-bottom: 1em;
img {
max-width: 200px;
}
}
.email-login-form {
text-align: center;
.btn-primary {
margin-top: 10px;
}
#security-key {
justify-content: center;
}
}
}
}