dsfr: use new alert icons (#61348)

This commit is contained in:
Frédéric Péters 2022-02-28 16:18:26 +01:00
parent 096db4db49
commit acab2fa8ce
5 changed files with 34 additions and 0 deletions

View File

@ -506,3 +506,33 @@ div.textcell.pk-transparent {
div.fileinfo a.remove::before {
color: $blue-france-500;
}
.successnotice,
.errornotice,
.warningnotice,
.infonotice,
#messages li.error,
#messages li.warning,
#messages li.info,
#messages li.success {
&::before {
content: "";
background: none 0px 50% no-repeat;
}
}
.errornotice, #messages li.error {
&::before { background-image: url(error-fill.svg); }
}
.infonotice, #messages li.info {
&::before { background-image: url(info-fill.svg); }
}
.warningnotice, #messages li.warning {
&::before { background-image: url(warning-fill.svg); }
}
.successnotice, #messages li.success {
&::before { background-image: url(success-fill.svg); }
}

View File

@ -0,0 +1 @@
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M17.5,2.5h-11L1,12l5.5,9.5h11L23,12L17.5,2.5z M16.2,14.8l-1.4,1.4L12,13.4l-2.8,2.8l-1.4-1.4l2.8-2.8L7.8,9.2l1.4-1.4l2.8,2.8l2.8-2.8l1.4,1.4L13.4,12L16.2,14.8z"/></svg>

After

Width:  |  Height:  |  Size: 252 B

View File

@ -0,0 +1 @@
<svg width="24px" height="24px" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M19.5,2.5h-15c-1.1,0-2,0.9-2,2v15c0,1.1,0.9,2,2,2h15c1.1,0,2-0.9,2-2v-15C21.5,3.4,20.6,2.5,19.5,2.5z M13,17h-2v-6h2V17z M13,9h-2V7h2V9z"/></svg>

After

Width:  |  Height:  |  Size: 233 B

View File

@ -0,0 +1 @@
<svg width="24px" height="24px" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-.997-6l7.07-7.071-1.414-1.414-5.656 5.657-2.829-2.829-1.414 1.414L11.003 16z"/></svg>

After

Width:  |  Height:  |  Size: 249 B

View File

@ -0,0 +1 @@
<svg width="24px" height="24px" xmlns="http://www.w3.org/2000/svg"><path d="M12.866,2.99999996 L22.392,19.5 C22.5706306,19.8093972 22.570633,20.1905896 22.3920064,20.499989 C22.2133798,20.8093885 21.8832611,21 21.526,21 L2.47399996,21 C2.11673891,21 1.7866202,20.8093885 1.60799361,20.499989 C1.42936701,20.1905896 1.42936943,19.8093972 1.60799996,19.5 L11.134,2.99999996 C11.3126394,2.69062368 11.6427526,2.50004396 12,2.50004396 C12.3572474,2.50004396 12.6873606,2.69062368 12.866,2.99999996 Z M11,16 L11,18 L13,18 L13,16 L11,16 Z M11,8.99999999 L11,14 L13,14 L13,8.99999999 L11,8.99999999 Z" fill="#fff"></path></svg>

After

Width:  |  Height:  |  Size: 621 B