vv5-portfolio 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +53 -0
  4. data/_includes/about_abstract.html +14 -0
  5. data/_includes/footer.html +16 -0
  6. data/_includes/footer_social.html +39 -0
  7. data/_includes/head.html +27 -0
  8. data/_includes/header-taglines.html +9 -0
  9. data/_includes/header.html +23 -0
  10. data/_includes/nav.html +26 -0
  11. data/_includes/portfolio.html +26 -0
  12. data/_includes/portfolio_carousel.html +30 -0
  13. data/_includes/portfolio_detail.html +46 -0
  14. data/_includes/portfolio_nav.html +9 -0
  15. data/_includes/spacer.html +5 -0
  16. data/_layouts/default.html +11 -0
  17. data/_layouts/home.html +13 -0
  18. data/_layouts/page.html +7 -0
  19. data/_layouts/post.html +32 -0
  20. data/_sass/_footer.scss +42 -0
  21. data/_sass/_header.scss +32 -0
  22. data/_sass/_portfolio.scss +64 -0
  23. data/_sass/_variables.scss +3 -0
  24. data/_sass/bootstrap/_bootstrap-grid.scss +35 -0
  25. data/_sass/bootstrap/_bootstrap-reboot.scss +12 -0
  26. data/_sass/bootstrap/_bootstrap.scss +42 -0
  27. data/_sass/bootstrap/bootstrap/_alert.scss +51 -0
  28. data/_sass/bootstrap/bootstrap/_badge.scss +47 -0
  29. data/_sass/bootstrap/bootstrap/_breadcrumb.scss +38 -0
  30. data/_sass/bootstrap/bootstrap/_button-group.scss +166 -0
  31. data/_sass/bootstrap/bootstrap/_buttons.scss +147 -0
  32. data/_sass/bootstrap/bootstrap/_card.scss +270 -0
  33. data/_sass/bootstrap/bootstrap/_carousel.scss +191 -0
  34. data/_sass/bootstrap/bootstrap/_close.scss +34 -0
  35. data/_sass/bootstrap/bootstrap/_code.scss +56 -0
  36. data/_sass/bootstrap/bootstrap/_custom-forms.scss +282 -0
  37. data/_sass/bootstrap/bootstrap/_dropdown.scss +131 -0
  38. data/_sass/bootstrap/bootstrap/_forms.scss +333 -0
  39. data/_sass/bootstrap/bootstrap/_functions.scss +86 -0
  40. data/_sass/bootstrap/bootstrap/_grid.scss +52 -0
  41. data/_sass/bootstrap/bootstrap/_images.scss +42 -0
  42. data/_sass/bootstrap/bootstrap/_input-group.scss +156 -0
  43. data/_sass/bootstrap/bootstrap/_jumbotron.scss +16 -0
  44. data/_sass/bootstrap/bootstrap/_list-group.scss +115 -0
  45. data/_sass/bootstrap/bootstrap/_media.scss +8 -0
  46. data/_sass/bootstrap/bootstrap/_mixins.scss +42 -0
  47. data/_sass/bootstrap/bootstrap/_modal.scss +168 -0
  48. data/_sass/bootstrap/bootstrap/_nav.scss +118 -0
  49. data/_sass/bootstrap/bootstrap/_navbar.scss +311 -0
  50. data/_sass/bootstrap/bootstrap/_pagination.scss +72 -0
  51. data/_sass/bootstrap/bootstrap/_popover.scss +183 -0
  52. data/_sass/bootstrap/bootstrap/_print.scss +110 -0
  53. data/_sass/bootstrap/bootstrap/_progress.scss +33 -0
  54. data/_sass/bootstrap/bootstrap/_reboot.scss +505 -0
  55. data/_sass/bootstrap/bootstrap/_root.scss +19 -0
  56. data/_sass/bootstrap/bootstrap/_tables.scss +180 -0
  57. data/_sass/bootstrap/bootstrap/_tooltip.scss +115 -0
  58. data/_sass/bootstrap/bootstrap/_transitions.scss +36 -0
  59. data/_sass/bootstrap/bootstrap/_type.scss +125 -0
  60. data/_sass/bootstrap/bootstrap/_utilities.scss +14 -0
  61. data/_sass/bootstrap/bootstrap/_variables.scss +872 -0
  62. data/_sass/bootstrap/bootstrap/mixins/_alert.scss +13 -0
  63. data/_sass/bootstrap/bootstrap/mixins/_background-variant.scss +21 -0
  64. data/_sass/bootstrap/bootstrap/mixins/_badge.scss +12 -0
  65. data/_sass/bootstrap/bootstrap/mixins/_border-radius.scss +35 -0
  66. data/_sass/bootstrap/bootstrap/mixins/_box-shadow.scss +5 -0
  67. data/_sass/bootstrap/bootstrap/mixins/_breakpoints.scss +121 -0
  68. data/_sass/bootstrap/bootstrap/mixins/_buttons.scss +101 -0
  69. data/_sass/bootstrap/bootstrap/mixins/_caret.scss +65 -0
  70. data/_sass/bootstrap/bootstrap/mixins/_clearfix.scss +7 -0
  71. data/_sass/bootstrap/bootstrap/mixins/_float.scss +11 -0
  72. data/_sass/bootstrap/bootstrap/mixins/_forms.scss +133 -0
  73. data/_sass/bootstrap/bootstrap/mixins/_gradients.scss +45 -0
  74. data/_sass/bootstrap/bootstrap/mixins/_grid-framework.scss +69 -0
  75. data/_sass/bootstrap/bootstrap/mixins/_grid.scss +52 -0
  76. data/_sass/bootstrap/bootstrap/mixins/_hover.scss +61 -0
  77. data/_sass/bootstrap/bootstrap/mixins/_image.scss +36 -0
  78. data/_sass/bootstrap/bootstrap/mixins/_list-group.scss +24 -0
  79. data/_sass/bootstrap/bootstrap/mixins/_lists.scss +7 -0
  80. data/_sass/bootstrap/bootstrap/mixins/_nav-divider.scss +10 -0
  81. data/_sass/bootstrap/bootstrap/mixins/_navbar-align.scss +10 -0
  82. data/_sass/bootstrap/bootstrap/mixins/_pagination.scss +22 -0
  83. data/_sass/bootstrap/bootstrap/mixins/_reset-text.scss +17 -0
  84. data/_sass/bootstrap/bootstrap/mixins/_resize.scss +6 -0
  85. data/_sass/bootstrap/bootstrap/mixins/_screen-reader.scss +35 -0
  86. data/_sass/bootstrap/bootstrap/mixins/_size.scss +6 -0
  87. data/_sass/bootstrap/bootstrap/mixins/_table-row.scss +30 -0
  88. data/_sass/bootstrap/bootstrap/mixins/_text-emphasis.scss +14 -0
  89. data/_sass/bootstrap/bootstrap/mixins/_text-hide.scss +9 -0
  90. data/_sass/bootstrap/bootstrap/mixins/_text-truncate.scss +8 -0
  91. data/_sass/bootstrap/bootstrap/mixins/_transition.scss +9 -0
  92. data/_sass/bootstrap/bootstrap/mixins/_visibility.scss +7 -0
  93. data/_sass/bootstrap/bootstrap/utilities/_align.scss +8 -0
  94. data/_sass/bootstrap/bootstrap/utilities/_background.scss +19 -0
  95. data/_sass/bootstrap/bootstrap/utilities/_borders.scss +54 -0
  96. data/_sass/bootstrap/bootstrap/utilities/_clearfix.scss +3 -0
  97. data/_sass/bootstrap/bootstrap/utilities/_display.scss +56 -0
  98. data/_sass/bootstrap/bootstrap/utilities/_embed.scss +52 -0
  99. data/_sass/bootstrap/bootstrap/utilities/_flex.scss +46 -0
  100. data/_sass/bootstrap/bootstrap/utilities/_float.scss +9 -0
  101. data/_sass/bootstrap/bootstrap/utilities/_position.scss +36 -0
  102. data/_sass/bootstrap/bootstrap/utilities/_screenreaders.scss +11 -0
  103. data/_sass/bootstrap/bootstrap/utilities/_sizing.scss +12 -0
  104. data/_sass/bootstrap/bootstrap/utilities/_spacing.scss +51 -0
  105. data/_sass/bootstrap/bootstrap/utilities/_text.scss +52 -0
  106. data/_sass/bootstrap/bootstrap/utilities/_visibility.scss +11 -0
  107. data/assets/brand/header.jpg +0 -0
  108. data/assets/brand/logo.svg +15 -0
  109. data/assets/brand/profile.jpg +0 -0
  110. data/assets/main.js +0 -0
  111. data/assets/main.scss +28 -0
  112. data/assets/smooth.js +2 -0
  113. metadata +225 -0
