blob: 19fcaf830bd0f35287912b99d2782dce15079815 [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
Akron2d0d96d2019-11-18 19:49:50 +01007
Nils Diewalda944fab2015-04-08 21:02:04 +00008/**
Akron7e5afce2020-08-25 15:50:19 +02009 * Search field
Nils Diewalda944fab2015-04-08 21:02:04 +000010 */
11#q-field {
Akron7e5afce2020-08-25 15:50:19 +020012 display: block;
13 margin-bottom: 3px;
14 width: 100%;
15 margin: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020016 border-radius: 6px;
Akron36c020f2018-03-19 16:25:26 +010017
18 &::-webkit-search-cancel-button {
19 display: none;
20 }
Akron1be6c1c2020-01-07 15:29:58 +010021
22 &.loading {
Akron7e5afce2020-08-25 15:50:19 +020023 background: {
Akron7636edf2025-11-04 12:44:53 +010024 color: colors.$light-orange;
Akron7e5afce2020-08-25 15:50:19 +020025 image: none;
26 }
Akron1be6c1c2020-01-07 15:29:58 +010027 }
Nils Diewalda944fab2015-04-08 21:02:04 +000028}
29
Nils Diewalda944fab2015-04-08 21:02:04 +000030
31#searchbar {
Akron7e5afce2020-08-25 15:50:19 +020032 position: relative;
33 width: 100%;
34 padding: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020035 // padding-right: $right-distance + $button-width;
Akrond059ea22021-03-02 15:32:27 +010036 margin-top: 7pt;
Akron7e5afce2020-08-25 15:50:19 +020037
Nils Diewalda944fab2015-04-08 21:02:04 +000038 button[type=submit] {
39 position: absolute;
Akron7e5afce2020-08-25 15:50:19 +020040 padding: 0;
Uyen-Nhu Tran243fe732024-04-10 01:17:24 +020041 // right: $right-distance;
42 right: 0;
Akron7e5afce2020-08-25 15:50:19 +020043
Akron1be6c1c2020-01-07 15:29:58 +010044 &:not(.loading)::after {
Akron7636edf2025-11-04 12:44:53 +010045 content: icons.$fa-search;
Nils Diewalda944fab2015-04-08 21:02:04 +000046 }
Nils Diewalda944fab2015-04-08 21:02:04 +000047 }
48}
49
Akron2d0d96d2019-11-18 19:49:50 +010050.query.panel {
Akron7636edf2025-11-04 12:44:53 +010051 padding-right: lengths.$button-width;
Akron2d0d96d2019-11-18 19:49:50 +010052}
53
54// Specify result button group layout
55
56.query.button-group.button-panel {
Akron7e5afce2020-08-25 15:50:19 +020057 display: block;
58 width: auto;
59 text-align: right;
Akron2d0d96d2019-11-18 19:49:50 +010060 vertical-align: top;
Akron7e5afce2020-08-25 15:50:19 +020061 line-height: 1.3em;
62
Akron2d0d96d2019-11-18 19:49:50 +010063 > span {
64 box-shadow: none;
65 }
66}