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

165 lines
3.5 KiB
SCSS
Raw Normal View History

2017-10-16 18:29:40 +02:00
.icon {
display: inline-block;
2017-07-27 16:16:14 +02:00
width: 24px;
height: 24px;
background-size: 24px 24px;
vertical-align: bottom;
2019-03-13 11:35:40 +01:00
&.small {
width: 16px;
height: 16px;
background-size: 16px 16px;
}
&.follow {
background-image: image-url("icons/follow-folder.svg");
}
&.unfollow {
background-image: image-url("icons/unfollow-folder.svg");
}
&.standby {
background-image: image-url("icons/standby.svg");
}
&.archive {
background-image: image-url("icons/archive.svg");
}
&.unarchive {
background-image: image-url("icons/unarchive.svg");
}
2017-07-27 16:16:14 +02:00
&.accept {
background-image: image-url("icons/accept.svg");
}
2017-11-30 17:35:12 +01:00
&.refuse {
background-image: image-url("icons/refuse.svg");
}
&.without-continuation {
background-image: image-url("icons/without-continuation.svg");
}
&.edit {
background-image: image-url("icons/edit-folder-blue.svg");
}
&.bubble {
background-image: image-url("icons/bubble.svg");
}
&.attached {
background-image: image-url("icons/attached.svg");
}
2017-09-19 17:43:07 +02:00
&.preview {
background-image: image-url("icons/preview.svg");
}
&.retry {
background-image: image-url("icons/retry.svg");
}
&.download {
background-image: image-url("icons/download.svg");
}
&.download-white {
background-image: image-url("icons/download-white.svg");
}
2017-09-19 17:43:07 +02:00
&.lock {
background-image: image-url("icons/lock.svg");
}
&.add {
background-image: image-url("icons/add.svg");
margin-left: -5px;
margin-right: 0px;
}
&.justificatif {
background-image: image-url("icons/justificatif.svg");
}
&.printer {
background-image: image-url("icons/printer.svg");
}
2018-07-09 12:54:58 +02:00
&.account {
background-image: image-url("icons/account-circle.svg");
}
&.super-admin {
background-image: image-url("icons/super-admin.svg");
}
&.mail {
background-image: image-url("icons/mail.svg");
}
&.reply {
background-image: image-url("icons/reply.svg");
}
2018-07-09 12:54:58 +02:00
&.search {
background-image: image-url("icons/search-blue.svg");
}
&.sign-out {
background-image: image-url("icons/sign-out.svg");
}
2018-07-11 17:10:56 +02:00
&.info {
background-image: image-url("icons/info-blue.svg");
object-fit: contain;
}
2018-08-08 17:37:41 +02:00
&.help {
background-image: image-url("icons/help.svg");
}
&.phone {
background-image: image-url("icons/phone.svg");
}
&.clock {
background-image: image-url("icons/clock.svg");
}
2018-08-08 17:37:41 +02:00
&.smile {
background-image: image-url("icons/smile-regular.svg");
}
&.frown {
background-image: image-url("icons/frown-regular.svg");
}
&.meh {
background-image: image-url("icons/meh-regular.svg");
}
&.mandatory {
width: 10px;
}
}
// How to add a new remix icon and work with DSFR markup:
// 1. Find it on https://remixicon.com/
// 2. Take its DataURL (copy the url background-image value).
// 2b. No need to download the file !
// 3. Follow the first example :
// - create the class
// - add the mask-image property with data url you copied
.fr-icon {
&-file-copy-line {
&:before, &:after {
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z'%3E%3C/path%3E%3C/svg%3E");
}
}
}