Skip to content

Commit e0dc5b4

Browse files
author
JLammer
committed
Fix Bootstrap snippet indentation characters
It wasn't consistent. Some parts used 2 spaces and others used tabs. Now, It uses tabs all across Bootstrap snippets.
1 parent f33f85f commit e0dc5b4

File tree

132 files changed

+1247
-1260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+1247
-1260
lines changed

snippets/bootstrap/$.html

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<title>${1:Title}</title>
5-
<!-- Required meta tags -->
6-
<meta charset="utf-8">
7-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
8-
9-
<!-- Bootstrap CSS -->
10-
<link rel="stylesheet"
11-
href="${2:https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css}"
12-
integrity="${3:sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO}"
13-
crossorigin="anonymous">
14-
</head>
15-
16-
<body>
17-
$10$END$
18-
<!-- Optional JavaScript -->
19-
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
20-
<script src="${4:https://code.jquery.com/jquery-3.3.1.slim.min.js}"
21-
integrity="${5:sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo}"
22-
crossorigin="anonymous"></script>
23-
24-
<script src="${6:https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js}"
25-
integrity="${7:sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49}"
26-
crossorigin="anonymous"></script>
27-
28-
<script src="${8:https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js}"
29-
integrity="${9:sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy}"
30-
crossorigin="anonymous"></script>
31-
</body>
3+
<head>
4+
<title>${1:Title}</title>
5+
<!-- Required meta tags -->
6+
<meta charset="utf-8">
7+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
8+
9+
<!-- Bootstrap CSS -->
10+
<link rel="stylesheet"
11+
href="${2:https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css}"
12+
integrity="${3:sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO}"
13+
crossorigin="anonymous">
14+
</head>
15+
16+
<body>
17+
10$END$
18+
19+
<!-- Optional JavaScript -->
20+
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
21+
<script src="${4:https://code.jquery.com/jquery-3.3.1.slim.min.js}"
22+
integrity="${5:sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
23+
crossorigin="anonymous"></script>
24+
25+
<script src="${6:https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js}"
26+
integrity="${7:sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49}"
27+
crossorigin="anonymous"></script>
28+
29+
<script src="${8:https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js}"
30+
integrity="${9:sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy}"
31+
crossorigin="anonymous"></script>
32+
</body>
3233
</html>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="alert alert-success" role="alert">
2-
<h4 class="alert-heading">$1</h4>
2+
<h4 class="alert-heading">$1</h4>
33

4-
<p>$2</p>
4+
<p>$2</p>
55

6-
<p class="mb-0">$3</p>
6+
<p class="mb-0">$3</p>
77
</div>
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="alert alert-warning alert-dismissible fade show" role="alert">
22

3-
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
4-
<span aria-hidden="true">&times;</span>
5-
</button>
3+
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
4+
<span aria-hidden="true">&times;</span>
5+
</button>
66

7-
<strong>$1</strong> $2
7+
<strong>$1</strong> $2
88
</div>
99

1010
<script>
11-
$(".alert").alert();
12-
</script>
11+
$(".alert").alert();
12+
</script>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<div class="alert alert-${2:primary|secondary|success|info|warning|danger|light|dark} alert-dismissible fade show" role="alert">
22

33
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
4-
<span aria-hidden="true">&times;</span>
5-
4+
<span aria-hidden="true">&times;</span>
5+
66
<span class="sr-only">Close</span>
7-
</button>
8-
7+
</button>
8+
99
${1:<strong>Holy guacamole!</strong> You should check in on some of those fields below.}
10-
</div>
10+
</div>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<button class="btn">
2-
${1:Notification} <span class="badge badge-${3:primary|secondary|success|danger|warning|info|light|dark}">$2</span>
2+
${1:Notification} <span class="badge badge-${3:primary|secondary|success|danger|warning|info|light|dark}">$2</span>
33
</button>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<h${1:1-6}>
2-
${3:Example heading}<span class="badge badge-${2:primary|secondary|success|danger|warning|info|light|dark}">${4:New}</span>
3-
</h${1:1-6}>
1+
<h$ {1:1-6}>
2+
${3:Example heading}<span class="badge badge-${2:primary|secondary|success|danger|warning|info|light|dark}">${4:New}</span>
3+
</h$ {1:1-6}>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="btn-group" role="group" aria-label="$2">
2-
<button type="button" class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">$3</button>
3-
4-
<button type="button" class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">$4</button>
5-
2+
<button type="button" class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">$3</button>
3+
4+
<button type="button" class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">$4</button>
5+
66
<button type="button" class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">$5</button>
77
</div>

