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

/*******************************************************************************
 * Different headers
 ******************************************************************************/
.#{$primaryStyleName}-h1,
.#{$primaryStyleName} h1,
.#{$primaryStyleName}-h2,
.#{$primaryStyleName} h2,
.#{$primaryStyleName}-h3,
.#{$primaryStyleName} h3,
.#{$primaryStyleName}-h4,
.#{$primaryStyleName} h4 {
	margin: 0;
	font-weight: bold;
	}

.#{$primaryStyleName}-h1,
.#{$primaryStyleName} h1 {
	padding: .75em 0 .5em 0;
	font-size: 24.05px;
	}

.#{$primaryStyleName}-h2,
.#{$primaryStyleName} h2 {
	padding: .67em 0 .33em 0;
	font-size: 18.2px;
	}

.#{$primaryStyleName}-h3,
.#{$primaryStyleName} h3 {
	margin: .71em 0 .29em 0;
	font-size: 14.3px;
	}

.#{$primaryStyleName}-h4,
.#{$primaryStyleName} h4 {
	padding: .23em 0;
	font-size: 13px;
	}


/*******************************************************************************
 * Big
 ******************************************************************************/
.#{$primaryStyleName}-big {
	font-size: 15.6px;
	}


/*******************************************************************************
 * Small
 ******************************************************************************/
.#{$primaryStyleName}-small {
	font-size: 11.7px;
	line-height: 1.3;
	opacity: .8;
	filter: alpha(opacity=80);
	}


/*******************************************************************************
 * Tiny
 ******************************************************************************/
.#{$primaryStyleName}-tiny {
	font-size: 11.05px;
	line-height: 1.2;
	opacity: .7;
	filter: alpha(opacity=70);
	}


/*******************************************************************************
 * Warning & error
 ******************************************************************************/
&.v-app .#{$primaryStyleName}-warning,
&.v-app .#{$primaryStyleName}-error {
	color: #574734;
	background: #fffec8 url(../../img/label-warning-icon.png) no-repeat .2em 50%;
	white-space: nowrap;
	padding: .3em 1em .3em 2.4em;
	overflow: hidden;
	width: auto !important;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	text-shadow: none;
	}

&.v-app .#{$primaryStyleName}-error {
	color: #fff;
	font-weight: bold;
	background: #c22f24 url(../../img/label-error-icon.png) no-repeat .2em 50%;
	text-shadow: 0 1px 0 #8f2e27;
	}


/*******************************************************************************
 * Big warning & big error
 ******************************************************************************/
.#{$primaryStyleName}-big.#{$primaryStyleName}-warning,
.#{$primaryStyleName}-big.#{$primaryStyleName}-error {
	background-image: url(../../img/label-warning-icon-big.png);
	background-position: 0 50%;
	padding: .5em 1em .5em 3em;
	}

.#{$primaryStyleName}-big.#{$primaryStyleName}-error {
	background-image: url(../../img/label-error-icon-big.png);
	}


/*******************************************************************************
 * Loading
 ******************************************************************************/
&.v-app .#{$primaryStyleName}-loading {
	height: 32px;
	line-height: 32px;
	background-image: url(../../../base/common/img/loading-indicator.gif);
	background-repeat: no-repeat;
	background-position: 0 50%;
	white-space: nowrap;
	padding: .3em 1em .3em 36px;
	overflow: hidden;
	width: auto !important;
	border-radius: 2px;
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	}

}