aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/panels/common.scss
blob: ea8da941c3f7fbcb93918d1bc10f39f79c5894c7 (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 {
  background-color: $color-primary-3;
  padding: 10px 10px 0;
  height: 100%;

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

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

      .api-request {
        flex: 1;
      }
    }

    .section-content {
      padding: 10px;
    }

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

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

    table {
      margin-bottom: 0;

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

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

      .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;
    padding: 10px;
    background-color: $color-primary-0;
    justify-content: flex-end;

    .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;
    }
  }
}