2019-01-01 23:11:47 +00:00
|
|
|
// The wagtail font isn't available in WOFF2, so a @font-face is set here without a mixin.
|
|
|
|
@font-face {
|
|
|
|
font-family: 'wagtail';
|
|
|
|
src: url('#{$font-root}wagtail.woff') format('woff');
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
2016-02-15 09:31:07 +00:00
|
|
|
|
2018-04-11 08:35:03 +00: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 13:17:39 +00:00
|
|
|
.icon.teal {
|
|
|
|
color: $color-teal;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2015-09-25 13:17:39 +00:00
|
|
|
.icon.white {
|
2015-11-03 12:15:33 +00:00
|
|
|
color: #fff;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.icon:before,
|
|
|
|
.icon:after,
|
2015-09-25 16:14:46 +00:00
|
|
|
.hallotoolbar [class^='icon-'],
|
|
|
|
.hallotoolbar [class*=' icon-']:before,
|
|
|
|
.hallotoolbar [class^='icon-']:before {
|
2016-02-15 09:31:07 +00:00
|
|
|
@include icon(); // from _mixins.scss
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2014-01-24 17:34:26 +00:00
|
|
|
.icon:after,
|
2015-09-25 16:14:46 +00:00
|
|
|
.hallotoolbar [class^='icon-']:after,
|
|
|
|
.hallotoolbar [class^='icon-']:after {
|
2015-09-25 13:17:39 +00:00
|
|
|
text-align: right;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
|
2015-09-25 16:14:46 +00:00
|
|
|
.hallotoolbar [class^='icon-'],
|
|
|
|
.hallotoolbar [class*=' icon-']:before,
|
|
|
|
.hallotoolbar [class*=' icon-']:before,
|
|
|
|
.hallotoolbar [class^='icon-']:before {
|
2015-09-25 13:17:39 +00:00
|
|
|
vertical-align: -10%;
|
|
|
|
margin-right: 0;
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2016-02-15 09:31:07 +00:00
|
|
|
// =============================================================================
|
|
|
|
// Icon factory methods
|
|
|
|
// =============================================================================
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2016-02-15 09:31:07 +00:00
|
|
|
@each $icon, $content in $icons {
|
|
|
|
.icon-#{$icon}:before {
|
|
|
|
content: quote(#{$content});
|
2014-01-24 17:34:26 +00:00
|
|
|
}
|
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2016-02-15 09:31:07 +00:00
|
|
|
@each $icon, $content in $icons-after {
|
|
|
|
.icon-#{$icon}:after {
|
2016-03-15 17:07:10 +00:00
|
|
|
content: quote(#{$content});
|
2016-02-15 09:31:07 +00:00
|
|
|
}
|
2014-02-05 11:12:18 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
|
|
|
|
2016-02-15 09:31:07 +00:00
|
|
|
// =============================================================================
|
|
|
|
// Custom config for various icons
|
|
|
|
// =============================================================================
|
|
|
|
.icon-download {
|
|
|
|
// Credit: Icon made by Freepik from Flaticon.com
|
2014-03-07 15:41:17 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2014-09-16 15:50:36 +00:00
|
|
|
.icon-view:before,
|
2015-09-25 13:17:39 +00:00
|
|
|
.icon-no-view:before {
|
|
|
|
vertical-align: -3.5px;
|
2016-02-15 09:31:07 +00:00
|
|
|
font-size: 1.1rem;
|
2014-06-19 15:58:48 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2016-02-15 09:31:07 +00:00
|
|
|
.icon-spinner:after,
|
|
|
|
.icon-spinner:before {
|
|
|
|
width: 1em;
|
|
|
|
animation: spin 0.5s infinite linear;
|
|
|
|
display: inline-block;
|
2015-02-05 15:42:52 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2016-02-15 09:31:07 +00:00
|
|
|
.icon-horizontalrule:before {
|
|
|
|
font-family: Open Sans, Arial, sans-serif;
|
2015-02-05 15:42:52 +00:00
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2015-02-05 15:42:52 +00:00
|
|
|
|
2015-09-25 13:17:39 +00:00
|
|
|
.icon-larger:before {
|
|
|
|
font-size: 1.5em;
|
2015-02-13 10:38:40 +00:00
|
|
|
}
|
2014-06-19 15:58:48 +00:00
|
|
|
|
2020-06-15 10:06:29 +00:00
|
|
|
.icon.text-replace { // iconfont
|
2015-09-25 16:14:46 +00:00
|
|
|
font-size: 0;
|
2015-09-25 13:17:39 +00:00
|
|
|
line-height: 0;
|
|
|
|
overflow: hidden;
|
2014-04-02 15:48:26 +00:00
|
|
|
|
2015-09-25 13:17:39 +00: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 17:34:26 +00:00
|
|
|
}
|
2014-03-07 12:27:34 +00:00
|
|
|
}
|
|
|
|
|
2020-06-15 10:06:29 +00:00
|
|
|
.text-replace {
|
|
|
|
font-size: 0;
|
|
|
|
line-height: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
@include svg-icon(1rem, middle);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-03-07 12:27:34 +00:00
|
|
|
@keyframes spin {
|
2016-02-15 09:31:07 +00:00
|
|
|
0% {
|
2014-03-07 12:27:34 +00:00
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
2015-11-03 12:15:33 +00:00
|
|
|
|
2016-02-15 09:31:07 +00:00
|
|
|
100% {
|
2014-03-07 12:27:34 +00:00
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
2015-11-19 06:05:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.icon-spinner:after {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
2018-02-14 08:09:54 +00:00
|
|
|
|
|
|
|
// CSS-only circled question mark.
|
|
|
|
// <span class="icon-help-inverse" aria-hidden="true"></span>
|
|
|
|
.icon-help-inverse {
|
2018-02-14 08:16:01 +00:00
|
|
|
$size: 15px;
|
|
|
|
|
2018-02-14 08:09:54 +00:00
|
|
|
&:before {
|
2018-02-14 08:16:01 +00:00
|
|
|
display: inline-block;
|
|
|
|
width: $size;
|
|
|
|
height: $size;
|
|
|
|
line-height: $size;
|
2018-02-14 08:09:54 +00:00
|
|
|
font-size: 1.1em;
|
2018-02-14 08:16:01 +00:00
|
|
|
text-align: center;
|
|
|
|
border-radius: 100%;
|
|
|
|
color: $color-grey-2;
|
|
|
|
border: 1px solid currentColor;
|
2018-02-14 08:09:54 +00:00
|
|
|
}
|
|
|
|
}
|