summaryrefslogtreecommitdiff
path: root/lib/res/styles/partials/_base.scss
blob: b64c47501c0b59549d01111e62916eef9bf7c5d9 (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
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
//
// Set some more minimal defaults than the ones provided by Adwaita.
//

label, image {
  color: $foobar-color-foreground-primary;
  -gtk-icon-filter: none;
  font-weight: normal;
}

listview {
  background: transparent;

  & row {
    padding: 0;
  }

  & row:hover {
    background: $foobar-color-accent-quaternary;
  }

  & row:active,
  & row:active:hover,
  & row:selected,
  & row:selected:hover {
    background: $foobar-color-accent-tertiary;
  }

  & row:hover,
  & row:active,
  & row:focus,
  & row:selected {
    outline: none;
  }
}

separator {
  background: $foobar-color-border;
  min-width: $foobar-dim-border-light;
  min-width: $foobar-dim-border-light;
}

button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: $foobar-dim-radius-small;
  background: transparent;
  transition: background-color 0.1s;

  &:hover {
    background: $foobar-color-accent-quaternary;
  }

  &:active {
    background: $foobar-color-accent-tertiary;
  }
}

scale {
  &.horizontal {
    padding: 8px 2px;
  }

  &.vertical {
    padding: 2px 8px;
  }

  & trough {
    // XXX: Using a transparent color here causes glitches when draggin the slider to the left.
    background: mix($foobar-color-accent-primary, $foobar-color-background-secondary, 10%);
    border-color: mix($foobar-color-accent-primary, $foobar-color-background-secondary, 10%);
  }

  & highlight {
    background: $foobar-color-accent-primary;
    border-color: $foobar-color-accent-primary;
  }

  & slider {
    background: $foobar-color-accent-primary;
    border-color: $foobar-color-accent-primary;
    box-shadow: none;
  }
}