File: app.css

package info (click to toggle)
chromium 138.0.7204.183-1~deb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 6,080,960 kB
  • sloc: cpp: 34,937,079; ansic: 7,176,967; javascript: 4,110,704; python: 1,419,954; 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,811; 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 (135 lines) | stat: -rw-r--r-- 3,137 bytes parent folder | download | duplicates (5)
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
130
131
132
133
134
135
/* Copyright 2024 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://intro/tangible_sync_style_shared.css.js
 * #import=chrome://resources/cr_elements/cr_shared_vars.css.js
 * #scheme=relative
 * #include=tangible-sync-style-shared
 * #css_wrapper_metadata_end */

:host {
  --cr-button-height: 36px;
  --btn-container-height:
      calc(2 * var(--btn-margin) + var(--cr-button-height));
  --btn-margin: 24px;
  --default-browser-frame-image-url: url(images/default_browser_frame.svg);
  --left-background-image-url: url(images/left_illustration.svg);
  --right-background-image-url: url(images/right_illustration.svg);
  color: var(--cr-primary-text-color);
}

@media (prefers-color-scheme: dark) {
  :host {
    --default-browser-frame-image-url:
        url(images/default_browser_frame_dark.svg);
    --left-background-image-url: url(images/left_illustration_dark.svg);
    --right-background-image-url: url(images/right_illustration_dark.svg);
  }
}

.title {
  margin: 36px 0 12px;
}

.subtitle {
  margin: 0;
}

.tangible-sync-style-left-banner {
  content: var(--left-background-image-url);
}

.tangible-sync-style-right-banner {
  content: var(--right-background-image-url);
}

.tangible-sync-style-left-banner,
.tangible-sync-style-right-banner {
  position: fixed;
}

#safe-zone {
  box-sizing: border-box;
  display: flex;
  height: calc(100% - var(--btn-container-height));
  justify-content: center;
  overflow-y: auto;
  position: fixed;
  width: 100vw;
}

#content-area {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: auto;
  text-align: center;
}

#illustration-container {
  --illustration-height: 110px;
  --illustration-margin-top: 50px;
  --illustration-width: 185px;
  --product-logo-size: 52px;
  --product-logo-top: 26px;
  height: var(--illustration-height);
  margin-top: var(--illustration-margin-top);
  position: relative;
  width: var(--illustration-width);
}

@media screen and ((max-width: 780px) or (max-height: 600px)) {
  #illustration-container {
    --illustration-height: 73px;
    --illustration-width: 123px;
    --product-logo-size: 34px;
    --product-logo-top: 17px;
  }
}

#default-browser-frame {
  content: var(--default-browser-frame-image-url);
  height: var(--illustration-height);
  position: absolute;
  top: 0;
  left: 0;
  width: var(--illustration-width);
}

#product-logo {
  height: var(--product-logo-size);
  position: absolute;
  top: var(--product-logo-top);
  left: calc((var(--illustration-width) - var(--product-logo-size)) / 2);
  width: var(--product-logo-size);
}

#button-row {
  bottom: 0;
  display: flex;
  height: var(--btn-container-height);
  justify-content: flex-end;
  position: fixed;
  width: 100vw;
}

#button-container {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: flex-end;
  padding: 0 var(--btn-margin);
}

<if expr="is_win">
#button-container {
  flex-flow: row-reverse;
}
</if>

#button-container > cr-button {
  margin-top: var(--btn-margin);
}