_field.scss.html
5.06 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!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"><span id='Ext-form-field-Base-css_mixin-extjs-form-field'>/**
</span> * Creates the base structure of form field.
* @member Ext.form.field.Base
*/
@mixin extjs-form-field {
.#{$prefix}form-field,
.#{$prefix}form-display-field {
margin: 0 0 0 0;
font: $form-field-font;
color: $form-field-color;
}
.#{$prefix}form-item-hidden {
margin: 0;
}
.#{$prefix}form-text,
textarea.#{$prefix}form-field {
padding: $form-field-padding;
background: repeat-x 0 0;
border: $form-field-border-width solid;
background-color: $form-field-background-color;
@if $form-field-background-image {
background-image: theme-background-image($theme-name, $form-field-background-image);
}
border-color: $form-field-border-color;
}
$form-field-content-height: $form-field-height - top($form-field-padding) - top($form-field-border-width) - bottom($form-field-padding) - bottom($form-field-border-width);
$form-field-line-height: $form-field-content-height - 3px;
.#{$prefix}form-text {
height: $form-field-content-height;
line-height: $form-field-line-height;
vertical-align: top;
}
.#{$prefix}ie8m {
.#{$prefix}form-text {
line-height: $form-field-line-height;
}
}
.#{$prefix}border-box .#{$prefix}form-text {
height: $form-field-height;
}
textarea.#{$prefix}form-field {
color: $form-field-color;
overflow: auto;
height: auto;
line-height: normal;
background: repeat-x 0 0;
background-color: $form-field-background-color;
@if $form-field-background-image {
background-image: theme-background-image($theme-name, $form-field-background-image);
}
resize: none; //Disable browser resizable textarea
}
.#{$prefix}border-box textarea.#{$prefix}form-field {
height: auto;
}
@if $include-safari {
.#{$prefix}safari.#{$prefix}mac textarea.#{$prefix}form-field {
margin-bottom: -2px; // another bogus margin bug, safari/mac only
}
}
.#{$prefix}form-focus,
textarea.#{$prefix}form-focus {
border-color: $form-field-focus-border-color;
}
.#{$prefix}form-invalid-field,
textarea.#{$prefix}form-invalid-field {
background-color: $form-field-invalid-background-color;
@if $form-field-invalid-background-image {
background-image: theme-background-image($theme-name, $form-field-invalid-background-image);
background-repeat: $form-field-invalid-background-repeat;
background-position: $form-field-invalid-background-position;
}
border-color: $form-field-invalid-border-color;
}
.#{$prefix}form-item {
font: $form-label-font;
}
.#{$prefix}form-empty-field, textarea.#{$prefix}form-empty-field {
color: $form-field-empty-color;
}
.#{$prefix}webkit {
.#{$prefix}form-empty-field {
line-height: $form-field-line-height;
}
}
.#{$prefix}form-display-field {
padding-top: 3px;
}
@if $include-ie {
/*
In oldIE, text inputs get a mysterious extra pixel of spacing above and below.
This is targeted at IE6-IE7 (all modes) and IE9+ Quirks mode.
IE8 quirks on Windows 7 requires this fix, but on
IE8 quirks on Windows XP, this is breaks the layout.
TODO: Check field input heights in IE8 quirks on Windows Vista.
Since we can't specifically target a specific version of Windows via CSS, we default to fixing it the XP way, for now.
*/
.#{$prefix}quirks .#{$prefix}ie9p .#{$prefix}form-text,
.#{$prefix}ie7m .#{$prefix}form-text {
margin-top: -1px;
margin-bottom: -1px;
}
.#{$prefix}ie .#{$prefix}form-file {
height: $form-field-height + 1;
line-height: 18px;
vertical-align: middle;
}
}
.#{$prefix}field-default-toolbar .#{$prefix}form-text {
height: $form-toolbar-field-height - vertical($form-field-padding) - vertical($form-field-border-width);
}
.#{$prefix}border-box .#{$prefix}field-default-toolbar .#{$prefix}form-text {
height: $form-toolbar-field-height;
}
.#{$prefix}field-default-toolbar .#{$prefix}form-item-label-left {
padding-left: 4px;
}
}
</pre>
</body>
</html>