vv5-portfolio 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/_includes/about_abstract.html +14 -0
- data/_includes/footer.html +16 -0
- data/_includes/footer_social.html +39 -0
- data/_includes/head.html +27 -0
- data/_includes/header-taglines.html +9 -0
- data/_includes/header.html +23 -0
- data/_includes/nav.html +26 -0
- data/_includes/portfolio.html +26 -0
- data/_includes/portfolio_carousel.html +30 -0
- data/_includes/portfolio_detail.html +46 -0
- data/_includes/portfolio_nav.html +9 -0
- data/_includes/spacer.html +5 -0
- data/_layouts/default.html +11 -0
- data/_layouts/home.html +13 -0
- data/_layouts/page.html +7 -0
- data/_layouts/post.html +32 -0
- data/_sass/_footer.scss +42 -0
- data/_sass/_header.scss +32 -0
- data/_sass/_portfolio.scss +64 -0
- data/_sass/_variables.scss +3 -0
- data/_sass/bootstrap/_bootstrap-grid.scss +35 -0
- data/_sass/bootstrap/_bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap/_bootstrap.scss +42 -0
- data/_sass/bootstrap/bootstrap/_alert.scss +51 -0
- data/_sass/bootstrap/bootstrap/_badge.scss +47 -0
- data/_sass/bootstrap/bootstrap/_breadcrumb.scss +38 -0
- data/_sass/bootstrap/bootstrap/_button-group.scss +166 -0
- data/_sass/bootstrap/bootstrap/_buttons.scss +147 -0
- data/_sass/bootstrap/bootstrap/_card.scss +270 -0
- data/_sass/bootstrap/bootstrap/_carousel.scss +191 -0
- data/_sass/bootstrap/bootstrap/_close.scss +34 -0
- data/_sass/bootstrap/bootstrap/_code.scss +56 -0
- data/_sass/bootstrap/bootstrap/_custom-forms.scss +282 -0
- data/_sass/bootstrap/bootstrap/_dropdown.scss +131 -0
- data/_sass/bootstrap/bootstrap/_forms.scss +333 -0
- data/_sass/bootstrap/bootstrap/_functions.scss +86 -0
- data/_sass/bootstrap/bootstrap/_grid.scss +52 -0
- data/_sass/bootstrap/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/bootstrap/_input-group.scss +156 -0
- data/_sass/bootstrap/bootstrap/_jumbotron.scss +16 -0
- data/_sass/bootstrap/bootstrap/_list-group.scss +115 -0
- data/_sass/bootstrap/bootstrap/_media.scss +8 -0
- data/_sass/bootstrap/bootstrap/_mixins.scss +42 -0
- data/_sass/bootstrap/bootstrap/_modal.scss +168 -0
- data/_sass/bootstrap/bootstrap/_nav.scss +118 -0
- data/_sass/bootstrap/bootstrap/_navbar.scss +311 -0
- data/_sass/bootstrap/bootstrap/_pagination.scss +72 -0
- data/_sass/bootstrap/bootstrap/_popover.scss +183 -0
- data/_sass/bootstrap/bootstrap/_print.scss +110 -0
- data/_sass/bootstrap/bootstrap/_progress.scss +33 -0
- data/_sass/bootstrap/bootstrap/_reboot.scss +505 -0
- data/_sass/bootstrap/bootstrap/_root.scss +19 -0
- data/_sass/bootstrap/bootstrap/_tables.scss +180 -0
- data/_sass/bootstrap/bootstrap/_tooltip.scss +115 -0
- data/_sass/bootstrap/bootstrap/_transitions.scss +36 -0
- data/_sass/bootstrap/bootstrap/_type.scss +125 -0
- data/_sass/bootstrap/bootstrap/_utilities.scss +14 -0
- data/_sass/bootstrap/bootstrap/_variables.scss +872 -0
- data/_sass/bootstrap/bootstrap/mixins/_alert.scss +13 -0
- data/_sass/bootstrap/bootstrap/mixins/_background-variant.scss +21 -0
- data/_sass/bootstrap/bootstrap/mixins/_badge.scss +12 -0
- data/_sass/bootstrap/bootstrap/mixins/_border-radius.scss +35 -0
- data/_sass/bootstrap/bootstrap/mixins/_box-shadow.scss +5 -0
- data/_sass/bootstrap/bootstrap/mixins/_breakpoints.scss +121 -0
- data/_sass/bootstrap/bootstrap/mixins/_buttons.scss +101 -0
- data/_sass/bootstrap/bootstrap/mixins/_caret.scss +65 -0
- data/_sass/bootstrap/bootstrap/mixins/_clearfix.scss +7 -0
- data/_sass/bootstrap/bootstrap/mixins/_float.scss +11 -0
- data/_sass/bootstrap/bootstrap/mixins/_forms.scss +133 -0
- data/_sass/bootstrap/bootstrap/mixins/_gradients.scss +45 -0
- data/_sass/bootstrap/bootstrap/mixins/_grid-framework.scss +69 -0
- data/_sass/bootstrap/bootstrap/mixins/_grid.scss +52 -0
- data/_sass/bootstrap/bootstrap/mixins/_hover.scss +61 -0
- data/_sass/bootstrap/bootstrap/mixins/_image.scss +36 -0
- data/_sass/bootstrap/bootstrap/mixins/_list-group.scss +24 -0
- data/_sass/bootstrap/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/bootstrap/mixins/_nav-divider.scss +10 -0
- data/_sass/bootstrap/bootstrap/mixins/_navbar-align.scss +10 -0
- data/_sass/bootstrap/bootstrap/mixins/_pagination.scss +22 -0
- data/_sass/bootstrap/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/bootstrap/mixins/_screen-reader.scss +35 -0
- data/_sass/bootstrap/bootstrap/mixins/_size.scss +6 -0
- data/_sass/bootstrap/bootstrap/mixins/_table-row.scss +30 -0
- data/_sass/bootstrap/bootstrap/mixins/_text-emphasis.scss +14 -0
- data/_sass/bootstrap/bootstrap/mixins/_text-hide.scss +9 -0
- data/_sass/bootstrap/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/bootstrap/mixins/_transition.scss +9 -0
- data/_sass/bootstrap/bootstrap/mixins/_visibility.scss +7 -0
- data/_sass/bootstrap/bootstrap/utilities/_align.scss +8 -0
- data/_sass/bootstrap/bootstrap/utilities/_background.scss +19 -0
- data/_sass/bootstrap/bootstrap/utilities/_borders.scss +54 -0
- data/_sass/bootstrap/bootstrap/utilities/_clearfix.scss +3 -0
- data/_sass/bootstrap/bootstrap/utilities/_display.scss +56 -0
- data/_sass/bootstrap/bootstrap/utilities/_embed.scss +52 -0
- data/_sass/bootstrap/bootstrap/utilities/_flex.scss +46 -0
- data/_sass/bootstrap/bootstrap/utilities/_float.scss +9 -0
- data/_sass/bootstrap/bootstrap/utilities/_position.scss +36 -0
- data/_sass/bootstrap/bootstrap/utilities/_screenreaders.scss +11 -0
- data/_sass/bootstrap/bootstrap/utilities/_sizing.scss +12 -0
- data/_sass/bootstrap/bootstrap/utilities/_spacing.scss +51 -0
- data/_sass/bootstrap/bootstrap/utilities/_text.scss +52 -0
- data/_sass/bootstrap/bootstrap/utilities/_visibility.scss +11 -0
- data/assets/brand/header.jpg +0 -0
- data/assets/brand/logo.svg +15 -0
- data/assets/brand/profile.jpg +0 -0
- data/assets/main.js +0 -0
- data/assets/main.scss +28 -0
- data/assets/smooth.js +2 -0
- metadata +225 -0
data/_sass/_header.scss
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
header {
|
2
|
+
background-image: url("brand/header.jpg");
|
3
|
+
background-repeat: repeat-x;
|
4
|
+
background-size: cover;
|
5
|
+
background-position: center;
|
6
|
+
height: 100vh;
|
7
|
+
|
8
|
+
padding-top: $spacer*5;
|
9
|
+
|
10
|
+
text-shadow: 2px 2px 20px $black;
|
11
|
+
|
12
|
+
.intro-welcome {
|
13
|
+
font-size: $spacer*2;
|
14
|
+
}
|
15
|
+
|
16
|
+
.brand-heading {
|
17
|
+
font-size: $spacer*9;
|
18
|
+
line-height: $spacer*9;
|
19
|
+
}
|
20
|
+
|
21
|
+
.tagline {
|
22
|
+
font-size: $spacer*2;
|
23
|
+
}
|
24
|
+
|
25
|
+
.page-scroll {
|
26
|
+
svg {
|
27
|
+
height: 75px;
|
28
|
+
fill: rgba(theme-color(primary), 0.5);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
#portfolio {
|
2
|
+
min-height: 90vh;
|
3
|
+
}
|
4
|
+
|
5
|
+
.card-overlay {
|
6
|
+
top: 0;
|
7
|
+
left: 0;
|
8
|
+
width: 100%;
|
9
|
+
height: 100%;
|
10
|
+
border-radius: calc(0.25rem - 1px);
|
11
|
+
transition: background-color 0.5s;
|
12
|
+
|
13
|
+
svg.learnmore {
|
14
|
+
height: 70px;
|
15
|
+
fill: rgba(theme-color(primary), 0.7);
|
16
|
+
margin-top: auto;
|
17
|
+
margin-bottom: auto;
|
18
|
+
display: none;
|
19
|
+
}
|
20
|
+
|
21
|
+
&:hover {
|
22
|
+
background-color: rgba($black, .5);
|
23
|
+
cursor: zoom-in;
|
24
|
+
svg.learnmore {
|
25
|
+
display: block;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@media (max-width: 500px){
|
30
|
+
svg.learnmore {
|
31
|
+
margin: 0 0 0 auto;
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
|
35
|
+
span {
|
36
|
+
display: flex !important;
|
37
|
+
align-items: flex-end;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.modal-footer {
|
43
|
+
a {
|
44
|
+
fill: darken(theme-color(primary), 15%);
|
45
|
+
|
46
|
+
svg {
|
47
|
+
height: $spacer;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.carousel-control-next-icon {
|
53
|
+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{theme-color(primary)}' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
|
54
|
+
}
|
55
|
+
|
56
|
+
.carousel-control-prev-icon {
|
57
|
+
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='#{theme-color(primary)}' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
|
58
|
+
}
|
59
|
+
|
60
|
+
.carousel-indicators li {
|
61
|
+
&.active {
|
62
|
+
background-color: theme-color(primary);
|
63
|
+
}
|
64
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Grid v4.0.0-beta.3 (https://getbootstrap.com)
|
3
|
+
* Copyright 2011-2017 The Bootstrap Authors
|
4
|
+
* Copyright 2011-2017 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
6
|
+
*/
|
7
|
+
|
8
|
+
@at-root {
|
9
|
+
@-ms-viewport { width: device-width; } // stylelint-disable-line at-rule-no-vendor-prefix
|
10
|
+
}
|
11
|
+
|
12
|
+
html {
|
13
|
+
box-sizing: border-box;
|
14
|
+
-ms-overflow-style: scrollbar;
|
15
|
+
}
|
16
|
+
|
17
|
+
*,
|
18
|
+
*::before,
|
19
|
+
*::after {
|
20
|
+
box-sizing: inherit;
|
21
|
+
}
|
22
|
+
|
23
|
+
@import "bootstrap/functions";
|
24
|
+
@import "bootstrap/variables";
|
25
|
+
|
26
|
+
//
|
27
|
+
// Grid mixins
|
28
|
+
//
|
29
|
+
|
30
|
+
@import "bootstrap/mixins/breakpoints";
|
31
|
+
@import "bootstrap/mixins/grid-framework";
|
32
|
+
@import "bootstrap/mixins/grid";
|
33
|
+
|
34
|
+
@import "bootstrap/grid";
|
35
|
+
@import "bootstrap/utilities/flex";
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Reboot v4.0.0-beta.3 (https://getbootstrap.com)
|
3
|
+
* Copyright 2011-2017 The Bootstrap Authors
|
4
|
+
* Copyright 2011-2017 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
6
|
+
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
7
|
+
*/
|
8
|
+
|
9
|
+
@import "bootstrap/functions";
|
10
|
+
@import "bootstrap/variables";
|
11
|
+
@import "bootstrap/mixins";
|
12
|
+
@import "bootstrap/reboot";
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v4.0.0-beta.3 (https://getbootstrap.com)
|
3
|
+
* Copyright 2011-2017 The Bootstrap Authors
|
4
|
+
* Copyright 2011-2017 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
6
|
+
*/
|
7
|
+
|
8
|
+
@import "bootstrap/functions";
|
9
|
+
@import "bootstrap/variables";
|
10
|
+
@import "bootstrap/mixins";
|
11
|
+
@import "bootstrap/root";
|
12
|
+
@import "bootstrap/reboot";
|
13
|
+
@import "bootstrap/type";
|
14
|
+
@import "bootstrap/images";
|
15
|
+
@import "bootstrap/code";
|
16
|
+
@import "bootstrap/grid";
|
17
|
+
@import "bootstrap/tables";
|
18
|
+
@import "bootstrap/forms";
|
19
|
+
@import "bootstrap/buttons";
|
20
|
+
@import "bootstrap/transitions";
|
21
|
+
@import "bootstrap/dropdown";
|
22
|
+
@import "bootstrap/button-group";
|
23
|
+
@import "bootstrap/input-group";
|
24
|
+
@import "bootstrap/custom-forms";
|
25
|
+
@import "bootstrap/nav";
|
26
|
+
@import "bootstrap/navbar";
|
27
|
+
@import "bootstrap/card";
|
28
|
+
@import "bootstrap/breadcrumb";
|
29
|
+
@import "bootstrap/pagination";
|
30
|
+
@import "bootstrap/badge";
|
31
|
+
@import "bootstrap/jumbotron";
|
32
|
+
@import "bootstrap/alert";
|
33
|
+
@import "bootstrap/progress";
|
34
|
+
@import "bootstrap/media";
|
35
|
+
@import "bootstrap/list-group";
|
36
|
+
@import "bootstrap/close";
|
37
|
+
@import "bootstrap/modal";
|
38
|
+
@import "bootstrap/tooltip";
|
39
|
+
@import "bootstrap/popover";
|
40
|
+
@import "bootstrap/carousel";
|
41
|
+
@import "bootstrap/utilities";
|
42
|
+
@import "bootstrap/print";
|
@@ -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, -10), theme-color-level($color, -9), theme-color-level($color, 6));
|
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
|
+
}
|