aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/class-helpers/_common.scss
blob: 0a81a415d564340c4ed12547f9337a8e9c51a3e1 (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
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
@use '_badges' as *;
@use '_icons' as *;
@use '_variables' as *;
@use '_mixins' as *;

.link-orange {
  color: pvar(--mainForegroundColor);
  font-weight: $font-semibold;
  border-bottom: 0.18em solid pvar(--mainColor);
  display: inline-block;
  line-height: 1.1;

  &:hover {
    color: pvar(--mainForegroundColor);
    opacity: 0.8;
  }
}

.underline-orange {
  display: inline-block;
  border-bottom: 0.19em solid pvar(--mainColor);
}

// ---------------------------------------------------------------------------

.muted {
  @include muted;
}

// ---------------------------------------------------------------------------

.pt-badge {
  @include peertube-badge;
}

// ---------------------------------------------------------------------------

.no-results {
  height: 40vh;
  max-height: 500px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: $font-semibold;
}

// ---------------------------------------------------------------------------

.chevron-down {
  @include chevron-down-default;
}

.chevron-up {
  @include chevron-up-default;
}

.chevron-right {
  @include chevron-right-default;
}

.chevron-left {
  @include chevron-left-default;
}

// ---------------------------------------------------------------------------

.callout {
  padding: 1.25rem;
  border: 1px solid #eee;
  border-radius: 0.25rem;
  position: relative;

  >label {
    position: relative;
    top: -5px;
    left: -10px;
    color: #6c757d !important;
  }

  &:not(.callout-light) {
    border-left-width: 0.25rem;
  }

  &.callout-orange {
    border-color: pvar(--mainColorLightest);

    &:not(.callout-light) {
      border-left-color: pvar(--mainColor);
    }
  }
}

// ---------------------------------------------------------------------------

.anchor {
  position: relative;
  top: #{- ($header-height + 20px)};
}

.offset-content {

  // if sub-menu fixed
  .anchor {
    top: #{- ($header-height + $sub-menu-height + 20px)};
  }
}

// ---------------------------------------------------------------------------

.alert {
  &.pt-alert-primary {
    background-color: pvar(--mainColorVeryLight);
    border: 2px solid pvar(--mainColorLightest);
  }
}

// ---------------------------------------------------------------------------

.chip {
  @include chip;
}