-
Notifications
You must be signed in to change notification settings - Fork 0
/
dictionaryWidget.css
83 lines (63 loc) · 2.17 KB
/
dictionaryWidget.css
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
@import url('https://fonts.googleapis.com/css2?family={{fontFamily_entryWord}}');
@import url('https://fonts.googleapis.com/css2?family={{fontFamily_pronunciation}}');
@import url('https://fonts.googleapis.com/css2?family={{fontFamily_partOfSpeech}}');
@import url('https://fonts.googleapis.com/css2?family={{fontFamily_meaning}}');
.main-container {
width: 100%;
height: 95%;
}
#upper-block {
background: {{bgColor}};
margin: 0px;
/* Padding is affected by the background color. */
padding-top: {{padding_upperBlock_top}}px;
padding-right: {{padding_upperBlock_right}}px;
padding-bottom: {{padding_upperBlock_bottom}}px;
padding-left: {{padding_upperBlock_left}}px;
}
#entry-word {
font-family: {{fontFamily_entryWord}};
font-size: {{fontSize_entryWord}}px;
color: {{fontColor_entryWord}};
}
#pronunciation {
display: {{displayMode_pronunciation}};
padding-left: {{padding_pronunciation_left}}px;
font-family: {{fontFamily_pronunciation}};
font-size: {{fontSize_pronunciation}}px;
color: {{fontColor_pronunciation}};
}
#lower-block {
transform: scaleY(1);
transform-origin: top;
transition: transform {{transitionDuration_meaning}}s {{easingFunction_meaning}};
}
#part-of-speech {
display: {{displayMode_partOfSpeech}};
background: {{bgColor}};
margin: 0px;
/* Padding is affected by the background color. */
padding-top: {{padding_partOfSpeech_top}}px;
padding-right: {{padding_partOfSpeech_right}}px;
padding-bottom: {{padding_partOfSpeech_bottom}}px;
padding-left: {{padding_partOfSpeech_left}}px;
font-family: {{fontFamily_partOfSpeech}};
font-size: {{fontSize_partOfSpeech}}px;
color: {{fontColor_partOfSpeech}};
}
#meaning {
background: {{bgColor}};
margin: 0px;
/* Padding is affected by the background color. */
padding-top: {{padding_meaning_top}}px;
padding-right: {{padding_meaning_right}}px;
padding-bottom: {{padding_meaning_bottom}}px;
padding-left: {{padding_meaning_left}}px;
font-family: {{fontFamily_meaning}};
font-size: {{fontSize_meaning}}px;
color: {{fontColor_meaning}};
}
/* To prevent any flickering, the widget is invisible at first. */
.invisible {
opacity: 0;
}