summaryrefslogtreecommitdiffhomepage
path: root/app/packages/web/src/components/share.module.css
blob: 13c73607a218b9a1e42db7aea7685b17b10d34da (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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
.root {
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  line-height: 1;
}

[data-element-label] {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sl-color-text-dimmed);
}

.header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  [data-section="title"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  [data-section="row"] {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
  }

  h1 {
    font-size: 1.75rem;
    font-weight: 500;
  }
  p {
    display: flex;
    gap: 0.375rem;
    font-size: 0.75rem;

    span:first-child {
      color: var(--sl-color-gray-5);

      &[data-status="connected"] { color: var(--sl-color-green); }
      &[data-status="connecting"] { color: var(--sl-color-orange); }
      &[data-status="disconnected"] { color: var(--sl-color-gray-5); }
      &[data-status="reconnecting"] { color: var(--sl-color-orange); }
      &[data-status="error"] { color: var(--sl-color-red); }
    }
  }

  [data-section="stats"] {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;

    li {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.875rem;

      span:last-child {
        &[data-placeholder] {
          color: var(--sl-color-text-dimmed);
        }
      }
    }
  }

  [data-section="date"] {
    span {
      font-size: 0.875rem;
      color: var(--sl-color-text);

      &[data-placeholder] {
        color: var(--sl-color-text-dimmed);
      }
    }
  }
}

.parts {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;

  [data-section="part"] {
    display: flex;
    gap: 0.5rem;
  }

  [data-section="decoration"] {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: center;
    justify-content: flex-start;

    div:first-child {
      flex: 0 0 auto;
      width: 18px;
      svg {
        color: var(--sl-color-text-secondary);
        display: block;
      }
    }

    div:last-child {
      width: 3px;
      height: 100%;
      border-radius: 1px;
      background-color: var(--sl-color-hairline);
    }
  }

  [data-section="content"] {
    flex: 1 1 auto;
    padding: 0.125rem 0 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    span:last-child {
      font-size: 0.75rem;
      color: var(--sl-color-text-dimmed);
    }
  }
}

[data-element-message-text] {
  pre {
    font-size: 0.875rem;
    color: var(--sl-color-text);
    background-color: var(--sl-color-bg-nav);
    padding: 0.5rem;
    border-radius: 0.5rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
}