aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-abuse-list/abuse-message-modal.component.scss
blob: 3b43a4a4dd824a58c068209b0e1724e2887ffcb7 (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
@use '_variables' as *;
@use '_mixins' as *;

form {
  margin: 20px 20px 0 0;

  .form-group:first-child {
    // Keep place to display error message without modifying the height
    min-height: 125px;
  }
}

textarea {
  @include peertube-textarea(100%, 70px);

  margin-top: 20px;
}

.messages {
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
  max-height: 50vh;
}

.no-messages {
  display: flex;
  justify-content: center;
}

.message-block {
  margin: 0 5px 10px 0;
  max-width: 60%;

  .author {
    color: var(--greyForegroundColor);
    font-size: 14px;
    padding: 0 0 3px 10px;
  }

  .bubble {
    border-radius: 10px;
    padding: 5px 10px;
    color: var(--mainForegroundColor);
    background-color: var(--greyBackgroundColor);

    .date {
      font-size: 13px;
      color: var(--greyForegroundColor);
    }
  }

  &.by-me {

    .bubble {
      color: var(--mainBackgroundColor);
      background-color: var(--mainColorLighter);

      .date {
        color: var(--mainBackgroundColor);
      }
    }
  }

  &.by-moderator {
    align-self: flex-end;
  }
}