summaryrefslogtreecommitdiff
path: root/Redcore-daylight/gtk-3.20/scss/apps/_unity-greeter.scss
blob: 70f5c3a4b572f10587a2b4c980683fb674144e7f (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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/***********************
 ! Unity Greeter *
 ***********************/

@include exports("unity-greeter") {
    @keyframes dashentry_spinner {
        to { -gtk-icon-transform: rotate(1turn); }
    }

    %lightdm-button {
        background-image: none;
        background-color: fade-out($black, .7);
        border-color: fade-out($white, .1);
        border-radius: ($roundness * 2) + 1px;
        padding: $spacing;
        color: $white;
    }

    .lightdm {
        &.menu {
            background-image: none;
            background-color: fade-out($black, .4);
            border-color: fade-out($white, .8);
            border-radius: $roundness * 2;
            padding: 1px;

            color: $white;

            .menuitem { *, &.check:active, &.radio:active { color: $white; } }
        }

        &.menubar { *, &.menuitem { padding: $spacing - 3px; } }

        &.option-button {
            padding: $spacing;
            background: none;
            border: 0;
        }

        &.toggle-button {
            background: none;
            border-width: 0;

            &.selected {
                background-color: fade-out($black, .7);
                border-color: fade-out($white, .7);
                border-width: 1px;

                &:hover { background-color: fade-out($white, .7); }
            }
        }

        &.button {
            @extend %lightdm-button;

            &:hover {
                background-color: fade-out($white, .7);
                border-color: fade-out($white, .4);
                text-shadow: none;
            }
        }

        &.entry, &.button:active, &.button:active:focus, &.button:focus {
            background-image: none;
            background-color: fade-out($black, .7);
            border-color: fade-out($white, .4);
            border-radius: ($roundness * 2) + 1px;
            padding: $spacing + 2px;
            color: $white;
            text-shadow: none;
        }

        &.entry {
            &:hover, &:active, &:active:focus {
                background-image: none;
                border-image: none;
            }

            &:active {
                -gtk-icon-source: -gtk-icontheme("process-working-symbolic");
                animation: dashentry_spinner 1s infinite linear;
            }

            &:focus {
                border-color: fade-out($white, .4);
                border-width: 1px;
                border-style: solid;
                color: $white;
            }

            &:selected { background-color: fade-out($white, .8); }
        }
    }

    .lightdm-combo {
        &.combobox-entry .button, .cell, .button, .entry { @extend %lightdm-button; }

        &.menu {
            background-color: shade($dark_bg_color, 1.08);
            border-radius: 0;
            padding: 0;
            color: $white;
        }
    }
}