lone-wolf-theme 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +25 -0
- data/LICENSE +21 -0
- data/README.md +43 -0
- data/_data/blog.yml +21 -0
- data/_data/nav.yml +39 -0
- data/_includes/ads.html +1 -0
- data/_includes/analytics-providers/custom.html +3 -0
- data/_includes/analytics-providers/google-gtag.html +9 -0
- data/_includes/analytics.html +8 -0
- data/_includes/archive-list.html +33 -0
- data/_includes/archive-single.html +41 -0
- data/_includes/blog-post-sidebar.html +37 -0
- data/_includes/comments-providers/custom.html +3 -0
- data/_includes/comments-providers/disqus.html +17 -0
- data/_includes/comments-providers/scripts.html +8 -0
- data/_includes/comments.html +8 -0
- data/_includes/footer.html +49 -0
- data/_includes/head.html +13 -0
- data/_includes/head/favicon.html +13 -0
- data/_includes/head/styles.html +3 -0
- data/_includes/header.html +31 -0
- data/_includes/home-action-btn.html +24 -0
- data/_includes/scripts.html +21 -0
- data/_includes/search-providers/google-search.html +30 -0
- data/_includes/search-providers/scripts.html +7 -0
- data/_includes/search-providers/search_form.html +12 -0
- data/_includes/social-share.html +7 -0
- data/_includes/toc.html +95 -0
- data/_layouts/compress.html +10 -0
- data/_layouts/default.html +25 -0
- data/_layouts/home.html +70 -0
- data/_layouts/list.html +11 -0
- data/_layouts/page.html +10 -0
- data/_layouts/post.html +100 -0
- data/_sass/_bootstrap-social.scss +93 -0
- data/_sass/_lone-wolf-theme.scss +8 -0
- data/_sass/animations/_animate.scss +3607 -0
- data/_sass/bootstrap/scss/_alert.scss +51 -0
- data/_sass/bootstrap/scss/_badge.scss +54 -0
- data/_sass/bootstrap/scss/_breadcrumb.scss +41 -0
- data/_sass/bootstrap/scss/_button-group.scss +163 -0
- data/_sass/bootstrap/scss/_buttons.scss +137 -0
- data/_sass/bootstrap/scss/_card.scss +289 -0
- data/_sass/bootstrap/scss/_carousel.scss +197 -0
- data/_sass/bootstrap/scss/_close.scss +41 -0
- data/_sass/bootstrap/scss/_code.scss +48 -0
- data/_sass/bootstrap/scss/_custom-forms.scss +507 -0
- data/_sass/bootstrap/scss/_dropdown.scss +191 -0
- data/_sass/bootstrap/scss/_forms.scss +330 -0
- data/_sass/bootstrap/scss/_functions.scss +86 -0
- data/_sass/bootstrap/scss/_grid.scss +52 -0
- data/_sass/bootstrap/scss/_images.scss +42 -0
- data/_sass/bootstrap/scss/_input-group.scss +193 -0
- data/_sass/bootstrap/scss/_jumbotron.scss +17 -0
- data/_sass/bootstrap/scss/_list-group.scss +149 -0
- data/_sass/bootstrap/scss/_media.scss +8 -0
- data/_sass/bootstrap/scss/_mixins.scss +47 -0
- data/_sass/bootstrap/scss/_modal.scss +229 -0
- data/_sass/bootstrap/scss/_nav.scss +120 -0
- data/_sass/bootstrap/scss/_navbar.scss +294 -0
- data/_sass/bootstrap/scss/_pagination.scss +73 -0
- data/_sass/bootstrap/scss/_popover.scss +171 -0
- data/_sass/bootstrap/scss/_print.scss +141 -0
- data/_sass/bootstrap/scss/_progress.scss +43 -0
- data/_sass/bootstrap/scss/_reboot.scss +483 -0
- data/_sass/bootstrap/scss/_root.scss +19 -0
- data/_sass/bootstrap/scss/_spinners.scss +55 -0
- data/_sass/bootstrap/scss/_tables.scss +185 -0
- data/_sass/bootstrap/scss/_toasts.scss +44 -0
- data/_sass/bootstrap/scss/_tooltip.scss +115 -0
- data/_sass/bootstrap/scss/_transitions.scss +20 -0
- data/_sass/bootstrap/scss/_type.scss +125 -0
- data/_sass/bootstrap/scss/_utilities.scss +17 -0
- data/_sass/bootstrap/scss/_variables.scss +1123 -0
- data/_sass/bootstrap/scss/bootstrap-grid.scss +29 -0
- data/_sass/bootstrap/scss/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap/scss/bootstrap.scss +44 -0
- data/_sass/bootstrap/scss/mixins/_alert.scss +13 -0
- data/_sass/bootstrap/scss/mixins/_background-variant.scss +21 -0
- data/_sass/bootstrap/scss/mixins/_badge.scss +17 -0
- data/_sass/bootstrap/scss/mixins/_border-radius.scss +63 -0
- data/_sass/bootstrap/scss/mixins/_box-shadow.scss +20 -0
- data/_sass/bootstrap/scss/mixins/_breakpoints.scss +123 -0
- data/_sass/bootstrap/scss/mixins/_buttons.scss +107 -0
- data/_sass/bootstrap/scss/mixins/_caret.scss +62 -0
- data/_sass/bootstrap/scss/mixins/_clearfix.scss +7 -0
- data/_sass/bootstrap/scss/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/scss/mixins/_float.scss +14 -0
- data/_sass/bootstrap/scss/mixins/_forms.scss +193 -0
- data/_sass/bootstrap/scss/mixins/_gradients.scss +45 -0
- data/_sass/bootstrap/scss/mixins/_grid-framework.scss +66 -0
- data/_sass/bootstrap/scss/mixins/_grid.scss +51 -0
- data/_sass/bootstrap/scss/mixins/_hover.scss +37 -0
- data/_sass/bootstrap/scss/mixins/_image.scss +36 -0
- data/_sass/bootstrap/scss/mixins/_list-group.scss +21 -0
- data/_sass/bootstrap/scss/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/scss/mixins/_nav-divider.scss +10 -0
- data/_sass/bootstrap/scss/mixins/_pagination.scss +22 -0
- data/_sass/bootstrap/scss/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/scss/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/scss/mixins/_screen-reader.scss +33 -0
- data/_sass/bootstrap/scss/mixins/_size.scss +7 -0
- data/_sass/bootstrap/scss/mixins/_table-row.scss +39 -0
- data/_sass/bootstrap/scss/mixins/_text-emphasis.scss +16 -0
- data/_sass/bootstrap/scss/mixins/_text-hide.scss +11 -0
- data/_sass/bootstrap/scss/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/scss/mixins/_transition.scss +16 -0
- data/_sass/bootstrap/scss/mixins/_visibility.scss +8 -0
- data/_sass/bootstrap/scss/utilities/_align.scss +8 -0
- data/_sass/bootstrap/scss/utilities/_background.scss +19 -0
- data/_sass/bootstrap/scss/utilities/_borders.scss +75 -0
- data/_sass/bootstrap/scss/utilities/_clearfix.scss +3 -0
- data/_sass/bootstrap/scss/utilities/_display.scss +26 -0
- data/_sass/bootstrap/scss/utilities/_embed.scss +39 -0
- data/_sass/bootstrap/scss/utilities/_flex.scss +51 -0
- data/_sass/bootstrap/scss/utilities/_float.scss +11 -0
- data/_sass/bootstrap/scss/utilities/_overflow.scss +5 -0
- data/_sass/bootstrap/scss/utilities/_position.scss +32 -0
- data/_sass/bootstrap/scss/utilities/_screenreaders.scss +11 -0
- data/_sass/bootstrap/scss/utilities/_shadows.scss +6 -0
- data/_sass/bootstrap/scss/utilities/_sizing.scss +20 -0
- data/_sass/bootstrap/scss/utilities/_spacing.scss +73 -0
- data/_sass/bootstrap/scss/utilities/_stretched-link.scss +19 -0
- data/_sass/bootstrap/scss/utilities/_text.scss +72 -0
- data/_sass/bootstrap/scss/utilities/_visibility.scss +13 -0
- data/_sass/bootstrap/scss/vendor/_rfs.scss +204 -0
- data/_sass/bootswatch/dist/cerulean/_bootswatch.scss +103 -0
- data/_sass/bootswatch/dist/cerulean/_variables.scss +57 -0
- data/_sass/bootswatch/dist/spacelab/_bootswatch.scss +102 -0
- data/_sass/bootswatch/dist/spacelab/_variables.scss +63 -0
- data/_sass/bootswatch/dist/united/_bootswatch.scss +26 -0
- data/_sass/bootswatch/dist/united/_variables.scss +53 -0
- data/_sass/lone-wolf-theme/_default-layout.scss +24 -0
- data/_sass/lone-wolf-theme/_extend-bs4.scss +212 -0
- data/_sass/lone-wolf-theme/_override-bs4.scss +2 -0
- data/_sass/lone-wolf-theme/_syntax.scss +396 -0
- data/_sass/lone-wolf-theme/_variables.scss +24 -0
- data/assets/css/main.scss +16 -0
- data/assets/images/favicons/android-chrome-192x192.png +0 -0
- data/assets/images/favicons/android-chrome-512x512.png +0 -0
- data/assets/images/favicons/apple-touch-icon.png +0 -0
- data/assets/images/favicons/browserconfig.xml +9 -0
- data/assets/images/favicons/favicon-16x16.png +0 -0
- data/assets/images/favicons/favicon-32x32.png +0 -0
- data/assets/images/favicons/favicon.ico +0 -0
- data/assets/images/favicons/mstile-144x144.png +0 -0
- data/assets/images/favicons/mstile-150x150.png +0 -0
- data/assets/images/favicons/mstile-310x150.png +0 -0
- data/assets/images/favicons/mstile-310x310.png +0 -0
- data/assets/images/favicons/mstile-70x70.png +0 -0
- data/assets/images/favicons/safari-pinned-tab.svg +8283 -0
- data/assets/images/favicons/site.webmanifest +19 -0
- data/assets/images/lwt-logo-v1.svg +337 -0
- data/assets/js/_main.js +20 -0
- data/assets/js/bootstrap/bootstrap.min.js +7 -0
- data/assets/js/bootstrap/bootstrap.min.js.map +1 -0
- data/assets/js/main.min.js +8 -0
- metadata +362 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
//
|
2
|
+
// Base styles
|
3
|
+
//
|
4
|
+
|
5
|
+
.alert {
|
6
|
+
position: relative;
|
7
|
+
padding: $alert-padding-y $alert-padding-x;
|
8
|
+
margin-bottom: $alert-margin-bottom;
|
9
|
+
border: $alert-border-width solid transparent;
|
10
|
+
@include border-radius($alert-border-radius);
|
11
|
+
}
|
12
|
+
|
13
|
+
// Headings for larger alerts
|
14
|
+
.alert-heading {
|
15
|
+
// Specified to prevent conflicts of changing $headings-color
|
16
|
+
color: inherit;
|
17
|
+
}
|
18
|
+
|
19
|
+
// Provide class for links that match alerts
|
20
|
+
.alert-link {
|
21
|
+
font-weight: $alert-link-font-weight;
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
// Dismissible alerts
|
26
|
+
//
|
27
|
+
// Expand the right padding and account for the close button's positioning.
|
28
|
+
|
29
|
+
.alert-dismissible {
|
30
|
+
padding-right: $close-font-size + $alert-padding-x * 2;
|
31
|
+
|
32
|
+
// Adjust close link position
|
33
|
+
.close {
|
34
|
+
position: absolute;
|
35
|
+
top: 0;
|
36
|
+
right: 0;
|
37
|
+
padding: $alert-padding-y $alert-padding-x;
|
38
|
+
color: inherit;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
|
43
|
+
// Alternate styles
|
44
|
+
//
|
45
|
+
// Generate contextual modifier classes for colorizing the alert.
|
46
|
+
|
47
|
+
@each $color, $value in $theme-colors {
|
48
|
+
.alert-#{$color} {
|
49
|
+
@include alert-variant(theme-color-level($color, $alert-bg-level), theme-color-level($color, $alert-border-level), theme-color-level($color, $alert-color-level));
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
// Base class
|
2
|
+
//
|
3
|
+
// Requires one of the contextual, color modifier classes for `color` and
|
4
|
+
// `background-color`.
|
5
|
+
|
6
|
+
.badge {
|
7
|
+
display: inline-block;
|
8
|
+
padding: $badge-padding-y $badge-padding-x;
|
9
|
+
@include font-size($badge-font-size);
|
10
|
+
font-weight: $badge-font-weight;
|
11
|
+
line-height: 1;
|
12
|
+
text-align: center;
|
13
|
+
white-space: nowrap;
|
14
|
+
vertical-align: baseline;
|
15
|
+
@include border-radius($badge-border-radius);
|
16
|
+
@include transition($badge-transition);
|
17
|
+
|
18
|
+
@at-root a#{&} {
|
19
|
+
@include hover-focus {
|
20
|
+
text-decoration: none;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// Empty badges collapse automatically
|
25
|
+
&:empty {
|
26
|
+
display: none;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
// Quick fix for badges in buttons
|
31
|
+
.btn .badge {
|
32
|
+
position: relative;
|
33
|
+
top: -1px;
|
34
|
+
}
|
35
|
+
|
36
|
+
// Pill badges
|
37
|
+
//
|
38
|
+
// Make them extra rounded with a modifier to replace v3's badges.
|
39
|
+
|
40
|
+
.badge-pill {
|
41
|
+
padding-right: $badge-pill-padding-x;
|
42
|
+
padding-left: $badge-pill-padding-x;
|
43
|
+
@include border-radius($badge-pill-border-radius);
|
44
|
+
}
|
45
|
+
|
46
|
+
// Colors
|
47
|
+
//
|
48
|
+
// Contextual variations (linked badges get darker on :hover).
|
49
|
+
|
50
|
+
@each $color, $value in $theme-colors {
|
51
|
+
.badge-#{$color} {
|
52
|
+
@include badge-variant($value);
|
53
|
+
}
|
54
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
.breadcrumb {
|
2
|
+
display: flex;
|
3
|
+
flex-wrap: wrap;
|
4
|
+
padding: $breadcrumb-padding-y $breadcrumb-padding-x;
|
5
|
+
margin-bottom: $breadcrumb-margin-bottom;
|
6
|
+
list-style: none;
|
7
|
+
background-color: $breadcrumb-bg;
|
8
|
+
@include border-radius($breadcrumb-border-radius);
|
9
|
+
}
|
10
|
+
|
11
|
+
.breadcrumb-item {
|
12
|
+
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
13
|
+
+ .breadcrumb-item {
|
14
|
+
padding-left: $breadcrumb-item-padding;
|
15
|
+
|
16
|
+
&::before {
|
17
|
+
display: inline-block; // Suppress underlining of the separator in modern browsers
|
18
|
+
padding-right: $breadcrumb-item-padding;
|
19
|
+
color: $breadcrumb-divider-color;
|
20
|
+
content: $breadcrumb-divider;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
|
25
|
+
// without `<ul>`s. The `::before` pseudo-element generates an element
|
26
|
+
// *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
|
27
|
+
//
|
28
|
+
// To trick IE into suppressing the underline, we give the pseudo-element an
|
29
|
+
// underline and then immediately remove it.
|
30
|
+
+ .breadcrumb-item:hover::before {
|
31
|
+
text-decoration: underline;
|
32
|
+
}
|
33
|
+
// stylelint-disable-next-line no-duplicate-selectors
|
34
|
+
+ .breadcrumb-item:hover::before {
|
35
|
+
text-decoration: none;
|
36
|
+
}
|
37
|
+
|
38
|
+
&.active {
|
39
|
+
color: $breadcrumb-active-color;
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,163 @@
|
|
1
|
+
// stylelint-disable selector-no-qualifying-type
|
2
|
+
|
3
|
+
// Make the div behave like a button
|
4
|
+
.btn-group,
|
5
|
+
.btn-group-vertical {
|
6
|
+
position: relative;
|
7
|
+
display: inline-flex;
|
8
|
+
vertical-align: middle; // match .btn alignment given font-size hack above
|
9
|
+
|
10
|
+
> .btn {
|
11
|
+
position: relative;
|
12
|
+
flex: 1 1 auto;
|
13
|
+
|
14
|
+
// Bring the hover, focused, and "active" buttons to the front to overlay
|
15
|
+
// the borders properly
|
16
|
+
@include hover {
|
17
|
+
z-index: 1;
|
18
|
+
}
|
19
|
+
&:focus,
|
20
|
+
&:active,
|
21
|
+
&.active {
|
22
|
+
z-index: 1;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
// Optional: Group multiple button groups together for a toolbar
|
28
|
+
.btn-toolbar {
|
29
|
+
display: flex;
|
30
|
+
flex-wrap: wrap;
|
31
|
+
justify-content: flex-start;
|
32
|
+
|
33
|
+
.input-group {
|
34
|
+
width: auto;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.btn-group {
|
39
|
+
// Prevent double borders when buttons are next to each other
|
40
|
+
> .btn:not(:first-child),
|
41
|
+
> .btn-group:not(:first-child) {
|
42
|
+
margin-left: -$btn-border-width;
|
43
|
+
}
|
44
|
+
|
45
|
+
// Reset rounded corners
|
46
|
+
> .btn:not(:last-child):not(.dropdown-toggle),
|
47
|
+
> .btn-group:not(:last-child) > .btn {
|
48
|
+
@include border-right-radius(0);
|
49
|
+
}
|
50
|
+
|
51
|
+
> .btn:not(:first-child),
|
52
|
+
> .btn-group:not(:first-child) > .btn {
|
53
|
+
@include border-left-radius(0);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
// Sizing
|
58
|
+
//
|
59
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
60
|
+
|
61
|
+
.btn-group-sm > .btn { @extend .btn-sm; }
|
62
|
+
.btn-group-lg > .btn { @extend .btn-lg; }
|
63
|
+
|
64
|
+
|
65
|
+
//
|
66
|
+
// Split button dropdowns
|
67
|
+
//
|
68
|
+
|
69
|
+
.dropdown-toggle-split {
|
70
|
+
padding-right: $btn-padding-x * .75;
|
71
|
+
padding-left: $btn-padding-x * .75;
|
72
|
+
|
73
|
+
&::after,
|
74
|
+
.dropup &::after,
|
75
|
+
.dropright &::after {
|
76
|
+
margin-left: 0;
|
77
|
+
}
|
78
|
+
|
79
|
+
.dropleft &::before {
|
80
|
+
margin-right: 0;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
.btn-sm + .dropdown-toggle-split {
|
85
|
+
padding-right: $btn-padding-x-sm * .75;
|
86
|
+
padding-left: $btn-padding-x-sm * .75;
|
87
|
+
}
|
88
|
+
|
89
|
+
.btn-lg + .dropdown-toggle-split {
|
90
|
+
padding-right: $btn-padding-x-lg * .75;
|
91
|
+
padding-left: $btn-padding-x-lg * .75;
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
// The clickable button for toggling the menu
|
96
|
+
// Set the same inset shadow as the :active state
|
97
|
+
.btn-group.show .dropdown-toggle {
|
98
|
+
@include box-shadow($btn-active-box-shadow);
|
99
|
+
|
100
|
+
// Show no shadow for `.btn-link` since it has no other button styles.
|
101
|
+
&.btn-link {
|
102
|
+
@include box-shadow(none);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
|
107
|
+
//
|
108
|
+
// Vertical button groups
|
109
|
+
//
|
110
|
+
|
111
|
+
.btn-group-vertical {
|
112
|
+
flex-direction: column;
|
113
|
+
align-items: flex-start;
|
114
|
+
justify-content: center;
|
115
|
+
|
116
|
+
> .btn,
|
117
|
+
> .btn-group {
|
118
|
+
width: 100%;
|
119
|
+
}
|
120
|
+
|
121
|
+
> .btn:not(:first-child),
|
122
|
+
> .btn-group:not(:first-child) {
|
123
|
+
margin-top: -$btn-border-width;
|
124
|
+
}
|
125
|
+
|
126
|
+
// Reset rounded corners
|
127
|
+
> .btn:not(:last-child):not(.dropdown-toggle),
|
128
|
+
> .btn-group:not(:last-child) > .btn {
|
129
|
+
@include border-bottom-radius(0);
|
130
|
+
}
|
131
|
+
|
132
|
+
> .btn:not(:first-child),
|
133
|
+
> .btn-group:not(:first-child) > .btn {
|
134
|
+
@include border-top-radius(0);
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
|
139
|
+
// Checkbox and radio options
|
140
|
+
//
|
141
|
+
// In order to support the browser's form validation feedback, powered by the
|
142
|
+
// `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
|
143
|
+
// `display: none;` or `visibility: hidden;` as that also hides the popover.
|
144
|
+
// Simply visually hiding the inputs via `opacity` would leave them clickable in
|
145
|
+
// certain cases which is prevented by using `clip` and `pointer-events`.
|
146
|
+
// This way, we ensure a DOM element is visible to position the popover from.
|
147
|
+
//
|
148
|
+
// See https://github.com/twbs/bootstrap/pull/12794 and
|
149
|
+
// https://github.com/twbs/bootstrap/pull/14559 for more information.
|
150
|
+
|
151
|
+
.btn-group-toggle {
|
152
|
+
> .btn,
|
153
|
+
> .btn-group > .btn {
|
154
|
+
margin-bottom: 0; // Override default `<label>` value
|
155
|
+
|
156
|
+
input[type="radio"],
|
157
|
+
input[type="checkbox"] {
|
158
|
+
position: absolute;
|
159
|
+
clip: rect(0, 0, 0, 0);
|
160
|
+
pointer-events: none;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
// stylelint-disable selector-no-qualifying-type
|
2
|
+
|
3
|
+
//
|
4
|
+
// Base styles
|
5
|
+
//
|
6
|
+
|
7
|
+
.btn {
|
8
|
+
display: inline-block;
|
9
|
+
font-family: $btn-font-family;
|
10
|
+
font-weight: $btn-font-weight;
|
11
|
+
color: $body-color;
|
12
|
+
text-align: center;
|
13
|
+
vertical-align: middle;
|
14
|
+
user-select: none;
|
15
|
+
background-color: transparent;
|
16
|
+
border: $btn-border-width solid transparent;
|
17
|
+
@include button-size($btn-padding-y, $btn-padding-x, $btn-font-size, $btn-line-height, $btn-border-radius);
|
18
|
+
@include transition($btn-transition);
|
19
|
+
|
20
|
+
@include hover {
|
21
|
+
color: $body-color;
|
22
|
+
text-decoration: none;
|
23
|
+
}
|
24
|
+
|
25
|
+
&:focus,
|
26
|
+
&.focus {
|
27
|
+
outline: 0;
|
28
|
+
box-shadow: $btn-focus-box-shadow;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Disabled comes first so active can properly restyle
|
32
|
+
&.disabled,
|
33
|
+
&:disabled {
|
34
|
+
opacity: $btn-disabled-opacity;
|
35
|
+
@include box-shadow(none);
|
36
|
+
}
|
37
|
+
|
38
|
+
&:not(:disabled):not(.disabled):active,
|
39
|
+
&:not(:disabled):not(.disabled).active {
|
40
|
+
@include box-shadow($btn-active-box-shadow);
|
41
|
+
|
42
|
+
&:focus {
|
43
|
+
@include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
// Future-proof disabling of clicks on `<a>` elements
|
49
|
+
a.btn.disabled,
|
50
|
+
fieldset:disabled a.btn {
|
51
|
+
pointer-events: none;
|
52
|
+
}
|
53
|
+
|
54
|
+
|
55
|
+
//
|
56
|
+
// Alternate buttons
|
57
|
+
//
|
58
|
+
|
59
|
+
@each $color, $value in $theme-colors {
|
60
|
+
.btn-#{$color} {
|
61
|
+
@include button-variant($value, $value);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
@each $color, $value in $theme-colors {
|
66
|
+
.btn-outline-#{$color} {
|
67
|
+
@include button-outline-variant($value);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
//
|
73
|
+
// Link buttons
|
74
|
+
//
|
75
|
+
|
76
|
+
// Make a button look and behave like a link
|
77
|
+
.btn-link {
|
78
|
+
font-weight: $font-weight-normal;
|
79
|
+
color: $link-color;
|
80
|
+
text-decoration: $link-decoration;
|
81
|
+
|
82
|
+
@include hover {
|
83
|
+
color: $link-hover-color;
|
84
|
+
text-decoration: $link-hover-decoration;
|
85
|
+
}
|
86
|
+
|
87
|
+
&:focus,
|
88
|
+
&.focus {
|
89
|
+
text-decoration: $link-hover-decoration;
|
90
|
+
box-shadow: none;
|
91
|
+
}
|
92
|
+
|
93
|
+
&:disabled,
|
94
|
+
&.disabled {
|
95
|
+
color: $btn-link-disabled-color;
|
96
|
+
pointer-events: none;
|
97
|
+
}
|
98
|
+
|
99
|
+
// No need for an active state here
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
//
|
104
|
+
// Button Sizes
|
105
|
+
//
|
106
|
+
|
107
|
+
.btn-lg {
|
108
|
+
@include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-line-height-lg, $btn-border-radius-lg);
|
109
|
+
}
|
110
|
+
|
111
|
+
.btn-sm {
|
112
|
+
@include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-line-height-sm, $btn-border-radius-sm);
|
113
|
+
}
|
114
|
+
|
115
|
+
|
116
|
+
//
|
117
|
+
// Block button
|
118
|
+
//
|
119
|
+
|
120
|
+
.btn-block {
|
121
|
+
display: block;
|
122
|
+
width: 100%;
|
123
|
+
|
124
|
+
// Vertically space out multiple block buttons
|
125
|
+
+ .btn-block {
|
126
|
+
margin-top: $btn-block-spacing-y;
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
// Specificity overrides
|
131
|
+
input[type="submit"],
|
132
|
+
input[type="reset"],
|
133
|
+
input[type="button"] {
|
134
|
+
&.btn-block {
|
135
|
+
width: 100%;
|
136
|
+
}
|
137
|
+
}
|