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

123 lines
2.7 KiB
SCSS
Raw Normal View History

2022-09-01 16:29:39 +02:00
@import "colors";
// overwrite DSFR style for SimpleFormatComponent, some user use markdown with
// ordered list having paragraph between list item
ol.fr-ol-content--override {
list-style-type: decimal;
li::marker {
content: inherit;
}
}
// 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;
}
trix-editor.fr-input {
max-height: none;
}
// 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
2023-05-02 19:07:53 +02:00
// remove additional calendar icon on date input already handle by Firefox navigator
@-moz-document url-prefix() {
.fr-input[type="date"] {
background-image: none;
}
2023-04-28 15:28:04 +02:00
}
// 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
// dans le DSFR il est possible d'avoir un bouton seulement avec une icone mais j'ai du surcharger ici pour eviter d'avoir des marges de l'icone. Je n'ai pas bien compris pourquoi
2023-02-14 17:57:50 +01:00
.fr-btns-group--sm.fr-btns-group--icon-right .fr-btn[class*=" fr-icon-"].icon-only::after {
margin-left: 0;
margin-right: 0;
}
.fr-btn.fr-btn--secondary.danger {
color: $light-red;
box-shadow: 0px 0px 0px 1px $light-red;
}
2023-05-02 19:07:53 +02:00
.fr-table table.hack-to-display-dropdown {
padding-bottom: 300px;
margin-bottom: -300px;
}
2023-05-02 19:07:53 +02:00
// on utilise le dropdown de sélecteur de langue pour un autre usage donc on veut retirer l'icone
.fr-translate .fr-translate__btn.custom-fr-translate-no-icon::before {
display: none;
}
2023-07-13 10:38:15 +02:00
// on souhaite que le dropdown s'adapate correctement en largeur
.fr-translate .fr-menu__list.max-content {
width: max-content;
}
2023-07-18 17:26:07 +02:00
button.fr-tag-bug {
background-color: $blue-france-500;
color: #FFFFFF;
&:hover {
background-color: #1212FF;
color: #FFFFFF;
}
.tag-dismiss {
font-size: 1rem;
margin-left: 10px;
}
}
2023-05-02 19:07:53 +02:00
// on veut ferrer à droite le dropdown de sélecteur de langue
@media (min-width: 62em) {
.fr-nav__item.custom-fr-translate-flex-end {
align-items: flex-end;
}
}