summaryrefslogtreecommitdiffstats
path: root/browser/components/search/test/browser/serp.css
blob: 5b3865da44caf46e3184c46838e8b7d674287068 (plain)
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
:root {
  --margin-left: 80px;
  --subtle: whitesmoke;
  --carousel-card-width: 180px;
}

body {
  margin: 0;
  padding: 0 0 80px 0;
}

a:link {
  text-decoration: none;
}

a:visited {
  color: blue;
}

h5[test-label] {
  margin-top: 30px;
  margin-bottom: 4px;
}

nav {
  border-bottom: 1px solid #ececec;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

#searchform {
  padding-top: 20px;
  margin-bottom: 20px;
}

nav>div,
#searchform,
.moz-carousel,
.factrow {
  display: flex;
  align-items: center;
}

nav>div,
#searchform {
  gap: 40px;
}

nav>div,
#searchform,
#searchresults,
#top {
  margin-left: var(--margin-left);
}

#searchbox {
  font-size: 14px;
  padding: 10px 20px;
  width: 300px;
  border-radius: 20px;
  border: 2px solid var(--subtle);
  height: 20px;
}

.card-container {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
}

.card-container>.card {
  height: 160px;
  border-radius: 3px;
  border: 1px solid var(--subtle);
  display: inline-block;
  box-sizing: border-box;
  padding: 10px;
}

.card-container>.card:not(:last-child) {
  margin-right: 10px;
}

.card-container>.card>a {
  display: block;
  margin-bottom: 2px;
}

#searchresults {
  width: 900px;
  display: grid;
  grid-template-columns: 600px 300px;
}

.moz-carousel,
.factrow {
  gap: 10px;
}

.moz-carousel {
  overflow: hidden;
}

.moz-carousel[narrow],
.moz-carousel-container {
  width: calc(var(--carousel-card-width) * 3 + (3 * 10px));
  overflow-x: auto;
}

.moz-carousel[extra] {
  width: calc(var(--carousel-card-width) * 4 + (3 * 10px));
}

.moz-carousel>.moz-inner {
  border: 1px solid var(--subtle);
  border-radius: 10px;
  padding: 10px;
}

.moz-carousel>.moz-carousel-card {
  flex: 1 0 var(--carousel-card-width);
  border: 1px solid var(--subtle);
  font-size: 14px;
}

.moz-carousel-card .moz-carousel-image {
  width: 100%;
  height: 120px;
  background-color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

.moz-carousel-card-inner-content {
  padding: 10px 20px 20px 20px;
}

.multi-col {
  display: grid;
  padding: 10px 20px 20px 20px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mock-image {
  height: 100px;
  background-color: var(--subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Some SERPs hide anchors using CSS */
.hidden {
  display: none;
}

/* Typography */
h2 {
  line-height: 100%;
  margin-bottom: 10px;
  margin-top: 10px;
}