aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/plugins/shared/plugin-list.component.scss
blob: 0ca49aef486ceef16aaab15fb685a65123e40107 (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
69
70
71
72
@import '_variables';
@import '_mixins';

.plugin {
  margin: 15px 0;
  background-color: pvar(--submenuBackgroundColor);
}

.first-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;

  .plugin-name {
    @include margin-right(10px);

    font-size: 16px;
    font-weight: $font-semibold;
  }

  .plugin-version {
    opacity: 0.6;
  }

  .plugin-icon {
    @include margin-left(10px);

    my-global-icon {
      @include apply-svg-color(pvar(--greyForegroundColor));

      &[iconName=npm] {
        @include fill-svg-color(pvar(--greyForegroundColor));
      }
    }
  }

  .buttons {
    @include margin-left(auto);
    width: max-content;

    > *:not(:last-child) {
      @include margin-right(10px);
    }
  }
}

.second-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: space-between;

  .description {
    opacity: 0.8;
  }
}

.action-button {
  @include peertube-button-link;
  @include button-with-icon(21px, 0, -2px);
}

@media screen and (max-width: $small-view) {
  .first-row {
    flex-wrap: wrap;

    .buttons {
      flex-basis: 100%;
      margin-top: 10px;
    }
  }
}