jekyll-bootstrap 4.0.0.pre.beta.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +46 -0
- data/_includes/footer.html +16 -0
- data/_includes/head.html +16 -0
- data/_includes/header.html +24 -0
- data/_layouts/default.html +9 -0
- data/_layouts/home.html +71 -0
- data/_layouts/page.html +11 -0
- data/_layouts/post.html +24 -0
- data/_sass/_alert.scss +49 -0
- data/_sass/_badge.scss +47 -0
- data/_sass/_breadcrumb.scss +38 -0
- data/_sass/_button-group.scss +207 -0
- data/_sass/_buttons.scss +136 -0
- data/_sass/_card.scss +259 -0
- data/_sass/_carousel.scss +191 -0
- data/_sass/_close.scss +29 -0
- data/_sass/_code.scss +64 -0
- data/_sass/_custom-forms.scss +257 -0
- data/_sass/_dropdown.scss +103 -0
- data/_sass/_forms.scss +358 -0
- data/_sass/_functions.scss +86 -0
- data/_sass/_grid.scss +52 -0
- data/_sass/_images.scss +43 -0
- data/_sass/_input-group.scss +186 -0
- data/_sass/_jumbotron.scss +16 -0
- data/_sass/_list-group.scss +114 -0
- data/_sass/_media.scss +8 -0
- data/_sass/_mixins.scss +42 -0
- data/_sass/_modal.scss +153 -0
- data/_sass/_nav.scss +118 -0
- data/_sass/_navbar.scss +306 -0
- data/_sass/_pagination.scss +64 -0
- data/_sass/_popover.scss +194 -0
- data/_sass/_print.scss +110 -0
- data/_sass/_progress.scss +30 -0
- data/_sass/_reboot.scss +504 -0
- data/_sass/_root.scss +19 -0
- data/_sass/_tables.scss +180 -0
- data/_sass/_tooltip.scss +107 -0
- data/_sass/_transitions.scss +36 -0
- data/_sass/_type.scss +125 -0
- data/_sass/_utilities.scss +14 -0
- data/_sass/_variables.scss +828 -0
- data/_sass/bootstrap-grid.scss +35 -0
- data/_sass/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap.scss +42 -0
- data/_sass/mixins/_alert.scss +13 -0
- data/_sass/mixins/_background-variant.scss +20 -0
- data/_sass/mixins/_badge.scss +12 -0
- data/_sass/mixins/_border-radius.scss +35 -0
- data/_sass/mixins/_box-shadow.scss +5 -0
- data/_sass/mixins/_breakpoints.scss +119 -0
- data/_sass/mixins/_buttons.scss +94 -0
- data/_sass/mixins/_caret.scss +35 -0
- data/_sass/mixins/_clearfix.scss +7 -0
- data/_sass/mixins/_float.scss +11 -0
- data/_sass/mixins/_forms.scss +108 -0
- data/_sass/mixins/_gradients.scss +45 -0
- data/_sass/mixins/_grid-framework.scss +69 -0
- data/_sass/mixins/_grid.scss +52 -0
- data/_sass/mixins/_hover.scss +61 -0
- data/_sass/mixins/_image.scss +36 -0
- data/_sass/mixins/_list-group.scss +24 -0
- data/_sass/mixins/_lists.scss +7 -0
- data/_sass/mixins/_nav-divider.scss +10 -0
- data/_sass/mixins/_navbar-align.scss +10 -0
- data/_sass/mixins/_pagination.scss +22 -0
- data/_sass/mixins/_reset-text.scss +17 -0
- data/_sass/mixins/_resize.scss +6 -0
- data/_sass/mixins/_screen-reader.scss +35 -0
- data/_sass/mixins/_size.scss +6 -0
- data/_sass/mixins/_table-row.scss +30 -0
- data/_sass/mixins/_text-emphasis.scss +14 -0
- data/_sass/mixins/_text-hide.scss +8 -0
- data/_sass/mixins/_text-truncate.scss +8 -0
- data/_sass/mixins/_transition.scss +9 -0
- data/_sass/mixins/_visibility.scss +7 -0
- data/_sass/syntax_highlight.scss +70 -0
- data/_sass/utilities/_align.scss +8 -0
- data/_sass/utilities/_background.scss +19 -0
- data/_sass/utilities/_borders.scss +54 -0
- data/_sass/utilities/_clearfix.scss +3 -0
- data/_sass/utilities/_display.scss +56 -0
- data/_sass/utilities/_embed.scss +52 -0
- data/_sass/utilities/_flex.scss +46 -0
- data/_sass/utilities/_float.scss +9 -0
- data/_sass/utilities/_position.scss +36 -0
- data/_sass/utilities/_screenreaders.scss +11 -0
- data/_sass/utilities/_sizing.scss +12 -0
- data/_sass/utilities/_spacing.scss +51 -0
- data/_sass/utilities/_text.scss +52 -0
- data/_sass/utilities/_visibility.scss +11 -0
- data/assets/css/main.scss +15 -0
- metadata +195 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a8969878926458123bcce494ade9b0e0c3f9632d
|
4
|
+
data.tar.gz: a126df98a1ce4d71230b6491452400df98d64282
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4b566f5d6bccce39cd3ec8ef808ad901341e0d2fa2df3679f026ca6d5b6fe4a46a6f44d95d13b7d36132ee89c206e1f6dd1eb2b9f4495d90d7b638e93f319c84
|
7
|
+
data.tar.gz: f221e68223170f0ad341db59b4d50cb293b12f2ada1a89d4258550a09641cb64af95a6c308291804103da0479235626838845540445a100b22f0ae3a9cafb819
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Maxim @Llorephie Martyanov
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# jekyll-bootstrap
|
2
|
+
|
3
|
+
Bootstrap theme gem for Jekyll. Complains latest W3C recomendations, if you not sure in this - feel free to create issue with your opinion.
|
4
|
+
|
5
|
+
### Versioning
|
6
|
+
|
7
|
+
This gem version will always point to latest version of Bootstrap + dot-separated version of theme files.
|
8
|
+
Example: 4.0.0-beta.2.1 should be read as "Bootstrap version 4.0.0-beta.2, theme version 1 for before mentioned Bootstrap version"
|
9
|
+
|
10
|
+
## Installation
|
11
|
+
|
12
|
+
Add this line to your Jekyll site's `Gemfile`:
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
gem "jekyll-bootstrap"
|
16
|
+
```
|
17
|
+
|
18
|
+
And add this line to your Jekyll site's `_config.yml`:
|
19
|
+
|
20
|
+
```yaml
|
21
|
+
theme: jekyll-bootstrap
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install jekyll-bootstrap
|
31
|
+
|
32
|
+
## Contributing
|
33
|
+
|
34
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/llorephie/jekyll-bootstrap. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
35
|
+
|
36
|
+
## Development
|
37
|
+
|
38
|
+
To set up your environment to develop this theme, run `bundle install`.
|
39
|
+
|
40
|
+
Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
|
41
|
+
|
42
|
+
When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
|
43
|
+
|
44
|
+
## License
|
45
|
+
|
46
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<footer class="container footer">
|
2
|
+
<hr>
|
3
|
+
<div class="row">
|
4
|
+
<div class="col">
|
5
|
+
<details>
|
6
|
+
<summary class="text-muted">© {{ site.author }} {{ site.time | date: '%Y' }}</summary>
|
7
|
+
<p>Author: {{ site.author }} <<a href="mailto:{{ site.email }}">{{ site.email }}</a>></p>
|
8
|
+
<p><a href="https://creativecommons.org/licenses/by-sa/4.0/" rel="license">Content available under Creative Commons CC-BY-SA 4.0</a></p>
|
9
|
+
</details>
|
10
|
+
<p>Subscribe to latest publications on this website <a class="text-warning" href="{{ "/feed.xml" | relative_url }}" rel="alternate">via RSS</a></p>
|
11
|
+
</div>
|
12
|
+
<div class="col">
|
13
|
+
<p class="text-muted">{{ site.description }}</p>
|
14
|
+
</div>
|
15
|
+
</div>
|
16
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
<head>
|
2
|
+
<!-- Common meta-tags -->
|
3
|
+
<meta charset="utf-8" />
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
5
|
+
<meta name="generator" content="Jekyll v{{ jekyll.version }}">
|
6
|
+
{% if site.keywords %}<meta name="keywords" content="{{ site.keywords }}" />{% endif %}
|
7
|
+
<meta name="robots" content="index, follow" />
|
8
|
+
|
9
|
+
{% seo %}
|
10
|
+
|
11
|
+
<!-- Common link-tags -->
|
12
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ " /feed.xml " | relative_url }}">
|
13
|
+
|
14
|
+
<!-- Stylesheets link-tags -->
|
15
|
+
<link rel="stylesheet" type="text/css" media="all" href="{{ "/assets/css/main.css" | relative_url }}" />
|
16
|
+
</head>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<header>
|
2
|
+
<nav class="navbar navbar-dark bg-dark navbar-expand-md">
|
3
|
+
<a class="navbar-brand" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
|
4
|
+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="Toggle navigation">
|
5
|
+
<span class="navbar-toggler-icon"></span>
|
6
|
+
</button>
|
7
|
+
<div id="navbar" class="collapse navbar-collapse">
|
8
|
+
<ul class="navbar-nav mr-auto">
|
9
|
+
{% assign default_paths = site.pages | map: "path" %}
|
10
|
+
{% assign page_paths = site.header_pages | default: default_paths %}
|
11
|
+
{% if page_paths %}
|
12
|
+
{% for path in page_paths %}
|
13
|
+
{% assign my_page = site.pages | where: "path", path | first %}
|
14
|
+
{% if my_page.title and my_page.autogen == nil %}
|
15
|
+
<li class="nav-item">
|
16
|
+
<a class="nav-link" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
|
17
|
+
</li>
|
18
|
+
{% endif %}
|
19
|
+
{% endfor %}
|
20
|
+
{% endif %}
|
21
|
+
</ul>
|
22
|
+
</div>
|
23
|
+
</nav>
|
24
|
+
</header>
|
data/_layouts/home.html
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="container pt-5">
|
5
|
+
<div class="row">
|
6
|
+
<main class="col-9">
|
7
|
+
<section>
|
8
|
+
<h3>Articles</h3>
|
9
|
+
{% if paginator %}
|
10
|
+
{% for post in paginator.posts %}
|
11
|
+
<article>
|
12
|
+
{% assign date_format = site.date_format | default: "%b %-d, %Y" %}
|
13
|
+
<h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
|
14
|
+
<span class="lead">Publish date: {{ post.date | date: date_format }} · Author: {{ post.author }} · Categories: {{ post.categories }}</span>
|
15
|
+
<p>{{ post.excerpt }}</p>
|
16
|
+
<a class="btn btn-info float-right" href="{{ post.url | relative_url }}">Read more</a>
|
17
|
+
</article>
|
18
|
+
<hr>
|
19
|
+
{% endfor %}
|
20
|
+
{% if paginator.total_pages > 1 %}
|
21
|
+
<nav aria-label="Page navigation">
|
22
|
+
<ul class="pagination justify-content-center">
|
23
|
+
{% if paginator.next_page %}
|
24
|
+
<li class="page-item">
|
25
|
+
<a class="page-link" href="{{ paginator.next_page_path | prepend: site.baseurl }}">« Newer posts</a>
|
26
|
+
</li>
|
27
|
+
{% else %}
|
28
|
+
<li class="page-item">
|
29
|
+
<span class="page-link disabled">« Newer posts</span>
|
30
|
+
</li>
|
31
|
+
{% endif %}
|
32
|
+
{% if paginator.page_trail %}
|
33
|
+
{% for trail in paginator.page_trail %}
|
34
|
+
<li class="page-item {% if page.url == trail.path %}active{% endif %}">
|
35
|
+
<a class="page-link" href="{{ trail.path | prepend: site.baseurl }}" title="{{trail.title}}">{{ trail.num }}</a>
|
36
|
+
</li>
|
37
|
+
{% endfor %}
|
38
|
+
{% endif %}
|
39
|
+
{% if paginator.previous_page %}
|
40
|
+
<li class="page-item">
|
41
|
+
<a class="page-link" href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Later posts »</a>
|
42
|
+
</li>
|
43
|
+
{% else %}
|
44
|
+
<li class="page-item">
|
45
|
+
<span class="page-link disabled">Later posts »</span>
|
46
|
+
</li>
|
47
|
+
{% endif %}
|
48
|
+
</ul>
|
49
|
+
{% endif %}
|
50
|
+
</nav>
|
51
|
+
{% else %}
|
52
|
+
{% for post in site.posts %}
|
53
|
+
<article>
|
54
|
+
{% assign date_format = site.date_format | default: "%b %-d, %Y" %}
|
55
|
+
<h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
|
56
|
+
<span class="lead">Publish date: {{ post.date | date: date_format }}{% if post.author %} · Author: {{ post.author }}{% endif %}{% if post.categories %} · Categories: {{ post.categories }}{% endif %}</span>
|
57
|
+
{{ post.excerpt }}
|
58
|
+
<a class="btn btn-outline-primary btn-lg btn-block" href="{{ post.url | relative_url }}">Read more</a>
|
59
|
+
</article>
|
60
|
+
<hr>
|
61
|
+
{% endfor %}
|
62
|
+
<p>No more posts available now on this website :)<p>
|
63
|
+
{% endif %}
|
64
|
+
</section>
|
65
|
+
</main>
|
66
|
+
<section class="col-3">
|
67
|
+
<h3>About</h3>
|
68
|
+
<p>{{ site.description }}</p>
|
69
|
+
</section>
|
70
|
+
</div>
|
71
|
+
</div>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<article class="container pt-5" itemscope itemtype="http://schema.org/BlogPosting">
|
5
|
+
<header>
|
6
|
+
<h1 itemprop="name headline">{{ page.title | escape }}</h1>
|
7
|
+
<p>
|
8
|
+
<time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
|
9
|
+
{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
|
10
|
+
{{ page.date | date: date_format }}
|
11
|
+
</time>
|
12
|
+
{% if page.author %}
|
13
|
+
• <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
|
14
|
+
{% endif %}</p>
|
15
|
+
</header>
|
16
|
+
|
17
|
+
<div class="post-content" itemprop="articleBody">
|
18
|
+
{{ content }}
|
19
|
+
</div>
|
20
|
+
|
21
|
+
{% if site.disqus.shortname %}
|
22
|
+
{% include disqus_comments.html %}
|
23
|
+
{% endif %}
|
24
|
+
</article>
|
data/_sass/_alert.scss
ADDED
@@ -0,0 +1,49 @@
|
|
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
|
+
// Adjust close link position
|
31
|
+
.close {
|
32
|
+
position: absolute;
|
33
|
+
top: 0;
|
34
|
+
right: 0;
|
35
|
+
padding: $alert-padding-y $alert-padding-x;
|
36
|
+
color: inherit;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// Alternate styles
|
42
|
+
//
|
43
|
+
// Generate contextual modifier classes for colorizing the alert.
|
44
|
+
|
45
|
+
@each $color, $value in $theme-colors {
|
46
|
+
.alert-#{$color} {
|
47
|
+
@include alert-variant(theme-color-level($color, -10), theme-color-level($color, -9), theme-color-level($color, 6));
|
48
|
+
}
|
49
|
+
}
|
data/_sass/_badge.scss
ADDED
@@ -0,0 +1,47 @@
|
|
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
|
+
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
|
+
|
17
|
+
// Empty badges collapse automatically
|
18
|
+
&:empty {
|
19
|
+
display: none;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
// Quick fix for badges in buttons
|
24
|
+
.btn .badge {
|
25
|
+
position: relative;
|
26
|
+
top: -1px;
|
27
|
+
}
|
28
|
+
|
29
|
+
// Pill badges
|
30
|
+
//
|
31
|
+
// Make them extra rounded with a modifier to replace v3's badges.
|
32
|
+
|
33
|
+
.badge-pill {
|
34
|
+
padding-right: $badge-pill-padding-x;
|
35
|
+
padding-left: $badge-pill-padding-x;
|
36
|
+
@include border-radius($badge-pill-border-radius);
|
37
|
+
}
|
38
|
+
|
39
|
+
// Colors
|
40
|
+
//
|
41
|
+
// Contextual variations (linked badges get darker on :hover).
|
42
|
+
|
43
|
+
@each $color, $value in $theme-colors {
|
44
|
+
.badge-#{$color} {
|
45
|
+
@include badge-variant($value);
|
46
|
+
}
|
47
|
+
}
|
@@ -0,0 +1,38 @@
|
|
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($border-radius);
|
9
|
+
}
|
10
|
+
|
11
|
+
.breadcrumb-item {
|
12
|
+
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
13
|
+
+ .breadcrumb-item::before {
|
14
|
+
display: inline-block; // Suppress underlining of the separator in modern browsers
|
15
|
+
padding-right: $breadcrumb-item-padding;
|
16
|
+
padding-left: $breadcrumb-item-padding;
|
17
|
+
color: $breadcrumb-divider-color;
|
18
|
+
content: "#{$breadcrumb-divider}";
|
19
|
+
}
|
20
|
+
|
21
|
+
// IE9-11 hack to properly handle hyperlink underlines for breadcrumbs built
|
22
|
+
// without `<ul>`s. The `::before` pseudo-element generates an element
|
23
|
+
// *within* the .breadcrumb-item and thereby inherits the `text-decoration`.
|
24
|
+
//
|
25
|
+
// To trick IE into suppressing the underline, we give the pseudo-element an
|
26
|
+
// underline and then immediately remove it.
|
27
|
+
+ .breadcrumb-item:hover::before {
|
28
|
+
text-decoration: underline;
|
29
|
+
}
|
30
|
+
// stylelint-disable-next-line no-duplicate-selectors
|
31
|
+
+ .breadcrumb-item:hover::before {
|
32
|
+
text-decoration: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
&.active {
|
36
|
+
color: $breadcrumb-active-color;
|
37
|
+
}
|
38
|
+
}
|
@@ -0,0 +1,207 @@
|
|
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: 0 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: 2;
|
18
|
+
}
|
19
|
+
&:focus,
|
20
|
+
&:active,
|
21
|
+
&.active {
|
22
|
+
z-index: 2;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
// Prevent double borders when buttons are next to each other
|
27
|
+
.btn + .btn,
|
28
|
+
.btn + .btn-group,
|
29
|
+
.btn-group + .btn,
|
30
|
+
.btn-group + .btn-group {
|
31
|
+
margin-left: -$input-btn-border-width;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
// Optional: Group multiple button groups together for a toolbar
|
36
|
+
.btn-toolbar {
|
37
|
+
display: flex;
|
38
|
+
flex-wrap: wrap;
|
39
|
+
justify-content: flex-start;
|
40
|
+
|
41
|
+
.input-group {
|
42
|
+
width: auto;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
47
|
+
border-radius: 0;
|
48
|
+
}
|
49
|
+
|
50
|
+
// Set corners individual because sometimes a single button can be in a .btn-group
|
51
|
+
// and we need :first-child and :last-child to both match
|
52
|
+
.btn-group > .btn:first-child {
|
53
|
+
margin-left: 0;
|
54
|
+
|
55
|
+
&:not(:last-child):not(.dropdown-toggle) {
|
56
|
+
@include border-right-radius(0);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
// Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu
|
60
|
+
// immediately after it
|
61
|
+
.btn-group > .btn:last-child:not(:first-child),
|
62
|
+
.btn-group > .dropdown-toggle:not(:first-child) {
|
63
|
+
@include border-left-radius(0);
|
64
|
+
}
|
65
|
+
|
66
|
+
// Custom edits for including btn-groups within btn-groups (useful for including
|
67
|
+
// dropdown buttons within a btn-group)
|
68
|
+
.btn-group > .btn-group {
|
69
|
+
float: left;
|
70
|
+
}
|
71
|
+
|
72
|
+
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
73
|
+
border-radius: 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
.btn-group > .btn-group:first-child:not(:last-child) {
|
77
|
+
> .btn:last-child,
|
78
|
+
> .dropdown-toggle {
|
79
|
+
@include border-right-radius(0);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
84
|
+
@include border-left-radius(0);
|
85
|
+
}
|
86
|
+
|
87
|
+
|
88
|
+
// Sizing
|
89
|
+
//
|
90
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
91
|
+
|
92
|
+
.btn-group-sm > .btn { @extend .btn-sm; }
|
93
|
+
.btn-group-lg > .btn { @extend .btn-lg; }
|
94
|
+
|
95
|
+
|
96
|
+
//
|
97
|
+
// Split button dropdowns
|
98
|
+
//
|
99
|
+
|
100
|
+
.btn + .dropdown-toggle-split {
|
101
|
+
padding-right: $input-btn-padding-x * .75;
|
102
|
+
padding-left: $input-btn-padding-x * .75;
|
103
|
+
|
104
|
+
&::after {
|
105
|
+
margin-left: 0;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.btn-sm + .dropdown-toggle-split {
|
110
|
+
padding-right: $input-btn-padding-x-sm * .75;
|
111
|
+
padding-left: $input-btn-padding-x-sm * .75;
|
112
|
+
}
|
113
|
+
|
114
|
+
.btn-lg + .dropdown-toggle-split {
|
115
|
+
padding-right: $input-btn-padding-x-lg * .75;
|
116
|
+
padding-left: $input-btn-padding-x-lg * .75;
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
// The clickable button for toggling the menu
|
121
|
+
// Set the same inset shadow as the :active state
|
122
|
+
.btn-group.show .dropdown-toggle {
|
123
|
+
@include box-shadow($btn-active-box-shadow);
|
124
|
+
|
125
|
+
// Show no shadow for `.btn-link` since it has no other button styles.
|
126
|
+
&.btn-link {
|
127
|
+
@include box-shadow(none);
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
|
132
|
+
//
|
133
|
+
// Vertical button groups
|
134
|
+
//
|
135
|
+
|
136
|
+
.btn-group-vertical {
|
137
|
+
flex-direction: column;
|
138
|
+
align-items: flex-start;
|
139
|
+
justify-content: center;
|
140
|
+
|
141
|
+
.btn,
|
142
|
+
.btn-group {
|
143
|
+
width: 100%;
|
144
|
+
}
|
145
|
+
|
146
|
+
> .btn + .btn,
|
147
|
+
> .btn + .btn-group,
|
148
|
+
> .btn-group + .btn,
|
149
|
+
> .btn-group + .btn-group {
|
150
|
+
margin-top: -$input-btn-border-width;
|
151
|
+
margin-left: 0;
|
152
|
+
}
|
153
|
+
|
154
|
+
> .btn {
|
155
|
+
&:not(:first-child):not(:last-child) {
|
156
|
+
border-radius: 0;
|
157
|
+
}
|
158
|
+
|
159
|
+
&:first-child:not(:last-child) {
|
160
|
+
@include border-bottom-radius(0);
|
161
|
+
}
|
162
|
+
|
163
|
+
&:last-child:not(:first-child) {
|
164
|
+
@include border-top-radius(0);
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
> .btn-group:not(:first-child):not(:last-child) > .btn {
|
169
|
+
border-radius: 0;
|
170
|
+
}
|
171
|
+
|
172
|
+
> .btn-group:first-child:not(:last-child) {
|
173
|
+
> .btn:last-child,
|
174
|
+
> .dropdown-toggle {
|
175
|
+
@include border-bottom-radius(0);
|
176
|
+
}
|
177
|
+
}
|
178
|
+
|
179
|
+
> .btn-group:last-child:not(:first-child) > .btn:first-child {
|
180
|
+
@include border-top-radius(0);
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
|
185
|
+
// Checkbox and radio options
|
186
|
+
//
|
187
|
+
// In order to support the browser's form validation feedback, powered by the
|
188
|
+
// `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
|
189
|
+
// `display: none;` or `visibility: hidden;` as that also hides the popover.
|
190
|
+
// Simply visually hiding the inputs via `opacity` would leave them clickable in
|
191
|
+
// certain cases which is prevented by using `clip` and `pointer-events`.
|
192
|
+
// This way, we ensure a DOM element is visible to position the popover from.
|
193
|
+
//
|
194
|
+
// See https://github.com/twbs/bootstrap/pull/12794 and
|
195
|
+
// https://github.com/twbs/bootstrap/pull/14559 for more information.
|
196
|
+
|
197
|
+
[data-toggle="buttons"] {
|
198
|
+
> .btn,
|
199
|
+
> .btn-group > .btn {
|
200
|
+
input[type="radio"],
|
201
|
+
input[type="checkbox"] {
|
202
|
+
position: absolute;
|
203
|
+
clip: rect(0,0,0,0);
|
204
|
+
pointer-events: none;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|