aboutsummaryrefslogtreecommitdiff
path: root/client/css/post-list-view.styl
blob: f8da90a9ed4fbf103620c62adf15493fbfcb2439 (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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
@import colors

.post-list
    ul
        list-style-type: none
        margin: 0
        padding: 0
        display: flex
        align-content: flex-end
        flex-wrap: wrap
        margin: 0 -0.25em

        li
            position: relative
            flex-grow: 1
            margin: 0 0.25em 0.5em 0.25em
            display: inline-block
            text-align: left
            min-width: 10em
            width: 12vw
            &:not(.flexbox-dummy)
                min-height: 7.5em
                height: 9vw

            .thumbnail-wrapper
                display: inline-block
                width: 100%
                height: 100%
                line-height: 80%
                font-size: 80%
                color: white
                outline-offset: -3px
                box-shadow: 0 0 0 1px rgba(0,0,0,0.2)

                .type, .stats
                    position: absolute
                    bottom: 0.5em
                    padding: 0.33em 0.5em
                    background: rgba(0,0,0,0.5)
                    height: 1em

                .type
                    float: left
                    left: 0.5em
                    &[data-type=image]
                        display: none

                .stats
                    float: right
                    right: 0.5em
                    text-align: right
                    i
                        margin-right: 0.25em
                    .icon:not(:first-of-type)
                        margin-left: 1em

            .masstag
                position: absolute
                top: 0.5em
                left: 0.5em
                display: inline-block
                padding: 0.5em
                box-sizing: border-box
                border: 0
                &:after
                    display: inline-block
                    width: 1em
                    height: 1em
                    text-align: center
                    line-height: 1em
                    font-size: 20pt
                &.tagged
                    background: rgba(0, 230, 0, 0.7)
                    &:after
                        color: white
                        content: '-'
                &:not(.tagged)
                    background: rgba(255, 0, 0, 0.7)
                    &:after
                        color: white
                        content: '+'
                &[data-disabled]
                    background: rgba(200, 200, 200, 0.7)

            .thumbnail
                background-position: 50% 30%
                width: 100%
                height: 100%
                outline-offset: -3px

            &:hover
                background: $main-color
                .thumbnail
                    opacity: .9

            &:hover a, a:active, a:focus
                box-shadow: 0 0 0 1px $main-color
                .thumbnail
                    outline: 3px solid $main-color

.post-list-header
    white-space: nowrap
    text-align: left

    label
        display: none
    form
        width: auto
        margin-bottom: 0.75em
        *
            vertical-align: top
    input
        margin-bottom: 0.25em
        margin-right: 0.25em
    input[name=search-text]
        width: 25em
    input[name=masstag]
        width: 12em
    .masstag-hint, .open-masstag
        margin-right: 1em
    .append
        font-size: 0.95em
        color: $inactive-link-color
    .masstag
        &:not(.active)
            [type=text],
            .start-tagging,
            .stop-tagging
                display: none
            .masstag-hint
                display: none
        &.active
            .open-masstag
                display: none

    .safety
        margin-right: 0.25em
        &.safety-safe
            background-color: $safety-safe
            border-color: @background-color
            &.disabled
                background-color: alpha(@background-color, 0.15)
        &.safety-sketchy
            background-color: $safety-sketchy
            border-color: @background-color
            &.disabled
                background-color: alpha(@background-color, 0.15)
        &.safety-unsafe
            background-color: $safety-unsafe
            border-color: @background-color
            &.disabled
                background-color: alpha(@background-color, 0.15)

© 2015 - 2026 Jakob L. Kreuze