Skip to content

Commit e5d5182

Browse files
add collapsible banner into home page
Signed-off-by: Isabelle Pinheiro [email protected]
1 parent cbe12c5 commit e5d5182

File tree

2 files changed

+288
-82
lines changed

2 files changed

+288
-82
lines changed

content/css/docs.css

+70-22
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
body {
2-
font-family: 'Open Sans', 'Helvetica Neue', Helvetica, sans-serif;
2+
font-family: "Open Sans", "Helvetica Neue", Helvetica, sans-serif;
33
}
44

55
.navbar {
@@ -41,7 +41,7 @@ body {
4141
.main-nav {
4242
margin-top: 3px;
4343
letter-spacing: 1px;
44-
font-family: 'Lato', sans-serif;
44+
font-family: "Lato", sans-serif;
4545
font-size: 15px;
4646
}
4747

@@ -60,14 +60,20 @@ body {
6060
background: #e6522c20;
6161
}
6262

63-
.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl0
64-
.algolia-docsearch-suggestion--highlight,
65-
.algolia-autocomplete .algolia-docsearch-suggestion--category-header .algolia-docsearch-suggestion--category-header-lvl1
66-
.algolia-docsearch-suggestion--highlight {
63+
.algolia-autocomplete
64+
.algolia-docsearch-suggestion--category-header
65+
.algolia-docsearch-suggestion--category-header-lvl0
66+
.algolia-docsearch-suggestion--highlight,
67+
.algolia-autocomplete
68+
.algolia-docsearch-suggestion--category-header
69+
.algolia-docsearch-suggestion--category-header-lvl1
70+
.algolia-docsearch-suggestion--highlight {
6771
box-shadow: inset 0 -2px 0 0 #e6522cc0;
6872
}
6973

70-
.algolia-autocomplete .algolia-docsearch-suggestion--text .algolia-docsearch-suggestion--highlight {
74+
.algolia-autocomplete
75+
.algolia-docsearch-suggestion--text
76+
.algolia-docsearch-suggestion--highlight {
7177
box-shadow: inset 0 -2px 0 0 #e6522cc0;
7278
}
7379

@@ -98,21 +104,21 @@ body {
98104
.jumbotron .subtitle {
99105
font-weight: 300;
100106
font-size: 32px;
101-
color: rgba(255,255,255,0.8);
107+
color: rgba(255, 255, 255, 0.8);
102108
margin-bottom: 20px;
103109
}
104110

105111
.jumbotron a.btn {
106112
border: none;
107-
background-color: rgba(0,0,0,0.15);
113+
background-color: rgba(0, 0, 0, 0.15);
108114
color: #fff;
109115
padding: 20px 25px 20px 25px;
110116
margin: 15px 10px 0 10px;
111117
text-transform: uppercase;
112118
}
113119

114120
.jumbotron a.btn:hover {
115-
background-color: rgba(0,0,0,0.25);
121+
background-color: rgba(0, 0, 0, 0.25);
116122
color: #fff;
117123
}
118124

@@ -131,7 +137,7 @@ body {
131137
}
132138

133139
.feature-item {
134-
font-family: 'Lato', sans-serif;
140+
font-family: "Lato", sans-serif;
135141
font-weight: 300;
136142
cursor: pointer;
137143
}
@@ -175,7 +181,7 @@ body {
175181

176182
.quote {
177183
margin: 25px 0 25px 0;
178-
font-family: 'Lato', sans-serif;
184+
font-family: "Lato", sans-serif;
179185
font-weight: 300;
180186
text-align: center;
181187
}
@@ -196,7 +202,7 @@ body {
196202

197203
.open-source {
198204
margin: 25px 0 20px 0;
199-
font-family: 'Lato', sans-serif;
205+
font-family: "Lato", sans-serif;
200206
font-weight: 300;
201207
text-align: center;
202208
}
@@ -225,7 +231,7 @@ body {
225231
}
226232

227233
.trusted-by {
228-
font-family: 'Lato', sans-serif;
234+
font-family: "Lato", sans-serif;
229235
font-size: 20px;
230236
font-weight: 300;
231237
padding-bottom: 10px;
@@ -245,7 +251,6 @@ body {
245251
max-height: 101px;
246252
}
247253

248-
249254
footer {
250255
font-size: 12px;
251256
color: #333;
@@ -268,7 +273,8 @@ footer {
268273
padding-right: 1em;
269274
}
270275

271-
.downloads td, .downloads th {
276+
.downloads td,
277+
.downloads th {
272278
white-space: nowrap;
273279
}
274280

@@ -278,7 +284,7 @@ footer {
278284

279285
.downloads .checksum {
280286
font-family: monospace;
281-
font-size: .6em;
287+
font-size: 0.6em;
282288
vertical-align: inherit;
283289
}
284290

@@ -319,7 +325,8 @@ footer {
319325
font-size: 16px;
320326
}
321327

322-
.side-nav .nav-header a, .side-nav .nav-header {
328+
.side-nav .nav-header a,
329+
.side-nav .nav-header {
323330
color: #e6522c;
324331
text-transform: uppercase;
325332
text-decoration: none;
@@ -345,7 +352,8 @@ footer {
345352
font-size: 16px;
346353
}
347354

348-
.doc-content p, .doc-content.ul {
355+
.doc-content p,
356+
.doc-content.ul {
349357
margin: 15px 0 15px 0;
350358
line-height: 1.5;
351359
}
@@ -354,7 +362,8 @@ footer {
354362
margin: 15px 0 15px 0;
355363
line-height: 1.5;
356364
/* This is to prevent NOTE/admonition alert boxes from overlapping the table of contents at the top of a docs page. */
357-
display: inline-block; width: 100%;
365+
display: inline-block;
366+
width: 100%;
358367
}
359368

360369
.doc-content > h1 {
@@ -400,7 +409,7 @@ footer {
400409
}
401410

402411
.doc-content a.header-anchor {
403-
font-size: .8em;
412+
font-size: 0.8em;
404413
padding-left: 8px;
405414
text-decoration: none;
406415
}
@@ -562,9 +571,48 @@ article {
562571
margin-bottom: 40px;
563572
}
564573

565-
566574
.training-cta .btn {
567575
text-transform: uppercase;
568576
border: 0px;
569577
padding: 25px;
570578
}
579+
580+
.custom-banner {
581+
background: #f2aa48;
582+
color: #000;
583+
padding: 20px 40px;
584+
text-align: center;
585+
font-family: Lato, sans-serif;
586+
font-size: 18px;
587+
position: relative;
588+
width: 100%;
589+
}
590+
591+
.banner-content {
592+
display: inline-block;
593+
width: 100%;
594+
}
595+
596+
.banner-content p {
597+
margin: 0;
598+
}
599+
600+
.custom-banner {
601+
font-size: 18px;
602+
color: #000;
603+
font-family: Lato, sans-serif;
604+
}
605+
606+
.ti-close:hover {
607+
color: #333;
608+
}
609+
610+
.ti-close {
611+
position: absolute;
612+
right: 10px;
613+
top: 50%;
614+
transform: translateY(-50%);
615+
font-family: Lato, sans-serif;
616+
font-size: 18px;
617+
cursor: pointer;
618+
}

0 commit comments

Comments
 (0)