1/**
2 * Copyright (c) 2023, Benjamin Cabé <benjamin@zephyrproject.org>.
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Custom stylesheet for Google Programmable Search Engine results.
6 */
7
8.gs-webResult .gs-snippet,
9.gs-fileFormatType,
10.gs-spelling,
11.gsc-refinementHeader,
12.gsc-result-info,
13.gsc-orderby-label {
14  color: var(--body-color) !important;
15}
16
17.gsc-control-cse {
18  width: 100%;
19  padding: 0 !important;
20  font-family: inherit !important;
21  font-size: inherit !important;
22  background-color: inherit !important;
23  border: none !important;
24  font-size: inherit !important;
25}
26
27.gsc-completion-container {
28  font-family: inherit !important;
29}
30
31.gs-result .gs-title, .gs-result .gs-title * {
32  color: var(--link-color) !important;
33  background-color: var(--content-background-color) !important;
34}
35
36.gs-result .gs-title:visited, .gs-result .gs-title:visited * {
37  color: var(--link-color-visited) !important;
38}
39
40.gsc-results .gsc-cursor-box .gsc-cursor-page,
41.gsc-results .gsc-cursor-box .gsc-cursor-current-page {
42  background-color: var(--content-background-color) !important;
43  color: var(--link-color) !important;
44}
45
46.gs-result .gs-image, .gs-result .gs-promotion-image {
47  border: none !important;
48  padding-right: .5em;
49}
50
51.gsc-table-result {
52  font-family: inherit !important;
53  padding-top: .5em !important;
54  font-size: inherit !important;
55}
56
57.gsc-tabHeader.gsc-tabhActive, .gsc-refinementHeader.gsc-refinementhActive,
58.gsc-tabHeader.gsc-tabhInactive, .gsc-refinementHeader.gsc-refinementhInactive {
59  background-color: inherit !important;
60}
61
62.gs-no-results-result .gs-snippet, .gs-error-result .gs-snippet {
63  color: var(--admonition-attention-title-color) !important;
64  background-color: var(--admonition-attention-title-background-color) !important;
65}
66
67.gsc-webResult .gsc-result {
68  background-color: inherit !important;
69  margin: 0;
70  padding: .5em 0;
71  border: none !important;
72  border-bottom: 1px solid var(--hr-color) !important;
73}
74
75.gs-webResult div.gs-per-result-labels {
76  margin-top: 1.3em;
77  margin-bottom: 0.3em;
78  font-size:0.8em;
79}
80
81.gs-webResult div.gs-per-result-labels span {
82  display: none;
83}
84
85.gs-webResult div.gs-per-result-labels a.gs-label {
86  text-decoration: none !important;
87  cursor: pointer;
88  padding: 0.4em 0.6em;
89  margin-left: .5em;
90  color: var(--admonition-tip-title-color) !important;
91  background-color: var(--admonition-tip-title-background-color) !important;
92  border-radius: 50px;
93}
94
95.gcsc-find-more-on-google {
96  color: var(--link-color) !important;
97}
98
99.gcsc-find-more-on-google-magnifier {
100  fill: var(--link-color) !important;
101}
102