summaryrefslogtreecommitdiff
path: root/Redcore-daylight/gtk-3.20/scss/widgets/_actionbar.scss
blob: 3c6aa02c5a108707b3cb0178358b54cba42ea873 (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
@import "button";
@import "toolbar";

/**************
 ! Action-bar *
***************/

@include exports("actionbar") {
    actionbar > revealer > box {
        padding: $spacing;
        border-top: 1px solid $borders_color;

        &:backdrop { border-color: $backdrop_borders_color; }
    }
}


/****************************
 ! Search and Location bars *
*****************************/

@include exports("searchbar") {
    searchbar,
    .location-bar {
        @include linear-gradient(shade($bg_color, .98));

        border-width: 0 0 1px;
        border-style: solid;
        border-color: border_normal($bg_color);
        color: $fg_color;
    }
}


/******************
 ! Action buttons *
*******************/

@include exports("actionbuttons") {
    $types: (
        suggested: $success_color,
        destructive: $error-color
    );

    @each $type, $color in $types {
        .#{$type}-action {
            @include button($color, $selected_fg_color);
        }
    }
}


/******************
 ! Selection mode *
*******************/

@include exports("selectionmode") {
    headerbar,
    .titlebar:not(headerbar) {
        &.selection-mode {
            @include toolbar($selected_bg_color, $selected_fg_color);

            button {
                @include button($selected_bg_color, $selected_fg_color);

                &.suggested-action { @extend .suggested-action; }
            }

            &:backdrop {
                background-color: $backdrop_selected_bg_color;
                background-image: none;
            }

            .selection-menu {
                &:backdrop, & {
                    color: shade($selected_bg_color, $contrast);
                    background-color: transparent;
                    background-image: none;
                    box-shadow: none;
                    border: 0;

                    &:hover { color: shade($selected_bg_color, ($contrast - .1)); }

                    &:active { color: shade($selected_bg_color, ($contrast - .05)); }

                    .arrow {
                        -gtk-icon-source: -gtk-icontheme('pan-down-symbolic');
                        color: transparentize($selected_fg_color, .5);
                        -gtk-icon-shadow: none;
                    }
                }
            }

            .dim-label {
                &, .selection-menu & { color: shade($selected_bg_color, ($contrast - .1)); }
            }
        }
    }
}