Skip to content

Commit e9af1df

Browse files
committed
css-tidyup
1 parent 11f32c5 commit e9af1df

23 files changed

Lines changed: 50 additions & 299 deletions

src/css/base.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ label::after {
217217
outline-width: 0;
218218
}
219219

220+
220221
/* Common margin padding css class */
221222
/* margin-top */
222223
.mt-0 {

src/css/body.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
/* NOTE min-width of flex: 1 container = content-width to prevent wrapping by default; min-width: 0 lets content wrap */
1+
/* NOTE
2+
min-width of flex: 1 container = content-width to prevent wrapping by default;
3+
min-width: 0 lets content wrap */
4+
25
div.body {
36
display: flex;
47
margin-top: var(--height-to-body);
5-
/* overflow-wrap: break-word; */
68
word-wrap: break-word;
79
/* IE only supports word-wrap, which is an alias of overflow-wrap */
810
}

src/css/component-frame.css

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
.component-frame {
2-
/* rgba(87, 160, 255, 1) */
32
background: var(--color-brand-gray6);
43
padding: 0 15px 0 15px;
54
display: flex;
6-
/* align-items: center; */
75
justify-content: center;
86
position: relative;
97
}
@@ -20,7 +18,6 @@
2018

2119
.frame-body {
2220
margin-left: var(--base-extra-small-space);
23-
/* position: relative; */
2421
padding-top: 12px;
2522
padding-bottom: 12px;
2623
padding-right: 0;
@@ -48,9 +45,6 @@
4845
.component-frame .frame-link-dropdowns {
4946
display: inline-block;
5047
line-height: 1;
51-
/* position: relative;
52-
padding-bottom: 20px;
53-
margin-bottom: -20px; */
5448
}
5549

5650
.frame-body .frame-link {
@@ -99,7 +93,6 @@
9993
.frame-dropdown ul {
10094
background: var(--color-brand-white);
10195
border-radius: 0;
102-
/* box-shadow: 0 3px 10px -4px var(--color-brand-gray8); */
10396
margin: 0;
10497
}
10598

@@ -127,11 +120,6 @@
127120
border-left: 3px solid var(--color-brand-gray8);
128121
}
129122

130-
/* .frame-dropdown ul.frame-dropdown-list li,
131-
.frame-dropdown ul.related li {
132-
border-bottom: 1px solid var(--color-brand-gray8);
133-
} */
134-
135123
ul.frame-dropdown-list li:last-child,
136124
.frame-dropdown ul.related li:last-child {
137125
border-bottom: 0;

src/css/contributor.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.contributor-list-box {
2-
/* display: flex; */
32
align-items: center;
43
flex-wrap: wrap;
54
margin: 15px 0 0;

src/css/doc.css

Lines changed: 2 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,11 @@
4949

5050
.doc h2 {
5151
font-size: var(--heading-h2);
52-
/* max-width: fit-content; */
5352
width: 100%;
5453
margin-top: var(--base-extra-large-space);
5554
/* NOTE used to restrict width of key line */
5655
}
5756

58-
/* .doc h2::after {
59-
content: "";
60-
display: block;
61-
max-width: 5.75rem;
62-
height: 0;
63-
outline: 0.5px solid currentColor;
64-
margin-top: 1.0625rem;
65-
} */
66-
6757
.doc h3 {
6858
font-size: var(--heading-h3);
6959
margin-top: var(--base-extra-large-space);
@@ -122,11 +112,6 @@
122112
text-decoration: underline;
123113
}
124114

125-
/* .doc code {
126-
color: var(--color-text);
127-
font-weight: var(--weight-medium);
128-
} */
129-
130115
.doc pre code {
131116
display: block;
132117
color: inherit;
@@ -185,7 +170,6 @@ occur inside lists.
185170
.doc caption {
186171
font-size: var(--font-base);
187172
font-weight: var(--weight-semibold);
188-
/* letter-spacing: -0.025em; */
189173
line-height: 1.2;
190174
margin-bottom: var(--base-space);
191175
color: var(--color-brand-gray3);
@@ -222,18 +206,6 @@ ul ul ul {
222206
margin-bottom: var(--base-extra-small-space);
223207
}
224208

225-
/* .doc table.tableblock,
226-
.doc th.tableblock,
227-
.doc td.tableblock {
228-
border: 0 solid var(--color-border-table);
229-
}
230-
231-
.doc table.tableblock {
232-
border-width: 1px;
233-
border-collapse: collapse;
234-
margin: 1.5rem 0 2rem;
235-
} */
236-
237209
/* TODO drop .spread after upgrading to Asciidoctor 1.5.7 */
238210

239211
.doc table.spread,
@@ -245,16 +217,6 @@ ul ul ul {
245217
text-align: left;
246218
}
247219

248-
/* .doc table.tableblock > tbody {
249-
font-weight: var(--weight-light);
250-
} */
251-
252-
/* NOTE prevent wide tables from exceeding bounds */
253-
254-
/* TODO could also target table.tableblock[style^="width:"] */
255-
256-
/* TODO drop .spread after upgrading to Asciidoctor 1.5.7 */
257-
258220
.doc table.spread > tbody > tr > *,
259221
.doc table.stretch > tbody > tr > * {
260222
/* NOTE setting max-width reactivates overflow-wrap behavior on the table cell */
@@ -444,7 +406,6 @@ ul ul ul {
444406
flex-direction: column;
445407
border: 1px solid var(--color-brand-gray8);
446408
padding: var(--base-space);
447-
/* padding-left: var(--base-space); */
448409
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
449410
border-radius: 5px;
450411
align-items: center;
@@ -509,19 +470,6 @@ ul ul ul {
509470
font-weight: inherit;
510471
}
511472

512-
/* Use this for a working pseudo element before an [abstract] attribute-marked block in the documentation.
513-
This one adds the words "Quick Summary" before any text inside the [abstract] block. */
514-
515-
/*
516-
.doc .abstract blockquote::before {
517-
content: "Quick Summary \a";
518-
white-space: pre;
519-
color: var(--color-muted);
520-
font-weight: var(--weight-medium);
521-
font-size: var(--heading-h4);
522-
padding-bottom: 1rem;
523-
} */
524-
525473
.doc ul {
526474
margin: 0;
527475
padding: 0 0 0 1rem;
@@ -546,11 +494,11 @@ ul ul ul {
546494
}
547495

548496
.doc ul.checklist i.fa-check-square-o::before {
549-
content: "\2713";
497+
content: "\2713"; /* check-mark */
550498
}
551499

552500
.doc ul.checklist i.fa-square-o::before {
553-
content: "\274f";
501+
content: "\274f"; /* square with a shadow outline */
554502
}
555503

556504
.doc .dlist .dlist,
@@ -626,18 +574,6 @@ ul ul ul {
626574

627575
/* NOTE assume pre.highlight contains code[data-lang] */
628576

629-
/* .doc pre.highlight code::after,
630-
.doc pre:not(.highlight)::after{
631-
content: '';
632-
display: inline-block;
633-
background: transparent linear-gradient(180deg, #F1F7FE0D 0%, #F1F7FE40 18%, #F1F7FE 68%, #F1F7FE 100%) 0% 0% no-repeat padding-box;
634-
width: 65px;
635-
height: 100%;
636-
position: absolute;
637-
right: 0;
638-
top: 0;
639-
} */
640-
641577
.doc pre.highlight {
642578
position: relative;
643579
}
@@ -648,41 +584,6 @@ ul ul ul {
648584
padding: 0;
649585
}
650586

651-
/* .doc pre.highlight .hljs-attr {
652-
color: var(--hljs-attr);
653-
} */
654-
655-
/* .doc pre.highlight .hljs-string {
656-
color: var(--hljs-string);
657-
} */
658-
659-
/* .doc pre.highlight .hljs-number {
660-
color: var(--hljs-number);
661-
} */
662-
663-
/* .doc .listingblock code[data-lang]::before {
664-
content: attr(data-lang);
665-
color: var("--color-brand-gray1");
666-
display: none;
667-
font-size: 0.75rem;
668-
font-weight: var(--weight-normal);
669-
letter-spacing: 1px;
670-
line-height: 18px;
671-
text-transform: uppercase;
672-
position: absolute;
673-
top: 0.375rem;
674-
right: 2rem;
675-
font-family: "Source Sans Pro", sans-serif;
676-
padding-right: 6px;
677-
border-right: 1px solid var(--color-brand-gray9);
678-
}
679-
680-
.doc .listingblock:hover code[data-lang]::before {
681-
display: block;
682-
}
683-
684-
*/
685-
686587
table.tableblock code.language-console.hljs.shell,
687588
table.tableblock pre code.language-bash.hljs {
688589
white-space: normal;
@@ -717,10 +618,6 @@ table.tableblock pre code.language-bash.hljs {
717618
margin-top: var(--base-extra-small-space);
718619
}
719620

720-
/* .doc .dlist dd > .openblock > .content > :first-child {
721-
margin-top: 0;
722-
} */
723-
724621
.doc .sidebarblock > .content {
725622
border: 1px solid var(--color-border);
726623
padding: 2.5rem;

src/css/external-link-icon.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.doc a[href^="http://"]:not([href*=".couchbase.com"]):not([href*="localhost"]):not([href*="127.0.0.1"]):not(.remove-ext-icon)::after,
33
a.add-ext-icon::after {
44
font-family: "Font Awesome Light", serif;
5-
content: "\f35d";
5+
content: "\f35d"; /* alternate external link icon */
66
font-size: inherit;
77
color: inherit;
88
display: none;

src/css/feedback.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* these elements are created by Jira Issue Collector script */
2+
13
#atlwdg-trigger.atlwdg-trigger {
24
display: none;
35
background: linear-gradient(to right, var(--color-brand-pink) 0%, var(--color-brand-orange) 100%);

src/css/footer.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
padding: 2.5rem 0;
55
position: relative;
66
z-index: var(--z-index-footer);
7-
/* box-shadow: 0 0 10px -5px #999; FIX BELOW */
87
border-top: 1px solid var(--color-border-table);
98
}
109

@@ -162,8 +161,6 @@ h2.footer-column-title {
162161

163162
.footer-terms {
164163
font-size: 0.575rem;
165-
166-
/* font-size: 0.875rem; */
167164
line-height: 1;
168165
border-top: 1px solid var(--color-footer-text);
169166
padding: 2.125rem 0 0.3125rem;

src/css/header.css

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -135,19 +135,6 @@
135135
display: inline-block;
136136
}
137137

138-
.parent-site {
139-
/* margin: 0 10px;
140-
padding: 0 10px; */
141-
/* border-right: 1px solid var(--color-brand-gray5);
142-
border-left: 1px solid var(--color-brand-gray5); */
143-
}
144-
145-
/* .parent-site a {
146-
color: var(--color-brand-gray4);
147-
font-size: 1rem;
148-
font-family: "Source Sans Pro", sans-serif;
149-
} */
150-
151138
.search {
152139
position: relative;
153140
}
@@ -255,11 +242,6 @@
255242
width: 283px;
256243
}
257244

258-
/* .parent-site {
259-
margin: 0;
260-
padding: 0 var(--column-space);
261-
} */
262-
263245
.navbar.navbar-new-top {
264246
padding: 1.25rem 0;
265247
line-height: 1;
@@ -318,13 +300,6 @@
318300
font-size: 18px;
319301
color: #ffffffbf;
320302
}
321-
/* .parent-site {
322-
border-left: none;
323-
}
324-
325-
.parent-site a {
326-
color: var(--color-brand-white);
327-
} */
328303

329304
.free-trial-link {
330305
background: var(--color-brand-white);

src/css/highlight.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Other CSS rules for styling code blocks:
1111
- In doc.css, the `.doc pre:not(.highlight), .doc pre.highlight code` selector sets the code block `color` and `background-color`
1212
- In docs.css, the `.doc .listingblock code[data-lang]::before` selector sets the language label `color`
1313
*/
14+
1415
.hljs-comment,
1516
.hljs-meta {
16-
/* color: #708090; */
1717
color: var(--color-brand-gray1);
1818
}
1919

@@ -47,7 +47,6 @@ Other CSS rules for styling code blocks:
4747

4848
.hljs-built_in,
4949
.hljs-function .hljs-title {
50-
/* color: #e6db74; */
5150
color: var(--color-brand-orange);
5251
}
5352

0 commit comments

Comments
 (0)