@codegouvfr/react-dsfr
Version:
French State Design System React integration library
171 lines (145 loc) • 3.98 kB
CSS
/*!
* DSFR v1.12.1 | SPDX-License-Identifier: MIT | License-Filename: LICENSE.md | restricted use (see terms and conditions)
*/
@media (min-width: 36em) {
/*! media sm */
}
@media (min-width: 48em) {
/*! media md */
}
@media (min-width: 62em) {
/*! media lg */
}
@media (min-width: 78em) {
/*! media xl */
}
@media screen and (min-width: 0\0) and (min-resolution: 72dpi) {
/**
* Correctif de la largeur du texte dans la tuile
*/
.fr-tile--download .fr-tile__body,
.fr-tile--horizontal .fr-tile__body {
flex-basis: 100%;
}
.fr-tile__body,
.fr-tile__body > * {
max-width: 100%;
}
.fr-tile__title {
margin: 0 0 0.5rem;
max-width: 100%;
color: #161616;
}
.fr-tile__title a::after,
.fr-tile__title button::after {
background-color: transparent;
background-size: 100%;
background-repeat: no-repeat;
background-image: url("../../icons/system/arrow-right-line.svg");
width: 1rem;
height: 1rem;
}
.fr-tile__title [target=_blank]::after {
background-color: transparent;
background-size: 100%;
background-repeat: no-repeat;
background-image: url("../../icons/system/external-link-line.svg");
width: 1rem;
height: 1rem;
}
.fr-tile__desc {
margin: 0;
max-width: 100%;
}
.fr-tile__start,
.fr-tile__detail {
max-width: 100%;
}
.fr-tile--download .fr-tile__title a::after,
.fr-tile--download .fr-tile__title button::after {
background-color: transparent;
background-size: 100%;
background-repeat: no-repeat;
background-image: url("../../icons/system/download-line.svg");
}
.fr-tile.fr-enlarge-link .fr-tile__title a {
text-decoration: none;
}
.fr-tile.fr-enlarge-link .fr-tile__title a::after {
width: 1.5rem;
height: 1.5rem;
background-color: transparent;
}
.fr-tile.fr-enlarge-button .fr-tile__title button::after {
width: 1.5rem;
height: 1.5rem;
background-color: transparent;
}
.fr-tile--sm .fr-tile__title a::after,
.fr-tile--sm .fr-tile__title button::after {
width: 1rem;
height: 1rem;
}
.fr-tile {
background-color: #fff;
}
.fr-tile:not(.fr-tile--no-border):not(.fr-tile--shadow) {
background-image: linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd), linear-gradient(0deg, #ddd, #ddd);
}
.fr-tile--grey {
background-color: #eee;
}
.fr-tile--shadow {
z-index: 500;
background-color: #fff;
box-shadow: 0 0 0 1px rgba(0, 0, 18, 0.16);
}
.fr-tile--shadow.fr-tile--grey {
background-color: #eee;
}
.fr-tile--no-background {
background-color: transparent;
}
.fr-tile--no-background:hover {
background-color: rgba(0, 0, 0, 0.05);
}
.fr-tile--no-background:active {
background-color: rgba(0, 0, 0, 0.1);
}
.fr-tile__title:disabled,
a.fr-tile__title:not([href]) {
color: #929292;
background-color: #e5e5e5;
}
.fr-tile__title::before {
background-image: linear-gradient(0deg, #3a3a3a, #3a3a3a);
}
.fr-tile__title a,
.fr-tile__title button {
color: #000091;
}
.fr-tile__title a::before,
.fr-tile__title button::before {
background-image: linear-gradient(0deg, #000091, #000091);
}
.fr-tile__title a:not([href]),
.fr-tile__title button:disabled {
color: #929292;
}
.fr-tile__title a:not([href])::before,
.fr-tile__title button:disabled::before {
background-image: linear-gradient(0deg, #e5e5e5, #e5e5e5);
}
}
@media screen and (min-width: 0\0) and (min-resolution: 72dpi) and (min-width: 48em) {
.fr-tile--download.fr-tile--vertical\@md .fr-tile__body,
.fr-tile--horizontal.fr-tile--vertical\@md .fr-tile__body {
flex-basis: auto;
}
}
@media screen and (min-width: 0\0) and (min-resolution: 72dpi) and (min-width: 62em) {
.fr-tile--download.fr-tile--vertical\@lg .fr-tile__body,
.fr-tile--horizontal.fr-tile--vertical\@lg .fr-tile__body {
flex-basis: auto;
}
}