-
-
Notifications
You must be signed in to change notification settings - Fork 450
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
96 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
//= require jquery | ||
//= require popper.js | ||
//= require bootstrap-sprockets | ||
|
||
jQuery(function ($) { | ||
$('[data-toggle="tooltip"]').tooltip() | ||
document.addEventListener('DOMContentLoaded', () => { | ||
for (const tooltipTriggerEl of document.querySelectorAll('[data-bs-toggle="tooltip"]')) { | ||
new bootstrap.Tooltip(tooltipTriggerEl) | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>bootstrap Dummy App</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<%= stylesheet_link_tag 'application', media: "all", 'data-turbolinks-track' => true %> | ||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
|
||
<body> | ||
<%= yield %> | ||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
<nav class="navbar navbar-expand-lg navbar-light bg-light"> | ||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="#">Navbar</a> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" | ||
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="navbar-nav me-auto mb-2 mb-lg-0"> | ||
<li class="nav-item"> | ||
<a class="nav-link active" aria-current="page" href="#">Home</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#">Link</a> | ||
</li> | ||
<li class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" | ||
aria-expanded="false"> | ||
Dropdown | ||
</a> | ||
<ul class="dropdown-menu" aria-labelledby="navbarDropdown"> | ||
<li><a class="dropdown-item" href="#">Action</a></li> | ||
<li><a class="dropdown-item" href="#">Another action</a></li> | ||
<li> | ||
<hr class="dropdown-divider"> | ||
</li> | ||
<li><a class="dropdown-item" href="#">Something else here</a></li> | ||
</ul> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a> | ||
</li> | ||
</ul> | ||
<form class="d-flex"> | ||
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search"> | ||
<button class="btn btn-outline-success" type="submit">Search</button> | ||
</form> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
<div class="container"> | ||
<div class="row"> | ||
<div class="card" style="width: 18rem;"> | ||
<div class="card-body"> | ||
<h5 class="card-title">Card title</h5> | ||
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's | ||
content.</p> | ||
<a href="#" class="btn btn-primary">Go somewhere</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="col-sm"> | ||
<div class="card" style="width: 18rem;"> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item">An item</li> | ||
<li class="list-group-item">A second item</li> | ||
<li class="list-group-item">A third item</li> | ||
</ul> | ||
</div> | ||
</div> | ||
<div class="col-sm"> | ||
<div class="btn-group" role="group" aria-label="Basic mixed styles example"> | ||
<button type="button" class="btn btn-danger">Left</button> | ||
<button type="button" class="btn btn-warning">Middle</button> | ||
<button type="button" class="btn btn-success">Right</button> | ||
</div> | ||
</div> | ||
<div class="col-sm"> | ||
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top" | ||
title="Tooltip on top"> | ||
Tooltip on top | ||
</button> | ||
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="right" | ||
title="Tooltip on right"> | ||
Tooltip on right | ||
</button> | ||
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="bottom" | ||
title="Tooltip on bottom"> | ||
Tooltip on bottom | ||
</button> | ||
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="left" | ||
title="Tooltip on left"> | ||
Tooltip on left | ||
</button> | ||
</div> | ||
</div> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters