13693261870
2022-09-16 354b3dbfbffb3df45212a2a44dbbf48b4acc2594
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>The source code</title>
  <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js">.#{$prefix}form-invalid-under {
    padding: top($form-error-under-padding) right($form-error-under-padding) bottom($form-error-under-padding) (left($form-error-under-padding) + $form-error-icon-width + $form-error-under-icon-spacing);
 
    color: $form-error-msg-color;
    font: $form-error-msg-font;
    line-height: $form-error-msg-line-height;
 
    background: no-repeat left($form-error-under-padding) top($form-error-under-padding);
    background-image: theme-background-image($form-exclamation-icon);
}
 
// When the label is on top, the right icon cell is taller, so the icon image needs bumping down
// add element name to increase specificity to be greater than .x-form-invalid-under
div.#{$prefix}lbl-top-err-icon {
    margin-bottom: round(($form-field-height - $form-error-icon-height) / 2);
}
 
.#{$prefix}form-invalid-icon {
    width: $form-error-icon-width;
    height: $form-error-icon-height;
    margin: $form-error-icon-side-margin;
    background-image: theme-background-image($form-exclamation-icon);
    background-repeat: no-repeat;
}
 
.#{$prefix}form-item-label {
    color: $form-label-font-color;
    font: $form-label-font;
    margin-top: round(($form-field-height - $form-label-line-height) / 2);
    @if $include-ext-toolbar-toolbar {
        .#{$prefix}toolbar-item &amp; {
            @if $form-label-font != $form-toolbar-label-font {
                font: $form-toolbar-label-font;
            }
            @if ($form-field-height != $form-toolbar-field-height) or ($form-label-line-height != $form-toolbar-label-line-height) {
                margin-top: round(($form-toolbar-field-height - $form-toolbar-label-line-height) / 2);
            }
        }
    }
}
 
.#{$prefix}autocontainer-form-item,
.#{$prefix}anchor-form-item,
.#{$prefix}vbox-form-item,
.#{$prefix}table-form-item {
    margin-bottom: $form-item-margin-bottom;
}
 
// IE6 cannot do border-color: transparent
// So we revert pack to a pad row for IE6
.#{$prefix}ie6 {
    .#{$prefix}form-form-item {
        td {
            border-top-width: 0;
        }
    }
 
    // Padding row for IE6 when Labelable Fields are in a form layout
    td.#{$prefix}form-item-pad {
        height: $form-item-margin-bottom;
    }
}
</pre>
</body>
</html>