aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/panels/common.scss
blob: 121a917931ac3f402afe17953866911ee7ed7e29 (plain) (blame)
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
@import "../../colors.scss";

.pane-container {
  height: 100%;
  padding: 10px 10px 0;
  background-color: $color-primary-3;

  .pane-section {
    margin-bottom: 10px;
    background-color: $color-primary-0;

    .section-header {
      font-size: 0.9em;
      font-weight: 500;
      display: flex;
      padding: 5px 10px;
      background-color: $color-primary-2;

      .api-request {
        flex: 1;
      }
    }

    .section-content {
      padding: 10px;
    }

    .section-table {
      position: relative;
      overflow-y: scroll;

      .table-error {
        font-size: 0.8em;
        margin-left: 10px;
        color: $color-secondary-0;
      }
    }

    table {
      margin-bottom: 0;

      tbody tr {
        border-top: 3px solid $color-primary-0;
        border-bottom: 3px solid $color-primary-0;
        background-color: $color-primary-3;
      }

      th {
        font-size: 0.8em;
        position: sticky;
        top: 0;
        padding: 2px 5px;
        border: none;
        background-color: $color-primary-2;
      }

      .row-small {
        font-size: 0.9em;
      }

      .row-clickable {
        cursor: pointer;

        &:hover {
          background-color: $color-primary-0;
        }
      }

      .row-selected {
        background-color: $color-primary-0;
      }
    }
  }

  .section-footer {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    background-color: $color-primary-0;

    .button-field {
      margin-left: 10px;
    }
  }

  .double-pane-container {
    display: flex;

    .pane-section {
      flex: 1;
    }

    .pane-section:nth-child(1) {
      margin-right: 5px;
    }

    .pane-section:nth-child(2) {
      margin-left: 5px;
    }
  }
}