From 2ab984547bc0eb0ac2b16d8205c0c8feee32b7b4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 29 Dec 2023 00:17:22 +0000 Subject: [PATCH 01/12] Automated dotnet-format update --- src/MCM.Abstractions/SettingType.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/MCM.Abstractions/SettingType.cs b/src/MCM.Abstractions/SettingType.cs index 04ed5da4..42250903 100644 --- a/src/MCM.Abstractions/SettingType.cs +++ b/src/MCM.Abstractions/SettingType.cs @@ -5,12 +5,12 @@ namespace MCM.Abstractions /// /// Defines the different types of settings that can be used. /// - #if !BANNERLORDMCM_PUBLIC +#if !BANNERLORDMCM_PUBLIC internal - #else - public - # endif - enum SettingType +#else + public +#endif +enum SettingType { /// /// A default value indicating no setting type. From d4484ee934517b57ac5793a620d412372a7794ee Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Sun, 7 Jan 2024 20:00:33 +0200 Subject: [PATCH 02/12] DocFX Update --- .github/workflows/docfx.yml | 5 +- .../dark-theme/partials/affix.tmpl.partial | 17 - .../partials/class.header.tmpl.partial | 100 ----- .../dark-theme/partials/class.tmpl.partial | 210 --------- .../dark-theme/partials/enum.tmpl.partial | 24 -- .../dark-theme/partials/head.tmpl.partial | 21 - .../dark-theme/partials/logo.tmpl.partial | 0 .../partials/namespace.tmpl.partial | 17 - .../dark-theme/styles/collapse-container.css | 52 --- .../_template/dark-theme/styles/main-dark.css | 408 ------------------ docs/_template/dark-theme/styles/main.css | 207 --------- docs/_template/dark-theme/styles/main.js | 57 --- docs/_template/my-template/public/main.js | 15 + docs/docfx.json | 23 +- docs/toc.yml | 2 +- src/Mod Configuration Menu.sln | 26 +- 16 files changed, 43 insertions(+), 1141 deletions(-) delete mode 100644 docs/_template/dark-theme/partials/affix.tmpl.partial delete mode 100644 docs/_template/dark-theme/partials/class.header.tmpl.partial delete mode 100644 docs/_template/dark-theme/partials/class.tmpl.partial delete mode 100644 docs/_template/dark-theme/partials/enum.tmpl.partial delete mode 100644 docs/_template/dark-theme/partials/head.tmpl.partial delete mode 100644 docs/_template/dark-theme/partials/logo.tmpl.partial delete mode 100644 docs/_template/dark-theme/partials/namespace.tmpl.partial delete mode 100644 docs/_template/dark-theme/styles/collapse-container.css delete mode 100644 docs/_template/dark-theme/styles/main-dark.css delete mode 100644 docs/_template/dark-theme/styles/main.css delete mode 100644 docs/_template/dark-theme/styles/main.js create mode 100644 docs/_template/my-template/public/main.js diff --git a/.github/workflows/docfx.yml b/.github/workflows/docfx.yml index 479d2915..36e0db91 100644 --- a/.github/workflows/docfx.yml +++ b/.github/workflows/docfx.yml @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - name: DocFX Setup - uses: butr/actions-docfx-setup@v3 + uses: butr/actions-docfx-setup@v4 with: github-token: ${{secrets.GITHUB_TOKEN}} @@ -39,8 +39,7 @@ jobs: Copy-Item "README.md" -Destination "docs/index.md"; New-Item -Type dir "docs/images"; Copy-Item "resources/MCM-48.svg" -Destination "docs/images/MCM-48.svg"; - docfx metadata docs/docfx.json; - docfx build docs/docfx.json; + docfx docs/docfx.json; shell: pwsh - name: Deploy DocFX diff --git a/docs/_template/dark-theme/partials/affix.tmpl.partial b/docs/_template/dark-theme/partials/affix.tmpl.partial deleted file mode 100644 index 43a33d01..00000000 --- a/docs/_template/dark-theme/partials/affix.tmpl.partial +++ /dev/null @@ -1,17 +0,0 @@ -{{^_disableContribution}} -
- {{#docurl}} - - {{/docurl}} - {{#sourceurl}} - - {{/sourceurl}} -
-{{/_disableContribution}} - - diff --git a/docs/_template/dark-theme/partials/class.header.tmpl.partial b/docs/_template/dark-theme/partials/class.header.tmpl.partial deleted file mode 100644 index 5f957a0b..00000000 --- a/docs/_template/dark-theme/partials/class.header.tmpl.partial +++ /dev/null @@ -1,100 +0,0 @@ -

{{>partials/title}}

-
{{{summary}}}
-
{{{conceptual}}}
- -{{#inClass}} -
-
{{__global.inheritance}}
- {{#inheritance}} -
{{{specName.0.value}}}
- {{/inheritance}} -
{{name.0.value}}
-
-{{/inClass}} - -{{#derivedClasses}} -
{{{specName.0.value}}}
-{{/derivedClasses}} - -{{#inheritedMembers.0}} -
-
{{__global.inheritedMembers}}
-{{/inheritedMembers.0}} -{{#inheritedMembers}} -
- {{#definition}} - - {{/definition}} - {{^definition}} - - {{/definition}} -
-{{/inheritedMembers}} -{{#inheritedMembers.0}} -
-{{/inheritedMembers.0}} - -
{{__global.namespace}}: {{{namespace.specName.0.value}}}
-
{{__global.assembly}}: {{assemblies.0}}.dll
- -
{{__global.syntax}}
-
-
{{syntax.content.0.value}}
-
- -{{#syntax.parameters.0}} -
{{__global.parameters}}
- -{{/syntax.parameters.0}} -{{#syntax.parameters}} - - - -{{/syntax.parameters}} -{{#syntax.parameters.0}} -
- {{{type.specName.0.value}}} - {{{id}}} -

{{{description}}}

-
-{{/syntax.parameters.0}} - -{{#syntax.return}} -
{{__global.returns}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/syntax.return}} - -{{#syntax.typeParameters.0}} -
{{__global.typeParameters}}
- -{{/syntax.typeParameters.0}} -{{#syntax.typeParameters}} - - - -{{/syntax.typeParameters}} -{{#syntax.typeParameters.0}} -
- {{{id}}} -

{{{description}}}

-
-{{/syntax.typeParameters.0}} - -{{#remarks}} -
{{__global.remarks}}
-
{{{remarks}}}
-{{/remarks}} - -{{#example.0}} -
{{__global.examples}}
-{{/example.0}} -{{#example}} -{{{.}}} -{{/example}} diff --git a/docs/_template/dark-theme/partials/class.tmpl.partial b/docs/_template/dark-theme/partials/class.tmpl.partial deleted file mode 100644 index 5f00b822..00000000 --- a/docs/_template/dark-theme/partials/class.tmpl.partial +++ /dev/null @@ -1,210 +0,0 @@ -{{>partials/class.header}} -{{#children}} -

{{>partials/classSubtitle}}

-{{#children}} - -{{^_disableContribution}} -{{#docurl}} - - - - -{{/docurl}} -{{#sourceurl}} - - - -{{/sourceurl}} -{{/_disableContribution}} - -{{#overload}} - -{{/overload}} - -

{{name.0.value}}

- -
-
{{{summary}}}
-
{{{conceptual}}}
-
{{__global.declaration}}
- -{{#syntax}} -
-
{{syntax.content.0.value}}
-
- -{{#parameters.0}} -
{{__global.parameters}}
- -{{/parameters.0}} -{{#parameters}} - - - -{{/parameters}} -{{#parameters.0}} -
- {{{type.specName.0.value}}} - {{{id}}} -

{{{description}}}

-
-{{/parameters.0}} - -{{#return}} -
{{__global.returns}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/return}} - -{{#typeParameters.0}} -
{{__global.typeParameters}}
- -{{/typeParameters.0}} -{{#typeParameters}} - - - -{{/typeParameters}} -{{#typeParameters.0}} -
- {{{id}}} -

{{{description}}}

-
-{{/typeParameters.0}} - -{{#fieldValue}} -
{{__global.fieldValue}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/fieldValue}} - -{{#propertyValue}} -
{{__global.propertyValue}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/propertyValue}} - -{{#eventType}} -
{{__global.eventType}}
- - - - -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/eventType}} -{{/syntax}} - -{{#overridden}} -
{{__global.overrides}}
-
-{{/overridden}} - -{{#implements.0}} -
{{__global.implements}}
-{{/implements.0}} -{{#implements}} - {{#definition}} -
- {{/definition}} - {{^definition}} -
- {{/definition}} -{{/implements}} - -{{#remarks}} -
{{__global.remarks}}
-
{{{remarks}}}
-{{/remarks}} - -{{#example.0}} -
{{__global.examples}}
-{{/example.0}} -{{#example}} -{{{.}}} -{{/example}} - -{{#exceptions.0}} -
{{__global.exceptions}}
- -{{/exceptions.0}} -{{#exceptions}} - - - -{{/exceptions}} -{{#exceptions.0}} -
- {{{type.specName.0.value}}} -

{{{description}}}

-
-{{/exceptions.0}} - -{{#seealso.0}} -
{{__global.seealso}}
-
-{{/seealso.0}} -{{#seealso}} - {{#isCref}} -
{{{type.specName.0.value}}}
- {{/isCref}} - {{^isCref}} -
{{{url}}}
- {{/isCref}} -{{/seealso}} -{{#seealso.0}} -
-{{/seealso.0}} -
-{{/children}} -{{/children}} - -{{#extensionMethods.0}} -

{{__global.extensionMethods}}

-{{/extensionMethods.0}} -{{#extensionMethods}} -
- {{#definition}} - - {{/definition}} - {{^definition}} - - {{/definition}} -
-{{/extensionMethods}} - -{{#seealso.0}} -

{{__global.seealso}}

-
-{{/seealso.0}} -{{#seealso}} - {{#isCref}} -
{{{type.specName.0.value}}}
- {{/isCref}} - {{^isCref}} -
{{{url}}}
- {{/isCref}} -{{/seealso}} -{{#seealso.0}} -
-{{/seealso.0}} diff --git a/docs/_template/dark-theme/partials/enum.tmpl.partial b/docs/_template/dark-theme/partials/enum.tmpl.partial deleted file mode 100644 index 91e7ede1..00000000 --- a/docs/_template/dark-theme/partials/enum.tmpl.partial +++ /dev/null @@ -1,24 +0,0 @@ -{{>partials/class.header}} -{{#children}} - {{#children}} -

{{name.0.value}}

- -
-

{{{summary}}}

-
- {{/children}} -{{/children}} - -{{#extensionMethods.0}} -

{{__global.extensionMethods}}

-{{/extensionMethods.0}} -{{#extensionMethods}} -
- {{#definition}} - - {{/definition}} - {{^definition}} - - {{/definition}} -
-{{/extensionMethods}} diff --git a/docs/_template/dark-theme/partials/head.tmpl.partial b/docs/_template/dark-theme/partials/head.tmpl.partial deleted file mode 100644 index b05353e8..00000000 --- a/docs/_template/dark-theme/partials/head.tmpl.partial +++ /dev/null @@ -1,21 +0,0 @@ -{{!Copyright (c) Oscar Vasquez. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.}} - - - - - {{#title}}{{title}}{{/title}}{{^title}}{{>partials/title}}{{/title}} {{#_appTitle}}| {{_appTitle}} {{/_appTitle}} - - - - {{#_description}}{{/_description}} - - - - - - - - {{#_noindex}}{{/_noindex}} - {{#_enableSearch}}{{/_enableSearch}} - {{#_enableNewTab}}{{/_enableNewTab}} - \ No newline at end of file diff --git a/docs/_template/dark-theme/partials/logo.tmpl.partial b/docs/_template/dark-theme/partials/logo.tmpl.partial deleted file mode 100644 index e69de29b..00000000 diff --git a/docs/_template/dark-theme/partials/namespace.tmpl.partial b/docs/_template/dark-theme/partials/namespace.tmpl.partial deleted file mode 100644 index f607a3dc..00000000 --- a/docs/_template/dark-theme/partials/namespace.tmpl.partial +++ /dev/null @@ -1,17 +0,0 @@ -

{{>partials/title}}

-
{{{summary}}}
-
{{{conceptual}}}
-
{{{remarks}}}
-{{#children}} -

{{>partials/namespaceSubtitle}}

- - {{#children}} - - - - {{/children}} -
-

-

{{{summary}}}

-
-{{/children}} diff --git a/docs/_template/dark-theme/styles/collapse-container.css b/docs/_template/dark-theme/styles/collapse-container.css deleted file mode 100644 index 2f401c16..00000000 --- a/docs/_template/dark-theme/styles/collapse-container.css +++ /dev/null @@ -1,52 +0,0 @@ -/* all collapse container */ -.collapse-container.last-modified { - margin: 0.5rem 0 1rem; - -webkit-box-shadow: 0 2px 2px 0 rgba(50, 50, 50, 0.64), 0 3px 1px -2px rgba(50, 50, 50, 0.62), 0 1px 5px 0 rgba(50, 50, 50, 0.7); - box-shadow: 0 2px 2px 0 rgba(50, 50, 50, 0.64), 0 3px 1px -2px rgba(50, 50, 50, 0.62), 0 1px 5px 0 rgba(50, 50, 50, 0.7); - border-top: 1px solid rgba(96, 96, 96, 0.7); - border-right: 1px solid rgba(96, 96, 96, 0.7); - border-left: 1px solid rgba(96, 96, 96, 0.7); -} - -/* header */ -.collapse-container.last-modified>:nth-child(odd):focus { - outline: 0; -} - -.collapse-container.last-modified>:nth-child(odd) { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - cursor: pointer; - -webkit-tap-highlight-color: transparent; - line-height: 1.5; - padding: 0.75rem; - background-image: none; - border: 0; - background-color: #3f3f3f; - border-bottom: 1px solid rgba(96, 96, 96, 0.7); -} - -/* body */ -.collapse-container.last-modified>:nth-child(even) { - display: none; - -webkit-box-sizing: border-box; - box-sizing: border-box; - padding: 1rem; - border: 0; - border-bottom: 1px solid rgba(96, 96, 96, 0.7); - background-color: inherit; -} - - -/* arrow */ -span.arrow-d{ - top: 6px; position: relative; - border-top: 5px solid white -} - -span.arrow-r{ - top: 6px; position: relative; - border-left: 5px solid white -} \ No newline at end of file diff --git a/docs/_template/dark-theme/styles/main-dark.css b/docs/_template/dark-theme/styles/main-dark.css deleted file mode 100644 index 8024c71a..00000000 --- a/docs/_template/dark-theme/styles/main-dark.css +++ /dev/null @@ -1,408 +0,0 @@ -@import url('https://fonts.googleapis.com/css?family=Roboto|Muli|Fira+Mono'); -@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css'); - -body { - /*color: #ccd5dc;*/ - color: silver; - /*font-family: "Open Sans",sans-serif;*/ - font-family: 'Roboto', 'Segoe UI', Tahoma, Helvetica, sans-serif; - line-height: 1.5; - font-size: 14px; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; - word-wrap: break-word; - background-color: #2d2d30; -} - -h1, h2, h3, h4, h5, h6 { - font-family: noto sans,Verdana,Geneva,Tahoma,sans-serif; - line-height: 130%; -} - -h1 { - /*font-weight: 600;*/ - font-weight: 500; - font-size: 32px; -} - -h2 { - /*font-weight: 600;*/ - font-weight: 500; - font-size: 24px; - line-height: 1.8; -} - -h3 { - /*font-weight: 600;*/ - font-weight: 500; - font-size: 20px; - line-height: 1.8; -} - -h5 { - font-size: 14px; - padding: 10px 0px; -} - -article h1, -article h2, -article h3, -article h4 { - margin-top: 35px; - margin-bottom: 15px; -} - -article h4 { - font-weight: 500; // - font-size: 18px; // - padding-bottom: 8px; - border-bottom: 2px solid #ddd; - padding-bottom: 8px; // - border-bottom: 2px solid #ddd; // -} - -button, a { - color: #64b5f6; -} - -#constructors, #fields, #properties, #methods, #events { - font-weight: normal; -} - -.dropdown, .dropdown-menu>li>a, .dropdown-menu.level2 { - color: silver; - background-color: #333337; -} - -.navbar-brand>img { - color: #2d2d30; -} - -.navbar { - border: none; -} - -.subnav { - border-top: 1px solid #ddd; - background-color: #333337; -} - -.navbar-inverse { - background-color: #1e1e1e; - z-index: 100; -} - -.navbar-inverse .navbar-nav>li>a, -.navbar-inverse .navbar-text { - /*color: #66666d;*/ - background-color: #1e1e1e; - border-bottom: 3px solid transparent; - padding-bottom: 12px; -} - -.navbar-inverse .navbar-nav>li>a:focus, -.navbar-inverse .navbar-nav>li>a:hover { - /*color: #c5c5de;*/ - color: #dadada; - background-color: #1e1e1e; - border-bottom: 3px solid #333337; - transition: all ease 0.25s; -} - -.navbar-inverse .navbar-nav>.active>a, -.navbar-inverse .navbar-nav>.active>a:focus, -.navbar-inverse .navbar-nav>.active>a:hover { - /*color: #c5c5de;*/ - color: #dadada; - background-color: #1e1e1e; - border-bottom: 3px solid #c5c5de; - transition: all ease 0.25s; -} - -.navbar-form .form-control { - border: none; - border-radius: 0; -} - -/* -.toc .level1>li { - font-weight: 500; -} -*/ - -.toc .nav > li > a { - /*color: #ccd5dc;*/ - color: #dadada; -} -.toc .nav > li.active > a{ - color: #90caf9; -} - - -.sidefilter { - background-color: #2d2d30; - border-left: none; - border-right: none; -} - -.sidefilter { - background-color: #2d2d30; - border-left: none; - border-right: none; -} - -.toc-filter { - padding: 10px; - margin: 0; - background-color: #2d2d30; -} - -.toc-filter>input { - border: none; - border-radius: unset; - /*background-color: #333337;*/ - padding: 5px 0 5px 20px; - font-size: 90% -} - -.toc-filter>.clear-icon { - position: absolute; - top: 17px; - right: 15px; -} - -.toc-filter>input:focus { - /*color: #ccd5dc;*/ - transition: all ease 0.25s; -} - -.toc-filter>.filter-icon { - display: none; -} - -.sidetoc>.toc { - background-color: #2d2d30; - overflow-x: hidden; -} - -.sidetoc { - background-color: #2d2d30; - border: none; -} - -.alert { - background-color: inherit; - border: none; - padding: 10px 0; - border-radius: 0; -} - -.alert>p { - margin-bottom: 0; - padding: 5px 10px; - border-bottom: 1px solid; - background-color: #212123; -} - -.alert>h5 { - padding: 10px 15px; - margin-top: 0; - margin-bottom: 0; - text-transform: uppercase; - font-weight: bold; - border-top: 2px solid; - background-color: #212123; - border-radius: none; -} - -.alert>ul { - margin-bottom: 0; - padding: 5px 40px; -} - -.alert-info{ - color: #1976d2; -} - -.alert-warning{ - color: #f57f17; -} - -.alert-danger{ - color: #d32f2f; -} - -pre { - padding: 9.5px; - margin: 0 0 10px; - font-size: 13px; - word-break: break-all; - word-wrap: break-word; - /*background-color: #1e1e1e;*/ - background-color: #282a36; - border-radius: 0; - border: none; - - display: block; - color: #333; - border: 1px solid #ccc; - border-radius: 4px; - background-color: #282a36; -} - -code{ - color: #dadada; - background-color: #4a4c52; - font-family: 'Fira Mono', 'Courier New', Courier, monospace; - /*background: #1e1e1e !important;*/ - border-radius: 2px; -} - -.hljs{ - color: #bbb; -} - -.toc .nav > li.active > .expand-stub::before, .toc .nav > li.in > .expand-stub::before, .toc .nav > li.in.active > .expand-stub::before, .toc .nav > li.filtered > .expand-stub::before { - content: "▾"; -} - -.toc .nav > li > .expand-stub::before, .toc .nav > li.active > .expand-stub::before { - content: "▸"; -} - -.affix ul ul > li > a:before { - content: "|"; -} - -.affix > ul > li.active > a, .affix > ul > li.active > a::before { - color: #b3e5fc; -} -.affix ul > li.active > a, .affix ul > li.active > a::before { - color: #b3e5fc; -} - -.breadcrumb .label.label-primary { - background: #444; - border-radius: 0; - font-weight: normal; - font-size: 100%; -} - -#breadcrumb .breadcrumb>li a { - border-radius: 0; - font-weight: normal; - /*font-size: 85%;*/ - font-size: 95%; - display: inline; - padding: 0 .6em 0; - line-height: 1; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - color: #999; -} -#breadcrumb .breadcrumb>li a:hover{ - /*color: #c5c5de;*/ - color: #dadada; - transition: all ease 0.25s; -} - -.breadcrumb > li + li:before { - content: "⯈"; - font-size: 75%; - /*color: #1e1e1e;*/ - padding: 0; -} - -.toc .level1>li { - /*font-weight: 600;*/ - font-weight: 500; - font-size: 130%; - padding-left: 5px; -} - -.footer { - border-top: none; - background-color: #1e1e1e; - padding: 15px 0; - font-size: 90%; -} - -.toc .nav > li > a:hover, .toc .nav > li > a:focus { - color: #fff; - transition: all ease 0.1s; -} - -.form-control { - /*background-color: #333337;*/ - border: none; - border-radius: 0; - -webkit-box-shadow: none; - box-shadow: none; -} - -.form-control:focus { - /*border-color: #66afe9;*/ - outline: 0; - -webkit-box-shadow: none; - box-shadow: none; -} -input#search-query { - background-color: #fff; -} -input#search-query:focus { - /*color: #c5c5de;*/ -} - -.table-bordered, .table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th { - border: 1px solid #1E1E1E; -} - -.table-striped>tbody>tr:nth-of-type(odd) { - background-color: #212123; -} - -blockquote { - padding: 10px 20px; - margin: 0 0 10px; - font-size: 110%; - border-left: 5px solid #69696e; - color: #69696e; -} - -.pagination>.disabled>a, .pagination>.disabled>a:focus, .pagination>.disabled>a:hover, .pagination>.disabled>span, .pagination>.disabled>span:focus, .pagination>.disabled>span:hover { - background-color: #333337; - border-color: #333337; -} - -.breadcrumb>li, .pagination { - display: inline; -} - -@media (min-width: 1600px){ - .container { - width: 100%; - } - .sidefilter { - width: 18%; - } - .sidetoc{ - width: 18%; - } - .article.grid-right { - margin-left: 19%; - } - .sideaffix { - width: 11.5%; - } - - .affix ul > li.active > a{ - white-space: initial; - } - .affix ul > li > a{ - width: 99%; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - } -} \ No newline at end of file diff --git a/docs/_template/dark-theme/styles/main.css b/docs/_template/dark-theme/styles/main.css deleted file mode 100644 index a6aafd81..00000000 --- a/docs/_template/dark-theme/styles/main.css +++ /dev/null @@ -1,207 +0,0 @@ -@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css"); -@import "main-dark.css"; - -/* Clickability fix for selector on sm devices */ -@media (min-width: 768px) and (max-width: 991px) { - article h1:first-of-type:before { - height: 0; - margin-top: 0; - } -} - -/* -#search { - border: none; -} -*/ - -.fa-code { - font-size: 19px; -} - -.article.grid-right { - margin-left: 330px; -} - -.toc ul{ - font-size: 10px; -} - -.toc .level1 > li { - font-size: 14px; -} -.toc .level2 { - font-size: 12px; -} - -.sideaffix { - margin-left: -35px; -} - -.sidetoc, -.sidefilter { - width: 330px; -} - -.sidenav, -.toc-toggle { - padding: 0; -} - -.sidetoggle { - padding-bottom: 15px; -} - -/* Remove center align from Navbar and Collapsible section */ -.collapse.in, -.collapsing { - text-align: unset; -} - -article h4 { - border-bottom: none; -} - -@media (min-width: 768px) { - .sidetoc, .sidefilter { - margin-left: -15px; - } -} - -@media (max-width: 767px) { - .navbar-collapse { - text-align: center !important; - } - - .navbar-collapse li .active { - border-radius: 20px; - } -} - -/* Collapsible Sections - ------------------------------------------------------- */ -.expander:after { - font-family: 'Glyphicons Halflings'; - content: "\e260"; - margin-left: 5px; - color: grey; - font-size: small; -} - -.expander.collapsed:after { - content: "\e259"; -} - -/* Floating buttons - ------------------------------------------------------- */ -.fab { - width: 40px; - height: 40px; - text-align: center; - padding: 11px 0 0; - border: none; - outline: none; - color: #FFF; - border-radius: 100%; - box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); - transition:.3s; -} - -.fab:hover { - transform: scale(1.1); -} - -.fab + .fab { - margin-right: 15px; -} - -.contribution-panel { - z-index: 1000; - position: fixed; - right: 30px; - top: 70px; -} - -/* Bootstrap docs like sidebar - ------------------------------------------------------- */ -.affix h5 { - display: none; -} - -/* active & hover links */ -.affix ul > li > a:hover, -.affix ul > li.active > a, -.affix ul > li > a:focus { - text-decoration: none; - background-color: transparent; -} - -/* all active links */ -.affix ul > li.active > a, -.affix ul > li.active:hover > a, -.affix ul > li.active:focus >a { - font-weight: 700; -} - -/* nested active links */ -.affix ul ul > li.active > a, -.affix ul ul > li.active:hover > a, -.affix ul ul > li.active:focus > a { - font-weight: 500; -} - -/* all links */ -.affix ul > li > a { - color: #999; - border-left: 2px solid transparent; - padding: 4px 20px; - font-size: 13px; - font-weight: 400; -} - -/* nested links */ -.affix ul ul > li > a { - padding-top: 1px; - padding-bottom: 1px; - padding-left: 30px; - font-size: 12px; -} - -/* hide inactive nested list */ -.affix ul ul { - display: none; -} - -/* show active nested list */ -.affix ul > li.active > ul { - display: block; -} - -.affix > ul > li > a:before { - content: ''; -} - -.affix ul ul > li > a:before { - content: ''; -} - -/* Navbar Hamburger - ------------------------------------------------------- */ -.icon-bar { - transition: 0.4s; -} - -/* Rotate first bar */ -.change .icon-bar:nth-of-type(2) { - transform: rotate(-45deg) translate(-4px, 5px) ; -} - -/* Fade out the second bar */ -.change .icon-bar:nth-of-type(3) { - opacity: 0; -} - -/* Rotate last bar */ -.change .icon-bar:nth-of-type(4) { - transform: rotate(45deg) translate(-4px, -5px) ; -} \ No newline at end of file diff --git a/docs/_template/dark-theme/styles/main.js b/docs/_template/dark-theme/styles/main.js deleted file mode 100644 index 7fce7bc6..00000000 --- a/docs/_template/dark-theme/styles/main.js +++ /dev/null @@ -1,57 +0,0 @@ -// Use container fluid -var containers = $(".container"); -containers.removeClass("container"); -containers.addClass("container-fluid"); - -// Navbar Hamburger -$(function() { - $(".navbar-toggle").click(function() { - $(this).toggleClass("change"); - }) -}) - -// Select list to replace affix on small screens -$(function () { - var navItems = $(".sideaffix .level1 > li"); - - if (navItems.length == 0) { - return; - } - - var selector = $("