123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 |
- // /**
- // * Copyright © Magento, Inc. All rights reserved.
- // * See COPYING.txt for license details.
- // */
- //
- // Variables
- // _____________________________________________
- @legend-border-bottom: 1px solid @color-gray-light6;
- @form-field__vertical-indent__desktop: 29px;
- @form-calendar-icon__color: @primary__color;
- //
- // Common
- // _____________________________________________
- & when (@media-common = true) {
- .fieldset {
- .lib-form-fieldset();
- &:last-child {
- margin-bottom: @indent__base;
- }
- > .field,
- > .fields > .field {
- .lib-form-field();
- &.no-label {
- > .label {
- .lib-visually-hidden();
- }
- }
- &.choice {
- .label {
- display: inline;
- font-weight: normal;
- margin: 0;
- }
- }
- .label {
- .column:not(.main) & {
- font-weight: normal;
- }
- }
- .field.choice {
- margin-bottom: @indent__s;
- &:last-child {
- margin-bottom: 0;
- }
- }
- }
- }
- .legend + .fieldset,
- .legend + div {
- clear: both;
- }
- .legend {
- > span {
- margin-right: @indent__xs;
- }
- }
- fieldset.field {
- border: 0;
- padding: 0;
- }
- .field {
- &.date {
- .time-picker {
- display: inline-block;
- margin-top: @indent__s;
- white-space: nowrap;
- }
- }
- .message {
- &.warning {
- margin-top: @indent__s;
- }
- }
- }
- .select-styling() {
- .lib-css(appearance, none, 1);
- appearance: none;
- background-size: 30px 60px;
- text-indent: .01em;
- text-overflow: '';
- &::-ms-expand {
- display: none;
- }
- }
- select {
- .select-styling();
- }
- .field-error,
- div.mage-error[generated] {
- margin-top: 7px;
- }
- .field-error {
- .lib-form-validation-note();
- }
- // TEMP
- .field .tooltip {
- .lib-tooltip(right);
- .tooltip-content {
- min-width: 200px;
- white-space: normal;
- }
- }
- input:focus ~ .tooltip .tooltip-content,
- select:focus ~ .tooltip .tooltip-content {
- display: block;
- }
- ._has-datepicker {
- ~ .ui-datepicker-trigger {
- .lib-button-reset();
- .lib-icon-font(
- @_icon-font-content: @icon-calendar,
- @_icon-font-color: @primary__color__lighter,
- @_icon-font-size: @icon-calendar__font-size,
- @_icon-font-line-height: @icon-calendar__font-size,
- @_icon-font-display: block,
- @_icon-font-text-hide: true
- );
- display: inline-block;
- margin-top: -4px;
- vertical-align: middle;
- &:focus {
- box-shadow: none;
- outline: 0;
- }
- }
- }
- .field.date,
- .field-dob {
- ._has-datepicker {
- &:extend(.abs-field-date-input all);
- }
- }
- //
- // Sidebar forms
- // ---------------------------------------------
- .sidebar {
- .fieldset {
- margin: 0;
- > .field:not(.choice) >,
- .fields > .field {
- &:not(:last-child) {
- margin: 0 0 @form-field__vertical-indent;
- }
- .label {
- margin: 0 0 4px;
- padding: 0 0 @indent__xs;
- text-align: left;
- width: 100%;
- }
- .control {
- width: 100%;
- }
- }
- }
- }
- }
- //
- // Desktop
- // _____________________________________________
- .media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
- .legend {
- .lib-css(border-bottom, @legend-border-bottom);
- }
- }
|