jekyll-theme-apcsp 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/_includes/alert.md +0 -0
  4. data/_includes/footer.md +0 -0
  5. data/_includes/head.html +0 -0
  6. data/_includes/header.md +1 -0
  7. data/_includes/nav.md +0 -0
  8. data/_layouts/page.html +308 -0
  9. data/_layouts/redirect.html +12 -0
  10. data/_sass/bootstrap/LICENSE +22 -0
  11. data/_sass/bootstrap/scss/_accordion.scss +146 -0
  12. data/_sass/bootstrap/scss/_alert.scss +71 -0
  13. data/_sass/bootstrap/scss/_badge.scss +40 -0
  14. data/_sass/bootstrap/scss/_breadcrumb.scss +42 -0
  15. data/_sass/bootstrap/scss/_button-group.scss +142 -0
  16. data/_sass/bootstrap/scss/_buttons.scss +158 -0
  17. data/_sass/bootstrap/scss/_card.scss +234 -0
  18. data/_sass/bootstrap/scss/_carousel.scss +229 -0
  19. data/_sass/bootstrap/scss/_close.scss +40 -0
  20. data/_sass/bootstrap/scss/_code.scss +48 -0
  21. data/_sass/bootstrap/scss/_containers.scss +41 -0
  22. data/_sass/bootstrap/scss/_custom-forms.scss +526 -0
  23. data/_sass/bootstrap/scss/_dropdown.scss +248 -0
  24. data/_sass/bootstrap/scss/_forms.scss +9 -0
  25. data/_sass/bootstrap/scss/_functions.scss +302 -0
  26. data/_sass/bootstrap/scss/_grid.scss +33 -0
  27. data/_sass/bootstrap/scss/_helpers.scss +10 -0
  28. data/_sass/bootstrap/scss/_images.scss +42 -0
  29. data/_sass/bootstrap/scss/_input-group.scss +208 -0
  30. data/_sass/bootstrap/scss/_jumbotron.scss +17 -0
  31. data/_sass/bootstrap/scss/_list-group.scss +191 -0
  32. data/_sass/bootstrap/scss/_maps.scss +54 -0
  33. data/_sass/bootstrap/scss/_media.scss +8 -0
  34. data/_sass/bootstrap/scss/_mixins.scss +43 -0
  35. data/_sass/bootstrap/scss/_modal.scss +237 -0
  36. data/_sass/bootstrap/scss/_nav.scss +172 -0
  37. data/_sass/bootstrap/scss/_navbar.scss +274 -0
  38. data/_sass/bootstrap/scss/_offcanvas.scss +143 -0
  39. data/_sass/bootstrap/scss/_pagination.scss +111 -0
  40. data/_sass/bootstrap/scss/_placeholders.scss +51 -0
  41. data/_sass/bootstrap/scss/_popover.scss +198 -0
  42. data/_sass/bootstrap/scss/_print.scss +141 -0
  43. data/_sass/bootstrap/scss/_progress.scss +59 -0
  44. data/_sass/bootstrap/scss/_reboot.scss +610 -0
  45. data/_sass/bootstrap/scss/_root.scss +76 -0
  46. data/_sass/bootstrap/scss/_spinners.scss +85 -0
  47. data/_sass/bootstrap/scss/_tables.scss +164 -0
  48. data/_sass/bootstrap/scss/_toasts.scss +70 -0
  49. data/_sass/bootstrap/scss/_tooltip.scss +122 -0
  50. data/_sass/bootstrap/scss/_transitions.scss +27 -0
  51. data/_sass/bootstrap/scss/_type.scss +104 -0
  52. data/_sass/bootstrap/scss/_utilities.scss +647 -0
  53. data/_sass/bootstrap/scss/_variables.scss +1631 -0
  54. data/_sass/bootstrap/scss/bootstrap-grid.scss +68 -0
  55. data/_sass/bootstrap/scss/bootstrap-reboot.scss +14 -0
  56. data/_sass/bootstrap/scss/bootstrap-utilities.scss +19 -0
  57. data/_sass/bootstrap/scss/bootstrap.scss +54 -0
  58. data/_sass/bootstrap/scss/forms/_floating-labels.scss +70 -0
  59. data/_sass/bootstrap/scss/forms/_form-check.scss +175 -0
  60. data/_sass/bootstrap/scss/forms/_form-control.scss +189 -0
  61. data/_sass/bootstrap/scss/forms/_form-range.scss +91 -0
  62. data/_sass/bootstrap/scss/forms/_form-select.scss +71 -0
  63. data/_sass/bootstrap/scss/forms/_form-text.scss +11 -0
  64. data/_sass/bootstrap/scss/forms/_input-group.scss +121 -0
  65. data/_sass/bootstrap/scss/forms/_labels.scss +36 -0
  66. data/_sass/bootstrap/scss/forms/_validation.scss +12 -0
  67. data/_sass/bootstrap/scss/helpers/_clearfix.scss +3 -0
  68. data/_sass/bootstrap/scss/helpers/_color-bg.scss +10 -0
  69. data/_sass/bootstrap/scss/helpers/_colored-links.scss +12 -0
  70. data/_sass/bootstrap/scss/helpers/_position.scss +36 -0
  71. data/_sass/bootstrap/scss/helpers/_ratio.scss +26 -0
  72. data/_sass/bootstrap/scss/helpers/_stacks.scss +15 -0
  73. data/_sass/bootstrap/scss/helpers/_stretched-link.scss +15 -0
  74. data/_sass/bootstrap/scss/helpers/_text-truncation.scss +7 -0
  75. data/_sass/bootstrap/scss/helpers/_visually-hidden.scss +8 -0
  76. data/_sass/bootstrap/scss/helpers/_vr.scss +8 -0
  77. data/_sass/bootstrap/scss/mixins/_alert.scss +15 -0
  78. data/_sass/bootstrap/scss/mixins/_backdrop.scss +14 -0
  79. data/_sass/bootstrap/scss/mixins/_background-variant.scss +23 -0
  80. data/_sass/bootstrap/scss/mixins/_badge.scss +17 -0
  81. data/_sass/bootstrap/scss/mixins/_border-radius.scss +78 -0
  82. data/_sass/bootstrap/scss/mixins/_box-shadow.scss +18 -0
  83. data/_sass/bootstrap/scss/mixins/_breakpoints.scss +127 -0
  84. data/_sass/bootstrap/scss/mixins/_buttons.scss +71 -0
  85. data/_sass/bootstrap/scss/mixins/_caret.scss +64 -0
  86. data/_sass/bootstrap/scss/mixins/_clearfix.scss +9 -0
  87. data/_sass/bootstrap/scss/mixins/_color-scheme.scss +7 -0
  88. data/_sass/bootstrap/scss/mixins/_container.scss +11 -0
  89. data/_sass/bootstrap/scss/mixins/_deprecate.scss +10 -0
  90. data/_sass/bootstrap/scss/mixins/_float.scss +14 -0
  91. data/_sass/bootstrap/scss/mixins/_forms.scss +152 -0
  92. data/_sass/bootstrap/scss/mixins/_gradients.scss +47 -0
  93. data/_sass/bootstrap/scss/mixins/_grid-framework.scss +80 -0
  94. data/_sass/bootstrap/scss/mixins/_grid.scss +151 -0
  95. data/_sass/bootstrap/scss/mixins/_hover.scss +37 -0
  96. data/_sass/bootstrap/scss/mixins/_image.scss +16 -0
  97. data/_sass/bootstrap/scss/mixins/_list-group.scss +24 -0
  98. data/_sass/bootstrap/scss/mixins/_lists.scss +7 -0
  99. data/_sass/bootstrap/scss/mixins/_nav-divider.scss +11 -0
  100. data/_sass/bootstrap/scss/mixins/_pagination.scss +10 -0
  101. data/_sass/bootstrap/scss/mixins/_reset-text.scss +17 -0
  102. data/_sass/bootstrap/scss/mixins/_resize.scss +6 -0
  103. data/_sass/bootstrap/scss/mixins/_screen-reader.scss +34 -0
  104. data/_sass/bootstrap/scss/mixins/_size.scss +7 -0
  105. data/_sass/bootstrap/scss/mixins/_table-row.scss +39 -0
  106. data/_sass/bootstrap/scss/mixins/_table-variants.scss +24 -0
  107. data/_sass/bootstrap/scss/mixins/_text-emphasis.scss +17 -0
  108. data/_sass/bootstrap/scss/mixins/_text-hide.scss +11 -0
  109. data/_sass/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  110. data/_sass/bootstrap/scss/mixins/_transition.scss +26 -0
  111. data/_sass/bootstrap/scss/mixins/_utilities.scss +92 -0
  112. data/_sass/bootstrap/scss/mixins/_visibility.scss +8 -0
  113. data/_sass/bootstrap/scss/mixins/_visually-hidden.scss +29 -0
  114. data/_sass/bootstrap/scss/utilities/_align.scss +8 -0
  115. data/_sass/bootstrap/scss/utilities/_api.scss +47 -0
  116. data/_sass/bootstrap/scss/utilities/_background.scss +19 -0
  117. data/_sass/bootstrap/scss/utilities/_borders.scss +75 -0
  118. data/_sass/bootstrap/scss/utilities/_clearfix.scss +3 -0
  119. data/_sass/bootstrap/scss/utilities/_display.scss +26 -0
  120. data/_sass/bootstrap/scss/utilities/_embed.scss +39 -0
  121. data/_sass/bootstrap/scss/utilities/_flex.scss +51 -0
  122. data/_sass/bootstrap/scss/utilities/_float.scss +11 -0
  123. data/_sass/bootstrap/scss/utilities/_interactions.scss +5 -0
  124. data/_sass/bootstrap/scss/utilities/_overflow.scss +5 -0
  125. data/_sass/bootstrap/scss/utilities/_position.scss +32 -0
  126. data/_sass/bootstrap/scss/utilities/_screenreaders.scss +11 -0
  127. data/_sass/bootstrap/scss/utilities/_shadows.scss +6 -0
  128. data/_sass/bootstrap/scss/utilities/_sizing.scss +20 -0
  129. data/_sass/bootstrap/scss/utilities/_spacing.scss +73 -0
  130. data/_sass/bootstrap/scss/utilities/_stretched-link.scss +19 -0
  131. data/_sass/bootstrap/scss/utilities/_text.scss +72 -0
  132. data/_sass/bootstrap/scss/utilities/_visibility.scss +13 -0
  133. data/_sass/bootstrap/scss/vendor/_rfs.scss +354 -0
  134. data/_sass/jekyll-theme-cs50.scss +298 -0
  135. data/_sass/page.scss +228 -0
  136. data/_sass/rouge.scss +35 -0
  137. data/assets/@fortawesome/fontawesome-free/css/all.min.css +5 -0
  138. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.eot +0 -0
  139. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.svg +3717 -0
  140. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  141. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff +0 -0
  142. data/assets/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  143. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.eot +0 -0
  144. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.svg +801 -0
  145. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  146. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff +0 -0
  147. data/assets/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  148. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.eot +0 -0
  149. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.svg +5034 -0
  150. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  151. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff +0 -0
  152. data/assets/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  153. data/assets/algolia-min.css +1 -0
  154. data/assets/algoliasearch/dist/algoliasearch-lite.umd.js +2 -0
  155. data/assets/algoliasearchLite.min.js +3 -0
  156. data/assets/bootstrap/LICENSE +22 -0
  157. data/assets/bootstrap/dist/js/bootstrap.bundle.min.js +7 -0
  158. data/assets/bootstrap/dist/js/bootstrap.bundle.min.js.map +1 -0
  159. data/assets/bootstrap/dist/js/bootstrap.min.js +7 -0
  160. data/assets/bootstrap-table/LICENSE +21 -0
  161. data/assets/bootstrap-table/dist/bootstrap-table.min.css +10 -0
  162. data/assets/bootstrap-table/dist/bootstrap-table.min.js +10 -0
  163. data/assets/bootstrap-table/dist/extensions/mobile/bootstrap-table-mobile.min.js +10 -0
  164. data/assets/instantsearch.js/LICENSE +21 -0
  165. data/assets/instantsearch.js/dist/instantsearch.production.min.js +3 -0
  166. data/assets/instantsearch.js/dist/instantsearch.production.min.js.map +1 -0
  167. data/assets/instantsearch.production.min.js +3 -0
  168. data/assets/jekyll-theme-cs50.js +620 -0
  169. data/assets/jquery/LICENSE.txt +20 -0
  170. data/assets/jquery/dist/jquery.min.js +2 -0
  171. data/assets/luxon.min.js +1 -0
  172. data/assets/moment-timezone-with-data.min.js +1 -0
  173. data/assets/moment.min.js +1 -0
  174. data/assets/page.js +4 -0
  175. data/assets/page.scss +4 -0
  176. data/assets/popper.js/dist/umd/popper.min.js +5 -0
  177. data/assets/reset-min.css +1 -0
  178. data/assets/scratchblocks.min.js +11 -0
  179. data/assets/scratchblocks.min.js.map +1 -0
  180. data/lib/jekyll-theme-cs50/constants.rb +59 -0
  181. data/lib/jekyll-theme-cs50.rb +606 -0
  182. data/lib/liquid-tag-parser.rb +1 -0
  183. metadata +350 -0
