File: connect_onedrive.html

package info (click to toggle)
chromium 139.0.7258.127-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 6,122,068 kB
  • sloc: cpp: 35,100,771; 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 (133 lines) | stat: -rw-r--r-- 3,375 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
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
<style>
  #dialog {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 512px;
  }

  .body-wrapper {
    padding: 32px;
  }

  #dialog:focus-visible {
    outline: none;
  }

  svg {
    background-color: var(--cros-sys-app_base_shaded);
    height: 236px;
    width: 512px;
  }

  #title {
    color: var(--cros-sys-on_surface);
    font: var(--cros-display-6-font);
  }

  .normal-text {
    color: var(--cros-sys-on_surface_variant);
    font: var(--cros-body-1-font);
    height: 148px;
    margin-block-start: 16px;
  }

  #error-message {
    align-items: center;
    color: var(--cros-sys-error);
    display: flex;
    margin-top: 12px;
  }

  #error-message[hidden] {
    /* display: flex overrides the hidden visibility */
    display: none;
  }

  .error-text {
    margin-inline-start: 5px;
  }

  .icon {
    -webkit-mask-image: url(icons/error.svg);
    background-color: var(--cros-sys-error);
    height: 17px;
    width: 17px;
  }

  #button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
  }

  cr-button {
    --active-bg: transparent;
    --active-shadow: none;
    --active-shadow-action: none;
    --bg-action: var(--cros-sys-primary);
    --cr-button-height: 36px;
    --disabled-bg-action:
        var(--cros-sys-disabled_container);
    --disabled-bg: var(--cros-sys-disabled_container);;
    --disabled-text-color: var(--cros-sys-disabled);
    /* Use the default bg color as hover color because we
        rely on hoverBackground layer below.  */
    --hover-bg-action: var(--cros-sys-primary);
    --hover-bg-color: var(--cros-sys-primary_container);
    --ink-color: var(--cros-sys-ripple_primary);
    --ripple-opacity-action: 1;
    --ripple-opacity: 1;
    --text-color-action: var(--cros-sys-on_primary);
    --text-color: var(--cros-sys-on_primary_container);
    border: none;
    border-radius: 18px;
    box-shadow: none;
  }

  cr-button.cancel-button {
    background-color: var(--cros-sys-primary_container);
  }

  cr-button.cancel-button:hover::part(hoverBackground) {
    background-color: var(--cros-sys-hover_on_subtle);
    display: block;
  }

  cr-button.action-button:hover::part(hoverBackground) {
    background-color: var(--cros-sys-hover_on_prominent);
    display: block;
  }

  :host-context(.focus-outline-visible) cr-button:focus {
    outline: 2px solid var(--cros-sys-focus_ring);
    outline-offset: 2px;
  }
</style>

<svg viewBox="0 0 448 200">
  <use id="install" href="images/install_onedrive_alone.svg#EXPORT_image"></use>
  <use id="success" visibility="hidden"
      href="images/one_drive_success.svg#EXPORT_image"></use>
</svg>
<!-- autofocus for screen reader to read header on dialog open-->
<div id="dialog" role="dialog" autofocus tabindex="-1" aria-labelledby="title">
  <div class="body-wrapper">
    <div id="title">
      $i18n{connectToOneDriveTitle}
    </div>
    <div class="normal-text" id="body-text">
      $i18n{connectToOneDriveBodyText}
      <div id="error-message" hidden>
        <div class="icon"></div>
        <span class="error-text">
          $i18n{cantConnectOneDrive}
        </span>
      </div>
    </div>
    <div id="button-container">
      <cr-button class="cancel-button">$i18n{close}</cr-button>
      <cr-button class="action-button">$i18n{connectOneDrive}</cr-button>
    </div>
  </div>
</div>