-
Notifications
You must be signed in to change notification settings - Fork 0
/
multicol-ddg.css
101 lines (83 loc) · 1.94 KB
/
multicol-ddg.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
/* ==UserStyle==
@name Multicol DuckDuckGo
@version 2023.06.17
@namespace https://github.com/sumadoratyper/userstyles
@homepageURL https://github.com/sumadoratyper/userstyles
@description DuckDuckGo in multi-column view
@author teterumu
@license MIT
==/UserStyle== */
@-moz-document url-prefix("https://duckduckgo.com/?") {
div.site-wrapper{
max-width: 1920px;
margin: 0 auto;
}
div.header__search-wrap{
padding-left: 60px;
}
a.header__logo-wrap{
justify-content: initial;
}
span.header__logo{
margin-left: 7px;
}
div#duckbar{
padding-left: 0;
}
div#links_wrapper{
padding-left: 0;
}
div.cw{
max-width: initial;
}
div.zci__main{
padding-left: 0;
}
/* Display search results in multi-columns according to view width */
div#react-layout > div > div,
div#react-layout > div > div > section{
display: block;
max-width: initial;
margin-inline: 0;
padding-inline: 0;
}
div#react-layout > div > div > section{
padding-inline: 1em;
}
ol.react-results--main{
display: flex;
flex-wrap: wrap;
column-gap: 1em;
}
@media (min-width: 60em){
ol.react-results--main > li{
margin: 0 0 1em;
border: thin solid silver;
border-radius: .5em;
box-sizing: border-box;
box-shadow: .2em .2em .2em #ddddee;
}
}
@media (min-width: 90em){
ol.react-results--main > li{
flex-basis: calc((100% - 2em) / 3);
min-width: calc((100% - 2em) / 3);
}
}
@media (max-width: 89.9em) and (min-width: 60em){
ol.react-results--main > li{
flex-basis: calc((100% - 1em) / 2);
min-width: calc((100% - 1em) / 2);
}
}
/* Remove page numbers */
ol.react-results--main > li > div[arial-label]{
display: none;
}
/* Remove module slots, footer contents and feedback button */
li.L6fj2A3X2mfJl5kE8caF,
div.footer,
div.serp__bottom-right{
display: none !important;
}
}