2022-09-01 16:29:39 +02:00
@import " colors " ;
2022-09-20 17:33:12 +02:00
2023-07-27 05:37:27 +02:00
// overwrite DSFR style for SimpleFormatComponent, some user use markdown with
// ordered list having paragraph between list item
2023-07-27 14:29:13 +02:00
ol . fr-ol-content--override {
2023-07-27 05:37:27 +02:00
list-style-type : decimal ;
li : : marker {
content : inherit ;
}
}
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 ;
}
2022-09-07 19:00:56 +02:00
2022-12-22 12:47:17 +01:00
trix-editor . fr-input {
max-height : none ;
}
2024-02-23 14:05:12 +01:00
. fr-header {
. fr-notice {
// get back link underlined in notices, because they are usually hidden in headers
--underline-img : linear-gradient ( 0 deg , currentColor , currentColor ) ;
}
2023-10-30 11:20:04 +01:00
}
2024-02-23 14:05:12 +01:00
. fr-label + . fr-ds-combobox {
// same as .fr-label + .fr-input
margin-top : 0 .5 rem ;
}
2023-11-13 10:14:02 +01:00
. fr-ds-combobox {
. fr-menu {
width : 100 % ;
. fr-menu__list {
width : 100 % ;
2024-04-08 10:22:23 +02:00
max-height : 300 px ;
2023-11-13 10:01:50 +01:00
}
}
2023-12-13 16:14:37 +01:00
. fr-autocomplete {
background-image : url( "data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.031 16.6168L22.3137 20.8995L20.8995 22.3137L16.6168 18.031C15.0769 19.263 13.124 20 11 20C6.032 20 2 15.968 2 11C2 6.032 6.032 2 11 2C15.968 2 20 6.032 20 11C20 13.124 19.263 15.0769 18.031 16.6168ZM16.0247 15.8748C17.2475 14.6146 18 12.8956 18 11C18 7.1325 14.8675 4 11 4C7.1325 4 4 7.1325 4 11C4 14.8675 7.1325 18 11 18C12.8956 18 14.6146 17.2475 15.8748 16.0247L16.0247 15.8748Z'%3E%3C/path%3E%3C/svg%3E" ) ;
2023-12-12 09:49:38 +01:00
}
2023-11-13 10:01:50 +01:00
}
2023-11-13 10:14:02 +01:00
@media ( max-width : 62 em ) {
. fr-ds-combobox . fr-menu . fr-menu__list {
z-index : calc ( var ( -- ground ) + 1000 ) ;
background-color : var ( -- background-default-grey ) ;
--idle : transparent ;
--hover : var ( -- background-overlap-grey-hover ) ;
--active : var ( -- background-overlap-grey-active ) ;
filter : drop-shadow ( var ( -- overlap-shadow )) ;
box-shadow : inset 0 1 px 0 0 var ( -- border-open-blue-france ) ;
}
}
2022-11-14 10:10:29 +01:00
// 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.
2022-09-07 19:00:56 +02:00
// scss-lint:disable DuplicateProperty
input [ type = " checkbox " ] {
-moz-appearance : checkbox ;
-moz-appearance : auto ;
2022-11-14 10:10:29 +01:00
-webkit-appearance : checkbox ;
-webkit-appearance : auto ;
2022-09-07 19:00:56 +02:00
}
input [ type = " radio " ] {
-moz-appearance : radio ;
-moz-appearance : auto ;
2022-11-14 10:10:29 +01:00
-webkit-appearance : radio ;
-webkit-appearance : auto ;
2022-09-07 19:00:56 +02:00
}
// scss-lint:enable DuplicateProperty
2022-09-09 12:07:10 +02:00
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
}
2022-11-30 09:56:32 +01:00
. fr-btn . fr-btn--icon-left [ target = " _blank " ] {
& : : after {
display : none ;
}
}
2022-12-02 17:16:29 +01:00
2023-02-27 17:49:48 +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 ;
}
2023-02-23 10:56:33 +01:00
. fr-btn . fr-btn--secondary . danger {
color : $light-red ;
box-shadow : 0 px 0 px 0 px 1 px $light-red ;
}
2023-05-02 19:07:53 +02:00
2023-05-10 17:14:59 +02:00
. fr-table table . hack-to-display-dropdown {
padding-bottom : 300 px ;
margin-bottom : - 300 px ;
}
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 : 1 rem ;
margin-left : 10 px ;
}
}
2024-01-04 16:20:27 +01:00
// on veut ajouter un gris plus clair dans le side_menu
. fr-sidemenu__item . fr-sidemenu__link . custom-link-grey {
color : var ( -- text - disabled-grey ) ;
}
2023-05-02 19:07:53 +02:00
// on veut ferrer à droite le dropdown de sélecteur de langue
@media ( min-width : 62 em ) {
. fr-nav__item . custom-fr-translate-flex-end {
align-items : flex-end ;
}
}
2023-11-27 15:47:43 +01:00
// improve readability in Windows High Contrast Mode
@media screen and ( forced-colors : active ) {
. fr-input ,
. fr-select ,
. fr-btn {
border : 2 px solid var ( -- border-action-high-grey ) ;
}
. fr-radio-group input [ type = " radio " ] {
opacity : 1 ;
}
. fr-tabs__tab [ aria-selected = true ] : not ( : disabled ) {
border : 5 px solid var ( -- border-action-high-grey ) ;
}
. fr-tabs__tab {
border : 2 px solid var ( -- border-action-high-grey ) ;
}
}