Skip to content

Commit

Permalink
Override new Google search result formatting
Browse files Browse the repository at this point in the history
There have been some recent formatting changes made by Google for search
results that do not look good (especially for dark themes). This
mostly overrides those styles to resemble the original Whoogle
result formatting.
  • Loading branch information
benbusby committed Feb 2, 2022
1 parent 33f56bb commit 9ba7333
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 9 deletions.
18 changes: 12 additions & 6 deletions app/static/css/dark-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,25 @@ select {

.ZINbbc {
overflow: hidden;
background-color: var(--whoogle-dark-result-bg) !important;
box-shadow: 0 0 0 0 !important;
background-color: var(--whoogle-dark-result-bg) !important;
}

.KP7LCb {
box-shadow: 0 0 0 0 !important;
}

.BVG0Nb {
background-color: var(--whoogle-dark-result-bg) !important;
box-shadow: 0 0 0 0 !important;
background-color: var(--whoogle-dark-page-bg) !important;
}

.bRsWnc {
background-color: var(--whoogle-dark-result-bg) !important;
.ZINbbc.luh4tb {
background: var(--whoogle-dark-result-bg) !important;
}

.BVG0Nb {
background-color: var(--whoogle-dark-page-bg) !important;
.bRsWnc {
background-color: var(--whoogle-dark-result-bg) !important;
}

.x54gtf {
Expand Down
10 changes: 7 additions & 3 deletions app/static/css/light-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,19 @@ select {

.ZINbbc {
overflow: hidden;
background-color: var(--whoogle-result-bg) !important;
background-color: var(--whoogle-result-bg) !important;
}

.BVG0Nb {
background-color: var(--whoogle-result-bg) !important;
background-color: var(--whoogle-result-bg) !important;
}

.ZINbbc.luh4tb {
background: var(--whoogle-result-bg) !important;
}

.bRsWnc {
background-color: var(--whoogle-result-bg) !important;
background-color: var(--whoogle-result-bg) !important;
}

.x54gtf {
Expand Down
6 changes: 6 additions & 0 deletions app/static/css/search.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
body {
display: block !important;
margin: auto !important;
max-width: 736px !important;
}

.autocomplete {
position: relative;
display: inline-block;
Expand Down

0 comments on commit 9ba7333

Please sign in to comment.