snippets/bootstrap/components/bgroup/dropdown-vertical.html

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
<div class="btn-group-vertical" role="group" aria-label="$1">
22
<button type="button" class="btn btn-secondary">$2</button>
3-
<button type="button" class="btn btn-secondary">$3</button>
4-
3+
<button type="button" class="btn btn-secondary">$3</button>
4+
55
<div class="btn-group" role="group">
6-
<button id="${5:dropdownId}"
7-
type="button"
8-
class="btn btn-secondary dropdown-toggle"
9-
data-toggle="dropdown"
10-
aria-haspopup="true"
11-
aria-expanded="false">
12-
$4
13-
</button>
14-
6+
<button id="${5:dropdownId}"
7+
type="button"
8+
class="btn btn-secondary dropdown-toggle"
9+
data-toggle="dropdown"
10+
aria-haspopup="true"
11+
aria-expanded="false">$4</button>
12+
1513
<div class="dropdown-menu" aria-labelledby="${5:dropdownId}">
16-
<a class="dropdown-item" href="${7:#}">$6</a>
17-
14+
<a class="dropdown-item" href="${7:#}">$6</a>
15+
1816
<a class="dropdown-item" href="${9:#}">$8</a>
1917
</div>
2018
</div>

snippets/bootstrap/components/bgroup/dropdown.html

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
<div class="btn-group" role="group" aria-label="$1">
22
<button type="button" class="btn btn-secondary">$2</button>
3-
<button type="button" class="btn btn-secondary">$3</button>
4-
3+
<button type="button" class="btn btn-secondary">$3</button>
4+
55
<div class="btn-group" role="group">
6-
<button id="${5:dropdownId}"
7-
type="button"
8-
class="btn btn-secondary dropdown-toggle"
9-
data-toggle="dropdown"
10-
aria-haspopup="true"
11-
aria-expanded="false">
12-
$4
13-
</button>
14-
6+
<button id="${5:dropdownId}"
7+
type="button"
8+
class="btn btn-secondary dropdown-toggle"
9+
data-toggle="dropdown"
10+
aria-haspopup="true"
11+
aria-expanded="false">$4</button>
12+
1513
<div class="dropdown-menu" aria-labelledby="${5:dropdownId}">
16-
<a class="dropdown-item" href="${7:#}">$6</a>
17-
14+
<a class="dropdown-item" href="${7:#}">$6</a>
15+
1816
<a class="dropdown-item" href="${9:#}">$8</a>
1917
</div>
2018
</div>

snippets/bootstrap/components/bgroup/toolbar.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<button type="button" class="btn btn-${3:primary|secondary|success|danger|warning|info|light|dark|link}">$4</button>
44
<button type="button" class="btn btn-${3:primary|secondary|success|danger|warning|info|light|dark|link}">$5</button>
55
<button type="button" class="btn btn-${3:primary|secondary|success|danger|warning|info|light|dark|link}">$6</button>
6-
</div>
7-
6+
</div>
7+
88
<div class="btn-group" role="group" aria-label="$7">
99
<button type="button" class="btn btn-${3:primary|secondary|success|danger|warning|info|light|dark|link}">$8</button>
1010
<button type="button" class="btn btn-${3:primary|secondary|success|danger|warning|info|light|dark|link}">$9</button>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<nav class="breadcrumb">
22
<a class="breadcrumb-item" href="${2:#}">$1</a>
3-
<a class="breadcrumb-item" href="${4:#}">$3</a>
4-
3+
<a class="breadcrumb-item" href="${4:#}">$3</a>
4+
55
<span class="breadcrumb-item active">$5</span>
66
</nav>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<ol class="breadcrumb">
22
<li class="breadcrumb-item">
3-
<a href="${2:#}">$1</a>
4-
</li>
3+
<a href="${2:#}">$1</a>
4+
</li>
55

