2021-12-23 03:42:22 +01:00
|
|
|
@use 'sass:string';
|
2021-12-23 05:21:23 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
@font-face {
|
|
|
|
font-family: 'wagtail';
|
2021-12-23 05:21:23 +01:00
|
|
|
src: url('../fonts/wagtail.woff') format('woff');
|
2019-01-02 00:11:47 +01:00
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
2016-02-15 10:31:07 +01:00
|
|
|
|
2018-04-11 10:35:03 +02:00
|
|
|
// Set SVG icons to use the current text color in the location they appear as
|
|
|
|
// their default fill color. Can be overridden for a specific icon by either
|
|
|
|
// the color or fill properties.
|
|
|
|
.icon {
|
|
|
|
fill: currentColor;
|
|
|
|
}
|
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.icon.teal {
|
|
|
|
color: $color-teal;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.icon.white {
|
2015-11-03 13:15:33 +01:00
|
|
|
color: #fff;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon:before,
|
|
|
|
.icon:after,
|
2015-09-25 18:14:46 +02:00
|
|
|
.hallotoolbar [class^='icon-'],
|
|
|
|
.hallotoolbar [class*=' icon-']:before,
|
|
|
|
.hallotoolbar [class^='icon-']:before {
|
2016-02-15 10:31:07 +01:00
|
|
|
@include icon(); // from _mixins.scss
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2021-12-23 03:42:22 +01:00
|
|
|
// stylelint-disable-next-line no-duplicate-selectors
|
2014-01-24 18:34:26 +01:00
|
|
|
.icon:after,
|
2015-09-25 18:14:46 +02:00
|
|
|
.hallotoolbar [class^='icon-']:after,
|
|
|
|
.hallotoolbar [class^='icon-']:after {
|
2015-09-25 15:17:39 +02:00
|
|
|
text-align: right;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
|
2021-12-23 03:42:22 +01:00
|
|
|
// stylelint-disable-next-line no-duplicate-selectors
|
2015-09-25 18:14:46 +02:00
|
|
|
.hallotoolbar [class^='icon-'],
|
|
|
|
.hallotoolbar [class*=' icon-']:before,
|
|
|
|
.hallotoolbar [class*=' icon-']:before,
|
|
|
|
.hallotoolbar [class^='icon-']:before {
|
2015-09-25 15:17:39 +02:00
|
|
|
vertical-align: -10%;
|
|
|
|
margin-right: 0;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
|
2016-02-15 10:31:07 +01:00
|
|
|
// =============================================================================
|
|
|
|
// Icon factory methods
|
|
|
|
// =============================================================================
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2016-02-15 10:31:07 +01:00
|
|
|
@each $icon, $content in $icons {
|
|
|
|
.icon-#{$icon}:before {
|
2021-12-23 03:42:22 +01:00
|
|
|
content: string.quote(#{$content});
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2016-02-15 10:31:07 +01:00
|
|
|
@each $icon, $content in $icons-after {
|
|
|
|
.icon-#{$icon}:after {
|
2021-12-23 03:42:22 +01:00
|
|
|
content: string.quote(#{$content});
|
2016-02-15 10:31:07 +01:00
|
|
|
}
|
2014-02-05 12:12:18 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2016-02-15 10:31:07 +01:00
|
|
|
// =============================================================================
|
|
|
|
// Custom config for various icons
|
|
|
|
// =============================================================================
|
|
|
|
.icon-download {
|
|
|
|
// Credit: Icon made by Freepik from Flaticon.com
|
2014-03-07 16:41:17 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2014-09-16 17:50:36 +02:00
|
|
|
.icon-view:before,
|
2020-06-15 13:31:05 +02:00
|
|
|
.icon-no-view:before {
|
|
|
|
// icon-font
|
2015-09-25 15:17:39 +02:00
|
|
|
vertical-align: -3.5px;
|
2016-02-15 10:31:07 +01:00
|
|
|
font-size: 1.1rem;
|
2014-06-19 17:58:48 +02:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2016-02-15 10:31:07 +01:00
|
|
|
.icon-spinner:after,
|
2020-06-15 13:31:05 +02:00
|
|
|
.icon-spinner:before {
|
|
|
|
// iconfont
|
2016-02-15 10:31:07 +01:00
|
|
|
width: 1em;
|
2021-06-29 21:30:42 +02:00
|
|
|
animation: spin-wag 0.5s infinite linear;
|
2016-02-15 10:31:07 +01:00
|
|
|
display: inline-block;
|
2015-02-05 16:42:52 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2020-06-15 13:31:05 +02:00
|
|
|
svg.icon-spinner {
|
|
|
|
// TODO: leave only class when iconfont styles are removed
|
2021-06-29 21:30:42 +02:00
|
|
|
animation: spin-wag 0.5s infinite linear;
|
2020-06-15 13:31:05 +02:00
|
|
|
}
|
|
|
|
|
2016-02-15 10:31:07 +01:00
|
|
|
.icon-horizontalrule:before {
|
2021-12-23 05:21:23 +01:00
|
|
|
font-family: $font-sans;
|
2015-02-05 16:42:52 +01:00
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
.icon-larger:before {
|
|
|
|
font-size: 1.5em;
|
2015-02-13 11:38:40 +01:00
|
|
|
}
|
2014-06-19 17:58:48 +02:00
|
|
|
|
2020-06-15 12:06:29 +02:00
|
|
|
.icon.text-replace {
|
|
|
|
// iconfont
|
2015-09-25 18:14:46 +02:00
|
|
|
font-size: 0;
|
2015-09-25 15:17:39 +02:00
|
|
|
line-height: 0;
|
|
|
|
overflow: hidden;
|
2014-04-02 17:48:26 +02:00
|
|
|
|
2015-09-25 15:17:39 +02:00
|
|
|
&:before {
|
|
|
|
margin-right: 0;
|
|
|
|
font-size: 1rem;
|
|
|
|
display: inline-block;
|
|
|
|
width: 100%;
|
|
|
|
line-height: 1.2em;
|
|
|
|
text-align: center;
|
|
|
|
vertical-align: middle;
|
2014-01-24 18:34:26 +01:00
|
|
|
}
|
2014-03-07 13:27:34 +01:00
|
|
|
}
|
|
|
|
|
2020-06-15 12:06:29 +02:00
|
|
|
.text-replace {
|
|
|
|
font-size: 0;
|
|
|
|
line-height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
@include svg-icon(1rem, middle);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-29 21:30:42 +02:00
|
|
|
@keyframes spin-wag {
|
2016-02-15 10:31:07 +01:00
|
|
|
0% {
|
2014-03-07 13:27:34 +01:00
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
2015-11-03 13:15:33 +01:00
|
|
|
|
2016-02-15 10:31:07 +01:00
|
|
|
100% {
|
2014-03-07 13:27:34 +01:00
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
2015-11-19 07:05:57 +01:00
|
|
|
|
|
|
|
.icon-spinner:after {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2018-02-14 09:09:54 +01:00
|
|
|
|
|
|
|
// CSS-only circled question mark.
|
|
|
|
// <span class="icon-help-inverse" aria-hidden="true"></span>
|
|
|
|
.icon-help-inverse {
|
2018-02-14 09:16:01 +01:00
|
|
|
$size: 15px;
|
|
|
|
|
2018-02-14 09:09:54 +01:00
|
|
|
&:before {
|
2018-02-14 09:16:01 +01:00
|
|
|
display: inline-block;
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
|
|
|
line-height: $size;
|
2018-02-14 09:09:54 +01:00
|
|
|
font-size: 1.1em;
|
2018-02-14 09:16:01 +01:00
|
|
|
text-align: center;
|
|
|
|
border-radius: 100%;
|
|
|
|
color: $color-grey-2;
|
|
|
|
border: 1px solid currentColor;
|
2018-02-14 09:09:54 +01:00
|
|
|
}
|
|
|
|
}
|
2020-06-09 12:28:18 +02:00
|
|
|
|
2021-12-23 03:42:22 +01:00
|
|
|
// stylelint-disable-next-line no-duplicate-selectors
|
2020-06-09 12:28:18 +02:00
|
|
|
.icon {
|
|
|
|
&.initial {
|
|
|
|
@include svg-icon(1em);
|
|
|
|
vertical-align: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.default {
|
|
|
|
@include svg-icon(1.5em);
|
|
|
|
}
|
2020-06-15 17:13:08 +02:00
|
|
|
|
|
|
|
&--flipped {
|
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
2020-06-09 12:28:18 +02:00
|
|
|
}
|
2020-06-15 17:13:08 +02:00
|
|
|
|
2020-07-22 16:46:55 +02:00
|
|
|
.icon.locale-error {
|
|
|
|
vertical-align: text-top;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
width: 1.5em;
|
|
|
|
height: 1.5em;
|
|
|
|
color: $color-red;
|
|
|
|
}
|
2021-08-18 15:25:45 +02:00
|
|
|
|
|
|
|
// Media for Windows High Contrast mode
|
|
|
|
|
|
|
|
@media (forced-colors: $media-forced-colours) {
|
|
|
|
.icon {
|
|
|
|
fill: $system-color-link-text;
|
|
|
|
}
|
|
|
|
}
|