Skip to content

Commit

Permalink
Cleanup whitespace from docs (html,css,json)
Browse files Browse the repository at this point in the history
  • Loading branch information
fliiiix authored and gittiver committed Sep 1, 2024
1 parent 43cba57 commit ed208af
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
16 changes: 8 additions & 8 deletions docs/overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
display: block;
margin-top: 1rem;
padding-bottom: 0.5rem;
border-bottom: solid;
border-bottom: solid;
border-width: 0.1rem;
border-image-slice: 1;
border-image-source: var(--home-image-border);
Expand Down Expand Up @@ -199,7 +199,7 @@ <h2 style="text-align: center;">Easy to get started</h2>
</div>
</section>

<section class="ssection">
<section class="ssection">
<div class="scontent">
<div class="highlight"><pre id="__code_1"><span></span><button class="md-clipboard md-icon" title="Copy to clipboard" data-clipboard-target="#__code_1 > code"></button><code><span class="cp">CROW_ROUTE</span><span class="p">(</span><span class="n">app</span><span class="p">,</span> <span class="s">"/json"</span><span class="p">)</span>
<span class="p">([]{</span>
Expand Down Expand Up @@ -304,7 +304,7 @@ <h3 style="text-align:center;">The 1000 mile journey begins with a single step.
<script>
let text = "";

function convertRemToPixels(rem) {
function convertRemToPixels(rem) {
return rem * parseFloat(getComputedStyle(document.documentElement).fontSize);
}

Expand Down Expand Up @@ -357,7 +357,7 @@ <h3 style="text-align:center;">The 1000 mile journey begins with a single step.
return "rgb(0,0,0)";
}

function AvatarImage(name)
function AvatarImage(name)
{
var letters = name.includes(' ') ? name[0] + name.split(' ').slice(-1)[0][0] : name.slice(0,2);
var canvas = document.createElement('canvas');
Expand All @@ -371,14 +371,14 @@ <h3 style="text-align:center;">The 1000 mile journey begins with a single step.
// Setup background and front color
context.fillStyle = color;
context.fillRect(0, 0, canvas.width, canvas.height);

// Check the color brightness (0-255)
color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);
r = color[1];
g = color[2];
b = color[3];
hsp = Math.sqrt(0.299 * (r * r) + 0.587 * (g * g) + 0.114 * (b * b));

context.fillStyle = hsp > 150 ? "#333" : "#EEE"; // 150 was reached by trial and error
context.fillText(letters, size / 2, size / 1.5);
// Set image representation in default format (png)
Expand Down Expand Up @@ -413,7 +413,7 @@ <h3 style="text-align:center;">The 1000 mile journey begins with a single step.

let x = await fetch("https://opencollective.com/crow/members/all.json");
let y = await x.json();

for (var i = 0; i < y.length; i++)
{
let item = y[i];
Expand All @@ -432,7 +432,7 @@ <h3 style="text-align:center;">The 1000 mile journey begins with a single step.
}
}
}

let ghx = await fetch("https://gh-sponsors-dsdpxxx9d-filiptronicek.vercel.app/sponsors/CrowCpp");
let ghy = await fetch("https://gh-sponsors-dsdpxxx9d-filiptronicek.vercel.app/count/CrowCpp");
let ghsponsors = await ghx.json();
Expand Down
2 changes: 1 addition & 1 deletion docs/overrides/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
{% endif %}
{{ extracopyright }}
</div>

<a style="margin: auto .6rem; font-size: .64rem;text-align: center;flex: 1;display: flex;justify-content: center;" href="/privacy_policy.html">Privacy Policy</a>

<!-- Social links -->
Expand Down
8 changes: 4 additions & 4 deletions docs/overrides/partials/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@
<!-- Search interface -->
{% include "partials/search.html" %}
{% endif %}

<div class="md-header__source">
<a class="md-source" href="https://opencollective.com/crow" style="padding-left:2.4rem;"><img style="border-radius: 5px" alt="Open Collective" src="https://img.shields.io/opencollective/all/crow?label=Support%20Crow&color=important&labelColor=122027&logo=opencollective&style=for-the-badge"></a>
</div>
<a class="md-source" href="https://opencollective.com/crow" style="padding-left:2.4rem;"><img style="border-radius: 5px" alt="Open Collective" src="https://img.shields.io/opencollective/all/crow?label=Support%20Crow&color=important&labelColor=122027&logo=opencollective&style=for-the-badge"></a>
</div>

<!-- Repository information -->
{% if config.repo_url %}
<div class="md-header__source">
Expand Down
14 changes: 7 additions & 7 deletions docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
border-radius: .25rem !important;
}

.tag
.tag
{
background-color: var(--md-primary-fg-color);
color: var(--md-default-tag-bg-color);
Expand All @@ -33,29 +33,29 @@
color: var(--md-default-tag-bg-color);
}

.md-typeset :is(.emojione, .twemoji, .gemoji)
.md-typeset :is(.emojione, .twemoji, .gemoji)
{
vertical-align: text-bottom;
}

.md-typeset :is(.emojione, .twemoji, .gemoji) svg
.md-typeset :is(.emojione, .twemoji, .gemoji) svg
{
width: 1.25em;
}

[data-md-color-scheme="crow-dark"] img[src$="#only-dark"]
{
display: block;
display: block;
}
[data-md-color-scheme="crow-light"] img[src$="#only-light"]
{
display: block;
display: block;
}
[data-md-color-scheme="crow-light"] img[src$="#only-dark"]
{
display: none;
display: none;
}
[data-md-color-scheme="crow-dark"] img[src$="#only-light"]
{
display: none;
display: none;
}
2 changes: 1 addition & 1 deletion docs/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
{"version": "1.1", "title": "1.1.0", "aliases": []},
{"version": "1.0", "title": "1.0+3", "aliases": []},
{"version": "0.3", "title": "0.3+4", "aliases": []}
]
]

0 comments on commit ed208af

Please sign in to comment.