summaryrefslogtreecommitdiffstats
path: root/templates/55/ad-hominem/css/_search.less
blob: fbd8291b30a58c46e25a06ca1dcc74d1b9687983 (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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
/**
 * This file provides styles for the search results page (?do=search)
 * and the AJAX search popup.
 */

/* general
********************************************************************/

/* search hit in normal text */
.dokuwiki .search_hit {
    color: @ini_text;
    background-color: __highlight__;
}

/* "nothing found" at search + media */
.dokuwiki div.nothing {
    margin-bottom: 1.4em;
}

/* search results page
********************************************************************/

/*____________ advanced search form ____________*/
.dokuwiki .search-results-form fieldset.search-form {
    width: 100%;
    margin: 1em 0;

    input[name="q"] {
        width: 50%;
    }

    button.toggleAssistant {
        float: right;
    }

    .advancedOptions {
        padding: 1em 0;

        > div {
            display: inline-block;
            position: relative;
            margin: 0 0.5em;
        }

        div.toggle {
            // default closed toggle state
            div.current {
                cursor: pointer;
                max-width: 10em;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;

                &::after {
                    content: '▼';
                    font-size: smaller;
                    color: @ini_text_alt;
                }
            }
            div.changed {
                font-weight: bold;
            }
            ul {
                display: none;
                position: absolute;
                border: 1px solid @ini_border;
                background-color: @ini_background;
                padding: 0.25em 0.5em;
                text-align: left;
                min-width: 10em;
                max-width: 15em;
                max-height: 50vh;
                overflow: auto;
                z-index: 100;
                li {
                    margin: 0.25em 0;
                    list-style: none;

                    a {
                        display: block;
                    }
                }
            }

            // open toggle state
            &.open {
                div.current::after {
                    content: '▲';
                }

                ul {
                    display: block;
                }
            }
        }
    }
}

[dir=rtl] .search-results-form fieldset.search-form .advancedOptions {
    div.toggle ul {
        text-align: right;
    }
}

/*____________ matching pagenames ____________*/

.dokuwiki div.search_quickresult {
    margin-bottom: 1.4em;

    ul {
        padding: 0;

        li {
            float: left;
            width: 12em;
            margin: 0 1.5em;
        }
    }
}

[dir=rtl] .dokuwiki div.search_quickresult ul li {
    float: right;
}

/*____________ search results ____________*/

.dokuwiki dl.search_results {
    margin-bottom: 1.2em;

    /* search heading */
    dt {
        font-weight: normal;
        margin-bottom: .2em;
    }

    /* last modified line */
    dd.meta {
        margin: 0 0 .2em 0;
    }

    /* search snippet */
    dd.snippet {
        color: @ini_text_alt;
        background-color: inherit;
        margin: 0 0 1.2em 0;

        /* search hit in search results */
        strong.search_hit {
            font-weight: normal;
            /* color is set in general */
        }

        /* ellipsis separating snippets */
        .search_sep {
            color: @ini_text;
            background-color: inherit;
        }
    }
}

/* AJAX quicksearch popup
********************************************************************/

.dokuwiki form.search {
    div.no {
        position: relative;
    }

    /* .JSpopup */
    div.ajax_qsearch {
        position: absolute;
        top: 0;
        left: -13.5em; /* -( width of #qsearch__in + padding of .ajax_qsearch + a bit more ) */
        width: 12em;
        padding: 0.5em;
        font-size: .9em;
        z-index: 20;
        text-align: left;
        display: none;

        strong {
            display: block;
            margin-bottom: .3em;
        }

        ul {
            margin: 0 !important;
            padding: 0 !important;

            li {
                margin: 0;
                padding: 0;
                display: block !important;
            }
        }
    }
}

[dir=rtl] .dokuwiki form.search div.ajax_qsearch {
    left: auto;
    /*right: -13.5em;*/
    text-align: right;
}