File: mediaInterstitials.css

package info (click to toggle)
chromium 138.0.7204.183-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,071,908 kB
  • sloc: cpp: 34,937,088; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,953; asm: 946,768; xml: 739,971; pascal: 187,324; sh: 89,623; perl: 88,663; objc: 79,944; sql: 50,304; cs: 41,786; fortran: 24,137; makefile: 21,806; php: 13,980; tcl: 13,166; yacc: 8,925; ruby: 7,485; awk: 3,720; lisp: 3,096; lex: 1,327; ada: 727; jsp: 228; sed: 36
file content (129 lines) | stat: -rw-r--r-- 3,363 bytes parent folder | download | duplicates (9)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
/* Copyright 2018 The Chromium Authors
   Use of this source code is governed by a BSD-style license that can be
   found in the LICENSE file. */

/* Rules in this and other mediaControls*.css files override rules from html.css
   and other UA sheets regardless of specificity. See comment in
   StyleResolver::MatchUARules(). */

video::-internal-media-interstitial {
    width: inherit;
    height: inherit;
    position: relative;
    direction: ltr;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    /* The font size is set to be proportional to the viewport width.
     * Specifically, it is 15px for 400px width, and 36px for 1920px width.
     * The full math expression is:
     * 15px + (36 - 15) * ((100vw - 400px) / (1920 - 400)).
     */
    font-size: calc(9.5px + 1.38vw);
    background-color: transparent;
    opacity: 0;
    transition: opacity .3s ease-in-out;
}

video::-internal-media-interstitial-background-image {
    display: flex;
    position: absolute;
    margin: 0;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    border: none;
    border-width: 0px;
    background-color: transparent;
    padding: 0;
    filter: grayscale(100%) blur(5px) opacity(40%);
}

video::-internal-media-remoting-cast-icon {
    appearance: none;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center center;
    display: flex;
    position: absolute;
    margin: 0px;
    border-width: 0px;
    background-color: transparent;
    height: 2.5vw;
    width: 3vw;
    padding: 0px;
    left: calc(50% - 1.5vw);
    top: calc(50% - 3vw);
}

video::-internal-media-interstitial-message,
video::-internal-picture-in-picture-interstitial-message {
    display: inline;
    position: absolute;
    top: calc(50% + 1vw);
    border: none;
    color: rgba(255,255,255,.54);
    width: 100%;
    text-wrap: none;
    text-align: center;
    background-color: transparent;
    font-family: Roboto-Regular, Sans-serif, Segoe, Serif, Helvetica;
    padding: 0px;
    margin: 0px;
}

video::-internal-media-interstitial-message {
    font-size: 90%;
}

video::-internal-picture-in-picture-interstitial-message {
    top: 0;
    left: 0;
    width: auto;

    color: rgba(255,255,255,0.8);
    text-align: left;
    letter-spacing: 0.2px;

    /** default to small */
    font-size: 14px;
    line-height: 20px;
    margin: 8px 16px;
}

video::-internal-media-remoting-toast-message {
    display: inline;
    position: absolute;
    top: 16pt;
    border: none;
    border-radius: 2pt;
    color: rgba(255,255,255, 1);
    width: auto;
    text-wrap: none;
    text-align: center;
    background-color: rgba(40, 44, 50, 0.7);
    font-size: 90%;
    font-family: Roboto-Regular, Sans-serif, Segoe, Serif, Helvetica;
    padding: 10pt 24pt 10pt 24pt;
    margin: 0px;
}

video::-internal-media-remoting-cast-icon {
    background-image: image-set(
      url(default_100_percent/mediaremoting_cast.png) 1x,
      url(default_200_percent/mediaremoting_cast.png) 2x);
}

video::-internal-picture-in-picture-interstitial-message.sizing-medium {
    font-size: 24px;
    line-height: 28px;
    margin: 32px 64px;
}

video::-internal-picture-in-picture-interstitial-message.sizing-large {
    font-size: 40px;
    line-height: 47px;
    margin: 64px 96px;
}