... |
... |
@@ -127,6 +127,11 @@ body { |
127
|
127
|
-moz-window-dragging: drag;
|
128
|
128
|
}
|
129
|
129
|
|
|
130
|
+/**
|
|
131
|
+ Never modify the following selector without synchronizing
|
|
132
|
+ LETTERBOX_CSS_SELECTOR in RFPHelper.sys.jsm, where
|
|
133
|
+ --letterboxing-width & --letterboxing-height are actually set.
|
|
134
|
+**/
|
130
|
135
|
.letterboxing .browserContainer {
|
131
|
136
|
/*
|
132
|
137
|
From Firefox 115 on, .browserContainer layout is flex / column,
|
... |
... |
@@ -137,6 +142,14 @@ body { |
137
|
142
|
background: var(--letterboxing-bgcolor);
|
138
|
143
|
}
|
139
|
144
|
|
|
145
|
+.browserDecorator {
|
|
146
|
+ display: none;
|
|
147
|
+ pointer-events: none;
|
|
148
|
+ background: transparent;
|
|
149
|
+ position: relative;
|
|
150
|
+ z-index: 1;
|
|
151
|
+}
|
|
152
|
+
|
140
|
153
|
.letterboxing {
|
141
|
154
|
--letterboxing-border-radius: 8px;
|
142
|
155
|
--letterboxing-border-top-radius: 0;
|
... |
... |
@@ -145,6 +158,7 @@ body { |
145
|
158
|
--letterboxing-bgcolor: var(--tabpanel-background-color);
|
146
|
159
|
--letterboxing-gradient-color1: var(--letterboxing-bgcolor);
|
147
|
160
|
--letterboxing-gradient-color2: color-mix(in srgb, var(--chrome-content-separator-color) 50%, var(--letterboxing-bgcolor));
|
|
161
|
+ --letterboxing-border-color: var(--letterboxing-bgcolor);
|
148
|
162
|
}
|
149
|
163
|
|
150
|
164
|
.letterboxing.letterboxing-vcenter .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) {
|
... |
... |
@@ -154,7 +168,26 @@ body { |
154
|
168
|
|
155
|
169
|
.letterboxing.letterboxing-gradient .browserContainer {
|
156
|
170
|
background: linear-gradient(283deg, var(--letterboxing-gradient-color1) 0%, var(--letterboxing-gradient-color2) 100%), var(--letterboxing-bgcolor);
|
157
|
|
- box-shadow: rgba(0, 0, 0, 0.5) 0px -1px 2px;
|
|
171
|
+}
|
|
172
|
+
|
|
173
|
+:root:not([inDOMFullscreen]) .letterboxing .browserContainer:not(.responsive-mode)
|
|
174
|
+ > .browserStack:not(.exclude-letterboxing)
|
|
175
|
+ > .browserDecorator {
|
|
176
|
+ display: initial;
|
|
177
|
+ visibility: visible;
|
|
178
|
+ border-radius: var(--letterboxing-border-radius);
|
|
179
|
+ border-top-left-radius: var(--letterboxing-border-top-radius);
|
|
180
|
+ border-top-right-radius: var(--letterboxing-border-top-radius);
|
|
181
|
+ box-shadow: var(--letterboxing-border-color) 0px 0px .1px inset, var(--letterboxing-border-color) 0 0 .1px;
|
|
182
|
+ border: .1px solid var(--letterboxing-border-color);
|
|
183
|
+ outline: .1px solid var(--letterboxing-bgcolor);
|
|
184
|
+ height: calc(var(--letterboxing-height) + 1px);
|
|
185
|
+ top: -1px;
|
|
186
|
+}
|
|
187
|
+
|
|
188
|
+.letterboxing-vcenter .browserDecorator {
|
|
189
|
+ height: auto !important;
|
|
190
|
+ top: 0 !important;
|
158
|
191
|
}
|
159
|
192
|
|
160
|
193
|
/*
|
... |
... |
@@ -167,6 +200,7 @@ body { |
167
|
200
|
place-self: end left;
|
168
|
201
|
left: 0;
|
169
|
202
|
right: 0;
|
|
203
|
+ z-index: 2;
|
170
|
204
|
--letterboxing-status-left-radius: var(--letterboxing-border-radius);
|
171
|
205
|
--letterboxing-status-right-radius: 0;
|
172
|
206
|
}
|
... |
... |
@@ -184,18 +218,19 @@ body { |
184
|
218
|
.letterboxing .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing)
|
185
|
219
|
#statuspanel-label {
|
186
|
220
|
border-radius: 0 0 var(--letterboxing-status-right-radius) var(--letterboxing-status-left-radius);
|
|
221
|
+ margin: 0;
|
|
222
|
+ border: 1px solid var(--letterboxing-border-color);
|
|
223
|
+ max-width: calc(var(--letterboxing-width) * .5);
|
187
|
224
|
}
|
188
|
225
|
|
189
|
|
-/**
|
190
|
|
- Never modify the following selector without synchronizing
|
191
|
|
- LETTERBOX_CSS_SELECTOR in RFPHelper.jsm!
|
192
|
|
-**/
|
193
|
226
|
.letterboxing .browserContainer:not(.responsive-mode) > .browserStack:not(.exclude-letterboxing) > browser {
|
194
|
|
- /* width & height to be dynamically set by RFPHelper.jsm */
|
195
|
227
|
box-shadow: 0px 4px 8px 0px var(--letterboxing-shadow-color);
|
196
|
228
|
border-radius: var(--letterboxing-border-radius);
|
197
|
229
|
border-top-left-radius: var(--letterboxing-border-top-radius);
|
198
|
230
|
border-top-right-radius: var(--letterboxing-border-top-radius);
|
|
231
|
+ width: var(--letterboxing-width) !important;
|
|
232
|
+ height: var(--letterboxing-height) !important;
|
|
233
|
+ background: var(--letterboxing-gradient-color2);
|
199
|
234
|
}
|
200
|
235
|
|
201
|
236
|
:root:not([inDOMFullscreen]) .letterboxing.letterboxing-ready .browserContainer:not(.responsive-mode)
|