Skip to content

Commit

Permalink
styles and templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sator-imaging authored Jan 13, 2024
1 parent 1225197 commit 5bd8e33
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .docfx/template/partials/class.header.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@

{{!STMG deprecate flag}}
<dt id="{{id}}">
<code>{{syntax.content.0.value}}</code>
{{syntax.content.0.value}}
{{#isDeprecated}}
<span class="badge rounded-pill bg-danger">Deprecated</span>
{{/isDeprecated}}
Expand Down
20 changes: 8 additions & 12 deletions .docfx/template/partials/class.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@
<a id="{{id}}" data-uid="{{uid}}"></a>
{{/overload}}

{{!STMG use h2 if separatePage}}
{{#_splitReference}}
<h2 id="{{id}}" data-uid="{{uid}}">
{{!STMG use h2 if separatePage & deprecate flag}}
{{#_splitReference}}<h2 id="{{id}}" data-uid="{{uid}}">{{/_splitReference}}
{{^_splitReference}}<h3 id="{{id}}" data-uid="{{uid}}">{{/_splitReference}}
{{#isDeprecated}}<del>{{/isDeprecated}}
{{name.0.value}}
{{#sourceurl}}<a class="header-action link-secondary" title="View source" href="{{sourceurl}}"><i class="bi bi-code-slash"></i></a>{{/sourceurl}}
</h2>
{{/_splitReference}}
{{^_splitReference}}
<h3 id="{{id}}" data-uid="{{uid}}">
{{name.0.value}}
{{#sourceurl}}<a class="header-action link-secondary" title="View source" href="{{sourceurl}}"><i class="bi bi-code-slash"></i></a>{{/sourceurl}}
</h3>
{{/_splitReference}}
{{#isDeprecated}}</del>{{/isDeprecated}}
{{#sourceurl}}<a class="header-action link-secondary" title="View source" href="{{sourceurl}}"><i class="bi bi-code-slash"></i></a>{{/sourceurl}}
{{#_splitReference}}</h2>{{/_splitReference}}
{{^_splitReference}}</h3>{{/_splitReference}}

{{!STMG swap order: summary and syntax code & deprecate flag}}
{{#syntax}}
Expand Down
36 changes: 22 additions & 14 deletions .docfx/template/public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
/** colors */

body {
--DISABLED--bs-link-color-rgb: 66, 184, 131 !important;
--DISABLED--bs-link-hover-color-rgb: 64, 180, 128 !important;
__--bs-link-color-rgb: 66, 184, 131 !important;
__--bs-link-hover-color-rgb: 64, 180, 128 !important;
}

nav.navbar i.bi {
-color: #22cbe1;
__color: #22cbe1;
}


Expand Down Expand Up @@ -56,16 +56,24 @@ nav.navbar ul.navbar-nav>li:first-child {

/** left side toc */

nav.toc li>ul {
-display: block !important;
nav.toc .flex-fill.overflow-y-auto {
padding-bottom: 1rem;
}

nav.toc span.expand-stub {
-display: none !important;
__display: none !important;
padding-right: 0.2rem;
line-height: 1.2rem;
}

nav.toc li {
margin: 0.4em 0;
}

nav.toc li>ul>li>ul {
margin-bottom: 0.6em;
}

nav.toc ul>li>ul>li>ul>li>ul {
font-size: 0.95em;
line-height: 1.1em;
Expand All @@ -75,17 +83,17 @@ nav.toc span.name-only {
/* hard-coded in modern template */
font-size: 14px;
font-weight: normal;
margin: 0 0 0;
}

nav.toc ul>li>ul>li>ul>li>ul span.name-only {
margin: 0.8em 0 0 0;
margin: 0;
}

nav.toc ul>li:first-child>span.name-only {
margin-top: 0;
}

nav.toc ul>li>ul>li>ul>li>ul span.name-only {
margin: 0.8em 0 0 0;
}


/** affix */

Expand Down Expand Up @@ -175,13 +183,13 @@ body[data-yaml-mime=ManagedReference] article dl.jumplist dd>*:first-child {
padding: 0px 16px;
font-weight: 900;
font-size: 14px;
color: black;
background: var(--bs-warning-border-subtle);
color: #ff0000;
background: #f5f5f5;
opacity: 1;
}

.codewrapper.deprecated>pre>code {
background: var(--bs-warning-border-subtle);
background: #f5f5f5;
}


Expand Down

0 comments on commit 5bd8e33

Please sign in to comment.