pdf.js/web/sidebar.css
Calixte Denizet 25990e4287 [Editor] Add a sidebar allowing the user to navigate between the comments in a pdf (bug 1985567)
This implements what has been specified but it's still not done: we have to handle editing a comment
or an annotation containing one.
2025-08-29 16:00:06 +02:00

38 lines
1.3 KiB
CSS

/* Copyright 2025 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
.sidebar {
--sidebar-bg-color: light-dark(#fff, #23222b);
--sidebar-border-color: light-dark(
rgb(21 20 26 / 0.1),
rgb(251 251 254 / 0.1)
);
--sidebar-box-shadow:
0 0.25px 0.75px light-dark(rgb(0 0 0 / 0.05), rgb(0 0 0 / 0.2)),
0 2px 6px 0 light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.4));
@media screen and (forced-colors: active) {
--sidebar-bg-color: Canvas;
--sidebar-border-color: CanvasText;
--sidebar-box-shadow: none;
}
border-radius: 8px;
box-shadow: var(--sidebar-box-shadow);
border: 1px solid var(--sidebar-border-color);
background-color: var(--sidebar-bg-color);
inset-block-start: calc(100% + var(--doorhanger-height) - 2px);
}