Skip to content

Commit

Permalink
chore: tweak the color, spacing, icons of the modern template (#8524)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih authored Mar 19, 2023
1 parent f5dc181 commit cb560e4
Show file tree
Hide file tree
Showing 55 changed files with 359 additions and 319 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{{/overload}}
<h3 id="{{id}}">{{>partials/classSubtitle}}</h3>
{{#children.0}}
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.name}}</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
</div>
{{#parameters.0}}
<h5 class="parameters">{{__global.parameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -53,7 +53,7 @@
{{/parameters.0}}
{{#return}}
<h5 class="returns">{{__global.returns}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -70,7 +70,7 @@
{{/return}}
{{#typeParameters.0}}
<h5 class="typeParameters">{{__global.typeParameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.name}}</th>
Expand All @@ -91,7 +91,7 @@
{{/typeParameters.0}}
{{#fieldValue}}
<h5 class="fieldValue">{{__global.fieldValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -108,7 +108,7 @@
{{/fieldValue}}
{{#propertyValue}}
<h5 class="propertyValue">{{__global.propertyValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -125,7 +125,7 @@
{{/propertyValue}}
{{#eventType}}
<h5 class="eventType">{{__global.eventType}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down Expand Up @@ -168,7 +168,7 @@
{{/example}}
{{#exceptions.0}}
<h5 class="exceptions">{{__global.exceptions}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down
6 changes: 3 additions & 3 deletions templates/default/partials/class.header.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
</div>
{{#syntax.parameters.0}}
<h5 class="parameters">{{__global.parameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -73,7 +73,7 @@
{{/syntax.parameters.0}}
{{#syntax.return}}
<h5 class="returns">{{__global.returns}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -90,7 +90,7 @@
{{/syntax.return}}
{{#syntax.typeParameters.0}}
<h5 class="typeParameters">{{__global.typeParameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.name}}</th>
Expand Down
14 changes: 7 additions & 7 deletions templates/default/partials/class.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
{{#parameters.0}}
<h5 class="parameters">{{__global.parameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -51,7 +51,7 @@
{{/parameters.0}}
{{#return}}
<h5 class="returns">{{__global.returns}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -68,7 +68,7 @@
{{/return}}
{{#typeParameters.0}}
<h5 class="typeParameters">{{__global.typeParameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.name}}</th>
Expand All @@ -89,7 +89,7 @@
{{/typeParameters.0}}
{{#fieldValue}}
<h5 class="fieldValue">{{__global.fieldValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -106,7 +106,7 @@
{{/fieldValue}}
{{#propertyValue}}
<h5 class="propertyValue">{{__global.propertyValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -123,7 +123,7 @@
{{/propertyValue}}
{{#eventType}}
<h5 class="eventType">{{__global.eventType}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down Expand Up @@ -155,7 +155,7 @@
{{/example}}
{{#exceptions.0}}
<h5 class="exceptions">{{__global.exceptions}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/partials/enum.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{>partials/class.header}}
{{#children}}
<h3 id="{{id}}">{{>partials/classSubtitle}}</h3>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.name}}</th>
Expand Down
4 changes: 2 additions & 2 deletions templates/default/partials/rest.child.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
</div>
{{#parameters.0}}
<h5>Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Name</th>
Expand All @@ -53,7 +53,7 @@
{{#responses.0}}
<div class="responses">
<h5>Responses</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>Status Code</th>
Expand Down
18 changes: 9 additions & 9 deletions templates/default/partials/uref/class.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>
{{#parameters.0}}
<h5 class="parameters">{{__global.parameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -54,7 +54,7 @@
{{/parameters.0}}
{{#return}}
<h5 class="returns">{{__global.returns}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -71,7 +71,7 @@
{{/return}}
{{#typeParameters.0}}
<h5 class="typeParameters">{{__global.typeParameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.name}}</th>
Expand All @@ -92,7 +92,7 @@
{{/typeParameters.0}}
{{#fieldValue}}
<h5 class="fieldValue">{{__global.fieldValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -109,7 +109,7 @@
{{/fieldValue}}
{{#propertyValue}}
<h5 class="propertyValue">{{__global.propertyValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -126,7 +126,7 @@
{{/propertyValue}}
{{#eventType}}
<h5 class="eventType">{{__global.eventType}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -143,7 +143,7 @@
{{/eventType}}
{{#variableValue}}
<h5 class="variableValue">{{__global.variableValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -160,7 +160,7 @@
{{/variableValue}}
{{#typeAliasType}}
<h5 class="typeAliasType">{{__global.typeAliasType}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down Expand Up @@ -203,7 +203,7 @@
{{/example}}
{{#exceptions.0}}
<h5 class="exceptions">{{__global.exceptions}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/partials/uref/enum.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{>partials/uref/class.header}}
{{#children}}
<h3 id="{{id}}">{{>partials/classSubtitle}}</h3>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.name}}</th>
Expand Down
14 changes: 7 additions & 7 deletions templates/default/partials/uref/namespace.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</div>
{{#parameters.0}}
<h5 class="parameters">{{__global.parameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -67,7 +67,7 @@
{{/parameters.0}}
{{#return}}
<h5 class="returns">{{__global.returns}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -84,7 +84,7 @@
{{/return}}
{{#typeParameters.0}}
<h5 class="typeParameters">{{__global.typeParameters}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.name}}</th>
Expand All @@ -105,7 +105,7 @@
{{/typeParameters.0}}
{{#fieldValue}}
<h5 class="fieldValue">{{__global.fieldValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -122,7 +122,7 @@
{{/fieldValue}}
{{#propertyValue}}
<h5 class="propertyValue">{{__global.propertyValue}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand All @@ -139,7 +139,7 @@
{{/propertyValue}}
{{#eventType}}
<h5 class="eventType">{{__global.eventType}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down Expand Up @@ -182,7 +182,7 @@
{{/example}}
{{#exceptions.0}}
<h5 class="exceptions">{{__global.exceptions}}</h5>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/partials/uref/parameters.tmpl.partial
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{{#properties.0}}
<h6 class="parameters">Properties</h6>
<table class="table table-bordered table-striped table-condensed">
<table class="table table-bordered table-condensed">
<thead>
<tr>
<th>{{__global.type}}</th>
Expand Down
2 changes: 1 addition & 1 deletion templates/default/styles/docfx.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ $(function () {
// Styling for tables in conceptual documents using Bootstrap.
// See http://getbootstrap.com/css/#tables
function renderTables() {
$('table').addClass('table table-bordered table-striped table-condensed').wrap('<div class=\"table-responsive\"></div>');
$('table').addClass('table table-bordered table-condensed').wrap('<div class=\"table-responsive\"></div>');
}

// Styling for alerts.
Expand Down
3 changes: 2 additions & 1 deletion templates/modern/layout/_master.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
</button>
<div class="collapse navbar-collapse" id="navbar">
<form class="d-flex ms-auto" role="search" id="search">
<i class="bi bi-search"></i>
<input class="form-control" id="search-query" type="search" disabled placeholder="{{__global.search}}" autocomplete="off" aria-label="Search">
</form>
</div>
Expand All @@ -64,7 +65,7 @@

<div class="content">
<div class="actionbar">
<button class="btn btn-lg border-0 d-md-none" style="margin-top: -.5em; margin-left: -.8em"
<button class="btn btn-lg border-0 d-md-none" style="margin-top: -.65em; margin-left: -.8em"
type="button" data-bs-toggle="offcanvas" data-bs-target="#tocOffcanvas"
aria-controls="tocOffcanvas" aria-expanded="false" aria-label="Show table of contents">
<i class="bi bi-list"></i>
Expand Down
8 changes: 7 additions & 1 deletion templates/modern/src/docfx.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ h5,
h6,
.xref,
.text-break {
white-space: nowrap;
word-wrap: break-word;
word-break: break-word;
}
Expand Down Expand Up @@ -89,6 +88,13 @@ article {
font-weight: normal;
}

@mixin underline-on-hover {
text-decoration: none;
&:hover, &:focus {
text-decoration: underline;
}
}

@import "layout.scss";
@import "nav.scss";
@import "toc.scss";
Expand Down
Loading

0 comments on commit cb560e4

Please sign in to comment.