plugin-list.component.scss 1.13 KB
Newer Older
1
2
3
@import '_variables';
@import '_mixins';

4
5
.plugin {
  margin: 15px 0;
6
  background-color: pvar(--submenuBackgroundColor);
7
8
}

9
.first-row {
10
11
  display: flex;
  align-items: center;
12
13
14
  margin-bottom: 10px;

  .plugin-name {
Chocobozzz's avatar
Chocobozzz committed
15
16
    @include margin-right(10px);

17
18
19
20
21
22
23
    font-size: 16px;
    font-weight: $font-semibold;
  }

  .plugin-version {
    opacity: 0.6;
  }
24
25

  .plugin-icon {
Chocobozzz's avatar
Chocobozzz committed
26
    @include margin-left(10px);
Chocobozzz's avatar
Chocobozzz committed
27

28
    my-global-icon {
29
      @include apply-svg-color(pvar(--greyForegroundColor));
Chocobozzz's avatar
Chocobozzz committed
30

Chocobozzz's avatar
Chocobozzz committed
31
      &[iconName=npm] {
32
        @include fill-svg-color(pvar(--greyForegroundColor));
33
34
35
36
37
      }
    }
  }

  .buttons {
Chocobozzz's avatar
Chocobozzz committed
38
    @include margin-left(auto);
39
    width: max-content;
Chocobozzz's avatar
Chocobozzz committed
40

41
    > *:not(:last-child) {
Chocobozzz's avatar
Chocobozzz committed
42
      @include margin-right(10px);
43
44
    }
  }
45
46
47
}

.second-row {
48
49
  display: grid;
  grid-template-columns: 1fr auto;
50
51
52
53
  align-items: center;
  justify-content: space-between;

  .description {
Chocobozzz's avatar
Chocobozzz committed
54
    opacity: 0.8;
55
56
57
58
59
60
61
  }
}

.action-button {
  @include peertube-button-link;
  @include button-with-icon(21px, 0, -2px);
}
Chocobozzz's avatar
Chocobozzz committed
62
63
64
65
66
67
68
69
70
71
72

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

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