Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

31 changes: 26 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,39 @@ If you decided to use Bootstrap in several places of your site but including Boo

For Bootstrap 3:
```html
<link rel="stylesheet" href="https://toert.github.io/Isolated-Bootstrap/versions/3.3.7/iso_bootstrap3.3.7min.css">
<link rel="stylesheet" href="versions/3.3.7/iso_bootstrap3.3.7.css" />
```
For Bootstrap 4:
```html
<link rel="stylesheet" href="https://toert.github.io/Isolated-Bootstrap/versions/4.0.0-beta/iso_bootstrap4.0.0min.css">
<link rel="stylesheet" href="versions/4.0.0/iso_bootstrap4.0.0.css" />
```
2. Create `div` element with `class="bootstrap"` where you want to use Bootstrap styles.

For Bootstrap 5:
```html
<link rel="stylesheet" href="versions/5.0.2/iso_bootstrap5.0.2.css" />
```

2. Create `div` element with `class="bootstrap<version>"` where you want to use Bootstrap styles.
3. It's ready to use:
```html
<!-- there Bootstrap doesn't work -->
<div class="bootstrap">
<!-- there Bootstrap works-->
<div class="bootstrap3">
<!-- there Bootstrap 3 works-->
</div>
<!-- there Bootstrap doesn't work-->

<!-- there Bootstrap doesn't work -->
<div class="bootstrap4">
<!-- there Bootstrap 4 works-->
</div>

<!-- there Bootstrap doesn't work-->

<!-- there Bootstrap doesn't work -->
<div class="bootstrap5">
<!-- there Bootstrap 5 works-->
</div>
<!-- there Bootstrap doesn't work-->
```
Demo:
https://zakk616.github.io/Isolated-Bootstrap/
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-minimal
50 changes: 50 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE html>
<html lang="en">
<head>

<meta charset="UTF-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="stylesheet" href="versions/3.3.7/iso_bootstrap3.3.7.css" />

<link rel="stylesheet" href="versions/4.0.0/iso_bootstrap4.0.0.css" />

<link rel="stylesheet" href="versions/5.0.2/iso_bootstrap5.0.2.css" />

<title>Document</title>
</head>

<body>
<div class="bootstrap3">
<div class="custom-container">
<div class="card">
<input type="text" class="form-contol txt" placeholder="Bootstrap 3 Textbox" />
<input type="button" class="btn btn-danger" value="Bootstrap 3 Button" />
</div>
</div>
</div>

<div class="bootstrap4">
<div class="custom-container">
<div class="card">
<input type="text" class="form-contol txt" placeholder="Bootstrap 4 Textbox" />
<input type="button" class="btn btn-danger" value="Bootstrap 4 Button" />
</div>
</div>
</div>

<div class="bootstrap5">
<div class="custom-container">
<div class="card">
<input type="text" class="form-contol txt" placeholder="Bootstrap 5 Textbox" />
<input type="button" class="btn btn-danger" value="Bootstrap 5 Button" />
</div>
</div>
</div>

<link rel="stylesheet" href="style.css" />
</body>
</html>
8 changes: 8 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.custom-container {
width: 400px;
max-width: 960px;
margin: 15px;
padding: 5px;
border: 1px solid #ccc;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
Loading