Skip to content

Commit 7ade2ad

Browse files
authored
Merge pull request #2 from hartwork/bootswatch-4-united
Migrate from vanilla Bootstrap 4 to Bootswatch 4 "United"
2 parents 5cbea4a + 7bee31f commit 7ade2ad

File tree

1 file changed

+28
-18
lines changed

1 file changed

+28
-18
lines changed

index.htm

Lines changed: 28 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Shared Library Version Bump (verbump.de)</title>
99
<meta charset="utf-8"/>
1010
<meta name="viewport" content="width=device-width, initial-scale=1">
11-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
11+
<link rel="stylesheet" href="https://bootswatch.com/4/united/bootstrap.min.css" integrity="sha256-gbLii3KI7XRhzx2HLy44g+eh/weNeieCzRFvn3K56qc=" crossorigin="anonymous">
1212
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous"></script>
1313

1414
<style>
@@ -30,7 +30,7 @@
3030
}
3131

3232
/* Keep checkbox "There is a previous release" well visible at all times */
33-
#prev-release.disabled .form-check label {
33+
#prev-release.disabled .custom-control label {
3434
color: #212529 !important;
3535
}
3636

@@ -44,6 +44,16 @@
4444
color: #212529;
4545
text-decoration: none;
4646
}
47+
48+
/* Get rid of green/red icons in checkboxes */
49+
.was-validated .form-control:valid, .form-control.is-valid {
50+
background-image: unset !important;
51+
padding-right: .75rem !important;
52+
}
53+
.was-validated .form-control:valid, .form-control.is-invalid {
54+
background-image: unset !important;
55+
padding-right: .75rem !important;
56+
}
4757
</style>
4858

4959
<script>
@@ -348,9 +358,9 @@ <h1 class="display-3"><a href="" class="logo">Shared Library Version Bump</a></h
348358
<div id="prev-release">
349359
<h2 class="display-4 mt-0">Previous Release</h2>
350360
<div class="container">
351-
<div class="form-check">
352-
<input class="form-check-input" type="checkbox" id="prev-exists">
353-
<label class="form-check-label" for="prev-exists">
361+
<div class="custom-control custom-checkbox">
362+
<input class="custom-control-input" type="checkbox" id="prev-exists">
363+
<label class="custom-control-label" for="prev-exists">
354364
There is a previous release
355365
</label>
356366
</div>
@@ -380,28 +390,28 @@ <h2 class="mt-4">
380390
<small class="text-muted">in the Mean Time</small>
381391
</h2>
382392
<div class="container">
383-
<div class="form-check">
384-
<input class="form-check-input" type="checkbox" id="changes-any">
385-
<label class="form-check-label" for="changes-any">
393+
<div class="custom-control custom-checkbox">
394+
<input class="custom-control-input" type="checkbox" id="changes-any">
395+
<label class="custom-control-label" for="changes-any">
386396
Changed something in the source code
387397
</label>
388398
</div>
389399
<div style="padding-left: 1.4em">
390-
<div class="form-check">
391-
<input class="form-check-input" type="checkbox" id="changes-added">
392-
<label class="form-check-label" for="changes-added">
400+
<div class="custom-control custom-checkbox">
401+
<input class="custom-control-input" type="checkbox" id="changes-added">
402+
<label class="custom-control-label" for="changes-added">
393403
Added something new to the public interface
394404
</label>
395405
</div>
396-
<div class="form-check">
397-
<input class="form-check-input" type="checkbox" id="changes-removed">
398-
<label class="form-check-label" for="changes-removed">
406+
<div class="custom-control custom-checkbox">
407+
<input class="custom-control-input" type="checkbox" id="changes-removed">
408+
<label class="custom-control-label" for="changes-removed">
399409
Removed something from the public interface
400410
</label>
401411
</div>
402-
<div class="form-check">
403-
<input class="form-check-input" type="checkbox" id="changes-changed">
404-
<label class="form-check-label" for="changes-changed">
412+
<div class="custom-control custom-checkbox">
413+
<input class="custom-control-input" type="checkbox" id="changes-changed">
414+
<label class="custom-control-label" for="changes-changed">
405415
Changed any existing part of the public interface
406416
</label>
407417
</div>
@@ -437,7 +447,7 @@ <h2 class="display-4">Upcoming Release</h2>
437447
</div><!-- jumbotron -->
438448

439449
<p>
440-
A small handy tool developed by <a href="https://blog.hartwork.org/">Sebastian Pipping</a> in 2021 using Bootstrap 4 and jQuery.<br/>
450+
A small handy tool developed by <a href="https://blog.hartwork.org/">Sebastian Pipping</a> in 2021 using <a href="https://bootswatch.com/4/united/">Bootswatch 4 United</a> and jQuery.<br/>
441451
If you like it, please support it by starring the <a href="https://github.com/hartwork/shared-library-version-bump">GitHub repository</a>. Thank you!
442452
</p>
443453
<p>

0 commit comments

Comments
 (0)