blob: d767d192be58a8bb8de95e27145f2a6926e44893 [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
Akronb917a7c2015-07-02 11:02:42 +02004
Akron179c8ac2015-06-30 19:30:50 +02005#resultinfo {
Nils Diewalda944fab2015-04-08 21:02:04 +00006 clear: both;
Akron179c8ac2015-06-30 19:30:50 +02007 text-align: right;
Akron656c5d92015-11-13 21:17:03 +01008 line-height: 1.5em;
9 min-height: 1.5em;
10 margin-top:.4em;
Akron179c8ac2015-06-30 19:30:50 +020011 font-size: 10pt;
Nils Diewalda944fab2015-04-08 21:02:04 +000012 p.found {
Akron179c8ac2015-06-30 19:30:50 +020013 display: inline;
Nils Diewalda944fab2015-04-08 21:02:04 +000014 padding: 0;
15 margin: 0;
16 text-align: right;
17 }
Akronbec4a6a2018-07-10 14:45:15 +020018}
Akronb917a7c2015-07-02 11:02:42 +020019
Akron2f979122018-07-25 17:00:23 +020020div.result.panel .view {
21 border: 1px solid $kwic-border;
22 background-color: $dark-orange;
23}
24
Akronbec4a6a2018-07-10 14:45:15 +020025// Specify result button group layout
Akron4d926f12018-07-16 15:30:25 +020026.result.button-group.button-panel {
27 width: auto;
Akronbec4a6a2018-07-10 14:45:15 +020028 vertical-align: bottom;
29 display: inline-block;
30 line-height: 1.3em;
31
32 > span {
Akron656c5d92015-11-13 21:17:03 +010033 line-height: 1.3em;
Akronbec4a6a2018-07-10 14:45:15 +020034 border-width: $result-border-size 0;
35 &:first-child {
36 border-left-width: $result-border-size;
Akronb917a7c2015-07-02 11:02:42 +020037 }
Akronbec4a6a2018-07-10 14:45:15 +020038 &:last-child {
39 border-right-width: $result-border-size;
Akron9a5b1e12016-12-06 18:18:23 +010040 }
Akronbec4a6a2018-07-10 14:45:15 +020041 }
42
43 // Define icons for result buttons
44 .button-icon {
45 &.align.left::after {
Akron179c8ac2015-06-30 19:30:50 +020046 content: $fa-left-align;
47 }
Akronbec4a6a2018-07-10 14:45:15 +020048 &.align.right::after {
Akron179c8ac2015-06-30 19:30:50 +020049 content: $fa-right-align;
50 }
Akron88d1ccc2018-08-14 17:22:05 +020051 &.align.center::after {
52 content: $fa-center-align;
53 }
Akronbec4a6a2018-07-10 14:45:15 +020054 &.show-kq::after {
Akron179c8ac2015-06-30 19:30:50 +020055 content: $fa-code;
56 }
57 }
Nils Diewalda944fab2015-04-08 21:02:04 +000058}
59
Akronbc33beb2018-11-30 13:46:08 +010060/*
61 * TODO:
62 * This rule should not be dependent on
63 * whether something is found or not,
64 * but whether #search contains a result,
65 * e.g. when a result view is open in the
66 * result panel. This should probably be
67 * indicated by a class on the button group
68 * rather than a class on the resultinfo.
69 */
Akronb917a7c2015-07-02 11:02:42 +020070#resultinfo.found {
71 position: relative;
Akronbd36c712018-02-15 11:14:23 +010072 // z-index: 20;
Akronb917a7c2015-07-02 11:02:42 +020073 margin-bottom: 0px;
Akronbec4a6a2018-07-10 14:45:15 +020074
75 .button-group > span {
Akronb917a7c2015-07-02 11:02:42 +020076 margin-bottom: 0;
77 border-bottom-width: 0;
78 box-shadow: none;
79 &:first-child {
80 border-bottom-left-radius: 0;
81 }
82 &:last-child {
83 border-bottom-right-radius: 0;
Akronbec4a6a2018-07-10 14:45:15 +020084 }
Akronb917a7c2015-07-02 11:02:42 +020085 }
86}
87
Akronbec4a6a2018-07-10 14:45:15 +020088
89
Nils Diewalda944fab2015-04-08 21:02:04 +000090#total-results {
91 color: $total-results;
92 font-weight: bold;
93}
Akron656c5d92015-11-13 21:17:03 +010094
Akron8ea84292018-10-24 13:41:52 +020095.no-results {
Nils Diewalda898dac2015-05-06 21:04:16 +000096 margin: 0 auto;
97 text-align: center;
98 code {
Nils Diewalda898dac2015-05-06 21:04:16 +000099 font-weight: bold;
100 }
101}
Akronb917a7c2015-07-02 11:02:42 +0200102