diff options
author | Neeraj Kumar Das <nkdas91@gmail.com> | 2021-11-23 17:15:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-23 17:15:46 +0300 |
commit | 1ee058adf5ed5fb5d008ee1567fbf0e34cb82ff0 (patch) | |
tree | fcc2b82ca96cd236891b564accc77d857f31a9b6 /site | |
parent | 7edad9453ca1dda82577f1c97954bb037d5b4150 (diff) |
Make footer examples responsive to mobile screens (#35365)
Diffstat (limited to 'site')
-rw-r--r-- | site/content/docs/5.1/examples/footers/index.html | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/site/content/docs/5.1/examples/footers/index.html b/site/content/docs/5.1/examples/footers/index.html index b269095742..efa26b92d6 100644 --- a/site/content/docs/5.1/examples/footers/index.html +++ b/site/content/docs/5.1/examples/footers/index.html @@ -48,7 +48,7 @@ body_class: "" <a href="/" class="mb-3 me-2 mb-md-0 text-muted text-decoration-none lh-1"> <svg class="bi" width="30" height="24"><use xlink:href="#bootstrap"/></svg> </a> - <span class="text-muted">© {{< year >}} Company, Inc</span> + <span class="mb-3 mb-md-0 text-muted">© {{< year >}} Company, Inc</span> </div> <ul class="nav col-md-4 justify-content-end list-unstyled d-flex"> @@ -77,19 +77,19 @@ body_class: "" <div class="b-example-divider"></div> <div class="container"> - <footer class="row row-cols-5 py-5 my-5 border-top"> - <div class="col"> + <footer class="row row-cols-1 row-cols-sm-2 row-cols-md-5 py-5 my-5 border-top"> + <div class="col mb-3"> <a href="/" class="d-flex align-items-center mb-3 link-dark text-decoration-none"> <svg class="bi me-2" width="40" height="32"><use xlink:href="#bootstrap"/></svg> </a> <p class="text-muted">© {{< year >}}</p> </div> - <div class="col"> + <div class="col mb-3"> </div> - <div class="col"> + <div class="col mb-3"> <h5>Section</h5> <ul class="nav flex-column"> <li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Home</a></li> @@ -100,7 +100,7 @@ body_class: "" </ul> </div> - <div class="col"> + <div class="col mb-3"> <h5>Section</h5> <ul class="nav flex-column"> <li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Home</a></li> @@ -111,7 +111,7 @@ body_class: "" </ul> </div> - <div class="col"> + <div class="col mb-3"> <h5>Section</h5> <ul class="nav flex-column"> <li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Home</a></li> @@ -130,7 +130,7 @@ body_class: "" <div class="container"> <footer class="py-5"> <div class="row"> - <div class="col-2"> + <div class="col-6 col-md-2 mb-3"> <h5>Section</h5> <ul class="nav flex-column"> <li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Home</a></li> @@ -141,7 +141,7 @@ body_class: "" </ul> </div> - <div class="col-2"> + <div class="col-6 col-md-2 mb-3"> <h5>Section</h5> <ul class="nav flex-column"> <li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Home</a></li> @@ -152,7 +152,7 @@ body_class: "" </ul> </div> - <div class="col-2"> + <div class="col-6 col-md-2 mb-3"> <h5>Section</h5> <ul class="nav flex-column"> <li class="nav-item mb-2"><a href="#" class="nav-link p-0 text-muted">Home</a></li> @@ -163,11 +163,11 @@ body_class: "" </ul> </div> - <div class="col-4 offset-1"> + <div class="col-md-5 offset-md-1 mb-3"> <form> <h5>Subscribe to our newsletter</h5> <p>Monthly digest of whats new and exciting from us.</p> - <div class="d-flex w-100 gap-2"> + <div class="d-flex flex-column flex-sm-row w-100 gap-2"> <label for="newsletter1" class="visually-hidden">Email address</label> <input id="newsletter1" type="text" class="form-control" placeholder="Email address"> <button class="btn btn-primary" type="button">Subscribe</button> @@ -176,7 +176,7 @@ body_class: "" </div> </div> - <div class="d-flex justify-content-between py-4 my-4 border-top"> + <div class="d-flex flex-column flex-sm-row justify-content-between py-4 my-4 border-top"> <p>© {{< year >}} Company, Inc. All rights reserved.</p> <ul class="list-unstyled d-flex"> <li class="ms-3"><a class="link-dark" href="#"><svg class="bi" width="24" height="24"><use xlink:href="#twitter"/></svg></a></li> |