_listbox.scss 2.53 KB
Newer Older
Michael Herold's avatar
Michael Herold committed
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
/*
Copyright (C) 2015 Michael Herold <quabla@hemio.de>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
/* 
    Created on : Jan 20, 2015, 1:25:13 AM
    Author     : Michael Herold <quabla@hemio.de>
*/

.listbox_frame {
    margin: 1em;
    border: 1px $control-border-color solid;
    padding: 0;
Michael Herold's avatar
Michael Herold committed
26
    background-color: $list-background-color;
Michael Herold's avatar
Michael Herold committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
}

ul.listbox {
    @extend .listbox_frame
}

.listbox_entry {
    display: block;
    border-bottom: 1px solid lighten($control-border-color, 20%);
    min-height: $list-entry-height;
    display: flex;
    align-items: center;
    margin: 0;
}

42
ul.listbox > li {
Michael Herold's avatar
Michael Herold committed
43
44
45
46
47
48
49
    @extend .listbox_entry;
}

ul.listbox li:last-child {
    border-bottom: none;
}

50
.listbox_content {
Michael Herold's avatar
Michael Herold committed
51
    display: block;
52
    padding: 0 1em;
Michael Herold's avatar
Michael Herold committed
53
54
55
56
57
    min-height: $list-entry-height;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
58
59
60
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    box-sizing: border-box;
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
    flex-wrap: wrap;
    justify-content: flex-end;
}

.listbox_content > :nth-child(1) {
    margin-right: auto;
}

.listbox_content button {
    margin-left: 0.75em;
    font-size: 0.95em;
    min-width: 6em;
}

.listbox_content ul {
    flex-basis: 100%;
77
78
79
80
81
82
}

.listbox_link {
    @extend .listbox_content;
    text-decoration: none;
    color: inherit;
Michael Herold's avatar
Michael Herold committed
83
84
85
86
87

    transition-property: background-color;
    transition-duration: 400ms;
}

Michael Herold's avatar
Michael Herold committed
88
.listbox_link:hover, .listbox_link:focus {
Michael Herold's avatar
Michael Herold committed
89
    background-color: darken($list-background-color, 9%);
Michael Herold's avatar
Michael Herold committed
90
91
}

92
.listbox .selected {
Michael Herold's avatar
Michael Herold committed
93
    background-color: $sidebar-selected-color;
94
95
}

96
.listbox .listbox_entry > a {
Michael Herold's avatar
Michael Herold committed
97
98
    @extend .listbox_link;
}
99

100
.listbox ul {
101
102
103
104
105
    font-size: 0.9em;
    padding-left: 2em;
    list-style-type: square;
    font-weight: normal;
}
106

107
.listbox .status {
108
    font-size: 0.9em;
109
110
111
112
113
114
115
    color: gray;
    padding-left: 0.5em;
    white-space: nowrap;
}

.listbox .progress {
    padding-right: 2em;
116
117
118
119
120
    background-image: url('progress.gif');
    background-position: right;
    background-size: contain;
    background-repeat: no-repeat;
}