-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvaadin-radio-group-styles.html
61 lines (54 loc) · 1.6 KB
/
vaadin-radio-group-styles.html
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
<dom-module id="lumo-radio-group" theme-for="vaadin-radio-group">
<template>
<style>
:host {
--lumo-text-field-size: var(--lumo-size-m);
color: var(--lumo-body-text-color);
font-size: var(--lumo-font-size-m);
font-family: var(--lumo-font-family);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
padding: var(--lumo-space-xs) 0;
}
:host::before {
height: var(--lumo-text-field-size);
box-sizing: border-box;
display: inline-flex;
align-items: center;
}
[part="label"] {
display: block;
}
:host([theme~="vertical"]) [part="group-field"] {
display: flex;
flex-direction: column;
}
:host([has-label])::before {
margin-top: calc(var(--lumo-font-size-s) * 1.5);
}
:host([has-label]) {
padding-top: var(--lumo-space-m);
}
[part="label"] {
align-self: flex-start;
color: var(--lumo-secondary-text-color);
font-weight: 500;
font-size: var(--lumo-font-size-s);
margin-left: calc(var(--lumo-border-radius) / 4);
transition: color 0.2s;
line-height: 1;
padding-bottom: 0.7em;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
position: relative;
max-width: 100%;
box-sizing: border-box;
}
:host([invalid]) [part="label"] {
color: var(--lumo-error-text-color);
}
</style>
</template>
</dom-module>