blob: 5556239f55dc8ddc566af59c86c7aacbdf665ce2 [file] [log] [blame]
Nils Diewalda944fab2015-04-08 21:02:04 +00001@charset "utf-8";
Nils Diewaldab4d3ca2015-04-17 01:48:43 +00002@import "../util";
Nils Diewalda944fab2015-04-08 21:02:04 +00003
Akron7e5afce2020-08-25 15:50:19 +02004/**
5 * Rules applicable for the result panel
6 */
7
8// TODO: This should be moved to panel/result
Akronb917a7c2015-07-02 11:02:42 +02009
Akron179c8ac2015-06-30 19:30:50 +020010#resultinfo {
Akron7e5afce2020-08-25 15:50:19 +020011 clear: both;
12 text-align: right;
Akron656c5d92015-11-13 21:17:03 +010013 line-height: 1.5em;
Akron7e5afce2020-08-25 15:50:19 +020014 min-height: 1.5em;
15 margin-top: .4em;
16 font-size: 10pt;
17
Nils Diewalda944fab2015-04-08 21:02:04 +000018 p.found {
Akron7e5afce2020-08-25 15:50:19 +020019 display: inline;
20 padding: 0;
21 margin: 0;
Nils Diewalda944fab2015-04-08 21:02:04 +000022 text-align: right;
23 }
Akron7e5afce2020-08-25 15:50:19 +020024
25 /*
26 * TODO:
27 * This rule should not be dependent on
28 * whether something is found or not,
29 * but whether #search contains a result,
30 * e.g. when a result view is open in the
31 * result panel. This should probably be
32 * indicated by a class on the button group
33 * rather than a class on the resultinfo.
34 */
35 &.found {
36 position: relative;
37 margin-bottom: 0px;
38
39 .button-group > span {
40 margin-bottom: 0;
41 border-bottom-width: 0;
42 box-shadow: none;
43
44 &:first-child {
45 border-bottom-left-radius: 0;
46 }
47
48 &:last-child {
49 border-bottom-right-radius: 0;
50 }
51 }
52 }
Akronbec4a6a2018-07-10 14:45:15 +020053}
Akronb917a7c2015-07-02 11:02:42 +020054
Akron7e5afce2020-08-25 15:50:19 +020055
Akron2f979122018-07-25 17:00:23 +020056div.result.panel .view {
Akron7e5afce2020-08-25 15:50:19 +020057 border: 1px solid $kwic-border;
Akron2f979122018-07-25 17:00:23 +020058 background-color: $dark-orange;
59}
60
Akron7e5afce2020-08-25 15:50:19 +020061
Akronbec4a6a2018-07-10 14:45:15 +020062// Specify result button group layout
Akron4d926f12018-07-16 15:30:25 +020063.result.button-group.button-panel {
Akron7e5afce2020-08-25 15:50:19 +020064 display: inline-block;
65 width: auto;
Akronbec4a6a2018-07-10 14:45:15 +020066 vertical-align: bottom;
Akron7e5afce2020-08-25 15:50:19 +020067 line-height: 1.3em;
Akronbec4a6a2018-07-10 14:45:15 +020068
69 > span {
Akron7e5afce2020-08-25 15:50:19 +020070 line-height: 1.3em;
Akronbec4a6a2018-07-10 14:45:15 +020071 border-width: $result-border-size 0;
Akron7e5afce2020-08-25 15:50:19 +020072
Akronbec4a6a2018-07-10 14:45:15 +020073 &:first-child {
74 border-left-width: $result-border-size;
Akronb917a7c2015-07-02 11:02:42 +020075 }
Akron7e5afce2020-08-25 15:50:19 +020076
Akronbec4a6a2018-07-10 14:45:15 +020077 &:last-child {
78 border-right-width: $result-border-size;
Akron9a5b1e12016-12-06 18:18:23 +010079 }
Akronbec4a6a2018-07-10 14:45:15 +020080 }
Nils Diewalda944fab2015-04-08 21:02:04 +000081}
82
Akronbec4a6a2018-07-10 14:45:15 +020083
Nils Diewalda944fab2015-04-08 21:02:04 +000084#total-results {
Akron7e5afce2020-08-25 15:50:19 +020085 color: $light-green;
Nils Diewalda944fab2015-04-08 21:02:04 +000086 font-weight: bold;
87}
Akron656c5d92015-11-13 21:17:03 +010088
Akron7e5afce2020-08-25 15:50:19 +020089
Akron8ea84292018-10-24 13:41:52 +020090.no-results {
Akron7e5afce2020-08-25 15:50:19 +020091 margin: 0 auto;
Nils Diewalda898dac2015-05-06 21:04:16 +000092 text-align: center;
93 code {
Nils Diewalda898dac2015-05-06 21:04:16 +000094 font-weight: bold;
95 }
96}
Akronb917a7c2015-07-02 11:02:42 +020097
Akron7e5afce2020-08-25 15:50:19 +020098
99// Define icons for result buttons
100.button-icon {
hebasta40a85cf2020-07-15 18:10:08 +0200101
102 // TODO:
103 // Add icon via data-icon
Akron7e5afce2020-08-25 15:50:19 +0200104 &.align.left::after {
105 content: $fa-left-align;
106 }
107 &.align.right::after {
108 content: $fa-right-align;
109 }
110 &.align.center::after {
111 content: $fa-center-align;
112 }
113 &.show-kq::after {
114 content: $fa-code;
115 }
116}