@@ -0,0 +1,85 @@
1
+ //
2
+ // Rotating border
3
+ //
4
+
5
+ .spinner-grow,
6
+ .spinner-border {
7
+ display: inline-block;
8
+ width: var(--#{$prefix}spinner-width);
9
+ height: var(--#{$prefix}spinner-height);
10
+ vertical-align: var(--#{$prefix}spinner-vertical-align);
11
+ // stylelint-disable-next-line property-disallowed-list
12
+ border-radius: 50%;
13
+ animation: var(--#{$prefix}spinner-animation-speed) linear infinite var(--#{$prefix}spinner-animation-name);
14
+ }
15
+
16
+ // scss-docs-start spinner-border-keyframes
17
+ @keyframes spinner-border {
18
+ to { transform: rotate(360deg) #{"/* rtl:ignore */"}; }
19
+ }
20
+ // scss-docs-end spinner-border-keyframes
21
+
22
+ .spinner-border {
23
+ // scss-docs-start spinner-border-css-vars
24
+ --#{$prefix}spinner-width: #{$spinner-width};
25
+ --#{$prefix}spinner-height: #{$spinner-height};
26
+ --#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
27
+ --#{$prefix}spinner-border-width: #{$spinner-border-width};
28
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
29
+ --#{$prefix}spinner-animation-name: spinner-border;
30
+ // scss-docs-end spinner-border-css-vars
31
+
32
+ border: var(--#{$prefix}spinner-border-width) solid currentcolor;
33
+ border-right-color: transparent;
34
+ }
35
+
36
+ .spinner-border-sm {
37
+ // scss-docs-start spinner-border-sm-css-vars
38
+ --#{$prefix}spinner-width: #{$spinner-width-sm};
39
+ --#{$prefix}spinner-height: #{$spinner-height-sm};
40
+ --#{$prefix}spinner-border-width: #{$spinner-border-width-sm};
41
+ // scss-docs-end spinner-border-sm-css-vars
42
+ }
43
+
44
+ //
45
+ // Growing circle
46
+ //
47
+
48
+ // scss-docs-start spinner-grow-keyframes
49
+ @keyframes spinner-grow {
50
+ 0% {
51
+ transform: scale(0);
52
+ }
53
+ 50% {
54
+ opacity: 1;
55
+ transform: none;
56
+ }
57
+ }
58
+ // scss-docs-end spinner-grow-keyframes
59
+
60
+ .spinner-grow {
61
+ // scss-docs-start spinner-grow-css-vars
62
+ --#{$prefix}spinner-width: #{$spinner-width};
63
+ --#{$prefix}spinner-height: #{$spinner-height};
64
+ --#{$prefix}spinner-vertical-align: #{$spinner-vertical-align};
65
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed};
66
+ --#{$prefix}spinner-animation-name: spinner-grow;
67
+ // scss-docs-end spinner-grow-css-vars
68
+
69
+ background-color: currentcolor;
70
+ opacity: 0;
71
+ }
72
+
73
+ .spinner-grow-sm {
74
+ --#{$prefix}spinner-width: #{$spinner-width-sm};
75
+ --#{$prefix}spinner-height: #{$spinner-height-sm};
76
+ }
77
+
78
+ @if $enable-reduced-motion {
79
+ @media (prefers-reduced-motion: reduce) {
80
+ .spinner-border,
81
+ .spinner-grow {
82
+ --#{$prefix}spinner-animation-speed: #{$spinner-animation-speed * 2};
83
+ }
84
+ }
85
+ }
@@ -0,0 +1,164 @@
1
+ //
2
+ // Basic Bootstrap table
3
+ //
4
+
5
+ .table {
6
+ --#{$prefix}table-color: #{$table-color};
7
+ --#{$prefix}table-bg: #{$table-bg};
8
+ --#{$prefix}table-border-color: #{$table-border-color};
9
+ --#{$prefix}table-accent-bg: #{$table-accent-bg};
10
+ --#{$prefix}table-striped-color: #{$table-striped-color};
11
+ --#{$prefix}table-striped-bg: #{$table-striped-bg};
12
+ --#{$prefix}table-active-color: #{$table-active-color};
13
+ --#{$prefix}table-active-bg: #{$table-active-bg};
14
+ --#{$prefix}table-hover-color: #{$table-hover-color};
15
+ --#{$prefix}table-hover-bg: #{$table-hover-bg};
16
+
17
+ width: 100%;
18
+ margin-bottom: $spacer;
19
+ color: var(--#{$prefix}table-color);
20
+ vertical-align: $table-cell-vertical-align;
21
+ border-color: var(--#{$prefix}table-border-color);
22
+
23
+ // Target th & td
24
+ // We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
25
+ // We use the universal selectors here to simplify the selector (else we would need 6 different selectors).
26
+ // Another advantage is that this generates less code and makes the selector less specific making it easier to override.
27
+ // stylelint-disable-next-line selector-max-universal
28
+ > :not(caption) > * > * {
29
+ padding: $table-cell-padding-y $table-cell-padding-x;
30
+ background-color: var(--#{$prefix}table-bg);
31
+ border-bottom-width: $table-border-width;
32
+ box-shadow: inset 0 0 0 9999px var(--#{$prefix}table-accent-bg);
33
+ }
34
+
35
+ > tbody {
36
+ vertical-align: inherit;
37
+ }
38
+
39
+ > thead {
40
+ vertical-align: bottom;
41
+ }
42
+ }
43
+
44
+ .table-group-divider {
45
+ border-top: calc(2 * $table-border-width) solid $table-group-separator-color; // stylelint-disable-line function-disallowed-list
46
+ }
47
+
48
+ //
49
+ // Change placement of captions with a class
50
+ //
51
+
52
+ .caption-top {
53
+ caption-side: top;
54
+ }
55
+
56
+
57
+ //
58
+ // Condensed table w/ half padding
59
+ //
60
+
61
+ .table-sm {
62
+ // stylelint-disable-next-line selector-max-universal
63
+ > :not(caption) > * > * {
64
+ padding: $table-cell-padding-y-sm $table-cell-padding-x-sm;
65
+ }
66
+ }
67
+
68
+
69
+ // Border versions
70
+ //
71
+ // Add or remove borders all around the table and between all the columns.
72
+ //
73
+ // When borders are added on all sides of the cells, the corners can render odd when
74
+ // these borders do not have the same color or if they are semi-transparent.
75
+ // Therefor we add top and border bottoms to the `tr`s and left and right borders
76
+ // to the `td`s or `th`s
77
+
78
+ .table-bordered {
79
+ > :not(caption) > * {
80
+ border-width: $table-border-width 0;
81
+
82
+ // stylelint-disable-next-line selector-max-universal
83
+ > * {
84
+ border-width: 0 $table-border-width;
85
+ }
86
+ }
87
+ }
88
+
89
+ .table-borderless {
90
+ // stylelint-disable-next-line selector-max-universal
91
+ > :not(caption) > * > * {
92
+ border-bottom-width: 0;
93
+ }
94
+
95
+ > :not(:first-child) {
96
+ border-top-width: 0;
97
+ }
98
+ }
99
+
100
+ // Zebra-striping
101
+ //
102
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
103
+
104
+ // For rows
105
+ .table-striped {
106
+ > tbody > tr:nth-of-type(#{$table-striped-order}) > * {
107
+ --#{$prefix}table-accent-bg: var(--#{$prefix}table-striped-bg);
108
+ color: var(--#{$prefix}table-striped-color);
109
+ }
110
+ }
111
+
112
+ // For columns
113
+ .table-striped-columns {
114
+ > :not(caption) > tr > :nth-child(#{$table-striped-columns-order}) {
115
+ --#{$prefix}table-accent-bg: var(--#{$prefix}table-striped-bg);
116
+ color: var(--#{$prefix}table-striped-color);
117
+ }
118
+ }
119
+
120
+ // Active table
121
+ //
122
+ // The `.table-active` class can be added to highlight rows or cells
123
+
124
+ .table-active {
125
+ --#{$prefix}table-accent-bg: var(--#{$prefix}table-active-bg);
126
+ color: var(--#{$prefix}table-active-color);
127
+ }
128
+
129
+ // Hover effect
130
+ //
131
+ // Placed here since it has to come after the potential zebra striping
132
+
133
+ .table-hover {
134
+ > tbody > tr:hover > * {
135
+ --#{$prefix}table-accent-bg: var(--#{$prefix}table-hover-bg);
136
+ color: var(--#{$prefix}table-hover-color);
137
+ }
138
+ }
139
+
140
+
141
+ // Table variants
142
+ //
143
+ // Table variants set the table cell backgrounds, border colors
144
+ // and the colors of the striped, hovered & active tables
145
+
146
+ @each $color, $value in $table-variants {
147
+ @include table-variant($color, $value);
148
+ }
149
+
150
+ // Responsive tables
151
+ //
152
+ // Generate series of `.table-responsive-*` classes for configuring the screen
153
+ // size of where your table will overflow.
154
+
155
+ @each $breakpoint in map-keys($grid-breakpoints) {
156
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
157
+
158
+ @include media-breakpoint-down($breakpoint) {
159
+ .table-responsive#{$infix} {
160
+ overflow-x: auto;
161
+ -webkit-overflow-scrolling: touch;
162
+ }
163
+ }
164
+ }
@@ -0,0 +1,70 @@
1
+ .toast {
2
+ // scss-docs-start toast-css-vars
3
+ --#{$prefix}toast-padding-x: #{$toast-padding-x};
4
+ --#{$prefix}toast-padding-y: #{$toast-padding-y};
5
+ --#{$prefix}toast-spacing: #{$toast-spacing};
6
+ --#{$prefix}toast-max-width: #{$toast-max-width};
7
+ @include rfs($toast-font-size, --#{$prefix}toast-font-size);
8
+ --#{$prefix}toast-color: #{$toast-color}; // stylelint-disable-line custom-property-empty-line-before
9
+ --#{$prefix}toast-bg: #{$toast-background-color};
10
+ --#{$prefix}toast-border-width: #{$toast-border-width};
11
+ --#{$prefix}toast-border-color: #{$toast-border-color};
12
+ --#{$prefix}toast-border-radius: #{$toast-border-radius};
13
+ --#{$prefix}toast-box-shadow: #{$toast-box-shadow};
14
+ --#{$prefix}toast-header-color: #{$toast-header-color};
15
+ --#{$prefix}toast-header-bg: #{$toast-header-background-color};
16
+ --#{$prefix}toast-header-border-color: #{$toast-header-border-color};
17
+ // scss-docs-end toast-css-vars
18
+
19
+ width: var(--#{$prefix}toast-max-width);
20
+ max-width: 100%;
21
+ @include font-size(var(--#{$prefix}toast-font-size));
22
+ color: var(--#{$prefix}toast-color);
23
+ pointer-events: auto;
24
+ background-color: var(--#{$prefix}toast-bg);
25
+ background-clip: padding-box;
26
+ border: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-border-color);
27
+ box-shadow: var(--#{$prefix}toast-box-shadow);
28
+ @include border-radius(var(--#{$prefix}toast-border-radius));
29
+
30
+ &.showing {
31
+ opacity: 0;
32
+ }
33
+
34
+ &:not(.show) {
35
+ display: none;
36
+ }
37
+ }
38
+
39
+ .toast-container {
40
+ position: absolute;
41
+ z-index: $zindex-toast;
42
+ width: max-content;
43
+ max-width: 100%;
44
+ pointer-events: none;
45
+
46
+ > :not(:last-child) {
47
+ margin-bottom: var(--#{$prefix}toast-spacing);
48
+ }
49
+ }
50
+
51
+ .toast-header {
52
+ display: flex;
53
+ align-items: center;
54
+ padding: var(--#{$prefix}toast-padding-y) var(--#{$prefix}toast-padding-x);
55
+ color: var(--#{$prefix}toast-header-color);
56
+ background-color: var(--#{$prefix}toast-header-bg);
57
+ background-clip: padding-box;
58
+ border-bottom: var(--#{$prefix}toast-border-width) solid var(--#{$prefix}toast-header-border-color);
59
+ @include border-top-radius(calc(var(--#{$prefix}toast-border-radius) - var(--#{$prefix}toast-border-width)));
60
+
61
+ .btn-close {
62
+ margin-right: calc(var(--#{$prefix}toast-padding-x) * -.5); // stylelint-disable-line function-disallowed-list
63
+ margin-left: var(--#{$prefix}toast-padding-x);
64
+ }
65
+ }
66
+
67
+ .toast-body {
68
+ padding: var(--#{$prefix}toast-padding-x);
69
+ word-wrap: break-word;
70
+ }
@@ -0,0 +1,122 @@
1
+ // stylelint-disable custom-property-empty-line-before
2
+
3
+ // Base class
4
+ .tooltip {
5
+ // scss-docs-start tooltip-css-vars
6
+ --#{$prefix}tooltip-zindex: #{$zindex-tooltip};
7
+ --#{$prefix}tooltip-max-width: #{$tooltip-max-width};
8
+ --#{$prefix}tooltip-padding-x: #{$tooltip-padding-x};
9
+ --#{$prefix}tooltip-padding-y: #{$tooltip-padding-y};
10
+ --#{$prefix}tooltip-margin: #{$tooltip-margin};
11
+ @include rfs($tooltip-font-size, --#{$prefix}tooltip-font-size);
12
+ --#{$prefix}tooltip-color: #{$tooltip-color};
13
+ --#{$prefix}tooltip-bg: #{$tooltip-bg};
14
+ --#{$prefix}tooltip-border-radius: #{$tooltip-border-radius};
15
+ --#{$prefix}tooltip-opacity: #{$tooltip-opacity};
16
+ --#{$prefix}tooltip-arrow-width: #{$tooltip-arrow-width};
17
+ --#{$prefix}tooltip-arrow-height: #{$tooltip-arrow-height};
18
+ // scss-docs-end tooltip-css-vars
19
+
20
+ z-index: var(--#{$prefix}tooltip-zindex);
21
+ display: block;
22
+ padding: var(--#{$prefix}tooltip-arrow-height);
23
+ margin: var(--#{$prefix}tooltip-margin);
24
+ @include deprecate("`$tooltip-margin`", "v5", "v5.x", true);
25
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
26
+ // So reset our font and text properties to avoid inheriting weird values.
27
+ @include reset-text();
28
+ @include font-size(var(--#{$prefix}tooltip-font-size));
29
+ // Allow breaking very long words so they don't overflow the tooltip's bounds
30
+ word-wrap: break-word;
31
+ opacity: 0;
32
+
33
+ &.show { opacity: var(--#{$prefix}tooltip-opacity); }
34
+
35
+ .tooltip-arrow {
36
+ display: block;
37
+ width: var(--#{$prefix}tooltip-arrow-width);
38
+ height: var(--#{$prefix}tooltip-arrow-height);
39
+
40
+ &::before {
41
+ position: absolute;
42
+ content: "";
43
+ border-color: transparent;
44
+ border-style: solid;
45
+ }
46
+ }
47
+ }
48
+
49
+ .bs-tooltip-top .tooltip-arrow {
50
+ bottom: 0;
51
+
52
+ &::before {
53
+ top: -1px;
54
+ border-width: var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
55
+ border-top-color: var(--#{$prefix}tooltip-bg);
56
+ }
57
+ }
58
+
59
+ /* rtl:begin:ignore */
60
+ .bs-tooltip-end .tooltip-arrow {
61
+ left: 0;
62
+ width: var(--#{$prefix}tooltip-arrow-height);
63
+ height: var(--#{$prefix}tooltip-arrow-width);
64
+
65
+ &::before {
66
+ right: -1px;
67
+ border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height) calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0; // stylelint-disable-line function-disallowed-list
68
+ border-right-color: var(--#{$prefix}tooltip-bg);
69
+ }
70
+ }
71
+
72
+ /* rtl:end:ignore */
73
+
74
+ .bs-tooltip-bottom .tooltip-arrow {
75
+ top: 0;
76
+
77
+ &::before {
78
+ bottom: -1px;
79
+ border-width: 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
80
+ border-bottom-color: var(--#{$prefix}tooltip-bg);
81
+ }
82
+ }
83
+
84
+ /* rtl:begin:ignore */
85
+ .bs-tooltip-start .tooltip-arrow {
86
+ right: 0;
87
+ width: var(--#{$prefix}tooltip-arrow-height);
88
+ height: var(--#{$prefix}tooltip-arrow-width);
89
+
90
+ &::before {
91
+ left: -1px;
92
+ border-width: calc(var(--#{$prefix}tooltip-arrow-width) * .5) 0 calc(var(--#{$prefix}tooltip-arrow-width) * .5) var(--#{$prefix}tooltip-arrow-height); // stylelint-disable-line function-disallowed-list
93
+ border-left-color: var(--#{$prefix}tooltip-bg);
94
+ }
95
+ }
96
+
97
+ /* rtl:end:ignore */
98
+
99
+ .bs-tooltip-auto {
100
+ &[data-popper-placement^="top"] {
101
+ @extend .bs-tooltip-top;
102
+ }
103
+ &[data-popper-placement^="right"] {
104
+ @extend .bs-tooltip-end;
105
+ }
106
+ &[data-popper-placement^="bottom"] {
107
+ @extend .bs-tooltip-bottom;
108
+ }
109
+ &[data-popper-placement^="left"] {
110
+ @extend .bs-tooltip-start;
111
+ }
112
+ }
113
+
114
+ // Wrapper for the tooltip content
115
+ .tooltip-inner {
116
+ max-width: var(--#{$prefix}tooltip-max-width);
117
+ padding: var(--#{$prefix}tooltip-padding-y) var(--#{$prefix}tooltip-padding-x);
118
+ color: var(--#{$prefix}tooltip-color);
119
+ text-align: center;
120
+ background-color: var(--#{$prefix}tooltip-bg);
121
+ border-radius: var(--#{$prefix}tooltip-border-radius, 0); // stylelint-disable-line property-disallowed-list
122
+ }
@@ -0,0 +1,27 @@
1
+ .fade {
2
+ @include transition($transition-fade);
3
+
4
+ &:not(.show) {
5
+ opacity: 0;
6
+ }
7
+ }
8
+
9
+ // scss-docs-start collapse-classes
10
+ .collapse {
11
+ &:not(.show) {
12
+ display: none;
13
+ }
14
+ }
15
+
16
+ .collapsing {
17
+ height: 0;
18
+ overflow: hidden;
19
+ @include transition($transition-collapse);
20
+
21
+ &.collapse-horizontal {
22
+ width: 0;
23
+ height: auto;
24
+ @include transition($transition-collapse-width);
25
+ }
26
+ }
27
+ // scss-docs-end collapse-classes
@@ -0,0 +1,104 @@
1
+ //
2
+ // Headings
3
+ //
4
+ .h1 {
5
+ @extend h1;
6
+ }
7
+
8
+ .h2 {
9
+ @extend h2;
10
+ }
11
+
12
+ .h3 {
13
+ @extend h3;
14
+ }
15
+
16
+ .h4 {
17
+ @extend h4;
18
+ }
19
+
20
+ .h5 {
21
+ @extend h5;
22
+ }
23
+
24
+ .h6 {
25
+ @extend h6;
26
+ }
27
+
28
+
29
+ .lead {
30
+ @include font-size($lead-font-size);
31
+ font-weight: $lead-font-weight;
32
+ }
33
+
34
+ // Type display classes
35
+ @each $display, $font-size in $display-font-sizes {
36
+ .display-#{$display} {
37
+ @include font-size($font-size);
38
+ font-weight: $display-font-weight;
39
+ line-height: $display-line-height;
40
+ }
41
+ }
42
+
43
+ //
44
+ // Emphasis
45
+ //
46
+ .small {
47
+ @extend small;
48
+ }
49
+
50
+ .mark {
51
+ @extend mark;
52
+ }
53
+
54
+ //
55
+ // Lists
56
+ //
57
+
58
+ .list-unstyled {
59
+ @include list-unstyled();
60
+ }
61
+
62
+ // Inline turns list items into inline-block
63
+ .list-inline {
64
+ @include list-unstyled();
65
+ }
66
+ .list-inline-item {
67
+ display: inline-block;
68
+
69
+ &:not(:last-child) {
70
+ margin-right: $list-inline-padding;
71
+ }
72
+ }
73
+
74
+
75
+ //
76
+ // Misc
77
+ //
78
+
79
+ // Builds on `abbr`
80
+ .initialism {
81
+ @include font-size($initialism-font-size);
82
+ text-transform: uppercase;
83
+ }
84
+
85
+ // Blockquotes
86
+ .blockquote {
87
+ margin-bottom: $blockquote-margin-y;
88
+ @include font-size($blockquote-font-size);
89
+
90
+ > :last-child {
91
+ margin-bottom: 0;
92
+ }
93
+ }
94
+
95
+ .blockquote-footer {
96
+ margin-top: -$blockquote-margin-y;
97
+ margin-bottom: $blockquote-margin-y;
98
+ @include font-size($blockquote-footer-font-size);
99
+ color: $blockquote-footer-color;
100
+
101
+ &::before {
102
+ content: "\2014\00A0"; // em dash, nbsp
103
+ }
104
+ }