@@ -0,0 +1,13 @@
1
+ @mixin alert-variant($background, $border, $color) {
2
+ color: $color;
3
+ @include gradient-bg($background);
4
+ border-color: $border;
5
+
6
+ hr {
7
+ border-top-color: darken($border, 5%);
8
+ }
9
+
10
+ .alert-link {
11
+ color: darken($color, 10%);
12
+ }
13
+ }
@@ -0,0 +1,21 @@
1
+ // stylelint-disable declaration-no-important
2
+
3
+ // Contextual backgrounds
4
+
5
+ @mixin bg-variant($parent, $color) {
6
+ #{$parent} {
7
+ background-color: $color !important;
8
+ }
9
+ a#{$parent},
10
+ button#{$parent} {
11
+ @include hover-focus {
12
+ background-color: darken($color, 10%) !important;
13
+ }
14
+ }
15
+ }
16
+
17
+ @mixin bg-gradient-variant($parent, $color) {
18
+ #{$parent} {
19
+ background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
20
+ }
21
+ }
@@ -0,0 +1,12 @@
1
+ @mixin badge-variant($bg) {
2
+ color: color-yiq($bg);
3
+ background-color: $bg;
4
+
5
+ &[href] {
6
+ @include hover-focus {
7
+ color: color-yiq($bg);
8
+ text-decoration: none;
9
+ background-color: darken($bg, 10%);
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,35 @@
1
+ // Single side border-radius
2
+
3
+ @mixin border-radius($radius: $border-radius) {
4
+ @if $enable-rounded {
5
+ border-radius: $radius;
6
+ }
7
+ }
8
+
9
+ @mixin border-top-radius($radius) {
10
+ @if $enable-rounded {
11
+ border-top-left-radius: $radius;
12
+ border-top-right-radius: $radius;
13
+ }
14
+ }
15
+
16
+ @mixin border-right-radius($radius) {
17
+ @if $enable-rounded {
18
+ border-top-right-radius: $radius;
19
+ border-bottom-right-radius: $radius;
20
+ }
21
+ }
22
+
23
+ @mixin border-bottom-radius($radius) {
24
+ @if $enable-rounded {
25
+ border-bottom-right-radius: $radius;
26
+ border-bottom-left-radius: $radius;
27
+ }
28
+ }
29
+
30
+ @mixin border-left-radius($radius) {
31
+ @if $enable-rounded {
32
+ border-top-left-radius: $radius;
33
+ border-bottom-left-radius: $radius;
34
+ }
35
+ }
@@ -0,0 +1,5 @@
1
+ @mixin box-shadow($shadow...) {
2
+ @if $enable-shadows {
3
+ box-shadow: $shadow;
4
+ }
5
+ }
@@ -0,0 +1,121 @@
1
+ // Breakpoint viewport sizes and media queries.
2
+ //
3
+ // Breakpoints are defined as a map of (name: minimum width), order from small to large:
4
+ //
5
+ // (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px)
6
+ //
7
+ // The map defined in the `$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
8
+
9
+ // Name of the next breakpoint, or null for the last breakpoint.
10
+ //
11
+ // >> breakpoint-next(sm)
12
+ // md
13
+ // >> breakpoint-next(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
14
+ // md
15
+ // >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
16
+ // md
17
+ @function breakpoint-next($name, $breakpoints: $grid-breakpoints, $breakpoint-names: map-keys($breakpoints)) {
18
+ $n: index($breakpoint-names, $name);
19
+ @return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
20
+ }
21
+
22
+ // Minimum breakpoint width. Null for the smallest (first) breakpoint.
23
+ //
24
+ // >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
25
+ // 576px
26
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
27
+ $min: map-get($breakpoints, $name);
28
+ @return if($min != 0, $min, null);
29
+ }
30
+
31
+ // Maximum breakpoint width. Null for the largest (last) breakpoint.
32
+ // The maximum value is calculated as the minimum of the next one less 0.01px
33
+ // to work around the limitations of `min-` and `max-` prefixes and viewports with fractional widths.
34
+ // See https://www.w3.org/TR/mediaqueries-4/#mq-min-max
35
+ //
36
+ // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
37
+ // 767px
38
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
39
+ $next: breakpoint-next($name, $breakpoints);
40
+ @return if($next, breakpoint-min($next, $breakpoints) - .01px, null);
41
+ }
42
+
43
+ // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
44
+ // Useful for making responsive utilities.
45
+ //
46
+ // >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
47
+ // "" (Returns a blank string)
48
+ // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
49
+ // "-sm"
50
+ @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
51
+ @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
52
+ }
53
+
54
+ // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
55
+ // Makes the @content apply to the given breakpoint and wider.
56
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
57
+ $min: breakpoint-min($name, $breakpoints);
58
+ @if $min {
59
+ @media (min-width: $min) {
60
+ @content;
61
+ }
62
+ } @else {
63
+ @content;
64
+ }
65
+ }
66
+
67
+ // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
68
+ // Makes the @content apply to the given breakpoint and narrower.
69
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
70
+ $max: breakpoint-max($name, $breakpoints);
71
+ @if $max {
72
+ @media (max-width: $max) {
73
+ @content;
74
+ }
75
+ } @else {
76
+ @content;
77
+ }
78
+ }
79
+
80
+ // Media that spans multiple breakpoint widths.
81
+ // Makes the @content apply between the min and max breakpoints
82
+ @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
83
+ $min: breakpoint-min($lower, $breakpoints);
84
+ $max: breakpoint-max($upper, $breakpoints);
85
+
86
+ @if $min != null and $max != null {
87
+ @media (min-width: $min) and (max-width: $max) {
88
+ @content;
89
+ }
90
+ } @else if $max == null {
91
+ @include media-breakpoint-up($lower) {
92
+ @content;
93
+ }
94
+ } @else if $min == null {
95
+ @include media-breakpoint-down($upper) {
96
+ @content;
97
+ }
98
+ }
99
+ }
100
+
101
+ // Media between the breakpoint's minimum and maximum widths.
102
+ // No minimum for the smallest breakpoint, and no maximum for the largest one.
103
+ // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
104
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
105
+ $min: breakpoint-min($name, $breakpoints);
106
+ $max: breakpoint-max($name, $breakpoints);
107
+
108
+ @if $min != null and $max != null {
109
+ @media (min-width: $min) and (max-width: $max) {
110
+ @content;
111
+ }
112
+ } @else if $max == null {
113
+ @include media-breakpoint-up($name) {
114
+ @content;
115
+ }
116
+ } @else if $min == null {
117
+ @include media-breakpoint-down($name) {
118
+ @content;
119
+ }
120
+ }
121
+ }
@@ -0,0 +1,101 @@
1
+ // Button variants
2
+ //
3
+ // Easily pump out default styles, as well as :hover, :focus, :active,
4
+ // and disabled options for all buttons
5
+
6
+ @mixin button-variant($background, $border, $hover-background: darken($background, 7.5%), $hover-border: darken($border, 10%), $active-background: darken($background, 10%), $active-border: darken($border, 12.5%)) {
7
+ color: color-yiq($background);
8
+ @include gradient-bg($background);
9
+ border-color: $border;
10
+ @include box-shadow($btn-box-shadow);
11
+
12
+ @include hover {
13
+ color: color-yiq($hover-background);
14
+ @include gradient-bg($hover-background);
15
+ border-color: $hover-border;
16
+ }
17
+
18
+ &:focus,
19
+ &.focus {
20
+ // Avoid using mixin so we can pass custom focus shadow properly
21
+ @if $enable-shadows {
22
+ box-shadow: $btn-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
23
+ } @else {
24
+ box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
25
+ }
26
+ }
27
+
28
+ // Disabled comes first so active can properly restyle
29
+ &.disabled,
30
+ &:disabled {
31
+ background-color: $background;
32
+ border-color: $border;
33
+ }
34
+
35
+ &:not([disabled]):not(.disabled):active,
36
+ &:not([disabled]):not(.disabled).active,
37
+ .show > &.dropdown-toggle {
38
+ color: color-yiq($active-background);
39
+ background-color: $active-background;
40
+ @if $enable-gradients {
41
+ background-image: none; // Remove the gradient for the pressed/active state
42
+ }
43
+ border-color: $active-border;
44
+
45
+ &:focus {
46
+ // Avoid using mixin so we can pass custom focus shadow properly
47
+ @if $enable-shadows {
48
+ box-shadow: $btn-active-box-shadow, 0 0 0 $btn-focus-width rgba($border, .5);
49
+ } @else {
50
+ box-shadow: 0 0 0 $btn-focus-width rgba($border, .5);
51
+ }
52
+ }
53
+ }
54
+ }
55
+
56
+ @mixin button-outline-variant($color, $color-hover: #fff, $active-background: $color, $active-border: $color) {
57
+ color: $color;
58
+ background-color: transparent;
59
+ background-image: none;
60
+ border-color: $color;
61
+
62
+ &:hover {
63
+ color: color-yiq($color);
64
+ background-color: $active-background;
65
+ border-color: $active-border;
66
+ }
67
+
68
+ &:focus,
69
+ &.focus {
70
+ box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
71
+ }
72
+
73
+ &.disabled,
74
+ &:disabled {
75
+ color: $color;
76
+ background-color: transparent;
77
+ }
78
+
79
+ &:not([disabled]):not(.disabled):active,
80
+ &:not([disabled]):not(.disabled).active,
81
+ .show > &.dropdown-toggle {
82
+ color: color-yiq($color-hover);
83
+ background-color: $active-background;
84
+ border-color: $active-border;
85
+ // Avoid using mixin so we can pass custom focus shadow properly
86
+ box-shadow: 0 0 0 $btn-focus-width rgba($color, .5);
87
+ }
88
+ }
89
+
90
+ // Button sizes
91
+ @mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
92
+ padding: $padding-y $padding-x;
93
+ font-size: $font-size;
94
+ line-height: $line-height;
95
+ // Manually declare to provide an override to the browser default
96
+ @if $enable-rounded {
97
+ border-radius: $border-radius;
98
+ } @else {
99
+ border-radius: 0;
100
+ }
101
+ }
@@ -0,0 +1,65 @@
1
+ @mixin caret-down {
2
+ border-top: $caret-width solid;
3
+ border-right: $caret-width solid transparent;
4
+ border-bottom: 0;
5
+ border-left: $caret-width solid transparent;
6
+ }
7
+
8
+ @mixin caret-up {
9
+ border-top: 0;
10
+ border-right: $caret-width solid transparent;
11
+ border-bottom: $caret-width solid;
12
+ border-left: $caret-width solid transparent;
13
+ }
14
+
15
+ @mixin caret-right {
16
+ border-top: $caret-width solid transparent;
17
+ border-bottom: $caret-width solid transparent;
18
+ border-left: $caret-width solid;
19
+ }
20
+
21
+ @mixin caret-left {
22
+ border-top: $caret-width solid transparent;
23
+ border-right: $caret-width solid;
24
+ border-bottom: $caret-width solid transparent;
25
+ }
26
+
27
+ @mixin caret($direction: down) {
28
+ @if $enable-caret {
29
+ &::after {
30
+ display: inline-block;
31
+ width: 0;
32
+ height: 0;
33
+ margin-left: $caret-width * .85;
34
+ vertical-align: $caret-width * .85;
35
+ content: "";
36
+ @if $direction == down {
37
+ @include caret-down;
38
+ } @else if $direction == up {
39
+ @include caret-up;
40
+ } @else if $direction == right {
41
+ @include caret-right;
42
+ }
43
+ }
44
+
45
+ @if $direction == left {
46
+ &::after {
47
+ display: none;
48
+ }
49
+
50
+ &::before {
51
+ display: inline-block;
52
+ width: 0;
53
+ height: 0;
54
+ margin-right: $caret-width * .85;
55
+ vertical-align: $caret-width * .85;
56
+ content: "";
57
+ @include caret-left;
58
+ }
59
+ }
60
+
61
+ &:empty::after {
62
+ margin-left: 0;
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,7 @@
1
+ @mixin clearfix() {
2
+ &::after {
3
+ display: block;
4
+ clear: both;
5
+ content: "";
6
+ }
7
+ }
@@ -0,0 +1,11 @@
1
+ // stylelint-disable declaration-no-important
2
+
3
+ @mixin float-left {
4
+ float: left !important;
5
+ }
6
+ @mixin float-right {
7
+ float: right !important;
8
+ }
9
+ @mixin float-none {
10
+ float: none !important;
11
+ }
@@ -0,0 +1,133 @@
1
+ // Form control focus state
2
+ //
3
+ // Generate a customized focus state and for any input with the specified color,
4
+ // which defaults to the `$input-focus-border-color` variable.
5
+ //
6
+ // We highly encourage you to not customize the default value, but instead use
7
+ // this to tweak colors on an as-needed basis. This aesthetic change is based on
8
+ // WebKit's default styles, but applicable to a wider range of browsers. Its
9
+ // usability and accessibility should be taken into account with any change.
10
+ //
11
+ // Example usage: change the default blue border and shadow to white for better
12
+ // contrast against a dark gray background.
13
+ @mixin form-control-focus() {
14
+ &:focus {
15
+ color: $input-focus-color;
16
+ background-color: $input-focus-bg;
17
+ border-color: $input-focus-border-color;
18
+ outline: 0;
19
+ // Avoid using mixin so we can pass custom focus shadow properly
20
+ @if $enable-shadows {
21
+ box-shadow: $input-box-shadow, $input-focus-box-shadow;
22
+ } @else {
23
+ box-shadow: $input-focus-box-shadow;
24
+ }
25
+ }
26
+ }
27
+
28
+
29
+ @mixin form-validation-state($state, $color) {
30
+
31
+ .#{$state}-feedback {
32
+ display: none;
33
+ width: 100%;
34
+ margin-top: $form-feedback-margin-top;
35
+ font-size: $form-feedback-font-size;
36
+ color: $color;
37
+ }
38
+
39
+ .#{$state}-tooltip {
40
+ position: absolute;
41
+ top: 100%;
42
+ z-index: 5;
43
+ display: none;
44
+ width: 250px;
45
+ padding: .5rem;
46
+ margin-top: .1rem;
47
+ font-size: .875rem;
48
+ line-height: 1;
49
+ color: #fff;
50
+ background-color: rgba($color, .8);
51
+ border-radius: .2rem;
52
+ }
53
+
54
+ .form-control,
55
+ .custom-select {
56
+ .was-validated &:#{$state},
57
+ &.is-#{$state} {
58
+ border-color: $color;
59
+
60
+ &:focus {
61
+ border-color: $color;
62
+ box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
63
+ }
64
+
65
+ ~ .#{$state}-feedback,
66
+ ~ .#{$state}-tooltip {
67
+ display: block;
68
+ }
69
+ }
70
+ }
71
+
72
+ .form-check-input {
73
+ .was-validated &:#{$state},
74
+ &.is-#{$state} {
75
+ ~ .form-check-label {
76
+ color: $color;
77
+ }
78
+ }
79
+ }
80
+
81
+ .custom-control-input {
82
+ .was-validated &:#{$state},
83
+ &.is-#{$state} {
84
+ ~ .custom-control-label {
85
+ color: $color;
86
+
87
+ &::before {
88
+ background-color: lighten($color, 25%);
89
+ }
90
+ }
91
+
92
+ ~ .#{$state}-feedback,
93
+ ~ .#{$state}-tooltip {
94
+ display: block;
95
+ }
96
+
97
+ &:checked {
98
+ ~ .custom-control-label::before {
99
+ @include gradient-bg(lighten($color, 10%));
100
+ }
101
+ }
102
+
103
+ &:focus {
104
+ ~ .custom-control-label::before {
105
+ box-shadow: 0 0 0 1px $body-bg, 0 0 0 $input-focus-width rgba($color, .25);
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ // custom file
112
+ .custom-file-input {
113
+ .was-validated &:#{$state},
114
+ &.is-#{$state} {
115
+ ~ .custom-file-label {
116
+ border-color: $color;
117
+
118
+ &::before { border-color: inherit; }
119
+ }
120
+
121
+ ~ .#{$state}-feedback,
122
+ ~ .#{$state}-tooltip {
123
+ display: block;
124
+ }
125
+
126
+ &:focus {
127
+ ~ .custom-file-label {
128
+ box-shadow: 0 0 0 $input-focus-width rgba($color, .25);
129
+ }
130
+ }
131
+ }
132
+ }
133
+ }