summaryrefslogtreecommitdiffstats
path: root/public/css/widget/object-meta-info.less
blob: 82ad044d839e44041be42e3a11983f8973d22fd7 (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
85
86
87
88
89
90
91
92
93
94
95
// Style

.object-meta-info {
  .vertical-key-value .value {
    font-weight: normal;
  }

  .vertical-key-value:first-child {
    text-align: left;
  }

  .vertical-key-value:last-child {
    text-align: right;
  }
}

.object-meta-info-control {
  .link-button();

  .rounded-corners(0 0 .5em .5em);
  border: 1px solid;
  border-color: @gray-lighter;
  border-top-width: 0;
  background: @body-bg-color;
}

// Layout

.object-meta-info {
  display: flex;
  justify-content: space-between;

  .horizontal-key-value {
    padding: 0;

    .key {
      width: 9em;
    }
  }

  .vertical-key-value {
    &:first-child {
      .text-ellipsis();
      margin-right: 1em;
    }

    &:last-child {
      white-space: nowrap;
      margin-left: 1em;
    }
  }

  .horizontal-key-value .value,
  .horizontal-key-value .key,
  .vertical-key-value .value,
  .vertical-key-value .key {
    font-size: 16/18em;
    line-height: 18/16; // compensate smaller font-size (1/font-size)
  }
}

.object-meta-info-control {
  position: absolute;
  right: 2.25em;
  bottom: -2.5em; // height + margin-bottom
  height: 2em;
  padding: .25em;

  .collapse-icon,
  .expand-icon {
    font-size: 1.2em;

    &:before {
      margin-right: 0;
    }
  }

  .collapse-icon {
    display: block;
  }

  .expand-icon {
    display: none;
  }
}

.collapsed + .object-meta-info-control {
  .collapse-icon {
    display: none;
  }

  .expand-icon {
    display: block;
  }
}