File: CheckButton.scss

package info (click to toggle)
granite-7 7.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,876 kB
  • sloc: xml: 86; makefile: 9
file content (41 lines) | stat: -rw-r--r-- 807 bytes parent folder | download
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
checkbutton {
    border-spacing: $button-spacing;

    check,
    radio {
        @include control;
        -gtk-icon-size: rem(16px);
        min-height: 1rem;
        min-width: 1rem;

        &:hover {
            filter: brightness(105%);
        }

        &:active {
            @include control-active;
            filter: brightness(95%);
        }

        &:checked {
            -gtk-icon-source: -gtk-icontheme("check-checked-symbolic");
            @include control-checked;
        }

        &:indeterminate {
            -gtk-icon-source: -gtk-icontheme("check-indeterminate-symbolic");
        }

        &:disabled {
            @include control-disabled;
        }
    }

    check {
        border-radius: rem($window_radius / 3);
    }

    radio {
        border-radius: 50%;
    }
}