Skip to content

Commit

Permalink
Appeasing css linter
Browse files Browse the repository at this point in the history
  • Loading branch information
osfameron committed Aug 4, 2023
1 parent 95b1961 commit e97562a
Show file tree
Hide file tree
Showing 27 changed files with 43 additions and 49 deletions.
2 changes: 1 addition & 1 deletion src/css/base.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** base.css
*
*
* Resets and other basic CSS
*/

Expand Down
6 changes: 2 additions & 4 deletions src/css/body.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
/** body.css
*
*
* Styles for body, main, and .nav
* TODO: compare main.css and nav.css
*/



div.body {
display: flex;
margin-top: var(--height-to-body);
Expand All @@ -20,7 +18,7 @@ div.body {
}

/* NOTE
min-width of flex: 1 container = content-width to prevent wrapping by default;
min-width of flex: 1 container = content-width to prevent wrapping by default;
min-width: 0 lets content wrap */
main {
flex: 1;
Expand Down
2 changes: 1 addition & 1 deletion src/css/callouts.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** callouts.css
*
* Format code callouts https://docs.asciidoctor.org/asciidoc/latest/verbatim/callouts/
*
*
* Support for Ray's Externally defined callouts:
* https://www.npmjs.com/package/asciidoctor-external-callout
*
Expand Down
2 changes: 1 addition & 1 deletion src/css/clipboard.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** clipboard.css
*
*
* Styles for View Source code button
* and other listing block formatting
*/
Expand Down
2 changes: 1 addition & 1 deletion src/css/component-frame.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** component-frame.css
*
*
* .component-frame and .frame-body
* NB: may be unused, deleted in 4d2db54746392090df7084978770f58f4709e56c ?
*/
Expand Down
4 changes: 2 additions & 2 deletions src/css/crumbs.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** crumbs.css
*
* Format the breadcrumbs
*
* Format the breadcrumbs
*/

.crumbs {
Expand Down
2 changes: 1 addition & 1 deletion src/css/doc.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** doc.css
*
*
* Styles for <article class="doc">
*
* Looks like base formatting for the Asciidoc content.
Expand Down
2 changes: 1 addition & 1 deletion src/css/external-link-icon.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** external-link-icon.css
*
*
* Add external link icon to links that aren't to couchbase.com
*/

Expand Down
4 changes: 2 additions & 2 deletions src/css/feedback.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** feedback.css
*
* I believe these elements are created by
*
* I believe these elements are created by
* Jira Issue Collector script.
* e.g. we don't output these in docs-ui
*/
Expand Down
2 changes: 1 addition & 1 deletion src/css/footer.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** footer.css
*
*
* Styles for footer
* NB: we have a couple of 'float' declarations below, to investigate.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/css/header.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** header.css
*
*
* Styles for header
*/

Expand Down
6 changes: 3 additions & 3 deletions src/css/home.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/** home.css
*
/** home.cs
*
* Styles for .home
* NB: not sure where this is? Landing pages?
* We can have body, div, main with class of .home
* via layout: home
* But grep suggests this may no longer be used.
*
*
* Also for .tutorials and .searchbar
*/

Expand Down
5 changes: 2 additions & 3 deletions src/css/info-banner.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
/** info-banner.css
*
*
* Home pages all have
*
* include::home::partial$info-banner.adoc[]
*
*
* The partial itself may be switched off
* (e.g. commented out)
* to remove the element from all pages.
*
*/

.info-banner {
Expand Down
2 changes: 1 addition & 1 deletion src/css/is-this-helpful.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** is-this-helpful.css
*
*
* Style the Is this helpful? thumbs up/down feature
* in the table of contents
*/
Expand Down
2 changes: 1 addition & 1 deletion src/css/labels.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** labels.css
*
*
* doc .labels, .edition, .status
*/

Expand Down
2 changes: 1 addition & 1 deletion src/css/landing-page.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** landing-page.css
*
*
* Styles for Landing Pages
*/

Expand Down
4 changes: 2 additions & 2 deletions src/css/main.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** main.css
*
*
* Styles for:
<main class="article" data-ceiling="topbar">
Expand All @@ -12,7 +12,7 @@ main {
padding-bottom: 4rem;
}

/* IMPORTANT for this to work, the element cannot be display: flex
/* IMPORTANT for this to work, the element cannot be display: flex
and cannot have padding top or border top */
main [id]::before {
content: "";
Expand Down
2 changes: 1 addition & 1 deletion src/css/nav.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** nav.css
*
*
* Styles for nav, left-sidebar, menus, and tutorials-filter
*/

Expand Down
2 changes: 1 addition & 1 deletion src/css/optanon.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** optanon.css
*
*
* Style vendor popup from optanon (OneTrust Cookie)
*/

Expand Down
6 changes: 3 additions & 3 deletions src/css/pagination.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/** pagination.css
*
* Styles for Prev and Next navigation, enabled on some pages
*
* Styles for Prev and Next navigation, enabled on some pages
* by e.g.:
* :page-pagination: full
*
*
* See e.g. https://docs.couchbase.com/php-sdk/current/hello-world/platform-help.html
*/

Expand Down
1 change: 0 additions & 1 deletion src/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/* Major structural components */
@import "body.css";
@import "nav.css";

@import "doc.css";
@import "footer.css";
@import "header.css";
Expand Down
2 changes: 1 addition & 1 deletion src/css/swagger-ui.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** swagger-ui.css
*
*
* Style vendor css override for Swagger UI
*/

Expand Down
2 changes: 1 addition & 1 deletion src/css/table.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** table.css
*
*
* Responsive table CSS
*/

Expand Down
2 changes: 1 addition & 1 deletion src/css/tabs.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** tabs.css
*
*
* Style vendor css for @asciidoctor/tabs
*
* NB: we currently do NOT
Expand Down
4 changes: 2 additions & 2 deletions src/css/terminal.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** terminal.css
*
* Style the Try It Now box
*
* Style the Try It Now box
* (source code to couchbase.live integration)
*/

Expand Down
4 changes: 1 addition & 3 deletions src/css/toc.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** toc.css
*
*
* Styles for Table of Contents
* which also includes:
* - Tools (edit on github)
Expand All @@ -16,8 +16,6 @@
line-height: 1;
}



.toc.embedded .toc-menu {
margin-top: 1rem;
display: none;
Expand Down
16 changes: 8 additions & 8 deletions src/css/vars.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
:root {

/* NOTE tint colors are 15% transparent */

/* primary */
--color-brand-primary: #262626;
--color-brand-black: #000;
--color-brand-red: #ea2328;
--color-brand-red-tint: #fcdedf;
--color-brand-white: #fff;

/* secondary */
--color-brand-secondary: #fff;
--color-brand-blue: #4287d6;
Expand All @@ -24,7 +23,7 @@
--color-brand-important: #b36cdb;
--color-brand-warning: #ea2328;
--color-brand-caution: #ff8f00;

/* tertiary */
--color-gray-rgb: 115, 118, 138;
--color-brand-gray1: #292b36;
Expand All @@ -44,7 +43,6 @@
--color-brand-grey: #666;
--color-brand-orange: #fc9c0c;
--color-brand-orange-tint: #fff0da;

--color-muted: var(--color-brand-gray);
--color-text: #333;
--color-code: var(--color-brand-pink);
Expand All @@ -57,6 +55,7 @@
--color-link-active: var(--color-brand-blue-secondary-light);
--color-link-hover: var(--color-brand-blue-secondary-extra-light);

/* other colors */
--color-border-table: #dadada;
--color-shade: #f3f3f3;
--color-navbar-bg: var(--color-brand-black);
Expand All @@ -69,11 +68,11 @@
--hljs-attr: #407787;
--hljs-string: #295d1e;
--hljs-number: #0711ba;

/* Color brand tabsets */
--color-active-tabset: #57a1ff;

/* heights and widths */
/* heights */
--height-spacer: 1.1rem;
--height-navbar: 6rem;
--height-version-control: 4.5rem;
Expand All @@ -87,6 +86,7 @@
--nav-menu-top-space: calc(var(--height-to-body) + var(--height-version-control));
--h2-heading-top-space: calc(var(--height-to-body) + 0.5rem);

/* widths */
--width-main-gutter: 2.5rem;
--width-container: 90rem;
--width-container-fluid: 100%;
Expand All @@ -101,7 +101,7 @@
--weight-medium: 500;
--weight-semibold: 600;
--weight-bold: 700;

/* Z-index */
--z-index-feedback: 8;
--z-index-nav-toggle: 7;
Expand Down

0 comments on commit e97562a

Please sign in to comment.