summaryrefslogtreecommitdiff
path: root/Redcore-nighttime/gtk-3.0/scss/widgets/_actionbar.scss
blob: 749f5498cd85829e4cb9ec55d3ddeb52f4c1c1a3 (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
106
@import "button";
@import "toolbar";

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

@include exports("actionbar") {
    .action-bar {
        @include linear-gradient($bg_color);

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

        .button {
            &.text-button { padding: $spacing - 1px; }

            &.image-button { padding: $spacing + 1px; }
        }

        .title {
            font: bold;
            padding: 0 ($spacing * 2);
        }

        .subtitle {
            font: smaller;
            padding: 0 ($spacing * 2);
        }
    }
}


/***************
 ! Search bars *
****************/

@include exports("searchbar") {
    .search-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;

        .button.close-button { padding: $spacing; }
    }
}


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

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

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


/******************
* selection mode *
******************/

@include exports("selectionmode") {
    .selection-mode {
        &.header-bar, &.toolbar {
            @include toolbar($selected_bg_color, $selected_fg_color);

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

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

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

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

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

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

        &.toolbar { padding: $spacing; }
    }
}