From f156570fe5ee642fa0c78aae4834d1d44dd199e7 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Fri, 31 Jul 2020 14:10:22 -0600 Subject: [PATCH] added v1 override styles to style v1 blockquoates as notes --- assets/styles/layouts/_v1-overrides.scss | 76 +++++++++++++++++++ assets/styles/styles-default.scss | 3 +- .../v1.7/guides/https_setup.md | 10 +-- .../v1.8/guides/https_setup.md | 8 +- layouts/partials/header.html | 2 +- 5 files changed, 88 insertions(+), 11 deletions(-) create mode 100644 assets/styles/layouts/_v1-overrides.scss diff --git a/assets/styles/layouts/_v1-overrides.scss b/assets/styles/layouts/_v1-overrides.scss new file mode 100644 index 000000000..497955bba --- /dev/null +++ b/assets/styles/layouts/_v1-overrides.scss @@ -0,0 +1,76 @@ +body.v1{ + .article .article--content { + blockquote { + padding: 1.65rem 2rem .1rem 2rem; + margin: 1rem 0 2rem; + border-width: 0 0 0 4px; + border-style: solid; + border-radius: 0 $radius $radius 0; + + p,li { + font-size: .95rem; + font-style: inherit; + } + ul,ol { + &:last-child { margin-bottom: 1.85rem; } + } + + border-color: $article-note-base; + background: rgba($article-note-base, .1); + h1,h2,h3,h4,h5,h6 { + color: $article-note-heading; + } + p, li { + color: $article-note-text; + } + strong { + color: inherit; + } + a { + color: $article-note-link; + code:after { + border-color: transparent rgba($article-note-code, .35) transparent transparent; + } + &:hover { + color: $article-note-link-hover; + code:after { + border-color: transparent $article-note-link-hover transparent transparent; + } + } + } + ol li:before { + color: $article-note-text; + } + code, pre{ + color: $article-note-code; + background: $article-note-code-bg; + } + img { + box-shadow: 1px 3px 10px $article-note-shadow; + } + table{ + color: $article-note-text; + box-shadow: 1px 3px 10px $article-note-shadow; + thead{ + @include gradient($article-note-table-header); + } + tr:nth-child(even) td { + background: $article-note-table-row-alt; + } + } + blockquote { + border-color: rgba($article-note-text, .25); + p { color: rgba($article-note-text, .6); } + } + .code-tabs-wrapper .code-tabs a { + background: transparent; + color: rgba($article-note-text, .5); + &:hover { color: rgba($article-note-text, 1); } + &.is-active { + color: rgba($article-note-text, 1); + background: $article-note-code-bg}; + } + + } + } +} diff --git a/assets/styles/styles-default.scss b/assets/styles/styles-default.scss index 46f68bf40..74083c3a6 100644 --- a/assets/styles/styles-default.scss +++ b/assets/styles/styles-default.scss @@ -23,4 +23,5 @@ "layouts/landing", "layouts/error-page", "layouts/url-selector", - "layouts/feature-callouts"; + "layouts/feature-callouts", + "layouts/v1-overrides"; diff --git a/content/enterprise_influxdb/v1.7/guides/https_setup.md b/content/enterprise_influxdb/v1.7/guides/https_setup.md index a217ca3a4..d69241897 100644 --- a/content/enterprise_influxdb/v1.7/guides/https_setup.md +++ b/content/enterprise_influxdb/v1.7/guides/https_setup.md @@ -12,9 +12,9 @@ When configured with a signed certificate, HTTPS can also verify the authenticit This pages outlines how to set up HTTPS with InfluxDB Enterprise using either a signed or self-signed certificate. -
+{{% warn %}} InfluxData **strongly recommends** enabling HTTPS, especially if you plan on sending requests to InfluxDB Enterprise over a network. -
+{{% /warn %}} {{% note %}} These steps have been tested on Debian-based Linux distributions. @@ -85,7 +85,7 @@ Consult your CA if you are unsure about how to use these files. {{% /note %}} 3. **Ensure file permissions for each Node** - + Certificate files require read and write access by the `influxdb` user. Ensure that you have the correct file permissions in each meta node and data node by running the following commands: @@ -212,7 +212,7 @@ With a self-signed certificate, you must also use the `-k` option to skip certif ID TCP Address Version 4 enterprise-data-01:8088 1.x.y-c1.x.y 5 enterprise-data-02:8088 1.x.y-c1.x.y - + Meta Nodes ========== TCP Address Version @@ -228,7 +228,7 @@ With a self-signed certificate, you must also use the `-k` option to skip certif ``` If using a self-signed certificate, use - + ```sh influx -ssl -unsafeSsl -host .com ``` diff --git a/content/enterprise_influxdb/v1.8/guides/https_setup.md b/content/enterprise_influxdb/v1.8/guides/https_setup.md index e65de942c..b384cdfd7 100644 --- a/content/enterprise_influxdb/v1.8/guides/https_setup.md +++ b/content/enterprise_influxdb/v1.8/guides/https_setup.md @@ -12,9 +12,9 @@ When configured with a signed certificate, HTTPS can also verify the authenticit This pages outlines how to set up HTTPS with InfluxDB Enterprise using either a signed or self-signed certificate. -
+{{% warn %}} InfluxData **strongly recommends** enabling HTTPS, especially if you plan on sending requests to InfluxDB Enterprise over a network. -
+{{% /warn %}} {{% note %}} These steps have been tested on Debian-based Linux distributions. @@ -212,7 +212,7 @@ With a self-signed certificate, you must also use the `-k` option to skip certif ID TCP Address Version 4 enterprise-data-01:8088 1.x.y-c1.x.y 5 enterprise-data-02:8088 1.x.y-c1.x.y - + Meta Nodes ========== TCP Address Version @@ -228,7 +228,7 @@ With a self-signed certificate, you must also use the `-k` option to skip certif ``` If using a self-signed certificate, use - + ```sh influx -ssl -unsafeSsl -host .com ``` diff --git a/layouts/partials/header.html b/layouts/partials/header.html index d8b3846e3..4513fd276 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -29,5 +29,5 @@ - + {{ partial "header/google-analytics-body.html" }}