File: pdf_shared.css

package info (click to toggle)
chromium 139.0.7258.138-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 6,120,676 kB
  • sloc: cpp: 35,100,869; ansic: 7,163,530; javascript: 4,103,002; python: 1,436,920; asm: 946,517; xml: 746,709; pascal: 187,653; perl: 88,691; sh: 88,436; objc: 79,953; sql: 51,488; cs: 44,583; fortran: 24,137; makefile: 22,147; tcl: 15,277; php: 13,980; yacc: 8,984; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (53 lines) | stat: -rw-r--r-- 1,963 bytes parent folder | download | duplicates (7)
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
/* Copyright 2022 The Chromium Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* #css_wrapper_metadata_start
 * #type=style-lit
 * #import=chrome://resources/cr_elements/cr_shared_vars.css.js
 * #import=./shared_vars.css.js
 * #css_wrapper_metadata_end */

cr-icon-button {
  --cr-icon-button-fill-color: var(--pdf-toolbar-text-color);
  --cr-icon-button-focus-outline-color: var(--viewer-icon-focus-outline-color);
  margin: 0;
}

cr-icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

/* Dark mode styles copied from
   ui/webui/resources/cr_elements/shared_vars_css.html. Unfortunately there
   seems to be no great way to share styles with the
   "prefers-color-scheme: dark" @media query selector.
   TODO(crbug.com/40779507): Remove these overrides when the PDF viewer
   supports light and dark modes. */
cr-action-menu,
viewer-bookmark {
  --cr-menu-background-color: var(--google-grey-900);
  --cr-menu-shadow: rgba(0, 0, 0, .3) 0 1px 2px 0,
                    rgba(0, 0, 0, .15) 0 3px 6px 2px;
  --cr-primary-text-color: var(--google-grey-200);
  --cr-menu-background-focus-color: var(--google-grey-700);
  --cr-separator-line: var(--cr-separator-height) solid
      rgba(255, 255, 255, .1);
  --cr-action-menu-disabled-item-color: var(--cr-primary-text-color);
  --cr-action-menu-disabled-item-opacity: var(--cr-disabled-opacity);
}

.md-select {
  --cr-fallback-color-neutral-outline: rgb(117, 117, 117);
  --cr-focus-outline-color: var(--viewer-icon-focus-outline-color);
  --md-select-option-bg-color: var(--google-grey-900-white-4-percent);
  /* cr-fallback-color-on-surface for dark mode */
  --md-select-text-color: rgb(227, 227, 227);
  background-image: url(chrome://resources/images/dark/arrow_down.svg);
}

.md-select:hover {
  /* --cr-fallback-color-state-hover-on-subtle_ in dark mode */
  background-color: rgba(253, 252, 251, .10);
}