Merge pull request #1925 from influxdata/update-icon-font

Add new notebooks icon
pull/1927/head
Scott Anderson 2020-12-02 15:31:13 -07:00 committed by GitHub
commit 38878c5871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 101 additions and 86 deletions

View File

@ -580,6 +580,8 @@ Below is a list of available icons (some are aliases):
- nav-orgs - nav-orgs
- nav-tasks - nav-tasks
- note - note
- notebook
- notebooks
- org - org
- orgs - orgs
- pause - pause
@ -606,13 +608,14 @@ In many cases, documentation references an item in the left nav of the InfluxDB
Provide a visual example of the navigation item using the `nav-icon` shortcode. Provide a visual example of the navigation item using the `nav-icon` shortcode.
``` ```
{{< nav-icon "Tasks" >}} {{< nav-icon "tasks" >}}
``` ```
The following case insensitive values are supported: The following case insensitive values are supported:
- admin, influx - admin, influx
- data-explorer, data explorer - data-explorer, data explorer
- notebooks, books
- dashboards - dashboards
- tasks - tasks
- monitor, alerts, bell - monitor, alerts, bell

View File

@ -1,10 +1,10 @@
@font-face { @font-face {
font-family: 'icomoon'; font-family: 'icomoon';
src: url('fonts/icomoon.eot?dzkzbu'); src: url('fonts/icomoon.eot?lj8dxa');
src: url('fonts/icomoon.eot?dzkzbu#iefix') format('embedded-opentype'), src: url('fonts/icomoon.eot?lj8dxa#iefix') format('embedded-opentype'),
url('fonts/icomoon.ttf?dzkzbu') format('truetype'), url('fonts/icomoon.ttf?lj8dxa') format('truetype'),
url('fonts/icomoon.woff?dzkzbu') format('woff'), url('fonts/icomoon.woff?lj8dxa') format('woff'),
url('fonts/icomoon.svg?dzkzbu#icomoon') format('svg'); url('fonts/icomoon.svg?lj8dxa#icomoon') format('svg');
font-weight: normal; font-weight: normal;
font-style: normal; font-style: normal;
font-display: block; font-display: block;
@ -25,8 +25,8 @@
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
.icon-alert-circle:before { .icon-book-pencil:before {
content: "\e933"; content: "\e965";
} }
.icon-influx-logo:before { .icon-influx-logo:before {
content: "\e900"; content: "\e900";
@ -112,6 +112,9 @@
.icon-menu:before { .icon-menu:before {
content: "\e91b"; content: "\e91b";
} }
.icon-download:before {
content: "\e91c";
}
.icon-minus:before { .icon-minus:before {
content: "\e91d"; content: "\e91d";
} }
@ -139,7 +142,7 @@
.icon-data-explorer:before { .icon-data-explorer:before {
content: "\e925"; content: "\e925";
} }
.icon-download:before { .icon-ui-download:before {
content: "\e926"; content: "\e926";
} }
.icon-duplicate:before { .icon-duplicate:before {
@ -178,6 +181,9 @@
.icon-remove:before { .icon-remove:before {
content: "\e932"; content: "\e932";
} }
.icon-alert-circle:before {
content: "\e933";
}
.icon-trash:before { .icon-trash:before {
content: "\e935"; content: "\e935";
} }

View File

@ -1,12 +1,8 @@
--- ---
title: Example post title: Example post
description: This is just an example post to show the format of new 2.0 posts description: This is just an example post to show the format of new 2.0 posts
menu:
influxdb_2_0:
name: Example post
weight: 1 weight: 1
draft: true draft: true
"v2.0/tags": [influxdb, functions]
related: related:
- /influxdb/v2.0/write-data/ - /influxdb/v2.0/write-data/
- /influxdb/v2.0/write-data/quick-start - /influxdb/v2.0/write-data/quick-start
@ -26,6 +22,7 @@ This is **bold** text. This is _italic_ text. This is _**bold and italic**_.
{{< nav-icon "tasks" >}} {{< nav-icon "tasks" >}}
{{< nav-icon "alerts" >}} {{< nav-icon "alerts" >}}
{{< nav-icon "settings" >}} {{< nav-icon "settings" >}}
{{< nav-icon "notebooks" >}}
{{< icon "add-cell" >}} add-cell {{< icon "add-cell" >}} add-cell
{{< icon "add-label" >}} add-label {{< icon "add-label" >}} add-label
@ -66,6 +63,8 @@ This is **bold** text. This is _italic_ text. This is _**bold and italic**_.
{{< icon "nav-orgs" >}} nav-orgs {{< icon "nav-orgs" >}} nav-orgs
{{< icon "nav-tasks" >}} nav-tasks {{< icon "nav-tasks" >}} nav-tasks
{{< icon "note" >}} note {{< icon "note" >}} note
{{< icon "notebook" >}} notebook
{{< icon "notebooks" >}} notebooks
{{< icon "org" >}} org {{< icon "org" >}} org
{{< icon "orgs" >}} orgs {{< icon "orgs" >}} orgs
{{< icon "pause" >}} pause {{< icon "pause" >}} pause

View File

@ -58,6 +58,8 @@
<span class="inline icon-eye-open large"></span> <span class="inline icon-eye-open large"></span>
{{ else if or (eq $icon "eye-closed") (eq $icon "hide") }} {{ else if or (eq $icon "eye-closed") (eq $icon "hide") }}
<span class="inline icon-eye-closed large"></span> <span class="inline icon-eye-closed large"></span>
{{ else if or (eq $icon "notebook") (eq $icon "notebooks") }}
<span class="inline icon-book-pencil"></span>
{{ else if eq $icon "add-label" }} {{ else if eq $icon "add-label" }}
<span class="inline add-btn-round">&#59696;</span> <span class="inline add-btn-round">&#59696;</span>
{{ else if or (eq $icon "toggle") (eq $icon "toggle-blue") }} {{ else if or (eq $icon "toggle") (eq $icon "toggle-blue") }}

View File

@ -8,6 +8,10 @@
{{ .Scratch.Set "icon" "data-explorer" }} {{ .Scratch.Set "icon" "data-explorer" }}
{{ .Scratch.Set "title" "Data Explorer" }} {{ .Scratch.Set "title" "Data Explorer" }}
{{ .Scratch.Set "short_title" "Explore" }} {{ .Scratch.Set "short_title" "Explore" }}
{{ else if or (eq $navIcon "notebooks") (eq $navIcon "books") }}
{{ .Scratch.Set "icon" "book-pencil" }}
{{ .Scratch.Set "title" "Notebooks" }}
{{ .Scratch.Set "short_title" "Books" }}
{{ else if or (eq $navIcon "dashboards") (eq $navIcon "boards") }} {{ else if or (eq $navIcon "dashboards") (eq $navIcon "boards") }}
{{ .Scratch.Set "icon" "dashboards" }} {{ .Scratch.Set "icon" "dashboards" }}
{{ .Scratch.Set "title" "Dashboards" }} {{ .Scratch.Set "title" "Dashboards" }}

Binary file not shown.

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Binary file not shown.