66
<li class="breadcrumb-item">
7-
<a href="${4:#}">$3</a>
8-
</li>
9-
7+
<a href="${4:#}">$3</a>
8+
</li>
9+
1010
<li class="breadcrumb-item active">$5</li>
1111
</ol>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<a name="$4"
2-
id="$4"
3-
class="btn btn-${3:primary|secondary|success|danger|warning|info|light|dark|link}"
4-
href="${2:#}"
5-
role="button">$1</a>
2+
id="$4"
3+
class="btn btn-${3:primary|secondary|success|danger|warning|info|light|dark|link}"
4+
href="${2:#}"
5+
role="button">$1</a>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<button type="button"
2-
name="$3"
3-
id="$3"
4-
class="btn btn-${2:primary|secondary|success|danger|warning|info|light|dark|link}" btn-lg btn-block">$1</button>
2+
name="$3"
3+
id="$3"
4+
class="btn btn-${2:primary|secondary|success|danger|warning|info|light|dark|link}" btn-lg btn-block">$1</button>
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<div class="btn-group" data-toggle="buttons">
22
<label class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link} active">
3-
<input type="checkbox"
4-
name="$3"
5-
id="$3"
6-
autocomplete="off"
7-
checked>$2
8-
</label>
9-
3+
<input type="checkbox"
4+
name="$3"
5+
id="$3"
6+
autocomplete="off"
7+
checked>$2
8+
</label>
9+
1010
<label class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">
11-
<input type="checkbox"
12-
name="$5"
13-
id="$5"
14-
autocomplete="off">$4
15-
</label>
16-
11+
<input type="checkbox"
12+
name="$5"
13+
id="$5"
14+
autocomplete="off">$4
15+
</label>
16+
1717
<label class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">
18-
<input type="checkbox"
19-
name="$7"
20-
id="$7"
21-
autocomplete="off">$6
18+
<input type="checkbox"
19+
name="$7"
20+
id="$7"
21+
autocomplete="off">$6
2222
</label>
2323
</div>

snippets/bootstrap/components/button/radio.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<div class="btn-group" data-toggle="buttons">
22
<label class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link} active">
33
<input type="radio" name="$3" id="$3" autocomplete="off" checked>$2
4-
</label>
5-
4+
</label>
5+
66
<label class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">
77
<input type="radio" name="$5" id="$5" autocomplete="off">$4
8-
</label>
9-
8+
</label>
9+
1010
<label class="btn btn-${1:primary|secondary|success|danger|warning|info|light|dark|link}">
1111
<input type=" radio" name="$7" id="$7 " autocomplete="off ">$6
1212
</label>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<button type="button"
2-
class="btn btn-${2:primary|secondary|success|danger|warning|info|light|dark|link}"
3-
data-toggle="button"
4-
aria-pressed="false"
5-
autocomplete="off">$1</button>
2+
class="btn btn-${2:primary|secondary|success|danger|warning|info|light|dark|link}"
3+
data-toggle="button"
4+
aria-pressed="false"
5+
autocomplete="off">$1</button>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="card text-${3:left|center|right}">
2-
<img class="card-img-top" src="${1:holder.js/100px180/}" alt="$2">
2+
<img class="card-img-top" src="${1:holder.js/100px180/}" alt="$2">
33

4-
<div class="card-body">
5-
<h4 class="card-title">${4:Title}</h4>
6-
<p class="card-text">${5:Body}</p>
7-
</div>
4+
<div class="card-body">
5+
<h4 class="card-title">${4:Title}</h4>
6+
<p class="card-text">${5:Body}</p>
7+
</div>
88
</div>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="card" style="background-color:${1:cadetblue}; border-color:${2:darkblue};">
2-
<img class="card-img-top" src="${3:holder.js/100x180/}" alt="$4">
2+
<img class="card-img-top" src="${3:holder.js/100x180/}" alt="$4">
33

4-
<div class="card-body">
5-
<h4 class="card-title">${5:Title}</h4>
6-
<p class="card-text">${6:Text}</p>
7-
</div>
4+
<div class="card-body">
5+
<h4 class="card-title">${5:Title}</h4>
6+
<p class="card-text">${6:Text}</p>
7+
</div>
88
</div>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="card text-white bg-${1:primary|secondary|success|danger|warning|info|light|dark|link}">
2-
<img class="card-img-top" src="${2:holder.js/100px180/}" alt="$3">
2+
<img class="card-img-top" src="${2:holder.js/100px180/}" alt="$3">
33

4-
<div class="card-body">
5-
<h4 class="card-title">${4:Title}</h4>
6-
<p class="card-text">${5:Text}</p>
7-
</div>
4+
<div class="card-body">
5+
<h4 class="card-title">${4:Title}</h4>
6+
<p class="card-text">${5:Text}</p>
7+
</div>
88
</div>

0 commit comments

Comments
 (0)