mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Merge pull request #30198 from overleaf/td-ciam-misc-fixes
Miscellaneous CIAM fixes GitOrigin-RevId: b7f38888b602fc7b4dc4fbc63e38f82527ab666e
This commit is contained in:
@@ -76,6 +76,8 @@ export default function inputValidator(
|
|||||||
if (!canDisplayErrorMessages) return
|
if (!canDisplayErrorMessages) return
|
||||||
if (!inputEl.hasAttribute('data-ol-dirty')) return
|
if (!inputEl.hasAttribute('data-ol-dirty')) return
|
||||||
|
|
||||||
|
inputEl.classList.toggle('is-invalid', !inputEl.validity.valid)
|
||||||
|
|
||||||
if (inputEl.validity.valid) {
|
if (inputEl.validity.valid) {
|
||||||
messageEl.hidden = true
|
messageEl.hidden = true
|
||||||
|
|
||||||
|
|||||||
@@ -128,7 +128,7 @@
|
|||||||
.ciam-card-separator {
|
.ciam-card-separator {
|
||||||
margin: var(--ds-spacing-500) 0;
|
margin: var(--ds-spacing-500) 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
border-top: solid 1px var(--ds-grey-20);
|
border-top: solid 1px var(--ds-color-neutral-200);
|
||||||
}
|
}
|
||||||
|
|
||||||
.ciam-card-footer {
|
.ciam-card-footer {
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// TODO: Replace `fuchsia` by the correct colors.
|
|
||||||
|
|
||||||
.ciam-enabled,
|
.ciam-enabled,
|
||||||
.website-redesign:not(.application-page) .ciam-enabled .notification {
|
.website-redesign:not(.application-page) .ciam-enabled .notification {
|
||||||
// Links, used in services/web/frontend/stylesheets/base/links.scss
|
// Links, used in services/web/frontend/stylesheets/base/links.scss
|
||||||
@@ -10,19 +8,21 @@
|
|||||||
--link-hover-text-decoration: underline;
|
--link-hover-text-decoration: underline;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
text-decoration-thickness: 5%;
|
text-decoration-thickness: var(--ds-link-text-decoration-thickness);
|
||||||
text-underline-offset: 19.5%;
|
text-underline-offset: 19.5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:hover,
|
a:hover,
|
||||||
a:focus {
|
a:focus-visible {
|
||||||
text-decoration-thickness: 10%;
|
text-decoration-thickness: 0.17em;
|
||||||
}
|
}
|
||||||
|
|
||||||
a:focus-visible {
|
a:focus-visible {
|
||||||
box-shadow: none;
|
box-shadow: 0 0 0 2px var(--ds-color-yellow-500);
|
||||||
outline: none;
|
outline: none;
|
||||||
|
color: var(--ds-color-text-primary);
|
||||||
background-color: var(--ds-color-yellow-500);
|
background-color: var(--ds-color-yellow-500);
|
||||||
|
border-radius: 1px;
|
||||||
|
|
||||||
&.ciam-image-link {
|
&.ciam-image-link {
|
||||||
@include ds-focus-outline;
|
@include ds-focus-outline;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import 'ds-design-system';
|
|
||||||
|
|
||||||
.ciam-login-text {
|
.ciam-login-text {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: var(--ds-spacing-200) 0;
|
padding: var(--ds-spacing-200) 0;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import 'ds-design-system';
|
|
||||||
|
|
||||||
.btn.btn-ds.ciam-onboarding-back-button {
|
.btn.btn-ds.ciam-onboarding-back-button {
|
||||||
--bs-btn-padding-x: 0;
|
--bs-btn-padding-x: 0;
|
||||||
--bs-btn-hover-bg: transparent;
|
--bs-btn-hover-bg: transparent;
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import 'ds-design-system';
|
|
||||||
|
|
||||||
.ciam-register-columns {
|
.ciam-register-columns {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
@@ -12,13 +10,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ciam-register-container {
|
.ciam-register-container {
|
||||||
display: flex;
|
@include ciam-vertically-spaced;
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
footer .footer-links {
|
@include media-breakpoint-up(sm) {
|
||||||
@include media-breakpoint-up(sm) {
|
gap: var(--ds-spacing-800);
|
||||||
justify-content: start;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
@import 'ds-design-system';
|
|
||||||
|
|
||||||
.ciam-try-premium-logo-container {
|
.ciam-try-premium-logo-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
:root {
|
|
||||||
--ds-grey-20: #e7e9ee;
|
|
||||||
}
|
|
||||||
@@ -76,7 +76,10 @@ input.form-control.form-control-ds {
|
|||||||
|
|
||||||
&.is-invalid,
|
&.is-invalid,
|
||||||
.was-validated &:invalid {
|
.was-validated &:invalid {
|
||||||
border-color: var(--ds-color-red-500);
|
&,
|
||||||
|
&:hover {
|
||||||
|
border-color: var(--ds-color-red-500);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,10 +204,8 @@ input.check-input-ds {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
border-style: solid;
|
border: solid 1px var(--ds-color-neutral-800);
|
||||||
border-width: 1px;
|
|
||||||
|
|
||||||
&,
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: var(--ds-color-neutral-900);
|
border-color: var(--ds-color-neutral-900);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,8 +21,15 @@
|
|||||||
border-radius: var(--ds-border-radius-200);
|
border-radius: var(--ds-border-radius-200);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:has(input:checked),
|
|
||||||
&:hover {
|
&:hover {
|
||||||
|
border-color: var(--ds-color-neutral-400);
|
||||||
|
|
||||||
|
input:not(:checked) {
|
||||||
|
background-color: var(--ds-color-neutral-50);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&:has(input:checked) {
|
||||||
border-color: var(--ds-color-neutral-950);
|
border-color: var(--ds-color-neutral-950);
|
||||||
background-color: var(--ds-color-neutral-50);
|
background-color: var(--ds-color-neutral-50);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
// Typography mixins for consistent text styles
|
// Typography mixins for consistent text styles
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--ds-link-text-decoration-thickness: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin ds-body-sm-links() {
|
||||||
|
--ds-link-text-decoration-thickness: 0.06em;
|
||||||
|
}
|
||||||
|
|
||||||
@mixin ds-body-xs-regular() {
|
@mixin ds-body-xs-regular() {
|
||||||
font-size: var(--ds-font-size-300);
|
font-size: var(--ds-font-size-300);
|
||||||
font-weight: var(--ds-font-weight-regular);
|
font-weight: var(--ds-font-weight-regular);
|
||||||
@@ -13,12 +21,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin ds-body-sm-regular() {
|
@mixin ds-body-sm-regular() {
|
||||||
|
@include ds-body-sm-links;
|
||||||
|
|
||||||
font-size: var(--ds-font-size-350);
|
font-size: var(--ds-font-size-350);
|
||||||
font-weight: var(--ds-font-weight-regular);
|
font-weight: var(--ds-font-weight-regular);
|
||||||
line-height: var(--ds-font-line-height-500);
|
line-height: var(--ds-font-line-height-500);
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin ds-body-sm-semibold() {
|
@mixin ds-body-sm-semibold() {
|
||||||
|
@include ds-body-sm-links;
|
||||||
|
|
||||||
font-size: var(--ds-font-size-350);
|
font-size: var(--ds-font-size-350);
|
||||||
font-weight: var(--ds-font-weight-semibold);
|
font-weight: var(--ds-font-weight-semibold);
|
||||||
line-height: var(--ds-font-line-height-500);
|
line-height: var(--ds-font-line-height-500);
|
||||||
|
|||||||
Reference in New Issue
Block a user