-
Notifications
You must be signed in to change notification settings - Fork 0
/
eTools.user.css
149 lines (138 loc) · 3.66 KB
/
eTools.user.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
/* ==UserStyle==
@name eTools.ch Modern Theme
@description A modern theme for etools.ch
@namespace www.etools.ch
@author Ryan Wilson
@license AGPL-3.0-or-later
@version 0.1.0
@preprocessor stylus
@homepageURL https://userstyles.world/style/16879/etools-ch-modern-theme
@updateURL https://github.com/MovByte/eTools-Utilities/raw/main/eTools.user.css
@var checkbox disableHighlight "Disable query highlighting" 1
@var checkbox betterSearchBar "Better Search Bar" 1
@var checkbox minimalBoxes "Minimal boxes" 1
@var checkbox braveSearchLinkColors "Brave Search Link Colors" 1
@var checkbox modernFonts "Modern fonts" 1
@var checkbox largerText "Larger text" 1
==/UserStyle== */
/* https://github.com/openstyles/stylus/wiki/Writing-UserCSS */
@-moz-document domain("www.etools.ch") {
/** You should enable highlight and enable this if you want to remove the highlighted queries because disabling highlights in preferences breaks the descriptions in mobile search. I have already reported this bug. */
if disableHighlight {
em {
background-color: #fff;
}
}
if braveSearchLinkColors {
a.title:visited {
color: #7431dd;
}
a.title:link,
a.title:visited {
color: #1841d2;
}
}
a:link,
a:visited {
color: #62757e;
}
/* Indent the description of the search results */
div.text,
div.attr {
padding-left: 10px;
}
if modernFonts {
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");
/* Global default font */
body {
font-family: "Open Sans", sans-serif;
font-optical-sizing: auto;
font-style: normal;
font-size: 1rem;
}
/* Search bar */
input.query,
input.submit {
font-size: 16px;
font-family: "Roboto", sans-serif;
font-weight: 400;
font-style: normal;
}
/* Search results */
table.result {
font-size: 1rem;
if (largerText) {
font-size: 1.2rem;
}
}
/* Search Results - titles */
a.title {
font-size: 1.2rem;
if (largerText) {
font-size: 1.4rem;
}
font-family: "Roboto", sans-serif;
font-weight: 700;
font-style: normal;
}
}
/* Fix mobile search bar */
form p {
padding: 0px;
}
}
/* The desktop version only */
@-moz-document regexp("^https://www.etools.ch/((?!mobileSearch\.do|mobileSearchSubmit\.do).)*$")
{
/* Fix the misalignment from the result status to the right sidebar */
p.resultStatus {
padding-top: 0px;
}
/* Fix misalignment of the menulist on the left sidebar */
li.m0 {
margin-top: 0px;
}
if betterSearchBar {
td.searchInput {
text-align: center;
border-spacing: 29px;
box-sizing: border-box;
}
td.searchInput input.query {
width: 50em;
min-height: 38px;
}
td.searchInput input.submit {
font-weight: bold;
min-height: 38px;
}
}
if minimalBoxes {
td.menuArea {
background-color: #fff;
}
ul.menuList {
background-color: #69c;
}
}
if modernFonts {
/* Sidebar (to the left) menu */
h3,
.menuList {
font-family: "JetBrains Mono", monospace;
font-optical-sizing: auto;
font-style: normal;
}
/* Sidebar (to the right) menu boxes */
div.boxTop,
div.box {
font-size: 15px;
}
/* Sidebar menu (to the right) - titles */
ul.menuList,
h3 {
font-size: 1.2rem;
}
}
}