123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420 |
- .plain-checkbox-label {
-
- float: none;
- color: inherit;
- font-weight: inherit;
- font-size: inherit;
- }
- select::-ms-expand {
- display: none;
- }
- .choice_field .input,
- .model_choice_field .input,
- .typed_choice_field .input {
- position: relative;
-
- select ~ span:after {
- border-radius: 0 6px 6px 0;
- z-index: 0;
- position: absolute;
- right: 0;
- top: 1px;
- bottom: 0;
- width: 1.5em;
- font-family: wagtail;
- content: 'q';
- 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;
- }
- }
- }
- .help,
- .error-message {
- font-size: 0.85em;
- font-weight: normal;
- margin: 0.5em 0 0;
- }
- .error-message {
- color: $color-red;
- }
- .help {
- color: $color-grey-2;
- }
- fieldset:hover > .help,
- .field.focused + .help,
- .field:focus + .help,
- .field:hover + .help,
- li.focused > .help {
- opacity: 1;
- }
- .required .field > label:after {
- content: '*';
- color: $color-red;
- font-weight: bold;
- display: inline-block;
- margin-left: 0.5em;
- line-height: 1em;
- font-size: 13px;
- }
- .error input,
- .error textarea,
- .error select,
- .error .tagit {
- border-color: $color-red;
- background-color: $color-input-error-bg;
- }
- .boolean_field .help,
- .radio .help {
- opacity: 1;
- }
- .iconfield,
- .date_field,
- .time_field,
- .date_time_field,
- .url_field {
- .input {
- position: relative;
- &:before,
- &:after {
- font-family: wagtail;
- position: absolute;
- top: 0.5em;
- line-height: 100%;
- font-size: 2em;
- color: $color-grey-3;
- }
- &:before {
- left: 0.3em;
- }
- &:after {
- right: 0.5em;
- }
- }
- input:not([type=radio]),
- input:not([type=checkbox]),
- input:not([type=submit]),
- input:not([type=button]) {
- padding-left: 2.5em;
- }
-
- &.field-small {
- .input {
- &:before,
- &:after {
- font-size: 1.3rem;
- top: 0.3em;
- }
- &:before {
- left: 0.5em;
- }
- &:after {
- right: 0.5em;
- }
- }
- }
-
- &.icon-spinner:after {
- color: $color-teal;
- opacity: 0.8;
- text-align: center;
- top: 0.3em;
- }
- }
- .date_field,
- .date_time_field {
- .input:before {
- @extend .icon-date:before;
- }
- }
- .time_field {
- .input:before {
- @extend .icon-time:before;
- }
- }
- .url_field {
- .input:before {
- @extend .icon-link:before;
- }
- }
- .model_multiple_choice_field .input li,
- .choice_field .input li {
- label {
- display: block;
- width: auto;
- float: none;
- padding-top: 0;
- }
- }
- .fields > li,
- .field-col {
- @include clearfix();
- padding-top: 0.5em;
- padding-bottom: 1.2em;
- }
- .field-row {
- @include clearfix();
-
- margin-bottom: -1.2em;
- }
- .input {
- clear: both;
- }
- .field-small {
- input,
- textarea,
- select,
- .halloeditor,
- .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;}
- }
- ul.inline li:first-child,
- li.inline:first-child {
- margin-left: -$grid-gutter-width / 2;
- }
- .search-bar {
- .required .field > label:after {
- display: none;
- }
- .button-filter {
- height: 2.71em;
- border-color: transparent;
- }
- }
- .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;
- .drop-zone-help {
- border: 0;
- }
- &.hovered {
- border-color: $color-teal;
- background-color: $color-input-focus;
- }
- }
- .help {
- @include transition(opacity 0.2s ease);
- }
- .label-uppercase {
- .field > label {
- text-transform: uppercase;
- }
- }
- @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;
- padding-left: 0;
-
- &.col4 {
- label {
- @include column(2, 0, 4);
- }
- .field-content {
- @include column(2, $padding, 4);
- padding-left: 0;
- }
- }
- &.col6 {
- label {
- @include column(2, 0, 6);
- }
- .field-content {
- @include column(4, $padding, 6);
- padding-left: 0;
- }
- }
- }
- .label-above {
- .field > label,
- .field > .field-content {
- display: block;
- padding: 0 0 0.8em;
- float: none;
- width: auto;
- }
- }
- }
|