Skip to content

Commit

Permalink
HTML validation fixes
Browse files Browse the repository at this point in the history
* fix invalid `for` attributes
* fix invalid `p` tags
* fix empty `name` attribute
* fix duplicate ID
* fix deprecated HTML attributes
* fix missing `alt` attributes
  • Loading branch information
XhmikosR committed Sep 19, 2020
1 parent 3a36f5c commit 4aed0c3
Show file tree
Hide file tree
Showing 32 changed files with 67 additions and 58 deletions.
5 changes: 5 additions & 0 deletions docs/2/css/bootswatch.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ section {
margin-bottom: 15px;
}

iframe {
overflow: hidden;
border: none;
}

#social {
display: inline-block;
margin-top: 45px;
Expand Down
4 changes: 2 additions & 2 deletions docs/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ <h1>Bootswatch</h1>

<div id="social">
<span>
<iframe id="gh-fork" src="https://ghbtns.com/github-btn.html?user=thomaspark&repo=bootswatch&type=fork" allowtransparency="true" frameborder="0" scrolling="0" width="53" height="20"></iframe>
<iframe id="gh-star" src="https://ghbtns.com/github-btn.html?user=thomaspark&repo=bootswatch&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
<iframe id="gh-fork" src="https://ghbtns.com/github-btn.html?user=thomaspark&repo=bootswatch&type=fork" width="53" height="20"></iframe>
<iframe id="gh-star" src="https://ghbtns.com/github-btn.html?user=thomaspark&repo=bootswatch&type=watch&count=true" width="110" height="20"></iframe>
</span>
<span>
<a href="https://twitter.com/thomashpark" class="twitter-follow-button" data-show-count="false" data-show-screen-name="true">Follow @thomashpark</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/3/assets/css/custom.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions docs/3/assets/less/custom.less
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ body {
}
}

iframe {
overflow: hidden;
border: none;
}

@media (min-width: 768px) {
body {
> .navbar-transparent {
Expand Down
4 changes: 2 additions & 2 deletions docs/3/help/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ <h1 id="tools">Tools</h1>
<h1 id="support">Support</h1>
<p>Show your support for Bootswatch by buying official gear.</p>
<p>T-shirts based on several themes including Cyborg, Flatly, and Slate are available at <a href="https://shop.spreadshirt.com/bootswatch/">Spreadshirt</a>.</p>
<p><a href="https://shop.spreadshirt.com/bootswatch/"><img src="../assets/img/tshirt.jpg"></a></p>
<p><a href="https://shop.spreadshirt.com/bootswatch/"><img src="../assets/img/tshirt.jpg" alt="Bootswatch T-shirt"></a></p>
<p>Stickers are available at <a href="https://www.stickermule.com/marketplace/1959-bootswatch">Sticker Mule</a>.</p>
<p><a href="https://www.stickermule.com/marketplace/1959-bootswatch"><img src="../assets/img/stickers.jpg"></a></p>
<p><a href="https://www.stickermule.com/marketplace/1959-bootswatch"><img src="../assets/img/stickers.jpg" alt="Bootswatch Stickers"></a></p>
<p>Donations are also accepted via <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=PU2DH4BMF9MWS&source=url">PayPal</a>.</p>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<div class="navbar navbar-default navbar-fixed-top navbar-transparent">
<div class="container">
<div class="navbar-header">
<a href="./" class="navbar-brand"><img src="assets/img/logo-nav.png">Bootswatch</a>
<a href="./" class="navbar-brand"><img src="assets/img/logo-nav.png" alt="">Bootswatch</a>
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
Expand Down Expand Up @@ -91,8 +91,8 @@
<h1>Free themes for Bootstrap</h1>
<div id="social">
<span>
<iframe id="gh-fork" src="https://ghbtns.com/github-btn.html?user=thomaspark&repo=bootswatch&type=fork" allowtransparency="true" frameborder="0" scrolling="0" width="53" height="20"></iframe>
<iframe id="gh-star" src="https://ghbtns.com/github-btn.html?user=thomaspark&repo=bootswatch&type=watch&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="110" height="20"></iframe>
<iframe id="gh-fork" src="https://ghbtns.com/github-btn.html?user=thomaspark&repo=bootswatch&type=fork" width="53" height="20"></iframe>
<iframe id="gh-star" src="https://ghbtns.com/github-btn.html?user=thomaspark&repo=bootswatch&type=watch&count=true" width="110" height="20"></iframe>
</span>
<span style="display: inline-block; width: 210px;">
<a href="https://twitter.com/bootswatch" class="twitter-follow-button" data-show-count="false" data-show-screen-name="true"></a>
Expand Down
6 changes: 3 additions & 3 deletions docs/3/tests/components.html
Original file line number Diff line number Diff line change
Expand Up @@ -854,7 +854,7 @@ <h4>Icons, labels, and input groups</h4>
</div>

<div class="bs-example">
<form role="form">
<form>
<div class="form-group has-success has-feedback">
<label class="control-label" for="inputSuccess2">Input with success</label>
<input type="text" class="form-control" id="inputSuccess2">
Expand Down Expand Up @@ -1725,7 +1725,7 @@ <h3 id="navbar-forms">Forms</h3>

<div class="navbar navbar-default">
<form class="navbar-form navbar-left">
<select name="" class="form-control" style="width: 200px;">
<select class="form-control" style="width: 200px;">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
Expand Down Expand Up @@ -2865,7 +2865,7 @@ <h1 id="popovers">Popovers</h1>
================================================== -->
<div class="bs-docs-section">
<div class="page-header">
<h1 id="popovers">Checkbox / Radio</h1>
<h1 id="checkbox-radio">Checkbox / Radio</h1>
</div>
<div class="bs-example" style="padding-bottom: 24px;">
<div class="btn-group" data-toggle="buttons">
Expand Down
2 changes: 1 addition & 1 deletion docs/_assets/css/custom.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/_assets/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pre {
}

iframe {
overflow: hidden;
border: none;
}

Expand Down
4 changes: 2 additions & 2 deletions docs/cerulean/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,13 @@ <h1 id="forms">Forms</h1>
</div>

<div class="form-group has-success">
<label class="form-control-label" for="inputSuccess1">Valid input</label>
<label class="form-control-label" for="inputValid">Valid input</label>
<input type="text" value="correct value" class="form-control is-valid" id="inputValid">
<div class="valid-feedback">Success! You've done it.</div>
</div>

<div class="form-group has-danger">
<label class="form-control-label" for="inputDanger1">Invalid input</label>
<label class="form-control-label" for="inputInvalid">Invalid input</label>
<input type="text" value="wrong value" class="form-control is-invalid" id="inputInvalid">
<div class="invalid-feedback">Sorry, that username's taken. Try another?</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/cosmo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,13 @@ <h1 id="forms">Forms</h1>
</div>

<div class="form-group has-success">
<label class="form-control-label" for="inputSuccess1">Valid input</label>
<label class="form-control-label" for="inputValid">Valid input</label>
<input type="text" value="correct value" class="form-control is-valid" id="inputValid">
<div class="valid-feedback">Success! You've done it.</div>
</div>

<div class="form-group has-danger">
<label class="form-control-label" for="inputDanger1">Invalid input</label>
<label class="form-control-label" for="inputInvalid">Invalid input</label>
<input type="text" value="wrong value" class="form-control is-invalid" id="inputInvalid">
<div class="invalid-feedback">Sorry, that username's taken. Try another?</div>
</div>
Expand Down
Loading

0 comments on commit 4aed0c3

Please sign in to comment.