demarches-normaliennes/app/assets/stylesheets/dsfr.scss

55 lines
1.1 KiB
SCSS
Raw Normal View History

2022-09-01 16:29:39 +02:00
@import "colors";
// override default transparent background on inputs & font-size to 16px by default
2022-09-01 16:29:39 +02:00
input,
textarea,
select,
// FIXME when DSFR is DONE
.form-ds-fr-white .fr-input {
2022-09-01 16:29:39 +02:00
background: $white;
font-size: 1em;
}
2022-09-01 16:29:39 +02:00
// with Marianne font, weight of font is less bolder, so bold it up
.button.primary {
font-weight: bold;
}
// Fix firefox < 80, Safari < 15.4, Chrome < 83 not supporting "appearance: auto" on inputs
// This rule was set by DSFR for DSFR design, but broke our legacy forms.
// scss-lint:disable DuplicateProperty
input[type="checkbox"] {
-moz-appearance: checkbox;
-moz-appearance: auto;
-webkit-appearance: checkbox;
-webkit-appearance: auto;
}
input[type="radio"] {
-moz-appearance: radio;
-moz-appearance: auto;
-webkit-appearance: radio;
-webkit-appearance: auto;
}
// scss-lint:enable DuplicateProperty
// remove pointer cursor on textarea
textarea {
cursor: auto;
}
fieldset {
2022-10-06 17:01:29 +02:00
border: none;
padding-left: 0;
padding-bottom: 0;
}
.fr-btn.fr-btn--icon-left[target="_blank"] {
&::after {
display: none;
}
}
2022-12-02 17:16:29 +01:00