aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorboard/components/tf-dashboard-common/tf-dashboard-layout.html
blob: 89c51342fee021d672928b2446d585fb20c559b0 (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
<link rel="import" href="../../bower_components/polymer/polymer.html">
<link rel="import" href="scrollbar-style.html">
<link rel="import" href="tensorboard-color.html">
<!--
Generic layout for a dashboard.
-->
<dom-module id="tf-dashboard-layout">
  <template>
    <div id="sidebar">
      <content select=".sidebar"></content>
    </div>

    <div id="center" class="scrollbar">
      <content select=".center"></content>
    </div>
    <style include="scrollbar-style"></style>
    <style>
      #sidebar {
        width: inherit;
        height: 100%;
        background-color: var(--tb-grey-darker);
        background-image: linear-gradient(to right, var(--tb-grey-lighter), var(--tb-grey-lighter));
        overflow: ellipsis;
        padding-left: 10px;
        padding-right: 10px;
        flex-grow: 0;
        flex-shrink: 0;
      }

      #center {
        margin: 0 10px;
        height: 100%;
        overflow-y: scroll;
        padding-right: 12px;
        flex-grow: 1;
        flex-shrink: 1;
      }
      :host {
        display: flex;
        flex-direction: row;
        height: 100%;
      }
    </style>
  </template>
  <script>
    Polymer({
      is: "tf-dashboard-layout",
    });
  </script>
</dom-module>