|
1 |
| -:host { |
2 |
| - height:100%; |
3 |
| -} |
4 |
| - |
5 |
| -:host, |
6 |
| -.ui5-media-gallery-display-wrapper, |
7 |
| -.ui5-media-gallery-display { |
8 |
| - width: 100%; |
9 |
| -} |
10 |
| - |
11 |
| -.ui5-media-gallery-root { |
12 |
| - width: inherit; |
13 |
| - height: inherit; |
14 |
| - background: var(--sapBaseColor); |
15 |
| - display: flex; |
16 |
| - flex-direction: column; |
17 |
| - position: relative; |
18 |
| -} |
19 |
| - |
20 |
| -:host([menu-vertical-align="Top"]) .ui5-media-gallery-root { |
21 |
| - flex-direction: column-reverse; |
22 |
| -} |
23 |
| - |
24 |
| -:host([effective-layout="Horizontal"]) .ui5-media-gallery-root, |
25 |
| -:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-root[dir="rtl"] { |
26 |
| - flex-direction: row-reverse; |
27 |
| -} |
28 |
| - |
29 |
| -:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-root, |
30 |
| -:host([effective-layout="Horizontal"]) .ui5-media-gallery-root[dir="rtl"] { |
31 |
| - flex-direction: row; |
32 |
| -} |
33 |
| - |
34 |
| -/* DISPLAY */ |
35 |
| - |
36 |
| -.ui5-media-gallery-display-wrapper { |
37 |
| - display: flex; |
38 |
| - justify-content: center; |
39 |
| - position: relative; |
40 |
| -} |
41 |
| - |
42 |
| -/* when all thumbnails shown, thumbnails vs. dispplay width is 1:3 proportion */ |
43 |
| -:host([effective-layout="Horizontal"][show-all-thumbnails]) .ui5-media-gallery-display-wrapper { |
44 |
| - flex-grow: 3; /* takes 3/4 of the entire width, where remaining 1/4 are for thumbnails */ |
45 |
| - flex-basis: 0; |
46 |
| -} |
47 |
| - |
48 |
| -.ui5-media-gallery-display { |
49 |
| - position:relative; |
50 |
| - margin: 1rem; |
51 |
| - display: flex; |
52 |
| - justify-content: center; |
53 |
| -} |
54 |
| - |
55 |
| -.ui5-media-gallery-display [ui5-media-gallery-item] { |
56 |
| - z-index: 1; |
57 |
| -} |
58 |
| - |
59 |
| -/* mobile platform */ |
60 |
| -[ui5-carousel] { |
61 |
| - width: calc(100% - 2rem); |
62 |
| -} |
63 |
| -[ui5-carousel]::part(item) { |
64 |
| - padding: 0; |
65 |
| - overflow: hidden; |
66 |
| -} |
67 |
| - |
68 |
| -/* THUMBNAILS */ |
69 |
| -.ui5-media-gallery-thumbnails-wrapper { |
70 |
| - margin: 1rem 0 0 0; |
71 |
| -} |
72 |
| -:host([menu-vertical-align="Top"]) .ui5-media-gallery-thumbnails-wrapper { |
73 |
| - margin: 0 0 1rem 0; |
74 |
| -} |
75 |
| -:host([effective-layout="Horizontal"]) .ui5-media-gallery-thumbnails-wrapper { |
76 |
| - margin: 0 1rem 0 0; |
77 |
| -} |
78 |
| -:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-thumbnails-wrapper { |
79 |
| - margin: 0 0 0 1rem; |
80 |
| -} |
81 |
| -:host(:not([effective-layout="Horizontal"])) [dir="rtl"] .ui5-media-gallery-thumbnails-wrapper { |
82 |
| - margin-right: 1rem; |
83 |
| -} |
84 |
| - |
85 |
| -/* show all thumbnails in a single scrollable row */ |
86 |
| -:host([show-all-thumbnails]) .ui5-media-gallery-thumbnails-wrapper { |
87 |
| - overflow-x: auto; |
88 |
| - overflow-y: hidden; |
89 |
| -} |
90 |
| -/* show all thumbnails in a scrollable area with multiple columns */ |
91 |
| -:host([effective-layout="Horizontal"][show-all-thumbnails]) .ui5-media-gallery-thumbnails-wrapper { |
92 |
| - overflow-y: auto; |
93 |
| - overflow-x: hidden; |
94 |
| - flex-grow:1; /* takes 1/4 of the entire width, where the remaining 3/4 are for the display */ |
95 |
| - flex-basis: 0; |
96 |
| -} |
97 |
| - |
98 |
| -.ui5-media-gallery-thumbnails-wrapper ul { |
99 |
| - height: 5rem; |
100 |
| - display: flex; |
101 |
| - flex-wrap: nowrap; |
102 |
| - padding-left: 0; /* disable browser default css */ |
103 |
| - margin-top: 0; /* disable browser default css */ |
104 |
| - margin-bottom: 0; /* disable browser default css */ |
105 |
| - list-style-type: none; /* disable browser default css */ |
106 |
| - padding-inline-start: 0; /* disable browser default css */ |
107 |
| -} |
108 |
| - |
109 |
| -/* in horizontal layout, the menu is 1-4 vertical columns, depending on media size */ |
110 |
| -:host([effective-layout="Horizontal"]) ul { |
111 |
| - width: 5rem; |
112 |
| - flex-wrap: wrap; |
113 |
| -} |
114 |
| -/* two columns on M-size */ |
115 |
| -:host([effective-layout="Horizontal"][show-all-thumbnails][media-range="M"]) ul { |
116 |
| - width: 10rem; |
117 |
| -} |
118 |
| -/* three columns on L-size */ |
119 |
| -:host([effective-layout="Horizontal"][show-all-thumbnails][media-range="L"]) ul { |
120 |
| - width: 15rem; |
121 |
| -} |
122 |
| -/* four columns on XL-size */ |
123 |
| -:host([effective-layout="Horizontal"][show-all-thumbnails][media-range="XL"]) ul { |
124 |
| - width: 20rem; |
125 |
| -} |
126 |
| - |
127 |
| -.ui5-media-gallery-thumbnail, |
128 |
| -.ui5-media-gallery-overflow ui5-button { |
129 |
| - width: 4rem; |
130 |
| - height: 4rem; |
131 |
| - flex-shrink: 0; |
132 |
| -} |
133 |
| - |
134 |
| -.ui5-media-gallery-overflow ui5-button { |
135 |
| - background: var(--_ui5_media_gallery_overflow_btn_background); |
136 |
| - color: var(--_ui5_media_gallery_overflow_btn_color); |
137 |
| - border: var(--_ui5_media_gallery_overflow_btn_border); |
138 |
| -} |
139 |
| - |
140 |
| -.ui5-media-gallery-thumbnail, |
141 |
| -.ui5-media-gallery-overflow { |
142 |
| - margin: 0 0 0 1rem; |
143 |
| -} |
144 |
| - |
145 |
| -:host([menu-vertical-align="Top"]) .ui5-media-gallery-thumbnail, |
146 |
| -:host([menu-vertical-align="Top"]) .ui5-media-gallery-overflow { |
147 |
| - margin: 1rem 0 0 1rem; |
148 |
| -} |
149 |
| - |
150 |
| -:host([effective-layout="Horizontal"]) .ui5-media-gallery-thumbnail, |
151 |
| -:host([effective-layout="Horizontal"]) .ui5-media-gallery-overflow { |
152 |
| - margin: 1rem 0 0 1rem; |
153 |
| -} |
154 |
| - |
155 |
| -:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-thumbnail, |
156 |
| -:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-overflow { |
157 |
| - margin: 1rem 1rem 0 0; |
158 |
| -} |
| 1 | +:host { |
| 2 | + height:100%; |
| 3 | +} |
| 4 | + |
| 5 | +:host, |
| 6 | +.ui5-media-gallery-display-wrapper, |
| 7 | +.ui5-media-gallery-display { |
| 8 | + width: 100%; |
| 9 | +} |
| 10 | + |
| 11 | +.ui5-media-gallery-root { |
| 12 | + width: inherit; |
| 13 | + height: inherit; |
| 14 | + background: var(--sapBaseColor); |
| 15 | + display: flex; |
| 16 | + flex-direction: column; |
| 17 | + position: relative; |
| 18 | +} |
| 19 | + |
| 20 | +:host([menu-vertical-align="Top"]) .ui5-media-gallery-root { |
| 21 | + flex-direction: column-reverse; |
| 22 | +} |
| 23 | + |
| 24 | +:host([effective-layout="Horizontal"]) .ui5-media-gallery-root, |
| 25 | +:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-root[dir="rtl"] { |
| 26 | + flex-direction: row-reverse; |
| 27 | +} |
| 28 | + |
| 29 | +:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-root, |
| 30 | +:host([effective-layout="Horizontal"]) .ui5-media-gallery-root[dir="rtl"] { |
| 31 | + flex-direction: row; |
| 32 | +} |
| 33 | + |
| 34 | +/* DISPLAY */ |
| 35 | + |
| 36 | +.ui5-media-gallery-display-wrapper { |
| 37 | + display: flex; |
| 38 | + justify-content: center; |
| 39 | + position: relative; |
| 40 | +} |
| 41 | + |
| 42 | +/* when all thumbnails shown, thumbnails vs. dispplay width is 1:3 proportion */ |
| 43 | +:host([effective-layout="Horizontal"][show-all-thumbnails]) .ui5-media-gallery-display-wrapper { |
| 44 | + flex-grow: 3; /* takes 3/4 of the entire width, where remaining 1/4 are for thumbnails */ |
| 45 | + flex-basis: 0; |
| 46 | +} |
| 47 | + |
| 48 | +.ui5-media-gallery-display { |
| 49 | + position:relative; |
| 50 | + margin: 1rem; |
| 51 | + display: flex; |
| 52 | + justify-content: center; |
| 53 | +} |
| 54 | + |
| 55 | +.ui5-media-gallery-display [ui5-media-gallery-item] { |
| 56 | + z-index: 1; |
| 57 | +} |
| 58 | + |
| 59 | +/* mobile platform */ |
| 60 | +[ui5-carousel] { |
| 61 | + width: calc(100% - 2rem); |
| 62 | +} |
| 63 | +[ui5-carousel]::part(item) { |
| 64 | + padding: 0; |
| 65 | + overflow: hidden; |
| 66 | +} |
| 67 | + |
| 68 | +/* THUMBNAILS */ |
| 69 | +.ui5-media-gallery-thumbnails-wrapper { |
| 70 | + margin: 1rem 0 0 0; |
| 71 | +} |
| 72 | +:host([menu-vertical-align="Top"]) .ui5-media-gallery-thumbnails-wrapper { |
| 73 | + margin: 0 0 1rem 0; |
| 74 | +} |
| 75 | +:host([effective-layout="Horizontal"]) .ui5-media-gallery-thumbnails-wrapper { |
| 76 | + margin: 0 1rem 0 0; |
| 77 | +} |
| 78 | +:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-thumbnails-wrapper { |
| 79 | + margin: 0 0 0 1rem; |
| 80 | +} |
| 81 | +:host(:not([effective-layout="Horizontal"])) [dir="rtl"] .ui5-media-gallery-thumbnails-wrapper { |
| 82 | + margin-right: 1rem; |
| 83 | +} |
| 84 | + |
| 85 | +/* show all thumbnails in a single scrollable row */ |
| 86 | +:host([show-all-thumbnails]) .ui5-media-gallery-thumbnails-wrapper { |
| 87 | + overflow-x: auto; |
| 88 | + overflow-y: hidden; |
| 89 | +} |
| 90 | +/* show all thumbnails in a scrollable area with multiple columns */ |
| 91 | +:host([effective-layout="Horizontal"][show-all-thumbnails]) .ui5-media-gallery-thumbnails-wrapper { |
| 92 | + overflow-y: auto; |
| 93 | + overflow-x: hidden; |
| 94 | + flex-grow:1; /* takes 1/4 of the entire width, where the remaining 3/4 are for the display */ |
| 95 | + flex-basis: 0; |
| 96 | +} |
| 97 | + |
| 98 | +.ui5-media-gallery-thumbnails-wrapper ul { |
| 99 | + height: 5rem; |
| 100 | + display: flex; |
| 101 | + flex-wrap: nowrap; |
| 102 | + padding-left: 0; /* disable browser default css */ |
| 103 | + margin-top: 0; /* disable browser default css */ |
| 104 | + margin-bottom: 0; /* disable browser default css */ |
| 105 | + list-style-type: none; /* disable browser default css */ |
| 106 | + padding-inline-start: 0; /* disable browser default css */ |
| 107 | +} |
| 108 | + |
| 109 | +/* in horizontal layout, the menu is 1-4 vertical columns, depending on media size */ |
| 110 | +:host([effective-layout="Horizontal"]) ul { |
| 111 | + width: 5rem; |
| 112 | + flex-wrap: wrap; |
| 113 | +} |
| 114 | +/* two columns on M-size */ |
| 115 | +:host([effective-layout="Horizontal"][show-all-thumbnails][media-range="M"]) ul { |
| 116 | + width: 10rem; |
| 117 | +} |
| 118 | +/* three columns on L-size */ |
| 119 | +:host([effective-layout="Horizontal"][show-all-thumbnails][media-range="L"]) ul { |
| 120 | + width: 15rem; |
| 121 | +} |
| 122 | +/* four columns on XL-size */ |
| 123 | +:host([effective-layout="Horizontal"][show-all-thumbnails][media-range="XL"]) ul { |
| 124 | + width: 20rem; |
| 125 | +} |
| 126 | + |
| 127 | +.ui5-media-gallery-thumbnail, |
| 128 | +.ui5-media-gallery-overflow [ui5-button] { |
| 129 | + width: 4rem; |
| 130 | + height: 4rem; |
| 131 | + flex-shrink: 0; |
| 132 | +} |
| 133 | + |
| 134 | +.ui5-media-gallery-overflow [ui5-button] { |
| 135 | + background: var(--_ui5_media_gallery_overflow_btn_background); |
| 136 | + color: var(--_ui5_media_gallery_overflow_btn_color); |
| 137 | + border: var(--_ui5_media_gallery_overflow_btn_border); |
| 138 | +} |
| 139 | + |
| 140 | +.ui5-media-gallery-thumbnail, |
| 141 | +.ui5-media-gallery-overflow { |
| 142 | + margin: 0 0 0 1rem; |
| 143 | +} |
| 144 | + |
| 145 | +:host([menu-vertical-align="Top"]) .ui5-media-gallery-thumbnail, |
| 146 | +:host([menu-vertical-align="Top"]) .ui5-media-gallery-overflow { |
| 147 | + margin: 1rem 0 0 1rem; |
| 148 | +} |
| 149 | + |
| 150 | +:host([effective-layout="Horizontal"]) .ui5-media-gallery-thumbnail, |
| 151 | +:host([effective-layout="Horizontal"]) .ui5-media-gallery-overflow { |
| 152 | + margin: 1rem 0 0 1rem; |
| 153 | +} |
| 154 | + |
| 155 | +:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-thumbnail, |
| 156 | +:host([effective-layout="Horizontal"][menu-horizontal-align="Right"]) .ui5-media-gallery-overflow { |
| 157 | + margin: 1rem 1rem 0 0; |
| 158 | +} |
0 commit comments