Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 2 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 3 | |
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 4 | |
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 5 | #resultinfo { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 6 | clear: both; |
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 7 | text-align: right; |
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 8 | line-height: 1.5em; |
9 | min-height: 1.5em; | ||||
10 | margin-top:.4em; | ||||
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 11 | font-size: 10pt; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 12 | p.found { |
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 13 | display: inline; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 14 | padding: 0; |
15 | margin: 0; | ||||
16 | text-align: right; | ||||
17 | } | ||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 18 | } |
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 19 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 20 | div.result.panel .view { |
21 | border: 1px solid $kwic-border; | ||||
22 | background-color: $dark-orange; | ||||
23 | } | ||||
24 | |||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 25 | // Specify result button group layout |
Akron | 4d926f1 | 2018-07-16 15:30:25 +0200 | [diff] [blame] | 26 | .result.button-group.button-panel { |
27 | width: auto; | ||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 28 | vertical-align: bottom; |
29 | display: inline-block; | ||||
30 | line-height: 1.3em; | ||||
31 | |||||
32 | > span { | ||||
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 33 | line-height: 1.3em; |
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 34 | border-width: $result-border-size 0; |
35 | &:first-child { | ||||
36 | border-left-width: $result-border-size; | ||||
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 37 | } |
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 38 | &:last-child { |
39 | border-right-width: $result-border-size; | ||||
Akron | 9a5b1e1 | 2016-12-06 18:18:23 +0100 | [diff] [blame] | 40 | } |
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 41 | } |
42 | |||||
43 | // Define icons for result buttons | ||||
44 | .button-icon { | ||||
45 | &.align.left::after { | ||||
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 46 | content: $fa-left-align; |
47 | } | ||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 48 | &.align.right::after { |
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 49 | content: $fa-right-align; |
50 | } | ||||
Akron | 88d1ccc | 2018-08-14 17:22:05 +0200 | [diff] [blame] | 51 | &.align.center::after { |
52 | content: $fa-center-align; | ||||
53 | } | ||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 54 | &.show-kq::after { |
Akron | 179c8ac | 2015-06-30 19:30:50 +0200 | [diff] [blame] | 55 | content: $fa-code; |
56 | } | ||||
57 | } | ||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 58 | } |
59 | |||||
Akron | bc33beb | 2018-11-30 13:46:08 +0100 | [diff] [blame^] | 60 | /* |
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 | */ | ||||
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 70 | #resultinfo.found { |
71 | position: relative; | ||||
Akron | bd36c71 | 2018-02-15 11:14:23 +0100 | [diff] [blame] | 72 | // z-index: 20; |
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 73 | margin-bottom: 0px; |
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 74 | |
75 | .button-group > span { | ||||
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 76 | 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; | ||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 84 | } |
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 85 | } |
86 | } | ||||
87 | |||||
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 88 | |
89 | |||||
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 90 | #total-results { |
91 | color: $total-results; | ||||
92 | font-weight: bold; | ||||
93 | } | ||||
Akron | 656c5d9 | 2015-11-13 21:17:03 +0100 | [diff] [blame] | 94 | |
Akron | 8ea8429 | 2018-10-24 13:41:52 +0200 | [diff] [blame] | 95 | .no-results { |
Nils Diewald | a898dac | 2015-05-06 21:04:16 +0000 | [diff] [blame] | 96 | margin: 0 auto; |
97 | text-align: center; | ||||
98 | code { | ||||
Nils Diewald | a898dac | 2015-05-06 21:04:16 +0000 | [diff] [blame] | 99 | font-weight: bold; |
100 | } | ||||
101 | } | ||||
Akron | b917a7c | 2015-07-02 11:02:42 +0200 | [diff] [blame] | 102 |