Skip to content

Commit e97562a

Browse files
committed
Appeasing css linter
1 parent 95b1961 commit e97562a

27 files changed

+43
-49
lines changed

src/css/base.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** base.css
2-
*
2+
*
33
* Resets and other basic CSS
44
*/
55

src/css/body.css

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/** body.css
2-
*
2+
*
33
* Styles for body, main, and .nav
44
* TODO: compare main.css and nav.css
55
*/
66

7-
8-
97
div.body {
108
display: flex;
119
margin-top: var(--height-to-body);
@@ -20,7 +18,7 @@ div.body {
2018
}
2119

2220
/* NOTE
23-
min-width of flex: 1 container = content-width to prevent wrapping by default;
21+
min-width of flex: 1 container = content-width to prevent wrapping by default;
2422
min-width: 0 lets content wrap */
2523
main {
2624
flex: 1;

src/css/callouts.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** callouts.css
22
*
33
* Format code callouts https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/
4-
*
4+
*
55
* Support for Ray's Externally defined callouts:
66
* https://www.npmjs.com/package/asciidoctor-external-callout
77
*

src/css/clipboard.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** clipboard.css
2-
*
2+
*
33
* Styles for View Source code button
44
* and other listing block formatting
55
*/

src/css/component-frame.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** component-frame.css
2-
*
2+
*
33
* .component-frame and .frame-body
44
* NB: may be unused, deleted in 4d2db54746392090df7084978770f58f4709e56c ?
55
*/

src/css/crumbs.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** crumbs.css
2-
*
3-
* Format the breadcrumbs
2+
*
3+
* Format the breadcrumbs
44
*/
55

66
.crumbs {

src/css/doc.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** doc.css
2-
*
2+
*
33
* Styles for <article class="doc">
44
*
55
* Looks like base formatting for the Asciidoc content.

src/css/external-link-icon.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** external-link-icon.css
2-
*
2+
*
33
* Add external link icon to links that aren't to couchbase.com
44
*/
55

src/css/feedback.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** feedback.css
2-
*
3-
* I believe these elements are created by
2+
*
3+
* I believe these elements are created by
44
* Jira Issue Collector script.
55
* e.g. we don't output these in docs-ui
66
*/

src/css/footer.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** footer.css
2-
*
2+
*
33
* Styles for footer
44
* NB: we have a couple of 'float' declarations below, to investigate.
55
*/

src/css/header.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** header.css
2-
*
2+
*
33
* Styles for header
44
*/
55

src/css/home.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
/** home.css
2-
*
1+
/** home.cs
2+
*
33
* Styles for .home
44
* NB: not sure where this is? Landing pages?
55
* We can have body, div, main with class of .home
66
* via layout: home
77
* But grep suggests this may no longer be used.
8-
*
8+
*
99
* Also for .tutorials and .searchbar
1010
*/
1111

src/css/info-banner.css

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/** info-banner.css
2-
*
2+
*
33
* Home pages all have
44
*
55
* include::home::partial$info-banner.adoc[]
6-
*
6+
*
77
* The partial itself may be switched off
88
* (e.g. commented out)
99
* to remove the element from all pages.
10-
*
1110
*/
1211

1312
.info-banner {

src/css/is-this-helpful.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** is-this-helpful.css
2-
*
2+
*
33
* Style the Is this helpful? thumbs up/down feature
44
* in the table of contents
55
*/

src/css/labels.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** labels.css
2-
*
2+
*
33
* doc .labels, .edition, .status
44
*/
55

src/css/landing-page.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** landing-page.css
2-
*
2+
*
33
* Styles for Landing Pages
44
*/
55

src/css/main.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** main.css
2-
*
2+
*
33
* Styles for:
44
55
<main class="article" data-ceiling="topbar">
@@ -12,7 +12,7 @@ main {
1212
padding-bottom: 4rem;
1313
}
1414

15-
/* IMPORTANT for this to work, the element cannot be display: flex
15+
/* IMPORTANT for this to work, the element cannot be display: flex
1616
and cannot have padding top or border top */
1717
main [id]::before {
1818
content: "";

src/css/nav.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** nav.css
2-
*
2+
*
33
* Styles for nav, left-sidebar, menus, and tutorials-filter
44
*/
55

src/css/optanon.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** optanon.css
2-
*
2+
*
33
* Style vendor popup from optanon (OneTrust Cookie)
44
*/
55

src/css/pagination.css

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/** pagination.css
2-
*
3-
* Styles for Prev and Next navigation, enabled on some pages
2+
*
3+
* Styles for Prev and Next navigation, enabled on some pages
44
* by e.g.:
55
* :page-pagination: full
6-
*
6+
*
77
* See e.g. https://docs.couchbase.com/php-sdk/current/hello-world/platform-help.html
88
*/
99

src/css/site.css

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
/* Major structural components */
1919
@import "body.css";
2020
@import "nav.css";
21-
2221
@import "doc.css";
2322
@import "footer.css";
2423
@import "header.css";

src/css/swagger-ui.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** swagger-ui.css
2-
*
2+
*
33
* Style vendor css override for Swagger UI
44
*/
55

src/css/table.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** table.css
2-
*
2+
*
33
* Responsive table CSS
44
*/
55

src/css/tabs.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** tabs.css
2-
*
2+
*
33
* Style vendor css for @asciidoctor/tabs
44
*
55
* NB: we currently do NOT

src/css/terminal.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/** terminal.css
2-
*
3-
* Style the Try It Now box
2+
*
3+
* Style the Try It Now box
44
* (source code to couchbase.live integration)
55
*/
66

src/css/toc.css

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** toc.css
2-
*
2+
*
33
* Styles for Table of Contents
44
* which also includes:
55
* - Tools (edit on github)
@@ -16,8 +16,6 @@
1616
line-height: 1;
1717
}
1818

19-
20-
2119
.toc.embedded .toc-menu {
2220
margin-top: 1rem;
2321
display: none;

src/css/vars.css

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
:root {
2-
32
/* NOTE tint colors are 15% transparent */
4-
3+
54
/* primary */
65
--color-brand-primary: #262626;
76
--color-brand-black: #000;
87
--color-brand-red: #ea2328;
98
--color-brand-red-tint: #fcdedf;
109
--color-brand-white: #fff;
11-
10+
1211
/* secondary */
1312
--color-brand-secondary: #fff;
1413
--color-brand-blue: #4287d6;
@@ -24,7 +23,7 @@
2423
--color-brand-important: #b36cdb;
2524
--color-brand-warning: #ea2328;
2625
--color-brand-caution: #ff8f00;
27-
26+
2827
/* tertiary */
2928
--color-gray-rgb: 115, 118, 138;
3029
--color-brand-gray1: #292b36;
@@ -44,7 +43,6 @@
4443
--color-brand-grey: #666;
4544
--color-brand-orange: #fc9c0c;
4645
--color-brand-orange-tint: #fff0da;
47-
4846
--color-muted: var(--color-brand-gray);
4947
--color-text: #333;
5048
--color-code: var(--color-brand-pink);
@@ -57,6 +55,7 @@
5755
--color-link-active: var(--color-brand-blue-secondary-light);
5856
--color-link-hover: var(--color-brand-blue-secondary-extra-light);
5957

58+
/* other colors */
6059
--color-border-table: #dadada;
6160
--color-shade: #f3f3f3;
6261
--color-navbar-bg: var(--color-brand-black);
@@ -69,11 +68,11 @@
6968
--hljs-attr: #407787;
7069
--hljs-string: #295d1e;
7170
--hljs-number: #0711ba;
72-
71+
7372
/* Color brand tabsets */
7473
--color-active-tabset: #57a1ff;
7574

76-
/* heights and widths */
75+
/* heights */
7776
--height-spacer: 1.1rem;
7877
--height-navbar: 6rem;
7978
--height-version-control: 4.5rem;
@@ -87,6 +86,7 @@
8786
--nav-menu-top-space: calc(var(--height-to-body) + var(--height-version-control));
8887
--h2-heading-top-space: calc(var(--height-to-body) + 0.5rem);
8988

89+
/* widths */
9090
--width-main-gutter: 2.5rem;
9191
--width-container: 90rem;
9292
--width-container-fluid: 100%;
@@ -101,7 +101,7 @@
101101
--weight-medium: 500;
102102
--weight-semibold: 600;
103103
--weight-bold: 700;
104-
104+
105105
/* Z-index */
106106
--z-index-feedback: 8;
107107
--z-index-nav-toggle: 7;

0 commit comments

Comments
 (0)