aboutsummaryrefslogtreecommitdiffstats
path: root/WebContent/VAADIN/themes/chameleon/common/common.scss
blob: 382dff3325982c79ebd6e8397c1a309ab4152258 (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
164
165
166
// this file defines the common chameleon mixin any related variables etc.

$chameleon-app-background: transparent;

$chameleon-font-family: Arial, Helvetica, "Lucida Grande", "Lucida Sans Unicode", Tahoma, Verdana, sans-serif;
$chameleon-font-size: 13px;
$chameleon-font-size-small: 11.05px;
$chameleon-font-size-big: 15.6px;
$chameleon-line-height: 1.4;


// rules on the application level, above theme selection
@mixin chameleon-app {
	// App background & tooltip
	&.v-app {
		background: transparent;
		overflow: hidden;
		}
	
	.v-ui {
		margin-top: 0;
		border-top: none;
		}
	
	.v-tooltip {
		background: #fdfdee;
		border: 1px solid #c0c0b9;
		padding: 1px 5px;
		color: #222;
		font-size: 11.7px;
		line-height: normal;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
		}
	
	.v-sa & .v-tooltip {
		outline: 1px solid rgba(0,0,0,.2);
		-webkit-border-radius: 0;
		-moz-border-radius: 0;
		border: none;
		}

	// TODO move most of the rest to chameleon-common

	// Global fonts
	
	// First all the containers that have other components inside them, and are 
	// possibly overlay elements (which reside inside the BODY element, not the .v-app element)
	
	// Then come all other overlay elements, that do not have other arbitrary 
	// components inside them (from v-filterselect-suggestpopup onwards)
	
	&.v-app,
	.v-window,
	.v-popupview-popup,
	.v-tooltip,
	&.v-app input,
	&.v-app select,
	&.v-app button,
	&.v-app textarea,
	.v-window input,
	.v-window select,
	.v-window button,
	.v-window textarea,
	.v-popupview-popup input,
	.v-popupview-popup select,
	.v-popupview-popup button,
	.v-popupview-popup textarea,
	.v-filterselect-suggestpopup,
	.v-datefield-popup,
	.v-contextmenu,
	.v-Notification,
	.v-menubar-submenu,
	.v-table-header-drag,
	.v-menubar-submenu,
	.v-drag-element {
		font-family: $chameleon-font-family;
		font-size: $chameleon-font-size;
		line-height: $chameleon-line-height;
		color: #222;
		}
	
	
	
	// Generic overlay elements
	
	.v-window,
	.v-popupview-popup,
	.v-filterselect-suggestpopup,
	.v-datefield-popup,
	.v-contextmenu,
	.v-Notification,
	.v-menubar-submenu {
		background: #fff url(../img/grad-light-top.png) repeat-x;
		background-color: rgba(255,255,255,.85);
		border: 1px solid #adadad;
		border-color: rgba(0,0,0,.4);
		border-radius: 4px;
		-webkit-border-radius: 4px;
		-moz-border-radius: 4px;
		overflow: hidden;
		}
	
	.v-filterselect-suggestpopup,
	.v-contextmenu,
	.v-menubar-submenu {
		padding: 3px 0;
		}
	
	.v-contextmenu .gwt-MenuItem,
	.v-filterselect-suggestpopup .gwt-MenuItem,
	.v-menubar-submenu .v-menubar-menuitem {
		padding: .05em .7em;
		user-select: none;
		-webkit-user-select: none;
		-moz-user-select: none;
		-ms-user-select: none;
		cursor: default;
		}
	
	.v-contextmenu td.gwt-MenuItem-selected div,
	.v-filterselect-suggestpopup td.gwt-MenuItem-selected,
	.v-table .v-table-body .v-selected,
	.v-menubar-submenu span.v-menubar-menuitem-selected {
		text-shadow: none;
		}
	
	.v-contextmenu .gwt-MenuItem-selected,
	.v-filterselect-suggestpopup .gwt-MenuItem-selected,
	.v-table .v-selected,
	.v-menubar-submenu .v-menubar-menuitem-selected {
		background-color: #333;
		}
	
	.v-contextmenu .gwt-MenuItem-selected div {
		background: transparent;
		}
	
	
	// Misc. generics
	
	.v-tooltip .v-errormessage {
		color: #b2320b;
		padding-left: 14px;
		background: transparent url(../img/error-indicator.png) no-repeat 0 50%;
		}

}

@mixin chameleon-common {
	// Misc. generics
	
	.v-errorindicator {
		width: 13px;
		height: 1.4em;
		background: transparent url(../img/error-indicator.png) no-repeat right 50%;
		}
	
	.v-caption-small .v-errorindicator {
		height: 1.2em;
		}
	
	.v-caption-big .v-errorindicator {
		height: 1.8em;
		}	
}