jekyll-theme-clean-portfolio 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +674 -0
- data/README.md +54 -0
- data/_includes/footer.html +30 -0
- data/_includes/head.html +25 -0
- data/_includes/header.html +74 -0
- data/_includes/modal_img.html +34 -0
- data/_layouts/blank.html +7 -0
- data/_layouts/default.html +16 -0
- data/_layouts/page.html +9 -0
- data/_layouts/post.html +21 -0
- data/assets/css/bootstrap/_alert.scss +51 -0
- data/assets/css/bootstrap/_badge.scss +47 -0
- data/assets/css/bootstrap/_breadcrumb.scss +38 -0
- data/assets/css/bootstrap/_button-group.scss +166 -0
- data/assets/css/bootstrap/_buttons.scss +143 -0
- data/assets/css/bootstrap/_card.scss +270 -0
- data/assets/css/bootstrap/_carousel.scss +191 -0
- data/assets/css/bootstrap/_close.scss +34 -0
- data/assets/css/bootstrap/_code.scss +56 -0
- data/assets/css/bootstrap/_custom-forms.scss +297 -0
- data/assets/css/bootstrap/_dropdown.scss +131 -0
- data/assets/css/bootstrap/_forms.scss +333 -0
- data/assets/css/bootstrap/_functions.scss +86 -0
- data/assets/css/bootstrap/_grid.scss +52 -0
- data/assets/css/bootstrap/_images.scss +42 -0
- data/assets/css/bootstrap/_input-group.scss +159 -0
- data/assets/css/bootstrap/_jumbotron.scss +16 -0
- data/assets/css/bootstrap/_list-group.scss +115 -0
- data/assets/css/bootstrap/_media.scss +8 -0
- data/assets/css/bootstrap/_mixins.scss +42 -0
- data/assets/css/bootstrap/_modal.scss +168 -0
- data/assets/css/bootstrap/_nav.scss +118 -0
- data/assets/css/bootstrap/_navbar.scss +311 -0
- data/assets/css/bootstrap/_pagination.scss +77 -0
- data/assets/css/bootstrap/_popover.scss +183 -0
- data/assets/css/bootstrap/_print.scss +124 -0
- data/assets/css/bootstrap/_progress.scss +33 -0
- data/assets/css/bootstrap/_reboot.scss +482 -0
- data/assets/css/bootstrap/_root.scss +19 -0
- data/assets/css/bootstrap/_tables.scss +180 -0
- data/assets/css/bootstrap/_tooltip.scss +115 -0
- data/assets/css/bootstrap/_transitions.scss +36 -0
- data/assets/css/bootstrap/_type.scss +125 -0
- data/assets/css/bootstrap/_utilities.scss +14 -0
- data/assets/css/bootstrap/_variables.scss +894 -0
- data/assets/css/bootstrap/bootstrap-grid.scss +32 -0
- data/assets/css/bootstrap/bootstrap-reboot.scss +12 -0
- data/assets/css/bootstrap/bootstrap.scss +42 -0
- data/assets/css/bootstrap/mixins/_alert.scss +13 -0
- data/assets/css/bootstrap/mixins/_background-variant.scss +21 -0
- data/assets/css/bootstrap/mixins/_badge.scss +12 -0
- data/assets/css/bootstrap/mixins/_border-radius.scss +35 -0
- data/assets/css/bootstrap/mixins/_box-shadow.scss +5 -0
- data/assets/css/bootstrap/mixins/_breakpoints.scss +123 -0
- data/assets/css/bootstrap/mixins/_buttons.scss +109 -0
- data/assets/css/bootstrap/mixins/_caret.scss +65 -0
- data/assets/css/bootstrap/mixins/_clearfix.scss +7 -0
- data/assets/css/bootstrap/mixins/_float.scss +11 -0
- data/assets/css/bootstrap/mixins/_forms.scss +137 -0
- data/assets/css/bootstrap/mixins/_gradients.scss +45 -0
- data/assets/css/bootstrap/mixins/_grid-framework.scss +67 -0
- data/assets/css/bootstrap/mixins/_grid.scss +52 -0
- data/assets/css/bootstrap/mixins/_hover.scss +39 -0
- data/assets/css/bootstrap/mixins/_image.scss +36 -0
- data/assets/css/bootstrap/mixins/_list-group.scss +21 -0
- data/assets/css/bootstrap/mixins/_lists.scss +7 -0
- data/assets/css/bootstrap/mixins/_nav-divider.scss +10 -0
- data/assets/css/bootstrap/mixins/_navbar-align.scss +10 -0
- data/assets/css/bootstrap/mixins/_pagination.scss +22 -0
- data/assets/css/bootstrap/mixins/_reset-text.scss +17 -0
- data/assets/css/bootstrap/mixins/_resize.scss +6 -0
- data/assets/css/bootstrap/mixins/_screen-reader.scss +35 -0
- data/assets/css/bootstrap/mixins/_size.scss +6 -0
- data/assets/css/bootstrap/mixins/_table-row.scss +30 -0
- data/assets/css/bootstrap/mixins/_text-emphasis.scss +14 -0
- data/assets/css/bootstrap/mixins/_text-hide.scss +9 -0
- data/assets/css/bootstrap/mixins/_text-truncate.scss +8 -0
- data/assets/css/bootstrap/mixins/_transition.scss +9 -0
- data/assets/css/bootstrap/mixins/_visibility.scss +7 -0
- data/assets/css/bootstrap/utilities/_align.scss +8 -0
- data/assets/css/bootstrap/utilities/_background.scss +19 -0
- data/assets/css/bootstrap/utilities/_borders.scss +59 -0
- data/assets/css/bootstrap/utilities/_clearfix.scss +3 -0
- data/assets/css/bootstrap/utilities/_display.scss +38 -0
- data/assets/css/bootstrap/utilities/_embed.scss +52 -0
- data/assets/css/bootstrap/utilities/_flex.scss +46 -0
- data/assets/css/bootstrap/utilities/_float.scss +9 -0
- data/assets/css/bootstrap/utilities/_position.scss +36 -0
- data/assets/css/bootstrap/utilities/_screenreaders.scss +11 -0
- data/assets/css/bootstrap/utilities/_sizing.scss +12 -0
- data/assets/css/bootstrap/utilities/_spacing.scss +51 -0
- data/assets/css/bootstrap/utilities/_text.scss +52 -0
- data/assets/css/bootstrap/utilities/_visibility.scss +11 -0
- data/assets/css/custom/includes/_base.scss +240 -0
- data/assets/css/custom/includes/_layout.scss +27 -0
- data/assets/css/custom/includes/_syntax-highlighting.scss +67 -0
- data/assets/css/main.scss +100 -0
- data/assets/docs/dummy.pdf +0 -0
- data/assets/fonts/Segoe UI Bold Italic.ttf +0 -0
- data/assets/fonts/Segoe UI Bold.ttf +0 -0
- data/assets/fonts/Segoe UI Italic.ttf +0 -0
- data/assets/fonts/Segoe UI.ttf +0 -0
- data/assets/fonts/weblysleekuil.eot +0 -0
- data/assets/fonts/weblysleekuil.svg +151 -0
- data/assets/fonts/weblysleekuil.ttf +0 -0
- data/assets/fonts/weblysleekuil.woff +0 -0
- data/assets/icons/icon.png +0 -0
- data/assets/icons/icon_a.png +0 -0
- data/assets/icons/icon_b.png +0 -0
- data/assets/icons/icon_c.png +0 -0
- data/assets/images/profile.png +0 -0
- data/assets/scripts/all.js +4387 -0
- data/assets/scripts/yaml.min.js +1269 -0
- metadata +395 -0
data/README.md
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# Clean Portfolio
|
2
|
+
|
3
|
+
A clean and minimal jekyll theme for your portfolio website.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your Jekyll site's `Gemfile`:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem "jekyll-theme-clean-portfolio"
|
11
|
+
```
|
12
|
+
|
13
|
+
And add this line to your Jekyll site's `_config.yml`:
|
14
|
+
|
15
|
+
```yaml
|
16
|
+
theme: jekyll-theme-clean-portfolio
|
17
|
+
```
|
18
|
+
|
19
|
+
And then execute:
|
20
|
+
|
21
|
+
bundle
|
22
|
+
|
23
|
+
Or install it yourself as:
|
24
|
+
|
25
|
+
gem install jekyll-theme-clean-portfolio
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Just create a repository named `<yourusername>.github.io` and then copy all files from this repostory into that repository
|
30
|
+
|
31
|
+
Make appropriate changes to the _config.yml file. The configuration is pretty trivial.
|
32
|
+
|
33
|
+
## Features:
|
34
|
+
- Powered by Bootstrap 4
|
35
|
+
- Resume generated using a canvas element and PDF.js
|
36
|
+
- Support for diagrams using mermaid
|
37
|
+
|
38
|
+
## Contributing
|
39
|
+
|
40
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/ad1tyawagh/hello. 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.
|
41
|
+
|
42
|
+
## Development
|
43
|
+
|
44
|
+
To set up your environment to develop this theme, run `bundle install`.
|
45
|
+
|
46
|
+
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.
|
47
|
+
|
48
|
+
When your theme is released, only the files in `_layouts`, `_includes`, `_sass` and `assets` tracked with Git will be bundled.
|
49
|
+
To add a custom directory to your theme-gem, please edit the regexp in `jekyll-theme-clean-portfolio.gemspec` accordingly.
|
50
|
+
|
51
|
+
## License
|
52
|
+
|
53
|
+
The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
54
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<footer>
|
2
|
+
<div class="container" style="max-width: calc(1000px - (30px * 2));">
|
3
|
+
<hr>
|
4
|
+
<ul class="d-flex d-md-none mt-4">
|
5
|
+
<li class="mx-auto">
|
6
|
+
<a href="https://github.com/{{ site.github_username }}" title="View my GitHub profile">
|
7
|
+
<i class="fab fa-github" style="font-size: 2rem; color: #000;"></i>
|
8
|
+
</a>
|
9
|
+
</li>
|
10
|
+
|
11
|
+
<li class="mx-auto">
|
12
|
+
<a href="https://www.linkedin.com/in/{{ site.linkedin_username }}" title="View my LinkedIn profile">
|
13
|
+
<i class="fab fa-linkedin" style="font-size: 2rem; color: #0077b5;"></i>
|
14
|
+
</a>
|
15
|
+
</li>
|
16
|
+
|
17
|
+
<li class="mx-auto">
|
18
|
+
<a href="https://twitter.com/{{ site.twitter_username }}" title="Tweet at me">
|
19
|
+
<i class="fab fa-twitter" style="font-size: 2rem; color: #55acee;"></i>
|
20
|
+
</a>
|
21
|
+
</li>
|
22
|
+
|
23
|
+
<li class="mx-auto">
|
24
|
+
<a href="mailto:aditya@adityawagh.ml" title="Email Me">
|
25
|
+
<i class="fas fa-at" style="font-size: 2rem;"></i>
|
26
|
+
</a>
|
27
|
+
</li>
|
28
|
+
</ul>
|
29
|
+
</div>
|
30
|
+
</footer>
|
data/_includes/head.html
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
<head>
|
2
|
+
<meta charset="UTF-8">
|
3
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
4
|
+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
5
|
+
<script defer src="{{ site.baseurl }}/assets/scripts/all.js"></script>
|
6
|
+
<script src='{{ site.baseurl }}/assets/scripts/yaml.min.js'></script>
|
7
|
+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/2.3.200/pdf.js"></script>
|
8
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
|
9
|
+
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
|
10
|
+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
|
11
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
12
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
|
13
|
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
|
14
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mermaid/8.2.6/mermaid.min.js"></script>
|
15
|
+
<script>mermaid.initialize({ startOnLoad: true });</script>
|
16
|
+
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
17
|
+
</script>
|
18
|
+
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
19
|
+
<meta name="description"
|
20
|
+
content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
21
|
+
<link rel="shortcut icon" type="image/png" href="{{ site.baseurl }}/assets/icons/icon.png">
|
22
|
+
<link rel="stylesheet" href="{{ '/assets/css/main.css' | prepend: site.baseurl }}">
|
23
|
+
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
24
|
+
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ /feed.xml | prepend: site.baseurl | prepend: site.url }}" />
|
25
|
+
</head>
|
@@ -0,0 +1,74 @@
|
|
1
|
+
<header
|
2
|
+
class="sticky-header active border-bottom">
|
3
|
+
<!-- -Navbar -->
|
4
|
+
|
5
|
+
<div class="container">
|
6
|
+
<nav class="navbar navbar-expand-md navbar-light bg-white mx-auto">
|
7
|
+
<a class="navbar-brand mr-5" href="{{ site.baseurl }}">
|
8
|
+
<img height="auto" src="{{ site.baseurl }}/assets/icons/icon.png" width="36px">
|
9
|
+
|
10
|
+
<b class="align-bottom" style="font-size: larger; font-weight:600!important; text-transform: uppercase;"> 
|
11
|
+
{{ site.firstname }}</b>
|
12
|
+
|
13
|
+
<span class="align-bottom" style="font-size: larger; text-transform: uppercase; ">{{ site.secondname }}</span>
|
14
|
+
</a>
|
15
|
+
|
16
|
+
<!-- Toggler/collapsibe Button -->
|
17
|
+
|
18
|
+
<button class="navbar-toggler" data-target="#collapsibleNavbar" data-toggle="collapse" type="button">
|
19
|
+
<span class="navbar-toggler-icon"></span>
|
20
|
+
</button>
|
21
|
+
|
22
|
+
<!-- Navbar links -->
|
23
|
+
|
24
|
+
<div class="collapse navbar-collapse justify-content-center" id="collapsibleNavbar">
|
25
|
+
<ul class="navbar-nav">
|
26
|
+
{% for menu_item in site.data.menu %}
|
27
|
+
|
28
|
+
<li class="nav-item pl-3 pr-3 font-weight-bold">
|
29
|
+
<a href="{{ site.baseurl }}{{ menu_item.href }}" class="nav-link text-gray-dark">{{ menu_item.title }}</a>
|
30
|
+
</li>
|
31
|
+
|
32
|
+
{% endfor %}
|
33
|
+
|
34
|
+
<!-- Display only on small devices - xs, sm, md -->
|
35
|
+
<li class="nav-item pl-3 pr-3 font-weight-bold d-block d-lg-none">
|
36
|
+
<a class="nav-link text-gray-dark" href="{{ site.baseurl }}{{ site.resume_link }}" >CV</a> <!-- Change CV to something else in navbar here-->
|
37
|
+
</li>
|
38
|
+
|
39
|
+
<!-- Display only on big devices lg, xl -->
|
40
|
+
<li class="nav-item pl-3 pr-3 font-weight-bold d-none d-lg-block">
|
41
|
+
<a href="{{ site.baseurl }}/resume.html" class="nav-link text-gray-dark">CV</a> <!-- Change CV to something else in navbar here-->
|
42
|
+
</li>
|
43
|
+
|
44
|
+
</ul>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<ul class="header-social-icons navbar-nav ml-auto d-none d-md-inline-flex ">
|
48
|
+
<li class="nav-item mx-auto">
|
49
|
+
<a class="nav-link" href="https://github.com/{{ site.github_username }}" title="View my GitHub profile">
|
50
|
+
<i class="fab fa-github" style="font-size: 2rem; color: #000;"></i>
|
51
|
+
</a>
|
52
|
+
</li>
|
53
|
+
|
54
|
+
<li class="nav-item mx-auto">
|
55
|
+
<a class="nav-link" href="https://www.linkedin.com/in/{{ site.linkedin_username }}" title="View my LinkedIn profile">
|
56
|
+
<i class="fab fa-linkedin" style="font-size: 2rem; color: #0077b5;"></i>
|
57
|
+
</a>
|
58
|
+
</li>
|
59
|
+
|
60
|
+
<li class="nav-item mx-auto">
|
61
|
+
<a class="nav-link" href="https://twitter.com/{{ site.twitter_username }}" title="Tweet at me">
|
62
|
+
<i class="fab fa-twitter" style="font-size: 2rem; color: #55acee;"></i>
|
63
|
+
</a>
|
64
|
+
</li>
|
65
|
+
|
66
|
+
<li class="nav-item mx-auto">
|
67
|
+
<a class="nav-link" href="mailto:{{ site.general_email }}" title="Email Me">
|
68
|
+
<i class="fas fa-at" style="font-size: 2rem;"></i>
|
69
|
+
</a>
|
70
|
+
</li>
|
71
|
+
</ul>
|
72
|
+
</nav>
|
73
|
+
</div>
|
74
|
+
</header>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
|
2
|
+
<!-- The Modal -->
|
3
|
+
<div id="myModal" class="modal">
|
4
|
+
|
5
|
+
<!-- The Close Button -->
|
6
|
+
<span class="close">×</span>
|
7
|
+
|
8
|
+
<!-- Modal Content (The Image) -->
|
9
|
+
<img class="modal-content " style="width: 100%; max-width: 500px; z-index: 9999;" id="img01">
|
10
|
+
|
11
|
+
<!-- Modal Caption (Image Text) -->
|
12
|
+
<div id="caption"></div>
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<script>// Get the modal
|
16
|
+
var modal = document.getElementById("myModal");
|
17
|
+
|
18
|
+
// Get the image and insert it inside the modal - use its "alt" text as a caption
|
19
|
+
var img = document.getElementById("myImg");
|
20
|
+
var modalImg = document.getElementById("img01");
|
21
|
+
var captionText = document.getElementById("caption");
|
22
|
+
img.onclick = function () {
|
23
|
+
modal.style.display = "block";
|
24
|
+
modalImg.src = this.src;
|
25
|
+
captionText.innerHTML = this.alt;
|
26
|
+
}
|
27
|
+
|
28
|
+
// Get the <span> element that closes the modal
|
29
|
+
var span = document.getElementsByClassName("close")[0];
|
30
|
+
|
31
|
+
// When the user clicks on <span> (x), close the modal
|
32
|
+
span.onclick = function () {
|
33
|
+
modal.style.display = "none";
|
34
|
+
}</script>
|
data/_layouts/blank.html
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
|
4
|
+
{% include head.html %}
|
5
|
+
|
6
|
+
<body>
|
7
|
+
{% include header.html %}
|
8
|
+
<div class="container pt-4 pb-3" style="max-width: calc(1000px - (30px * 2));">
|
9
|
+
<div class="container">
|
10
|
+
{{ content }}
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
</body>
|
14
|
+
{% include footer.html %}
|
15
|
+
|
16
|
+
</html>
|
data/_layouts/page.html
ADDED
data/_layouts/post.html
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
layout: default
|
3
|
+
---
|
4
|
+
<div class="container">
|
5
|
+
<h1>{{ page.title }}</h1>
|
6
|
+
<p>Posted on {{ page.date | date: "%B %-d, %Y" }} {% if page.author %} by
|
7
|
+
{{ page.author }}{% endif %}
|
8
|
+
{% if page.categories %}
|
9
|
+
in
|
10
|
+
{% for cat in page.categories %}
|
11
|
+
<a href="{{ site.baseurl }}/categories/#{{ cat }}" title="{{ cat }}">{{ cat }}</a>
|
12
|
+
{% endfor %}
|
13
|
+
|
14
|
+
{% endif %}
|
15
|
+
</p>
|
16
|
+
|
17
|
+
<article>
|
18
|
+
{{ content }}
|
19
|
+
</article>
|
20
|
+
|
21
|
+
</div>
|
@@ -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,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,166 @@
|
|
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: 1;
|
18
|
+
}
|
19
|
+
&:focus,
|
20
|
+
&:active,
|
21
|
+
&.active {
|
22
|
+
z-index: 1;
|
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: -$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 {
|
47
|
+
> .btn:first-child {
|
48
|
+
margin-left: 0;
|
49
|
+
}
|
50
|
+
|
51
|
+
// Reset rounded corners
|
52
|
+
> .btn:not(:last-child):not(.dropdown-toggle),
|
53
|
+
> .btn-group:not(:last-child) > .btn {
|
54
|
+
@include border-right-radius(0);
|
55
|
+
}
|
56
|
+
|
57
|
+
> .btn:not(:first-child),
|
58
|
+
> .btn-group:not(:first-child) > .btn {
|
59
|
+
@include border-left-radius(0);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
// Sizing
|
64
|
+
//
|
65
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
66
|
+
|
67
|
+
.btn-group-sm > .btn { @extend .btn-sm; }
|
68
|
+
.btn-group-lg > .btn { @extend .btn-lg; }
|
69
|
+
|
70
|
+
|
71
|
+
//
|
72
|
+
// Split button dropdowns
|
73
|
+
//
|
74
|
+
|
75
|
+
.dropdown-toggle-split {
|
76
|
+
padding-right: $btn-padding-x * .75;
|
77
|
+
padding-left: $btn-padding-x * .75;
|
78
|
+
|
79
|
+
&::after {
|
80
|
+
margin-left: 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 + .btn,
|
122
|
+
> .btn + .btn-group,
|
123
|
+
> .btn-group + .btn,
|
124
|
+
> .btn-group + .btn-group {
|
125
|
+
margin-top: -$btn-border-width;
|
126
|
+
margin-left: 0;
|
127
|
+
}
|
128
|
+
|
129
|
+
// Reset rounded corners
|
130
|
+
> .btn:not(:last-child):not(.dropdown-toggle),
|
131
|
+
> .btn-group:not(:last-child) > .btn {
|
132
|
+
@include border-bottom-radius(0);
|
133
|
+
}
|
134
|
+
|
135
|
+
> .btn:not(:first-child),
|
136
|
+
> .btn-group:not(:first-child) > .btn {
|
137
|
+
@include border-top-radius(0);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
// Checkbox and radio options
|
143
|
+
//
|
144
|
+
// In order to support the browser's form validation feedback, powered by the
|
145
|
+
// `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
|
146
|
+
// `display: none;` or `visibility: hidden;` as that also hides the popover.
|
147
|
+
// Simply visually hiding the inputs via `opacity` would leave them clickable in
|
148
|
+
// certain cases which is prevented by using `clip` and `pointer-events`.
|
149
|
+
// This way, we ensure a DOM element is visible to position the popover from.
|
150
|
+
//
|
151
|
+
// See https://github.com/twbs/bootstrap/pull/12794 and
|
152
|
+
// https://github.com/twbs/bootstrap/pull/14559 for more information.
|
153
|
+
|
154
|
+
.btn-group-toggle {
|
155
|
+
> .btn,
|
156
|
+
> .btn-group > .btn {
|
157
|
+
margin-bottom: 0; // Override default `<label>` value
|
158
|
+
|
159
|
+
input[type="radio"],
|
160
|
+
input[type="checkbox"] {
|
161
|
+
position: absolute;
|
162
|
+
clip: rect(0, 0, 0, 0);
|
163
|
+
pointer-events: none;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|