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.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/README.md +46 -0
  4. data/_includes/footer.html +16 -0
  5. data/_includes/head.html +16 -0
  6. data/_includes/header.html +24 -0
  7. data/_layouts/default.html +9 -0
  8. data/_layouts/home.html +71 -0
  9. data/_layouts/page.html +11 -0
  10. data/_layouts/post.html +24 -0
  11. data/_sass/_alert.scss +49 -0
  12. data/_sass/_badge.scss +47 -0
  13. data/_sass/_breadcrumb.scss +38 -0
  14. data/_sass/_button-group.scss +207 -0
  15. data/_sass/_buttons.scss +136 -0
  16. data/_sass/_card.scss +259 -0
  17. data/_sass/_carousel.scss +191 -0
  18. data/_sass/_close.scss +29 -0
  19. data/_sass/_code.scss +64 -0
  20. data/_sass/_custom-forms.scss +257 -0
  21. data/_sass/_dropdown.scss +103 -0
  22. data/_sass/_forms.scss +358 -0
  23. data/_sass/_functions.scss +86 -0
  24. data/_sass/_grid.scss +52 -0
  25. data/_sass/_images.scss +43 -0
  26. data/_sass/_input-group.scss +186 -0
  27. data/_sass/_jumbotron.scss +16 -0
  28. data/_sass/_list-group.scss +114 -0
  29. data/_sass/_media.scss +8 -0
  30. data/_sass/_mixins.scss +42 -0
  31. data/_sass/_modal.scss +153 -0
  32. data/_sass/_nav.scss +118 -0
  33. data/_sass/_navbar.scss +306 -0
  34. data/_sass/_pagination.scss +64 -0
  35. data/_sass/_popover.scss +194 -0
  36. data/_sass/_print.scss +110 -0
  37. data/_sass/_progress.scss +30 -0
  38. data/_sass/_reboot.scss +504 -0
  39. data/_sass/_root.scss +19 -0
  40. data/_sass/_tables.scss +180 -0
  41. data/_sass/_tooltip.scss +107 -0
  42. data/_sass/_transitions.scss +36 -0
  43. data/_sass/_type.scss +125 -0
  44. data/_sass/_utilities.scss +14 -0
  45. data/_sass/_variables.scss +828 -0
  46. data/_sass/bootstrap-grid.scss +35 -0
  47. data/_sass/bootstrap-reboot.scss +12 -0
  48. data/_sass/bootstrap.scss +42 -0
  49. data/_sass/mixins/_alert.scss +13 -0
  50. data/_sass/mixins/_background-variant.scss +20 -0
  51. data/_sass/mixins/_badge.scss +12 -0
  52. data/_sass/mixins/_border-radius.scss +35 -0
  53. data/_sass/mixins/_box-shadow.scss +5 -0
  54. data/_sass/mixins/_breakpoints.scss +119 -0
  55. data/_sass/mixins/_buttons.scss +94 -0
  56. data/_sass/mixins/_caret.scss +35 -0
  57. data/_sass/mixins/_clearfix.scss +7 -0
  58. data/_sass/mixins/_float.scss +11 -0
  59. data/_sass/mixins/_forms.scss +108 -0
  60. data/_sass/mixins/_gradients.scss +45 -0
  61. data/_sass/mixins/_grid-framework.scss +69 -0
  62. data/_sass/mixins/_grid.scss +52 -0
  63. data/_sass/mixins/_hover.scss +61 -0
  64. data/_sass/mixins/_image.scss +36 -0
  65. data/_sass/mixins/_list-group.scss +24 -0
  66. data/_sass/mixins/_lists.scss +7 -0
  67. data/_sass/mixins/_nav-divider.scss +10 -0
  68. data/_sass/mixins/_navbar-align.scss +10 -0
  69. data/_sass/mixins/_pagination.scss +22 -0
  70. data/_sass/mixins/_reset-text.scss +17 -0
  71. data/_sass/mixins/_resize.scss +6 -0
  72. data/_sass/mixins/_screen-reader.scss +35 -0
  73. data/_sass/mixins/_size.scss +6 -0
  74. data/_sass/mixins/_table-row.scss +30 -0
  75. data/_sass/mixins/_text-emphasis.scss +14 -0
  76. data/_sass/mixins/_text-hide.scss +8 -0
  77. data/_sass/mixins/_text-truncate.scss +8 -0
  78. data/_sass/mixins/_transition.scss +9 -0
  79. data/_sass/mixins/_visibility.scss +7 -0
  80. data/_sass/syntax_highlight.scss +70 -0
  81. data/_sass/utilities/_align.scss +8 -0
  82. data/_sass/utilities/_background.scss +19 -0
  83. data/_sass/utilities/_borders.scss +54 -0
  84. data/_sass/utilities/_clearfix.scss +3 -0
  85. data/_sass/utilities/_display.scss +56 -0
  86. data/_sass/utilities/_embed.scss +52 -0
  87. data/_sass/utilities/_flex.scss +46 -0
  88. data/_sass/utilities/_float.scss +9 -0
  89. data/_sass/utilities/_position.scss +36 -0
  90. data/_sass/utilities/_screenreaders.scss +11 -0
  91. data/_sass/utilities/_sizing.scss +12 -0
  92. data/_sass/utilities/_spacing.scss +51 -0
  93. data/_sass/utilities/_text.scss +52 -0
  94. data/_sass/utilities/_visibility.scss +11 -0
  95. data/assets/css/main.scss +15 -0
  96. metadata +195 -0
