logs.component.scss 1.56 KB
Newer Older
Chocobozzz's avatar
Chocobozzz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
@import '_variables';
@import '_mixins';

.logs {
  font-family: monospace;
  font-size: 13px;
  max-height: 500px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.03);
  padding: 20px;

  .log-row {
    margin-top: 1px;
14
    word-break: break-word;
Chocobozzz's avatar
Chocobozzz committed
15
16
17
18
19
20
21

    &:hover {
      background: rgba(0, 0, 0, 0.07);
    }
  }

  .log-level {
Chocobozzz's avatar
Chocobozzz committed
22
23
    @include margin-right(5px);

Chocobozzz's avatar
Chocobozzz committed
24
25
26
    font-weight: $font-semibold;
  }

Chocobozzz's avatar
Chocobozzz committed
27
28
29
30
  .log-by {
    margin: 0 5px;
  }

Chocobozzz's avatar
Chocobozzz committed
31
  .warn {
32
    color: pvar(--mainColor);
Chocobozzz's avatar
Chocobozzz committed
33
34
35
36
37
  }

  .error {
    color: $red;
  }
Chocobozzz's avatar
Chocobozzz committed
38
39
40
41
42
43

  pre {
    margin-bottom: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
Chocobozzz's avatar
Chocobozzz committed
44
45
46
47
48
49
50
51
52
53
54
55
}

.header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;

  .peertube-select-container {
    @include peertube-select-container(150px);
  }

  my-button,
56
57
  .peertube-select-container,
  ng-select {
Chocobozzz's avatar
Chocobozzz committed
58
    @include margin-left(10px);
Chocobozzz's avatar
Chocobozzz committed
59
60
61
  }
}

62
63
64
65
66
@media screen and (max-width: $small-view) {
  .header {
    flex-direction: column;

    .peertube-select-container,
67
    ng-select,
68
    my-button {
Chocobozzz's avatar
Chocobozzz committed
69
70
      @include margin-left(0 !important);

71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
      width: 100% !important;
      margin-bottom: 10px !important;
    }

    my-button {
      text-align: center;
    }
  }
}

@media screen and (max-width: #{$small-view + $menu-width}) {
  :host-context(.main-col:not(.expanded)) {
    .header {
      flex-direction: column;

      .peertube-select-container,
87
      ng-select,
88
      my-button {
Chocobozzz's avatar
Chocobozzz committed
89
90
        @include margin-left(0 !important);

91
92
93
94
95
96
97
98
99
100
        width: 100% !important;
        margin-bottom: 10px !important;
      }

      my-button {
        text-align: center;
      }
    }
  }
}