summaryrefslogtreecommitdiff
path: root/client/simple/src/less/mixins.less
blob: b2e0f6b1620f92ac3f712650339b442b35b83111 (plain)
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
// SPDX-License-Identifier: AGPL-3.0-or-later

// Mixins
.text-size-adjust (@property: 100%) {
  text-size-adjust: @property;
}

.rounded-corners (@radius: 10px) {
  border-radius: @radius;
}

.rounded-right-corners (@radius: 0 10px 10px 0) {
  border-radius: @radius;
}

.rounded-corners-tiny (@radius: 5px) {
  border-radius: @radius;
}

// disable user selection
.disable-user-select () {
  user-select: none;
}

.show-content-button() {
  padding: 5px 10px;
  .rounded-corners-tiny;
  background: var(--color-show-btn-background);
  color: var(--color-show-btn-font);
  cursor: pointer;

  &:hover {
    background: var(--color-btn-background);
    color: var(--color-btn-font);
  }
}