summaryrefslogtreecommitdiffstats
path: root/src/components/Details/Details.module.scss
blob: 32197f04b4bccf3246ab2c86fcf2e516b528c10a (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
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
.details {
  height: 100%;
  display: flex;
  flex-flow: column nowrap;
  align-items: stretch;
  overflow: hidden;
}

.header {
  flex-shrink: 0;
  flex-grow: 0;
}

.content {
  flex-grow: 1;
  flex-shrink: 1;
  overflow-y: auto;
}

.summary {
  font-size: 2em;
}

.tabs {
  display: flex;
  border-bottom: 1px solid black;

  &:last-child {
    flex-grow: 1;
  }
}

.tab {
  background-color: white;
  border: none;
  border-top: 1px solid black;
  border-right: 1px solid black;
  border-radius: 0;
  color: black;
  font-size: 1.2em;
  padding: 0.5em;

  &.selected {
    background-color: black;
    color: white;
  }
}

.emptySpace {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 1.2em;
  padding: 0.5em;
}

.resend {
  margin-left: 1em;
}

.headers {
  display: grid;
  grid-template-columns: auto 1fr;
  border: 1px solid black;
  margin: 1em;
  overflow-x: auto;

  h2 {
    grid-column: 1/ span 2;
    background-color: black;
    color: white;
    padding: 0.5em;
  }

  > div {
    line-break: auto;
    padding: 0.5em;

    &:nth-of-type(4n), &:nth-of-type(4n - 1) {
      background-color: lightgray;
    }
  }
}