2021-12-23 03:42:22 +01:00
|
|
|
@use 'sass:map';
|
|
|
|
@use 'sass:math';
|
|
|
|
// stylelint-disable scss/comment-no-empty
|
2019-01-02 00:11:47 +01:00
|
|
|
// These are the generic stylings for forms of any type.
|
|
|
|
// If you're styling something specific to the page editing interface,
|
|
|
|
// it probably ought to go in layouts/page-editor.scss
|
|
|
|
|
|
|
|
// TODO: mixin,
|
|
|
|
// These these styles are currently in elements
|
|
|
|
// but the ones for the class should be here
|
|
|
|
//
|
|
|
|
// label,
|
|
|
|
// .label {
|
|
|
|
// font-weight: bold;
|
|
|
|
// color: $color-grey-1;
|
|
|
|
// font-size: 1.1em;
|
|
|
|
// display: block;
|
|
|
|
// padding: 0 0 0.8em;
|
|
|
|
// margin: 0;
|
|
|
|
// line-height: 1.3em;
|
|
|
|
//
|
|
|
|
// .checkbox &,
|
|
|
|
// .radio & {
|
|
|
|
// display: inline;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
.plain-checkbox-label {
|
|
|
|
// cancel heavy / floated label styles, for labels that should appear inline against checkboxes
|
|
|
|
|
|
|
|
float: none;
|
|
|
|
color: inherit;
|
|
|
|
font-weight: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
// TODO: mixin,
|
|
|
|
// These these styles are currently in elements
|
|
|
|
// but the ones for the classes should be here
|
|
|
|
//
|
|
|
|
// input,
|
|
|
|
// textarea,
|
|
|
|
// select,
|
|
|
|
// .tagit {
|
|
|
|
// appearance: none;
|
|
|
|
// box-sizing: border-box;
|
|
|
|
// border-radius: 6px;
|
|
|
|
// width: 100%;
|
2021-12-23 05:21:23 +01:00
|
|
|
// font-family: $font-sans;
|
2019-01-02 00:11:47 +01:00
|
|
|
// border: 1px solid $color-input-border;
|
|
|
|
// padding: 0.9em 1.2em;
|
|
|
|
// background-color: $color-fieldset-hover;
|
|
|
|
// color: $color-text-input;
|
|
|
|
// font-size: 1.2em;
|
|
|
|
// font-weight: 300;
|
|
|
|
//
|
|
|
|
// &:hover {
|
|
|
|
// background-color: $color-white;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// &:focus {
|
|
|
|
// background-color: $color-input-focus;
|
|
|
|
// border-color: $color-input-focus-border;
|
|
|
|
// }
|
|
|
|
//
|
|
|
|
// &:disabled,
|
|
|
|
// &[disabled],
|
|
|
|
// &:disabled:hover,
|
|
|
|
// &[disabled]:hover {
|
|
|
|
// background-color: inherit;
|
|
|
|
// cursor: default;
|
|
|
|
// color: $color-grey-4;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
// select boxes
|
2021-01-11 21:19:38 +01:00
|
|
|
.collection_choice_field .input,
|
2019-01-02 00:11:47 +01:00
|
|
|
.choice_field .input,
|
|
|
|
.model_choice_field .input,
|
|
|
|
.typed_choice_field .input {
|
|
|
|
position: relative;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
// Add select arrow back on browsers where native ui has been removed
|
|
|
|
select ~ span:after {
|
|
|
|
border-radius: 0 6px 6px 0;
|
|
|
|
z-index: 0;
|
|
|
|
position: absolute;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
top: 1px;
|
|
|
|
bottom: 0;
|
|
|
|
width: 1.5em;
|
2021-12-23 03:42:22 +01:00
|
|
|
font-family: $font-wagtail-icons;
|
2022-03-07 18:06:19 +01:00
|
|
|
content: map.get($icons, 'arrow-down'); // UI-Redesign: to be removed
|
2019-01-02 00:11:47 +01:00
|
|
|
border: 1px solid $color-input-border;
|
|
|
|
border-width: 0 0 0 1px;
|
|
|
|
text-align: center;
|
|
|
|
line-height: 1.4em;
|
|
|
|
font-size: 3em;
|
|
|
|
pointer-events: none;
|
|
|
|
color: $color-grey-3;
|
|
|
|
margin: 0 1px 1px 0;
|
|
|
|
|
|
|
|
.ie & {
|
|
|
|
display: none;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2021-04-16 22:02:36 +02:00
|
|
|
// Override default select padding so the chevron will overlap with long option text
|
|
|
|
select {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-end: 5em;
|
2021-04-16 22:02:36 +02:00
|
|
|
}
|
2020-07-21 21:13:25 +02:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
// Other text
|
|
|
|
.help,
|
|
|
|
.error-message {
|
2021-10-28 03:31:29 +02:00
|
|
|
border: 1px solid transparent; // ensure visible separation in Windows High Contrast mode
|
2019-01-02 00:11:47 +01:00
|
|
|
font-size: 0.85em;
|
|
|
|
font-weight: normal;
|
|
|
|
margin: 0.5em 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.error-message {
|
2022-01-13 07:46:35 +01:00
|
|
|
font-size: 1em;
|
|
|
|
font-weight: bold;
|
|
|
|
color: $color-text-error;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2022-01-13 07:46:35 +01:00
|
|
|
@media (forced-colors: $media-forced-colours) {
|
|
|
|
forced-color-adjust: none;
|
|
|
|
color: $color-text-error-forced-color;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2022-03-07 18:06:19 +01:00
|
|
|
// UI-Redesign: to be added via js and styled here
|
2022-01-13 07:46:35 +01:00
|
|
|
&::before {
|
2021-12-23 03:42:22 +01:00
|
|
|
font-family: $font-wagtail-icons;
|
2022-01-13 07:46:35 +01:00
|
|
|
vertical-align: -10%;
|
2021-12-23 03:42:22 +01:00
|
|
|
content: map.get($icons, 'cross');
|
2022-01-13 07:46:35 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.help {
|
|
|
|
color: $color-grey-2;
|
|
|
|
}
|
|
|
|
|
|
|
|
fieldset:hover > .help,
|
|
|
|
.field.focused + .help,
|
|
|
|
.field:focus + .help,
|
|
|
|
.field:hover + .help,
|
|
|
|
li.focused > .help {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2021-01-27 12:36:56 +01:00
|
|
|
.required .field > label:after,
|
|
|
|
label.required:after {
|
2019-01-02 00:11:47 +01:00
|
|
|
content: '*';
|
|
|
|
color: $color-red;
|
|
|
|
font-weight: bold;
|
|
|
|
display: inline-block;
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-start: 0.5em;
|
2019-01-02 00:11:47 +01:00
|
|
|
line-height: 1em;
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.error input,
|
|
|
|
.error textarea,
|
|
|
|
.error select,
|
|
|
|
.error .tagit {
|
|
|
|
border-color: $color-red;
|
|
|
|
background-color: $color-input-error-bg;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Layouts for particular kinds of of fields
|
|
|
|
|
|
|
|
// permanently show checkbox/radio help as they have no focus state
|
|
|
|
.boolean_field .help,
|
|
|
|
.radio .help {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
// This is expected to go on the parent of the input/select/textarea
|
|
|
|
// so in most cases .input
|
|
|
|
.iconfield, // generic
|
|
|
|
.date_field,
|
|
|
|
.time_field,
|
|
|
|
.date_time_field,
|
|
|
|
.url_field {
|
|
|
|
.input {
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
&:before,
|
|
|
|
&:after {
|
2021-12-23 03:42:22 +01:00
|
|
|
font-family: $font-wagtail-icons;
|
2022-04-29 13:59:52 +02:00
|
|
|
display: flex;
|
|
|
|
flex-flow: row nowrap;
|
|
|
|
align-items: center;
|
2021-04-26 12:53:04 +02:00
|
|
|
position: absolute;
|
2022-04-29 13:59:52 +02:00
|
|
|
top: 0;
|
|
|
|
height: 100%;
|
2019-01-02 00:11:47 +01:00
|
|
|
line-height: 100%;
|
|
|
|
font-size: 2em;
|
2022-04-29 13:59:52 +02:00
|
|
|
color: theme('colors.grey.200');
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 0.3em;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 0.5em;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
input:not([type='radio']),
|
|
|
|
input:not([type='checkbox']),
|
|
|
|
input:not([type='submit']),
|
|
|
|
input:not([type='button']) {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 2.5em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
// smaller fields required slight repositioning of icons
|
|
|
|
&.field-small {
|
2022-02-04 12:57:55 +01:00
|
|
|
.input {
|
2019-01-02 00:11:47 +01:00
|
|
|
&:before,
|
|
|
|
&:after {
|
|
|
|
font-size: 1.3rem; // REMs are necessary here because IE doesn't treat generated content correctly
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&:before {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-start: 0.5em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&:after {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 0.5em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
// special case for search spinners
|
|
|
|
&.icon-spinner:after {
|
|
|
|
color: $color-teal;
|
|
|
|
opacity: 0.8;
|
|
|
|
text-align: center;
|
|
|
|
top: 0.3em;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.date_field,
|
|
|
|
.date_time_field {
|
|
|
|
.input:before {
|
2022-03-07 18:06:19 +01:00
|
|
|
content: map.get($icons, 'date'); // UI-Redesign: To be removed
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.time_field {
|
|
|
|
.input:before {
|
2022-03-07 18:06:19 +01:00
|
|
|
content: map.get($icons, 'time'); // UI-Redesign: To be removed
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.url_field {
|
|
|
|
.input:before {
|
2022-03-07 18:06:19 +01:00
|
|
|
content: map.get($icons, 'link'); // UI-Redesign: To be removed
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-27 11:20:20 +02:00
|
|
|
.daterange_field {
|
|
|
|
input:last-of-type {
|
|
|
|
margin-top: 1.2em; // Mirrors the label 1.2em top padding.
|
|
|
|
}
|
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
2021-08-16 05:15:27 +02:00
|
|
|
// This is specifically for list of radios/checkboxes
|
2019-01-02 00:11:47 +01:00
|
|
|
.model_multiple_choice_field .input li,
|
2021-08-16 05:15:27 +02:00
|
|
|
.checkbox_select_multiple .input li,
|
|
|
|
.multiple_choice_field .input li,
|
2022-05-06 12:04:36 +02:00
|
|
|
.choice_field .input li,
|
|
|
|
.model_multiple_choice_field .input > div > div,
|
|
|
|
.checkbox_select_multiple .input > div > div,
|
|
|
|
.multiple_choice_field .input > div > div,
|
|
|
|
.choice_field .input > div > div {
|
2019-01-02 00:11:47 +01:00
|
|
|
label {
|
2022-03-07 18:06:19 +01:00
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
2019-01-02 00:11:47 +01:00
|
|
|
width: auto;
|
|
|
|
float: none;
|
|
|
|
padding-top: 0; // Negates padding added to label for the group of fields as a whole
|
2021-08-16 05:15:27 +02:00
|
|
|
padding-bottom: 0.8em;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.fields > li,
|
|
|
|
.field-col {
|
|
|
|
@include clearfix();
|
|
|
|
padding-top: 0.5em;
|
|
|
|
padding-bottom: 1.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.field-row {
|
|
|
|
@include clearfix();
|
|
|
|
|
|
|
|
// negative margin the bottom so it doesn't add too much space
|
|
|
|
margin-bottom: -1.2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.input {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
|
|
|
|
// field sizing and alignment
|
|
|
|
.field-small {
|
|
|
|
input,
|
|
|
|
textarea,
|
|
|
|
select,
|
|
|
|
.tagit {
|
|
|
|
border-radius: 3px;
|
|
|
|
padding: 0.4em 1em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.field {
|
|
|
|
&.col1,
|
|
|
|
&.col2,
|
|
|
|
&.col3,
|
|
|
|
&.col4,
|
|
|
|
&.col5,
|
|
|
|
&.col6,
|
|
|
|
&.col7,
|
|
|
|
&.col8,
|
|
|
|
&.col9,
|
|
|
|
&.col10,
|
|
|
|
&.col11,
|
|
|
|
&.col12 {
|
|
|
|
clear: both;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
li.inline .field {
|
|
|
|
&.col1,
|
|
|
|
&.col2,
|
|
|
|
&.col3,
|
|
|
|
&.col4,
|
|
|
|
&.col5,
|
|
|
|
&.col6,
|
|
|
|
&.col7,
|
|
|
|
&.col8,
|
|
|
|
&.col9,
|
|
|
|
&.col10,
|
|
|
|
&.col11,
|
|
|
|
&.col12 {
|
|
|
|
clear: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// solve gutter issues of inline fields
|
|
|
|
ul.inline li:first-child,
|
|
|
|
li.inline:first-child {
|
2022-03-15 14:21:06 +01:00
|
|
|
margin-inline-start: math.div(-$grid-gutter-width, 2);
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// search-bars
|
|
|
|
.search-bar {
|
|
|
|
.required .field > label:after {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-filter {
|
|
|
|
height: 2.71em;
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// file drop zones
|
|
|
|
.drop-zone {
|
|
|
|
border-radius: 5px;
|
|
|
|
border: 2px dashed $color-grey-4;
|
|
|
|
padding: $mobile-nice-padding;
|
|
|
|
background-color: $color-grey-5;
|
|
|
|
margin-bottom: 1em;
|
|
|
|
text-align: center;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
.drop-zone-help {
|
|
|
|
border: 0;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2019-01-02 00:11:47 +01:00
|
|
|
&.hovered {
|
|
|
|
border-color: $color-teal;
|
|
|
|
background-color: $color-input-focus;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Transitions
|
2021-12-23 03:42:22 +01:00
|
|
|
// stylelint-disable-next-line no-duplicate-selectors
|
2019-01-02 00:11:47 +01:00
|
|
|
.help {
|
|
|
|
@include transition(opacity 0.2s ease);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(sm) {
|
|
|
|
.help {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fields {
|
|
|
|
max-width: 800px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.field {
|
|
|
|
@include row();
|
|
|
|
}
|
|
|
|
|
|
|
|
.field-content {
|
|
|
|
@include column(10, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
.field-col {
|
|
|
|
float: left;
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
// anything less than 4 columns or greater than 6 is impractical
|
|
|
|
&.col4 {
|
|
|
|
label {
|
|
|
|
@include column(2, 0, 4);
|
|
|
|
}
|
|
|
|
|
|
|
|
.field-content {
|
|
|
|
@include column(2, $padding, 4);
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.col6 {
|
|
|
|
label {
|
|
|
|
@include column(2, 0, 6);
|
|
|
|
}
|
|
|
|
|
|
|
|
.field-content {
|
|
|
|
@include column(4, $padding, 6);
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-start: 0;
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
|
|
|
|
.label-above {
|
|
|
|
.field > label,
|
|
|
|
.field > .field-content {
|
|
|
|
display: block;
|
|
|
|
padding: 0 0 0.8em;
|
|
|
|
float: none;
|
|
|
|
width: auto;
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2019-01-02 00:11:47 +01:00
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
|
|
|
|
.field-comment-control {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tab-content--comments-enabled {
|
|
|
|
.field {
|
|
|
|
position: relative;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2021-04-20 15:47:09 +02:00
|
|
|
.field-content {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-end: 45px;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2021-04-26 12:53:04 +02:00
|
|
|
@include media-breakpoint-up(sm) {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-end: 60px;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-20 15:47:09 +02:00
|
|
|
.widget-draftail_rich_text_area .field-content {
|
2022-03-15 14:21:06 +01:00
|
|
|
padding-inline-end: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2021-04-20 15:47:09 +02:00
|
|
|
.field-comment-control {
|
2021-04-26 12:53:04 +02:00
|
|
|
position: absolute;
|
2021-04-20 15:47:09 +02:00
|
|
|
display: block;
|
2022-02-04 12:57:55 +01:00
|
|
|
top: 0;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 0;
|
2021-04-20 15:47:09 +02:00
|
|
|
height: 100%;
|
|
|
|
line-height: 100%;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2021-04-20 15:47:09 +02:00
|
|
|
&--object {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 20px;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2021-04-20 15:47:09 +02:00
|
|
|
@include media-breakpoint-up(lg) {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 350px;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
2021-04-20 15:47:09 +02:00
|
|
|
@include transition(opacity 0.2s ease);
|
|
|
|
border: 0;
|
|
|
|
background: none;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 3px;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2021-04-26 12:53:04 +02:00
|
|
|
@include media-breakpoint-up(sm) {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 10px;
|
2021-04-20 15:47:09 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
|
2021-04-20 15:47:09 +02:00
|
|
|
// Hide by default, reveal on hover of parent
|
|
|
|
@include media-breakpoint-up(md) {
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
transform: translateY(-50%);
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 0;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
|
2021-04-20 18:19:23 +02:00
|
|
|
.icon-reversed {
|
|
|
|
display: none;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
|
|
|
|
&:hover {
|
2021-04-26 12:53:04 +02:00
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
// stylelint-disable max-nesting-depth
|
|
|
|
.icon-default {
|
|
|
|
display: none;
|
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
|
|
|
|
.icon-reversed {
|
|
|
|
display: block;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
|
|
|
|
&:focus {
|
2021-04-21 14:10:55 +02:00
|
|
|
opacity: 1;
|
2021-04-20 15:47:09 +02:00
|
|
|
pointer-events: initial;
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
|
|
|
|
> svg {
|
2022-03-07 18:06:19 +01:00
|
|
|
width: 35px;
|
|
|
|
height: 35px;
|
2021-04-20 15:47:09 +02:00
|
|
|
color: $color-teal;
|
|
|
|
|
2021-04-26 12:53:04 +02:00
|
|
|
@media (forced-colors: $media-forced-colours) {
|
2021-04-20 15:47:09 +02:00
|
|
|
color: ButtonText;
|
2021-10-23 20:14:25 +02:00
|
|
|
border: 1px solid;
|
2021-04-20 15:47:09 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2022-04-08 18:36:47 +02:00
|
|
|
|
|
|
|
.icon-comment {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
|
|
|
|
.field-row .field-comment-control {
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
2021-04-28 17:21:16 +02:00
|
|
|
.field:not(.block_field) {
|
2021-04-20 15:47:09 +02:00
|
|
|
&:hover {
|
|
|
|
.field-comment-control button {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: initial;
|
|
|
|
}
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
|
2021-04-28 17:21:16 +02:00
|
|
|
.object {
|
|
|
|
&:hover {
|
|
|
|
.field-comment-control--object button {
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: initial;
|
|
|
|
}
|
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2021-04-28 17:21:16 +02:00
|
|
|
|
2021-04-20 15:47:09 +02:00
|
|
|
.object.model_choice_field {
|
|
|
|
.object-help {
|
2022-03-15 14:21:06 +01:00
|
|
|
inset-inline-end: 153px;
|
2021-04-20 15:47:09 +02:00
|
|
|
}
|
2022-02-04 12:57:55 +01:00
|
|
|
}
|
2021-04-20 15:47:09 +02:00
|
|
|
}
|