0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/client/scss/components/_indicator.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
778 B
SCSS
Raw Normal View History

.privacy-indicator {
&.public {
.label-private {
display: none;
}
}
&.private {
.label-public {
display: none;
}
}
}
.indicator {
font-size: 1em;
margin-inline-end: 0;
opacity: theme('opacity.70');
.icon {
border: 1px solid transparent;
border-radius: 50%;
font-size: 1.25em;
padding: 2px;
vertical-align: middle; // reset vertical-align set by icon.initial
@media (forced-colors: active) {
background-color: ButtonText;
}
}
&.indicator--is-inverse {
.icon {
border-color: theme(
'colors.surface-page'
); // ensure border is available for high contrast mode
background-color: theme('colors.text-context');
color: theme('colors.surface-page');
}
}
}