summaryrefslogtreecommitdiffstats
path: root/chromium/chrome/browser/resources/extensions/drop_overlay.html
blob: b3209817520c72d288720130e4e974cabc65b4b2 (plain)
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
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/hidden_style_css.html">
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/cr_elements/shared_vars_css.html">
<link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/html/cr/ui/drag_wrapper.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="drag_and_drop_handler.html">

<dom-module id="extensions-drop-overlay">
  <template>
    <style include="cr-hidden-style">
      :host {
        align-items: center;
        background-color: rgba(241, 241, 241, .9);
        color: var(--cr-secondary-text-color);
        display: flex;
        height: 100%;
        justify-content: center;
        position: absolute;
        width: 100%;
        z-index: 10;
      }

      @media (prefers-color-scheme: dark) {
        :host {
          /* TODO(dbeam): share with cr-dialog dialog::backdrop? */
          background-color: rgba(0, 0, 0, .6);
        }
      }

      #container {
        align-items: center;
        display: flex;
        flex-direction: column;
      }

      iron-icon {
        height: 64px;
        margin-bottom: 16px;
        width: 64px;
      }

      #text {
        color: #6e6e6e;
        font-size: 123.1%;
        font-weight: 500;
      }
    </style>
    <div id="container">
      <iron-icon icon="cr:extension"></iron-icon>
      <div id="text">$i18n{dropToInstall}</div>
    </div>
  </template>
  <script src="drop_overlay.js"></script>
</dom-module>