TP_JO2024/home/dist/component/password/password.main.css

121 lines
3.9 KiB
CSS
Raw Normal View History

2024-03-27 17:19:37 +01:00
/*!
* DSFR v1.11.2 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
*/
@charset "UTF-8";
/* ¯¯¯¯¯¯¯¯¯ *\
Password
\* ˍˍˍˍˍˍˍˍˍ */
.fr-password {
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
--text-spacing: 0 0 0.5rem 0;
}
.fr-password [data-fr-capslock] .fr-password__input {
padding-right: 3rem;
}
.fr-password [data-fr-capslock]::before {
content: "";
display: block;
position: absolute;
top: 0.75rem;
right: 1rem;
width: 1rem;
height: 1rem;
pointer-events: none;
--data-uri-svg: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23161616' d='M22.668 0C23.4023 0 24 .5977 24 1.332v21.336c0 .7343-.5977 1.332-1.332 1.332H1.332C.5977 24 0 23.4023 0 22.668V1.332C0 .5977.5977 0 1.332 0Zm-1.336 2.668H2.668v18.664h18.664Zm-4.664 12.664V18H7.332v-2.668ZM12 5.332 16.668 10H14v3.332h-4V10H7.332Zm0 0'/></svg>");
background-image: var(--data-uri-svg);
}
.fr-password__checkbox {
order: -1;
flex: 0;
align-self: flex-end;
margin-left: auto;
padding-left: 0.5rem;
}
.fr-password__checkbox .fr-label {
text-wrap: nowrap;
}
.fr-password .fr-input-wrap {
flex: 1 0 100%;
}
.fr-password__input {
margin-bottom: 0.75rem;
}
.fr-password__input::-webkit-caps-lock-indicator {
content: none;
}
.fr-password__input::-ms-reveal {
display: none;
}
.fr-password > .fr-label {
order: -1;
flex: 1;
min-width: 50%;
}
.fr-password .fr-message:first-child {
--comma: " ";
}
.fr-password .fr-message--valid[data-fr-valid] {
--content: " - "attr(data-fr-valid) var(--comma);
}
.fr-password .fr-message--error[data-fr-error] {
--content: " - "attr(data-fr-error) var(--comma);
}
.fr-password__btn {
background-color: transparent;
--hover: inherit;
--active: inherit;
color: var(--text-action-high-blue-france);
}
.fr-password__btn:disabled,
a.fr-password__btn:not([href]) {
color: var(--text-disabled-grey);
background-color: transparent;
--hover: inherit;
--active: inherit;
}
:root[data-fr-theme=dark] .fr-password [data-fr-capslock]::before {
--data-uri-svg: url("data:image/svg+xml;charset=utf-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23fff' d='M22.668 0C23.4023 0 24 .5977 24 1.332v21.336c0 .7343-.5977 1.332-1.332 1.332H1.332C.5977 24 0 23.4023 0 22.668V1.332C0 .5977.5977 0 1.332 0Zm-1.336 2.668H2.668v18.664h18.664Zm-4.664 12.664V18H7.332v-2.668ZM12 5.332 16.668 10H14v3.332h-4V10H7.332Zm0 0'/></svg>");
}
.fr-password .fr-password__checkbox input[type=checkbox] + label {
color: var(--text-label-grey);
}
.fr-password .fr-password__checkbox input[type=checkbox] + label::before {
background-image: radial-gradient(at 5px 4px, transparent 4px, var(--border-action-high-blue-france) 4px, var(--border-action-high-blue-france) 5px, transparent 6px), linear-gradient(var(--border-action-high-blue-france), var(--border-action-high-blue-france)), radial-gradient(at calc(100% - 5px) 4px, transparent 4px, var(--border-action-high-blue-france) 4px, var(--border-action-high-blue-france) 5px, transparent 6px), linear-gradient(var(--border-action-high-blue-france), var(--border-action-high-blue-france)), radial-gradient(at calc(100% - 5px) calc(100% - 4px), transparent 4px, var(--border-action-high-blue-france) 4px, var(--border-action-high-blue-france) 5px, transparent 6px), linear-gradient(var(--border-action-high-blue-france), var(--border-action-high-blue-france)), radial-gradient(at 5px calc(100% - 4px), transparent 4px, var(--border-action-high-blue-france) 4px, var(--border-action-high-blue-france) 5px, transparent 6px), linear-gradient(var(--border-action-high-blue-france), var(--border-action-high-blue-france)), var(--data-uri-svg);
}
@media (min-width: 36em) {
/*! media sm */
}
@media (min-width: 48em) {
/*! media md */
}
@media (min-width: 62em) {
/*! media lg */
}
@media (min-width: 78em) {
/*! media xl */
}