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
|
// @category Common
// Color functions are used to calculate default font color
@import "../util/color";
// List of components to include in the theme compilation. The list can be modified to make
// the compiled theme smaller by removing unused components from the list.
//
// @usage
// // Remove the Calendar component styles from the output
// $v-included-components: remove($v-included-components, calendar);
$v-included-components:
absolutelayout,
accordion,
button,
calendar,
checkbox,
colorpicker,
combobox,
csslayout,
customcomponent,
customlayout,
datefield,
dragwrapper,
form,
formlayout,
grid,
gridlayout,
label,
link,
menubar,
nativebutton,
nativeselect,
notification,
optiongroup,
orderedlayout,
panel,
popupview,
progressbar,
slider,
splitpanel,
table,
tabsheet,
textfield,
textarea,
richtextarea,
tree,
treetable,
twincolselect,
upload,
window !default;
// Checks if a given component is included in the compilation. Used by the collection mixins that
// include all components, like valo-components and valo-components.
// @param $component-name {String} the name of the component to check
// @param $is-included {list} (Optional) the list of components which is checked
// @return {Boolean} true if the component is included in the compilation, false if not
@function v-is-included ($component-name, $is-included: $v-included-components) {
@return contains($is-included, $component-name);
}
// A static text that is shown while the application JavaScript is loaded and started
$v-app-loading-text : "" !default;
// Base line height used for all widgets
$v-line-height : 1.55 !default;
$v-background-color : hsl(210, 0%, 98%) !default;
$v-app-background-color : $v-background-color !default;
$v-font-size : 16px !default; // Should be specified in pixels
$v-font-weight : 300 !default; // Must be specified as a numeric value (i.e. not 'normal' or 'bold')
$v-font-color : valo-font-color($v-app-background-color) !default;
$v-font-family : "Open Sans", sans-serif !default;
$v-caption-font-size : round($v-font-size * 0.9) !default; // Should be a pixel value
$v-caption-font-weight : max(400, $v-font-weight) !default;
$v-unit-size : round(2.3 * $v-font-size) !default; // Must be specified in pixels (suitable range 18-50)
$v-layout-margin-top : round($v-unit-size) !default;
$v-layout-margin-right : round($v-unit-size) !default;
$v-layout-margin-bottom : round($v-unit-size) !default;
$v-layout-margin-left : round($v-unit-size) !default;
$v-layout-spacing-vertical : round($v-unit-size/3) !default;
$v-layout-spacing-horizontal : round($v-unit-size/3) !default;
$v-border : 1px solid (v-shade 0.7) !default; // Size must be specified in pixels
$v-border-radius : 4px !default; // Must be specified in pixels
$v-gradient : v-linear 8% !default;
$v-bevel : inset 0 1px 0 v-tint, inset 0 -1px 0 v-shade !default;
$v-bevel-depth : 30% !default;
$v-shadow : 0 2px 3px v-shade !default;
$v-shadow-opacity : 5% !default;
$v-focus-color : valo-focus-color() !default;
$v-focus-style : 0 0 0 2px rgba($v-focus-color, .5) !default;
$v-animations-enabled : true !default;
$v-hover-styles-enabled : true !default;
$v-disabled-opacity : 0.5 !default;
$v-selection-color : $v-focus-color !default;
$v-default-field-width : $v-unit-size * 5 !default;
$v-error-indicator-color : #ed473b !default;
$v-required-field-indicator-color : $v-error-indicator-color !default;
$valo-include-common-stylenames : true !default;
// A flag to note whether relative URL paths are relative to the currently parsed SCSS file or to the compilation root file.
// The Vaadin compiler parses URL paths differently than the regular Sass compiler (i.e. Vaadin modifies relative url paths).
// This boolean is used to flag which compiler is used, so that paths are correct for different resources.
// false == Ruby, true == Vaadin
$v-relative-paths: true !default;
|