diff --git a/docs/_layouts/docs.html b/docs/_layouts/docs.html index 09f308e0..e48058d1 100644 --- a/docs/_layouts/docs.html +++ b/docs/_layouts/docs.html @@ -3,37 +3,54 @@ --- - - - - GetNighthawk - - - - + + + + GetNighthawk + + - - - + + + // for copy button + - - - - - - - - - - - - -





+ + + + + + + + + + + + + + + + +





-
- {% for doc in site.docs %} - {% if doc.section == docs.name %} -
  • -
    - {% assign category = page.section %} - {{ doc.title }} -
    -
  • - {% endif %} - {% endfor %} -
    +
    + {% for doc in site.docs %} + {% if doc.section == docs.name %} +
  • +
    + {% assign category = page.section %} + {{ doc.title }} +
    +
  • + {% endif %} + {% endfor %}
    - {% endfor %} +
    + {% endfor %}
    -
    {{category}} + {{content}}
    - + \ No newline at end of file diff --git a/docs/assets/css/copy-button.css b/docs/assets/css/copy-button.css new file mode 100644 index 00000000..6df7ca34 --- /dev/null +++ b/docs/assets/css/copy-button.css @@ -0,0 +1,27 @@ +.copy-button { + position: absolute; + top: 0; + right: 0; + padding: 5px 10px; + font-size: 14px; + cursor: pointer; + border: 1px solid #009E7F; + border-radius: 3px; + background-color: #009E7F; + color: #fff; + font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; + } + + .copy-button:hover { + background-color: #00B39F; + border-color: #00B39F; + } + + +.highlight{ + display: inline-flex; + position: relative; + + width: 100%; + +} \ No newline at end of file diff --git a/docs/assets/css/main.scss b/docs/assets/css/main.scss index 66d7f821..22a76901 100644 --- a/docs/assets/css/main.scss +++ b/docs/assets/css/main.scss @@ -8,3 +8,4 @@ @import "about.scss"; @import "mailing-list.scss"; @import "index.scss"; +@import "copy-button.css";