@@ -0,0 +1,35 @@
1
+ /*!
2
+ * Bootstrap Grid v4.0.0-beta.2 (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 "functions";
24
+ @import "variables";
25
+
26
+ //
27
+ // Grid mixins
28
+ //
29
+
30
+ @import "mixins/breakpoints";
31
+ @import "mixins/grid-framework";
32
+ @import "mixins/grid";
33
+
34
+ @import "grid";
35
+ @import "utilities/flex";
@@ -0,0 +1,12 @@
1
+ /*!
2
+ * Bootstrap Reboot v4.0.0-beta.2 (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 "functions";
10
+ @import "variables";
11
+ @import "mixins";
12
+ @import "reboot";
@@ -0,0 +1,42 @@
1
+ /*!
2
+ * Bootstrap v4.0.0-beta.2 (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 "functions";
9
+ @import "variables";
10
+ @import "mixins";
11
+ @import "root";
12
+ @import "print";
13
+ @import "reboot";
14
+ @import "type";
15
+ @import "images";
16
+ @import "code";
17
+ @import "grid";
18
+ @import "tables";
19
+ @import "forms";
20
+ @import "buttons";
21
+ @import "transitions";
22
+ @import "dropdown";
23
+ @import "button-group";
24
+ @import "input-group";
25
+ @import "custom-forms";
26
+ @import "nav";
27
+ @import "navbar";
28
+ @import "card";
29
+ @import "breadcrumb";
30
+ @import "pagination";
31
+ @import "badge";
32
+ @import "jumbotron";
33
+ @import "alert";
34
+ @import "progress";
35
+ @import "media";
36
+ @import "list-group";
37
+ @import "close";
38
+ @import "modal";
39
+ @import "tooltip";
40
+ @import "popover";
41
+ @import "carousel";
42
+ @import "utilities";
@@ -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,20 @@
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
+ @include hover-focus {
11
+ background-color: darken($color, 10%) !important;
12
+ }
13
+ }
14
+ }
15
+
16
+ @mixin bg-gradient-variant($parent, $color) {
17
+ #{$parent} {
18
+ background: $color linear-gradient(180deg, mix($body-bg, $color, 15%), $color) repeat-x !important;
19
+ }
20
+ }
@@ -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,119 @@
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.1.
33
+ //
34
+ // >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
35
+ // 767px
36
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
37
+ $next: breakpoint-next($name, $breakpoints);
38
+ @return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
39
+ }
40
+
41
+ // Returns a blank string if smallest breakpoint, otherwise returns the name with a dash infront.
42
+ // Useful for making responsive utilities.
43
+ //
44
+ // >> breakpoint-infix(xs, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
45
+ // "" (Returns a blank string)
46
+ // >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 768px, lg: 992px, xl: 1200px))
47
+ // "-sm"
48
+ @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
49
+ @return if(breakpoint-min($name, $breakpoints) == null, "", "-#{$name}");
50
+ }
51
+
52
+ // Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
53
+ // Makes the @content apply to the given breakpoint and wider.
54
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
55
+ $min: breakpoint-min($name, $breakpoints);
56
+ @if $min {
57
+ @media (min-width: $min) {
58
+ @content;
59
+ }
60
+ } @else {
61
+ @content;
62
+ }
63
+ }
64
+
65
+ // Media of at most the maximum breakpoint width. No query for the largest breakpoint.
66
+ // Makes the @content apply to the given breakpoint and narrower.
67
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
68
+ $max: breakpoint-max($name, $breakpoints);
69
+ @if $max {
70
+ @media (max-width: $max) {
71
+ @content;
72
+ }
73
+ } @else {
74
+ @content;
75
+ }
76
+ }
77
+
78
+ // Media that spans multiple breakpoint widths.
79
+ // Makes the @content apply between the min and max breakpoints
80
+ @mixin media-breakpoint-between($lower, $upper, $breakpoints: $grid-breakpoints) {
81
+ $min: breakpoint-min($lower, $breakpoints);
82
+ $max: breakpoint-max($upper, $breakpoints);
83
+
84
+ @if $min != null and $max != null {
85
+ @media (min-width: $min) and (max-width: $max) {
86
+ @content;
87
+ }
88
+ } @else if $max == null {
89
+ @include media-breakpoint-up($lower) {
90
+ @content;
91
+ }
92
+ } @else if $min == null {
93
+ @include media-breakpoint-down($upper) {
94
+ @content;
95
+ }
96
+ }
97
+ }
98
+
99
+ // Media between the breakpoint's minimum and maximum widths.
100
+ // No minimum for the smallest breakpoint, and no maximum for the largest one.
101
+ // Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
102
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
103
+ $min: breakpoint-min($name, $breakpoints);
104
+ $max: breakpoint-max($name, $breakpoints);
105
+
106
+ @if $min != null and $max != null {
107
+ @media (min-width: $min) and (max-width: $max) {
108
+ @content;
109
+ }
110
+ } @else if $max == null {
111
+ @include media-breakpoint-up($name) {
112
+ @content;
113
+ }
114
+ } @else if $min == null {
115
+ @include media-breakpoint-down($name) {
116
+ @content;
117
+ }
118
+ }
119
+ }
@@ -0,0 +1,94 @@
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 $input-btn-focus-width rgba($border, .5);
23
+ } @else {
24
+ box-shadow: 0 0 0 $input-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
+ // Avoid using mixin so we can pass custom focus shadow properly
46
+ @if $enable-shadows {
47
+ box-shadow: $btn-active-box-shadow, 0 0 0 $input-btn-focus-width rgba($border, .5);
48
+ } @else {
49
+ box-shadow: 0 0 0 $input-btn-focus-width rgba($border, .5);
50
+ }
51
+ }
52
+ }
53
+
54
+ @mixin button-outline-variant($color, $color-hover: #fff) {
55
+ color: $color;
56
+ background-color: transparent;
57
+ background-image: none;
58
+ border-color: $color;
59
+
60
+ @include hover {
61
+ color: $color-hover;
62
+ background-color: $color;
63
+ border-color: $color;
64
+ }
65
+
66
+ &:focus,
67
+ &.focus {
68
+ box-shadow: 0 0 0 $input-btn-focus-width rgba($color, .5);
69
+ }
70
+
71
+ &.disabled,
72
+ &:disabled {
73
+ color: $color;
74
+ background-color: transparent;
75
+ }
76
+
77
+ &:not([disabled]):not(.disabled):active,
78
+ &:not([disabled]):not(.disabled).active,
79
+ .show > &.dropdown-toggle {
80
+ color: $color-hover;
81
+ background-color: $color;
82
+ border-color: $color;
83
+ // Avoid using mixin so we can pass custom focus shadow properly
84
+ box-shadow: 0 0 0 $input-btn-focus-width rgba($color, .5);
85
+ }
86
+ }
87
+
88
+ // Button sizes
89
+ @mixin button-size($padding-y, $padding-x, $font-size, $line-height, $border-radius) {
90
+ padding: $padding-y $padding-x;
91
+ font-size: $font-size;
92
+ line-height: $line-height;
93
+ @include border-radius($border-radius);
94
+ }
@@ -0,0 +1,35 @@
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($direction: down) {
16
+ @if $enable-caret {
17
+ &::after {
18
+ display: inline-block;
19
+ width: 0;
20
+ height: 0;
21
+ margin-left: $caret-width * .85;
22
+ vertical-align: $caret-width * .85;
23
+ content: "";
24
+ @if $direction == down {
25
+ @include caret-down;
26
+ } @else if $direction == up {
27
+ @include caret-up;
28
+ }
29
+ }
30
+
31
+ &:empty::after {
32
+ margin-left: 0;
33
+ }
34
+ }
35
+ }
@@ -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
+ }