Skip to content

Commit 777751d

Browse files
author
Oleg Zinoviev
committed
MAGETWO-39422: [UI] Assistance with applying new style for Credit card validation
1 parent dccfdf0 commit 777751d

File tree

3 files changed

+67
-5
lines changed

3 files changed

+67
-5
lines changed

app/design/frontend/Magento/blank/Magento_Checkout/web/css/source/module/checkout/_fields.less

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,38 @@
3030
}
3131
}
3232
}
33+
.opc-wrapper {
34+
.fieldset {
35+
> .field {
36+
> .label {
37+
font-weight: @font-weight__regular;
38+
}
39+
}
40+
}
41+
}
42+
}
43+
44+
//
45+
// Desktop
46+
// _____________________________________________
47+
48+
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__m) {
49+
// ToDo UI: remove with global blank theme .field.required update
50+
.opc-wrapper {
51+
.fieldset {
52+
> .field {
53+
&.required {
54+
position: relative;
55+
> label {
56+
padding-right: 25px;
57+
&:after {
58+
margin-left: @indent__s;
59+
position: absolute;
60+
top: 9px;
61+
}
62+
}
63+
}
64+
}
65+
}
66+
}
3367
}

app/design/frontend/Magento/blank/Magento_Checkout/web/css/source/module/checkout/_shipping.less

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@
5353
margin-bottom: @indent__base;
5454

5555
.fieldset {
56-
.field {
57-
.label {
58-
font-weight: @font-weight__regular;
59-
}
60-
}
6156
.note {
6257
font-size: @font-size__base;
6358
margin-top: @indent__s;
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// /**
2+
// * Copyright © 2015 Magento. All rights reserved.
3+
// * See COPYING.txt for license details.
4+
// */
5+
6+
//
7+
// Variables
8+
// _____________________________________________
9+
10+
@checkout-field-validation__border-color: @form-element-validation__border-error;
11+
12+
//
13+
// Common
14+
// _____________________________________________
15+
16+
& when (@media-common = true) {
17+
.field {
18+
.control {
19+
&._with-tooltip {
20+
&:extend(.abs-field-tooltip all);
21+
}
22+
}
23+
&._error {
24+
.control {
25+
input,
26+
select,
27+
textarea {
28+
.css(border-color, @checkout-field-validation__border-color);
29+
}
30+
}
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)