14 |
14 |
15 MsgUnifiedEditorBody[hasImage="true"]:landscape { |
15 MsgUnifiedEditorBody[hasImage="true"]:landscape { |
16 layout: layout-landscape-image; |
16 layout: layout-landscape-image; |
17 } |
17 } |
18 |
18 |
19 /**************************** Text field margin ******************************/ |
|
20 MsgUnifiedEditorBody::textEdit:portrait { |
|
21 left: -var(hb-param-margin-gene-left); |
|
22 right: var(hb-param-margin-gene-right); |
|
23 } |
|
24 |
|
25 MsgUnifiedEditorBody[hasImage="true"][hasAudio="true"]::textEdit:portrait { |
|
26 top: -var(hb-param-margin-gene-middle-vertical); |
|
27 } |
|
28 |
|
29 MsgUnifiedEditorBody[hasImage="true"][hasAudio="false"]::textEdit:portrait { |
|
30 top: -var(hb-param-margin-gene-middle-vertical); |
|
31 } |
|
32 |
|
33 MsgUnifiedEditorBody[hasImage="false"][hasAudio="true"]::textEdit:portrait { |
|
34 top: -var(hb-param-margin-gene-middle-vertical); |
|
35 } |
|
36 |
|
37 MsgUnifiedEditorBody[hasImage="false"][hasAudio="false"]::textEdit:portrait { |
|
38 top: 0.0un; |
|
39 } |
|
40 |
|
41 MsgUnifiedEditorBody::textEdit:landscape { |
|
42 right: var(hb-param-margin-gene-right); |
|
43 } |
|
44 |
|
45 MsgUnifiedEditorBody[hasImage="true"]::textEdit:landscape { |
|
46 left: -1.0un; |
|
47 } |
|
48 |
|
49 MsgUnifiedEditorBody[hasImage="false"]::textEdit:landscape { |
|
50 left: -var(hb-param-margin-gene-left); |
|
51 } |
|
52 |
|
53 MsgUnifiedEditorBody[hasAudio="true"]::textEdit:landscape { |
|
54 top: -var(hb-param-margin-gene-middle-vertical); |
|
55 } |
|
56 |
|
57 MsgUnifiedEditorBody[hasAudio="false"]::textEdit:landscape { |
|
58 top: 0.0un; |
|
59 } |
|
60 |
|
61 /*************************** Image field margin ******************************/ |
19 /*************************** Image field margin ******************************/ |
62 MsgUnifiedEditorBody::pixmap { |
20 MsgUnifiedEditorBody::pixmap { |
63 left: -var(hb-param-margin-gene-left); |
21 left: -var(hb-param-margin-gene-left); |
64 } |
22 } |
65 |
23 |
66 MsgUnifiedEditorBody::pixmap:portrait { |
24 MsgUnifiedEditorBody::pixmap:portrait { |
67 right: var(hb-param-margin-gene-right); |
25 right: var(hb-param-margin-gene-right); |
68 } |
26 } |
69 |
27 |
70 MsgUnifiedEditorBody::pixmap:landscape { |
28 MsgUnifiedEditorBody::pixmap:landscape { |
71 right: 1.0un; |
29 right: var(hb-param-margin-gene-right); |
72 } |
30 } |
73 |
31 |
74 MsgUnifiedEditorBody[hasAudio="true"]::pixmap { |
32 MsgUnifiedEditorBody[hasAudio="true"]::pixmap { |
75 top: -var(hb-param-margin-gene-middle-vertical); |
33 top: -var(hb-param-margin-gene-middle-vertical); |
76 } |
34 } |
84 MsgUnifiedEditorBody::audioItem { |
42 MsgUnifiedEditorBody::audioItem { |
85 left: -var(hb-param-margin-gene-left); |
43 left: -var(hb-param-margin-gene-left); |
86 right: var(hb-param-margin-gene-right); |
44 right: var(hb-param-margin-gene-right); |
87 } |
45 } |
88 |
46 |
89 /*************************** Character Counter ******************************/ |
|
90 |
|
91 MsgUnifiedEditorBody::charCounter |
|
92 { |
|
93 text-height:var(hb-param-text-height-tiny); |
|
94 text-align:centre; |
|
95 text-line-count-min: 1; |
|
96 text-line-count-max: 1; |
|
97 } |
|
98 |
|
99 MsgUnifiedEditorBody::charCounterFrame |
|
100 { |
|
101 size-policy: fixed, fixed ; |
|
102 pref-height: expr(var(hb-param-text-height-tiny)+2*var(hb-param-margin-gene-middle-vertical)); |
|
103 pref-width: expr(var(hb-param-text-height-tiny)*3 + 2*var(hb-param-margin-gene-middle-horizontal)); |
|
104 } |
|