blob: 2fbae6919196f347a5d7a779cb0064be882b96b3 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Akron7636edf2025-11-04 12:44:53 +01002@use "../util";
3@use "../base/colors";
4@use "../base/icons";
5@use "../base/lengths";
Nils Diewalda944fab2015-04-08 21:02:04 +00006
Akron7e5afce2020-08-25 15:50:19 +02007/**
8 * Rules applicable for the result panel
9 */
10
11// TODO: This should be moved to panel/result
Akronb917a7c2015-07-02 11:02:42 +020012
Akron179c8ac2015-06-30 19:30:50 +020013#resultinfo {
Akron7e5afce2020-08-25 15:50:19 +020014 clear: both;
15 text-align: right;
Akron656c5d92015-11-13 21:17:03 +010016 line-height: 1.5em;
Akron7e5afce2020-08-25 15:50:19 +020017 min-height: 1.5em;
18 margin-top: .4em;
19 font-size: 10pt;
20
Nils Diewalda944fab2015-04-08 21:02:04 +000021 p.found {
Akron7e5afce2020-08-25 15:50:19 +020022 display: inline;
23 padding: 0;
24 margin: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000025 text-align: right;
26 }
Akron7e5afce2020-08-25 15:50:19 +020027
28 /*
29 * TODO:
30 * This rule should not be dependent on
31 * whether something is found or not,
32 * but whether #search contains a result,
33 * e.g. when a result view is open in the
34 * result panel. This should probably be
35 * indicated by a class on the button group
36 * rather than a class on the resultinfo.
37 */
38 &.found {
39 position: relative;
40 margin-bottom: 0px;
41
42 .button-group > span {
43 margin-bottom: 0;
44 border-bottom-width: 0;
45 box-shadow: none;
46
47 &:first-child {
48 border-bottom-left-radius: 0;
49 }
50
51 &:last-child {
52 border-bottom-right-radius: 0;
53 }
54 }
55 }
Akronbec4a6a2018-07-10 14:45:15 +020056}
Akronb917a7c2015-07-02 11:02:42 +020057
Akron7e5afce2020-08-25 15:50:19 +020058
Akron2f979122018-07-25 17:00:23 +020059div.result.panel .view {
Akron7636edf2025-11-04 12:44:53 +010060 border: 1px solid colors.$kwic-border;
61 background-color: colors.$dark-orange;
Akron2f979122018-07-25 17:00:23 +020062}
63
Akron7e5afce2020-08-25 15:50:19 +020064
Akronbec4a6a2018-07-10 14:45:15 +020065// Specify result button group layout
Akron4d926f12018-07-16 15:30:25 +020066.result.button-group.button-panel {
Akron7e5afce2020-08-25 15:50:19 +020067 display: inline-block;
68 width: auto;
Akronbec4a6a2018-07-10 14:45:15 +020069 vertical-align: bottom;
Akron74883812020-09-14 19:04:53 +020070 line-height: 1.5em;
Akronbec4a6a2018-07-10 14:45:15 +020071
72 > span {
Akron74883812020-09-14 19:04:53 +020073 line-height: 1.5em;
Akron7636edf2025-11-04 12:44:53 +010074 border-width: lengths.$result-border-size 0;
Akron7e5afce2020-08-25 15:50:19 +020075
Akronbec4a6a2018-07-10 14:45:15 +020076 &:first-child {
Akron7636edf2025-11-04 12:44:53 +010077 border-left-width: lengths.$result-border-size;
Akronb917a7c2015-07-02 11:02:42 +020078 }
Akron7e5afce2020-08-25 15:50:19 +020079
Akronbec4a6a2018-07-10 14:45:15 +020080 &:last-child {
Akron7636edf2025-11-04 12:44:53 +010081 border-right-width: lengths.$result-border-size;
Akron9a5b1e12016-12-06 18:18:23 +010082 }
Akronbec4a6a2018-07-10 14:45:15 +020083 }
Nils Diewalda944fab2015-04-08 21:02:04 +000084}
85
Akronbec4a6a2018-07-10 14:45:15 +020086
Nils Diewalda944fab2015-04-08 21:02:04 +000087#total-results {
Akron7636edf2025-11-04 12:44:53 +010088 color: colors.$light-green;
Nils Diewalda944fab2015-04-08 21:02:04 +000089 font-weight: bold;
90}
Akron656c5d92015-11-13 21:17:03 +010091
Akron7e5afce2020-08-25 15:50:19 +020092
Akron8ea84292018-10-24 13:41:52 +020093.no-results {
Akron7e5afce2020-08-25 15:50:19 +020094 margin: 0 auto;
Nils Diewalda898dac2015-05-06 21:04:16 +000095 text-align: center;
96 code {
Nils Diewalda898dac2015-05-06 21:04:16 +000097 font-weight: bold;
98 }
99}
Akronb917a7c2015-07-02 11:02:42 +0200100
Akron7e5afce2020-08-25 15:50:19 +0200101
102// Define icons for result buttons
103.button-icon {
hebasta40a85cf2020-07-15 18:10:08 +0200104
105 // TODO:
106 // Add icon via data-icon
Akron7e5afce2020-08-25 15:50:19 +0200107 &.align.left::after {
Akron7636edf2025-11-04 12:44:53 +0100108 content: icons.$fa-left-align;
Akron7e5afce2020-08-25 15:50:19 +0200109 }
110 &.align.right::after {
Akron7636edf2025-11-04 12:44:53 +0100111 content: icons.$fa-right-align;
Akron7e5afce2020-08-25 15:50:19 +0200112 }
113 &.align.center::after {
Akron7636edf2025-11-04 12:44:53 +0100114 content: icons.$fa-center-align;
Akron7e5afce2020-08-25 15:50:19 +0200115 }
116 &.show-kq::after {
Akron7636edf2025-11-04 12:44:53 +0100117 content: icons.$fa-code;
Akron7e5afce2020-08-25 15:50:19 +0200118 }
119}