summaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/chameleon/components/textfield/textfield.scss
blob: 3962ba9ccd1e2b5b4c94d65dc0ceedf245ecdf05 (plain)
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
@mixin chameleon-textfield($primaryStyleName : v-textfield) {

input.#{$primaryStyleName},
textarea.v-textarea,
.v-filterselect {
	line-height: normal;
	border: 1px solid #b3b3b3;
	border-top-color: #808080;
	border-color: rgba(0,0,0,.3);
	border-top-color: rgba(0,0,0,.5);
	background: #fff url(../../img/input-bg.png) repeat-x;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	-webkit-box-shadow: 0 1px 0 rgba(255,255,255,.2);
	-moz-box-shadow: 0 1px 0 rgba(255,255,255,.2);
	margin: 0;
	}

input.#{$primaryStyleName}[type="text"],
textarea.v-textarea,
.v-filterselect {
	padding: .1em;
	}

input.#{$primaryStyleName}[type="text"] {
	height: 1.2em;
	}

input.v-widget.#{$primaryStyleName}[type="text"],
.v-filterselect {
	height: 1.6em;
	}

&.v-app input.#{$primaryStyleName},
&.v-app textarea.v-textarea,
&.v-app input.v-filterselect-input {
	color: #222;
	}

.v-ie & input.#{$primaryStyleName},
.v-ie & textarea.v-textarea,
.v-ie & .v-filterselect {
	border-top-color: #808080;
	}

&.v-app input.#{$primaryStyleName}-prompt,
&.v-app textarea.v-textarea-prompt {
	font-style: normal;
	color: #999;
	}

input.#{$primaryStyleName}-focus,
textarea.v-textarea-focus {
	background-color: #fffce1;
	}


/*******************************************************************************
 * Readonly
 ******************************************************************************/
input.#{$primaryStyleName}-readonly,
textarea.v-textarea-readonly {
	border: none;
	background: transparent;
	}


/*******************************************************************************
 * Small
 ******************************************************************************/
&.v-app input.#{$primaryStyleName}-small,
&.v-app textarea.v-textarea-small,
.v-filterselect-small .v-filterselect-input {
	font-size: $chameleon-font-size-small;
	}

/*******************************************************************************
 * Big (and big search)
 ******************************************************************************/
&.v-app input.#{$primaryStyleName}-big,
&.v-app textarea.v-textarea-big,
.v-filterselect-big .v-filterselect-input {
	font-size: $chameleon-font-size-big;
	}

input.#{$primaryStyleName}-big[type=text],
.v-datefield-big input.v-datefield-textfield[type=text] {
	padding: .3em;
	}

textarea.v-textarea,
.v-filterselect-big {
	padding: .3em;
	}

input.#{$primaryStyleName}-big.#{$primaryStyleName}-search,
.v-filterselect-search.v-filterselect-big {
	background-image: url(../../img/magnifier-big.png);
	background-repeat: no-repeat;
	background-position: 4px 50%;
	}

input.#{$primaryStyleName}-big.#{$primaryStyleName}-search[type=text] {
	padding-left: 26px;
	}

.v-filterselect-search.v-filterselect-big {
	padding-left: 26px;
	}


/*******************************************************************************
 * Search
 ******************************************************************************/
input.#{$primaryStyleName}-search,
.v-filterselect-search {
	background-image: url(../../img/magnifier.png);
	background-repeat: no-repeat;
	background-position: 3px 50%;
	}

input.#{$primaryStyleName}-search[type=text],
.v-filterselect-search {
	padding-left: 17px;
	}

}