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

.#{$primaryStyleName}-spacertd div {
	border-color: #b3b3b3;
	border-left: none;
	}

.#{$primaryStyleName}-tabitem {
	border: none;
	border-bottom: 1px solid #b3b3b3;
	padding: 0;
	}

.#{$primaryStyleName}-tabitem .v-caption {
	padding: .2em .8em;
	margin: 1px;
	margin-bottom: 0;
	}

.#{$primaryStyleName}-tabitem-selected {
	background-color: #c9c9c9;
	border: 1px solid #b3b3b3;
	border-bottom: none;
	-webkit-border-top-left-radius: 3px;
	-webkit-border-top-right-radius: 3px;
	-moz-border-radius-topleft: 3px;
	-moz-border-radius-topright: 3px;
	overflow: hidden;
	}

.#{$primaryStyleName}-tabitem-selected .v-caption {
	background: transparent url(../../img/grad-light-top.png) repeat-x;
	margin: 0;
	padding-bottom: .25em;
	-webkit-border-top-left-radius: 2px;
	-webkit-border-top-right-radius: 2px;
	-moz-border-radius-topleft: 2px;
	-moz-border-radius-topright: 2px;
	}

.#{$primaryStyleName}-content {
	background: #fff;
	border-color: #b3b3b3;
	}

.#{$primaryStyleName}-deco {
	height: 0;
	background: transparent;
	border-top: 1px solid #b3b3b3;
	}

.#{$primaryStyleName}-caption-close {
	width: 14px;
	height: 15px;
	overflow: hidden;
	text-indent: -50px;
	background: transparent url(../../img/close-btn.png) no-repeat .5em 0;
	vertical-align: middle;
	padding: 0 0 0 .5em;
	margin: .2em 0 0 0;
	}

.#{$primaryStyleName}-caption-close:hover {
	background-position: .5em -25px;
	}

.#{$primaryStyleName}-caption-close:active {
	background-position: .5em -50px;
	}

/*******************************************************************************
 * Scroller
 ******************************************************************************/
.#{$primaryStyleName}-scroller {
	height: 14px;
	margin-top: -1.6em;
	position: relative;
	float: right;
	background: #c9c9c9 url(../../img/grad-light-top.png) repeat-x;
	border: 1px solid #b3b3b3;
	border-radius: 6px;
	-webkit-border-radius: 6px;
	-moz-border-radius: 6px;
	}

.#{$primaryStyleName}-scrollerPrev,
.#{$primaryStyleName}-scrollerNext,
.#{$primaryStyleName}-scrollerPrev-disabled,
.#{$primaryStyleName}-scrollerNext-disabled,
.#{$primaryStyleName}-scrollerPrev-disabled:active,
.#{$primaryStyleName}-scrollerNext-disabled:active {
	padding-top: 12px;
	border: 1px solid #b3b3b3;
	border-width: 0;
	background: transparent url(../../img/tab-arrows.png) no-repeat 6px 50%;
	width: 16px;
	height: 14px;
	overflow: hidden;
	opacity: .5;
	filter: alpha(opacity=50);
	}

.#{$primaryStyleName}-scroller button::-moz-focus-inner {
	border: none;
	padding: 0;
	}

.#{$primaryStyleName}-scrollerNext,
.#{$primaryStyleName}-scrollerNext-disabled,
.#{$primaryStyleName}-scrollerNext-disabled:active {
	background-position: -10px 50%;
	border-left-width: 1px;
	}

.#{$primaryStyleName}-scrollerPrev:hover,
.#{$primaryStyleName}-scrollerNext:hover {
	opacity: .75;
	filter: alpha(opacity=75);
	}

.#{$primaryStyleName}-scrollerPrev:active,
.#{$primaryStyleName}-scrollerNext:active {
	opacity: 1;
	filter: none;
	}

.#{$primaryStyleName}-scrollerPrev-disabled,
.#{$primaryStyleName}-scrollerNext-disabled,
.#{$primaryStyleName}-scrollerPrev-disabled:active,
.#{$primaryStyleName}-scrollerNext-disabled:active {
	opacity: .1;
	filter: alpha(opacity=10);
	}



/*******************************************************************************
 * open-only-closable
 ******************************************************************************/
.#{$primaryStyleName}-open-only-closable .#{$primaryStyleName}-caption-close {
	visibility: hidden;
	}

.#{$primaryStyleName}-open-only-closable .#{$primaryStyleName}-tabitem-selected .#{$primaryStyleName}-caption-close {
	visibility: visible;
	}


/*******************************************************************************
 * Borderless
 ******************************************************************************/
.#{$primaryStyleName}-borderless .#{$primaryStyleName}-content-borderless,
.#{$primaryStyleName}-deco-borderless {
	border: none;
	background: transparent;
	}

.#{$primaryStyleName}-tabs-borderless .#{$primaryStyleName}-tabitem-selected,
.#{$primaryStyleName}-tabs-borderless .#{$primaryStyleName}-tabitem-selected .v-caption {
	background-color: transparent;
	}

}