jekyll-theme-centos 2.3.0.beta.103 → 2.3.0.beta.108

Sign up to get free protection for your applications and to get access to all the features.
Files changed (163) hide show
  1. checksums.yaml +4 -4
  2. data/_data/base/footer.yml +32 -0
  3. data/_data/base/identity.yml +20 -0
  4. data/_data/base/navbar.yml +74 -0
  5. data/_data/base/navbar_absolute.yml +74 -0
  6. data/_data/base/navbar_component.yml +60 -0
  7. data/_includes/base/announcements.html +6 -0
  8. data/_includes/base/breadcrumbs.html +13 -0
  9. data/_includes/base/footer.html +61 -0
  10. data/_includes/base/head.html +17 -0
  11. data/_includes/base/header.html +17 -0
  12. data/_includes/base/navbar.html +32 -0
  13. data/_includes/base/script.html +70 -0
  14. data/_includes/base/toc-accordion.html +10 -0
  15. data/_includes/base/toc.html +99 -0
  16. data/_layouts/base/default.html +31 -0
  17. data/_sass/base/_centos-lists.scss +132 -0
  18. data/_sass/base/_centos.scss +80 -0
  19. data/_sass/base/_variables.scss +24 -0
  20. data/_sass/bootstrap/_accordion.scss +158 -0
  21. data/_sass/bootstrap/_alert.scss +68 -0
  22. data/_sass/bootstrap/_badge.scss +38 -0
  23. data/_sass/bootstrap/_breadcrumb.scss +40 -0
  24. data/_sass/bootstrap/_button-group.scss +142 -0
  25. data/_sass/bootstrap/_buttons.scss +207 -0
  26. data/_sass/bootstrap/_card.scss +239 -0
  27. data/_sass/bootstrap/_carousel.scss +244 -0
  28. data/_sass/bootstrap/_close.scss +63 -0
  29. data/_sass/bootstrap/_containers.scss +41 -0
  30. data/_sass/bootstrap/_dropdown.scss +250 -0
  31. data/_sass/bootstrap/_forms.scss +9 -0
  32. data/_sass/bootstrap/_functions.scss +302 -0
  33. data/_sass/bootstrap/_grid.scss +39 -0
  34. data/_sass/bootstrap/_helpers.scss +12 -0
  35. data/_sass/bootstrap/_images.scss +42 -0
  36. data/_sass/bootstrap/_list-group.scss +197 -0
  37. data/_sass/bootstrap/_maps.scss +174 -0
  38. data/_sass/bootstrap/_mixins.scss +42 -0
  39. data/_sass/bootstrap/_modal.scss +237 -0
  40. data/_sass/bootstrap/_nav.scss +209 -0
  41. data/_sass/bootstrap/_navbar.scss +289 -0
  42. data/_sass/bootstrap/_offcanvas.scss +146 -0
  43. data/_sass/bootstrap/_pagination.scss +109 -0
  44. data/_sass/bootstrap/_placeholders.scss +51 -0
  45. data/_sass/bootstrap/_popover.scss +196 -0
  46. data/_sass/bootstrap/_progress.scss +68 -0
  47. data/_sass/bootstrap/_reboot.scss +610 -0
  48. data/_sass/bootstrap/_root.scss +184 -0
  49. data/_sass/bootstrap/_spinners.scss +85 -0
  50. data/_sass/bootstrap/_tables.scss +171 -0
  51. data/_sass/bootstrap/_toasts.scss +73 -0
  52. data/_sass/bootstrap/_tooltip.scss +119 -0
  53. data/_sass/bootstrap/_transitions.scss +27 -0
  54. data/_sass/bootstrap/_type.scss +106 -0
  55. data/_sass/bootstrap/_utilities.scss +806 -0
  56. data/_sass/bootstrap/_variables-dark.scss +85 -0
  57. data/_sass/bootstrap/_variables.scss +1743 -0
  58. data/_sass/bootstrap/bootstrap-grid.scss +62 -0
  59. data/_sass/bootstrap/bootstrap-reboot.scss +10 -0
  60. data/_sass/bootstrap/bootstrap-utilities.scss +19 -0
  61. data/_sass/bootstrap/bootstrap.scss +52 -0
  62. data/_sass/bootstrap/forms/_floating-labels.scss +94 -0
  63. data/_sass/bootstrap/forms/_form-check.scss +188 -0
  64. data/_sass/bootstrap/forms/_form-control.scss +214 -0
  65. data/_sass/bootstrap/forms/_form-range.scss +91 -0
  66. data/_sass/bootstrap/forms/_form-select.scss +80 -0
  67. data/_sass/bootstrap/forms/_form-text.scss +11 -0
  68. data/_sass/bootstrap/forms/_input-group.scss +132 -0
  69. data/_sass/bootstrap/forms/_labels.scss +36 -0
  70. data/_sass/bootstrap/forms/_validation.scss +12 -0
  71. data/_sass/bootstrap/helpers/_clearfix.scss +3 -0
  72. data/_sass/bootstrap/helpers/_color-bg.scss +8 -0
  73. data/_sass/bootstrap/helpers/_colored-links.scss +30 -0
  74. data/_sass/bootstrap/helpers/_focus-ring.scss +5 -0
  75. data/_sass/bootstrap/helpers/_icon-link.scss +25 -0
  76. data/_sass/bootstrap/helpers/_position.scss +36 -0
  77. data/_sass/bootstrap/helpers/_ratio.scss +26 -0
  78. data/_sass/bootstrap/helpers/_stacks.scss +15 -0
  79. data/_sass/bootstrap/helpers/_stretched-link.scss +15 -0
  80. data/_sass/bootstrap/helpers/_text-truncation.scss +7 -0
  81. data/_sass/bootstrap/helpers/_visually-hidden.scss +8 -0
  82. data/_sass/bootstrap/helpers/_vr.scss +8 -0
  83. data/_sass/bootstrap/mixins/_alert.scss +18 -0
  84. data/_sass/bootstrap/mixins/_backdrop.scss +14 -0
  85. data/_sass/bootstrap/mixins/_banner.scss +7 -0
  86. data/_sass/bootstrap/mixins/_border-radius.scss +78 -0
  87. data/_sass/bootstrap/mixins/_box-shadow.scss +18 -0
  88. data/_sass/bootstrap/mixins/_breakpoints.scss +127 -0
  89. data/_sass/bootstrap/mixins/_buttons.scss +70 -0
  90. data/_sass/bootstrap/mixins/_caret.scss +69 -0
  91. data/_sass/bootstrap/mixins/_clearfix.scss +9 -0
  92. data/_sass/bootstrap/mixins/_color-mode.scss +21 -0
  93. data/_sass/bootstrap/mixins/_color-scheme.scss +7 -0
  94. data/_sass/bootstrap/mixins/_container.scss +11 -0
  95. data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
  96. data/_sass/bootstrap/mixins/_forms.scss +153 -0
  97. data/_sass/bootstrap/mixins/_gradients.scss +47 -0
  98. data/_sass/bootstrap/mixins/_grid.scss +151 -0
  99. data/_sass/bootstrap/mixins/_image.scss +16 -0
  100. data/_sass/bootstrap/mixins/_list-group.scss +26 -0
  101. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  102. data/_sass/bootstrap/mixins/_pagination.scss +10 -0
  103. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  104. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  105. data/_sass/bootstrap/mixins/_table-variants.scss +24 -0
  106. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  107. data/_sass/bootstrap/mixins/_transition.scss +26 -0
  108. data/_sass/bootstrap/mixins/_utilities.scss +97 -0
  109. data/_sass/bootstrap/mixins/_visually-hidden.scss +33 -0
  110. data/_sass/bootstrap/utilities/_api.scss +47 -0
  111. data/_sass/bootstrap/vendor/_rfs.scss +348 -0
  112. data/assets/css/dataTables.bootstrap5.css +430 -0
  113. data/assets/css/dataTables.bootstrap5.min.css +5 -0
  114. data/assets/icons/android-chrome-192.png +0 -0
  115. data/assets/icons/android-chrome-512.png +0 -0
  116. data/assets/icons/apple-touch-icon.png +0 -0
  117. data/assets/icons/favicon-16.png +0 -0
  118. data/assets/icons/favicon-32.png +0 -0
  119. data/assets/icons/favicon.ico +0 -0
  120. data/assets/icons/favicon.svg +1 -0
  121. data/assets/img/anaconda-symbolic.svg +1 -0
  122. data/assets/img/anaconda.svg +1 -0
  123. data/assets/img/centos-dynamicmsg-logo.svg +1 -0
  124. data/assets/img/centos-dynamicmsg-type.svg +1 -0
  125. data/assets/img/centos-dynamicmsg-whitelogo.svg +1 -0
  126. data/assets/img/centos-dynamicmsg-whitetype.svg +1 -0
  127. data/assets/img/centos-gdm-whitelogo.svg +1 -0
  128. data/assets/img/centos-ipa-whiteheader.svg +1 -0
  129. data/assets/img/centos-logo-2bits.svg +1 -0
  130. data/assets/img/centos-logo.svg +1 -0
  131. data/assets/img/centos-message-logo.svg +1 -0
  132. data/assets/img/centos-motif.png +0 -0
  133. data/assets/img/centos-poweredby-logo.svg +1 -0
  134. data/assets/img/centos-symbol-2bits.svg +1 -0
  135. data/assets/img/centos-symbol.svg +1 -0
  136. data/assets/img/centos-type.svg +1 -0
  137. data/assets/img/centos-vertical-logo.svg +1 -0
  138. data/assets/img/centos-vertical-message-logo.svg +1 -0
  139. data/assets/img/centos-whitelogo.svg +1 -0
  140. data/assets/img/sort_asc.png +0 -0
  141. data/assets/img/sort_asc_disabled.png +0 -0
  142. data/assets/img/sort_both.png +0 -0
  143. data/assets/img/sort_desc.png +0 -0
  144. data/assets/img/sort_desc_disabled.png +0 -0
  145. data/assets/js/bootstrap.bundle.js +6306 -0
  146. data/assets/js/bootstrap.bundle.js.map +1 -0
  147. data/assets/js/bootstrap.bundle.min.js +7 -0
  148. data/assets/js/bootstrap.bundle.min.js.map +1 -0
  149. data/assets/js/bootstrap.esm.js +4439 -0
  150. data/assets/js/bootstrap.esm.js.map +1 -0
  151. data/assets/js/bootstrap.esm.min.js +7 -0
  152. data/assets/js/bootstrap.esm.min.js.map +1 -0
  153. data/assets/js/bootstrap.js +4486 -0
  154. data/assets/js/bootstrap.js.map +1 -0
  155. data/assets/js/bootstrap.min.js +7 -0
  156. data/assets/js/bootstrap.min.js.map +1 -0
  157. data/assets/js/clipboard.min.js +7 -0
  158. data/assets/js/dataTables.bootstrap5.min.js +4 -0
  159. data/assets/js/jquery.dataTables.min.js +4 -0
  160. data/assets/js/jquery.min.js +2 -0
  161. data/assets/js/jquery.slim.min.js +2 -0
  162. data/assets/js/vanilla-back-to-top.min.js +1 -0
  163. metadata +162 -1
@@ -0,0 +1,132 @@
1
+ /*
2
+ * This file provides customization for lists.centos.org site. There is one id
3
+ * selector per template. The id selector name and the template name are both
4
+ * the same so you can correlate them.
5
+ */
6
+
7
+ .row > {
8
+ hr {
9
+ margin-top: 3em;
10
+ }
11
+ }
12
+
13
+ #mmcfg {
14
+ h2 {
15
+ margin-top: 0;
16
+ padding-top: 0.5rem;
17
+
18
+ &:before {
19
+ display: none;
20
+ }
21
+ }
22
+ > table:nth-child(2) {
23
+ > tbody:nth-child(1) {
24
+ > tr {
25
+ > td {
26
+ padding: 0.5rem;
27
+ }
28
+ }
29
+ > tr:nth-child(4) {
30
+ > td {
31
+ background-color: $dark;
32
+ > strong {
33
+ > font {
34
+ font-size: 1rem;
35
+ color: #fff;
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+
44
+ #admlogin {
45
+ h4 {
46
+ margin-top: 0;
47
+ padding-top: 0;
48
+
49
+ &:before {
50
+ display: none;
51
+ }
52
+ }
53
+ }
54
+
55
+ #archidxhead {
56
+ ul > {
57
+ ul {
58
+ list-style-type: none;
59
+ }
60
+ }
61
+ }
62
+
63
+ #article {
64
+ pre {
65
+ overflow: hidden;
66
+ max-height: none;
67
+ font-size: 1rem;
68
+ white-space: pre-wrap;
69
+ }
70
+ }
71
+
72
+ #listinfo {
73
+ h2 {
74
+ margin-top: 1rem;
75
+ padding-top: 1rem;
76
+
77
+ &:before {
78
+ display: none;
79
+ }
80
+ }
81
+ }
82
+
83
+ #options {
84
+ h2,
85
+ h4 {
86
+ margin-top: 1rem;
87
+ padding-top: 1rem;
88
+ &:before {
89
+ display: none;
90
+ }
91
+ }
92
+
93
+ h3,
94
+ h5 {
95
+ margin-top: 0;
96
+ padding-top: 0;
97
+ &:before {
98
+ display: none;
99
+ }
100
+ }
101
+ }
102
+
103
+ // -----------------------------------------------------------------------------
104
+ // Forms
105
+ // -----------------------------------------------------------------------------
106
+ // NOTE: The form HTML elements are generated dynamically by mailman and
107
+ // templates provide small control over them. maintainability harder. To
108
+ // customize forms presentation, let's extend bootstrap classes for each one
109
+ // used.
110
+ // -----------------------------------------------------------------------------
111
+ input {
112
+ margin-bottom: 1rem;
113
+ &[type="text"],
114
+ &[type="password"] {
115
+ @extend .form-control;
116
+ }
117
+ &[type="checkbox"],
118
+ &[type="radio"] {
119
+ @extend .form-check-input;
120
+ }
121
+ &[type="submit"] {
122
+ @extend .btn, .btn-primary;
123
+ }
124
+ }
125
+ textarea {
126
+ margin-bottom: 1rem;
127
+ @extend .form-control;
128
+ }
129
+ select {
130
+ margin-bottom: 1rem;
131
+ @extend .form-select;
132
+ }
@@ -0,0 +1,80 @@
1
+ // --------------------------------------------------------------------------------
2
+ // Adjustments
3
+ // --------------------------------------------------------------------------------
4
+
5
+ main {
6
+ // --------------------------------------------------------------------------------
7
+ // Navbar and linked headings' correction.
8
+ //
9
+ // By default, when you access page headings from the page table of content
10
+ // (toc) links, the heading is hidden behind the navbar. This workaround
11
+ // fixes the linked headings visibility issue in the page.
12
+ // --------------------------------------------------------------------------------
13
+ h1,
14
+ h2,
15
+ h3,
16
+ h4,
17
+ h5,
18
+ h6 {
19
+ &::before {
20
+ display: block;
21
+ height: 6rem;
22
+ margin-top: -6rem;
23
+ visibility: hidden;
24
+ content: "";
25
+ }
26
+ margin-top: 3rem;
27
+ }
28
+
29
+ // --------------------------------------------------------------------------------
30
+ // Backgrounds
31
+ // --------------------------------------------------------------------------------
32
+ .bg-image {
33
+ background-image: url("../img/centos-motif.png");
34
+ background-size: cover;
35
+ background-repeat: no-repeat;
36
+ background-position: center;
37
+ }
38
+
39
+ .bg-light-radial-gradient {
40
+ background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(248, 249, 250, 0) 100%);
41
+ }
42
+
43
+ // --------------------------------------------------------------------------------
44
+ // DataTable
45
+ // --------------------------------------------------------------------------------
46
+ .dataTables_wrapper {
47
+ .dataTables_filter {
48
+ text-align: end;
49
+ }
50
+ .dataTables_length,
51
+ .dataTables_filter {
52
+ @extend .my-3;
53
+ }
54
+ .form-select,
55
+ .form-control {
56
+ width: auto;
57
+ display: inline-block;
58
+ }
59
+ }
60
+ }
61
+
62
+ header {
63
+ .navbar-brand {
64
+ .manifestation {
65
+ --bs-border-opacity: 0.5;
66
+ }
67
+ }
68
+ }
69
+
70
+ footer,
71
+ .accordion-body {
72
+ a {
73
+ &:link {
74
+ text-decoration: none;
75
+ }
76
+ &:hover {
77
+ text-decoration: underline;
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,24 @@
1
+ //
2
+ // CentOS Branding
3
+ //
4
+ $centos-color-1: #a14f8c;
5
+ $centos-color-2: #262577;
6
+ $centos-color-3: #9ccd2a;
7
+ $centos-color-4: #efa724;
8
+ //
9
+ // Bootstrap customization
10
+ //
11
+ $enable-rounded: true;
12
+ $enable-negative-margins: true;
13
+ $nav-pills-link-active-bg: $centos-color-1;
14
+ $link-color: $centos-color-1;
15
+ $primary: $centos-color-1;
16
+ $secondary: $centos-color-4;
17
+ $dark: #200735;
18
+ $dropdown-dark-bg: $dark;
19
+ $font-family-sans-serif: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
20
+ $font-family-monospace: "Overpass Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
21
+ $line-height-base: 1.75;
22
+ $headings-font-weight: 700;
23
+ $breadcrumb-divider-color: #6c757d;
24
+ $breadcrumb-divider: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='8' height='8'><path d='M2.5 0L1 1.5 3.5 4 1 6.5 2.5 8l4-4-4-4z' fill='#{$breadcrumb-divider-color}'/></svg>");
@@ -0,0 +1,158 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .accordion {
6
+ // scss-docs-start accordion-css-vars
7
+ --#{$prefix}accordion-color: #{$accordion-color};
8
+ --#{$prefix}accordion-bg: #{$accordion-bg};
9
+ --#{$prefix}accordion-transition: #{$accordion-transition};
10
+ --#{$prefix}accordion-border-color: #{$accordion-border-color};
11
+ --#{$prefix}accordion-border-width: #{$accordion-border-width};
12
+ --#{$prefix}accordion-border-radius: #{$accordion-border-radius};
13
+ --#{$prefix}accordion-inner-border-radius: #{$accordion-inner-border-radius};
14
+ --#{$prefix}accordion-btn-padding-x: #{$accordion-button-padding-x};
15
+ --#{$prefix}accordion-btn-padding-y: #{$accordion-button-padding-y};
16
+ --#{$prefix}accordion-btn-color: #{$accordion-button-color};
17
+ --#{$prefix}accordion-btn-bg: #{$accordion-button-bg};
18
+ --#{$prefix}accordion-btn-icon: #{escape-svg($accordion-button-icon)};
19
+ --#{$prefix}accordion-btn-icon-width: #{$accordion-icon-width};
20
+ --#{$prefix}accordion-btn-icon-transform: #{$accordion-icon-transform};
21
+ --#{$prefix}accordion-btn-icon-transition: #{$accordion-icon-transition};
22
+ --#{$prefix}accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon)};
23
+ --#{$prefix}accordion-btn-focus-border-color: #{$accordion-button-focus-border-color};
24
+ --#{$prefix}accordion-btn-focus-box-shadow: #{$accordion-button-focus-box-shadow};
25
+ --#{$prefix}accordion-body-padding-x: #{$accordion-body-padding-x};
26
+ --#{$prefix}accordion-body-padding-y: #{$accordion-body-padding-y};
27
+ --#{$prefix}accordion-active-color: #{$accordion-button-active-color};
28
+ --#{$prefix}accordion-active-bg: #{$accordion-button-active-bg};
29
+ // scss-docs-end accordion-css-vars
30
+ }
31
+
32
+ .accordion-button {
33
+ position: relative;
34
+ display: flex;
35
+ align-items: center;
36
+ width: 100%;
37
+ padding: var(--#{$prefix}accordion-btn-padding-y) var(--#{$prefix}accordion-btn-padding-x);
38
+ @include font-size($font-size-base);
39
+ color: var(--#{$prefix}accordion-btn-color);
40
+ text-align: left; // Reset button style
41
+ background-color: var(--#{$prefix}accordion-btn-bg);
42
+ border: 0;
43
+ @include border-radius(0);
44
+ overflow-anchor: none;
45
+ @include transition(var(--#{$prefix}accordion-transition));
46
+
47
+ &:not(.collapsed) {
48
+ color: var(--#{$prefix}accordion-active-color);
49
+ background-color: var(--#{$prefix}accordion-active-bg);
50
+ box-shadow: inset 0 calc(-1 * var(--#{$prefix}accordion-border-width)) 0 var(--#{$prefix}accordion-border-color); // stylelint-disable-line function-disallowed-list
51
+
52
+ &::after {
53
+ background-image: var(--#{$prefix}accordion-btn-active-icon);
54
+ transform: var(--#{$prefix}accordion-btn-icon-transform);
55
+ }
56
+ }
57
+
58
+ // Accordion icon
59
+ &::after {
60
+ flex-shrink: 0;
61
+ width: var(--#{$prefix}accordion-btn-icon-width);
62
+ height: var(--#{$prefix}accordion-btn-icon-width);
63
+ margin-left: auto;
64
+ content: "";
65
+ background-image: var(--#{$prefix}accordion-btn-icon);
66
+ background-repeat: no-repeat;
67
+ background-size: var(--#{$prefix}accordion-btn-icon-width);
68
+ @include transition(var(--#{$prefix}accordion-btn-icon-transition));
69
+ }
70
+
71
+ &:hover {
72
+ z-index: 2;
73
+ }
74
+
75
+ &:focus {
76
+ z-index: 3;
77
+ border-color: var(--#{$prefix}accordion-btn-focus-border-color);
78
+ outline: 0;
79
+ box-shadow: var(--#{$prefix}accordion-btn-focus-box-shadow);
80
+ }
81
+ }
82
+
83
+ .accordion-header {
84
+ margin-bottom: 0;
85
+ }
86
+
87
+ .accordion-item {
88
+ color: var(--#{$prefix}accordion-color);
89
+ background-color: var(--#{$prefix}accordion-bg);
90
+ border: var(--#{$prefix}accordion-border-width) solid var(--#{$prefix}accordion-border-color);
91
+
92
+ &:first-of-type {
93
+ @include border-top-radius(var(--#{$prefix}accordion-border-radius));
94
+
95
+ .accordion-button {
96
+ @include border-top-radius(var(--#{$prefix}accordion-inner-border-radius));
97
+ }
98
+ }
99
+
100
+ &:not(:first-of-type) {
101
+ border-top: 0;
102
+ }
103
+
104
+ // Only set a border-radius on the last item if the accordion is collapsed
105
+ &:last-of-type {
106
+ @include border-bottom-radius(var(--#{$prefix}accordion-border-radius));
107
+
108
+ .accordion-button {
109
+ &.collapsed {
110
+ @include border-bottom-radius(var(--#{$prefix}accordion-inner-border-radius));
111
+ }
112
+ }
113
+
114
+ .accordion-collapse {
115
+ @include border-bottom-radius(var(--#{$prefix}accordion-border-radius));
116
+ }
117
+ }
118
+ }
119
+
120
+ .accordion-body {
121
+ padding: var(--#{$prefix}accordion-body-padding-y) var(--#{$prefix}accordion-body-padding-x);
122
+ }
123
+
124
+
125
+ // Flush accordion items
126
+ //
127
+ // Remove borders and border-radius to keep accordion items edge-to-edge.
128
+
129
+ .accordion-flush {
130
+ .accordion-collapse {
131
+ border-width: 0;
132
+ }
133
+
134
+ .accordion-item {
135
+ border-right: 0;
136
+ border-left: 0;
137
+ @include border-radius(0);
138
+
139
+ &:first-child { border-top: 0; }
140
+ &:last-child { border-bottom: 0; }
141
+
142
+ .accordion-button {
143
+ &,
144
+ &.collapsed {
145
+ @include border-radius(0);
146
+ }
147
+ }
148
+ }
149
+ }
150
+
151
+ @if $enable-dark-mode {
152
+ @include color-mode(dark) {
153
+ .accordion-button::after {
154
+ --#{$prefix}accordion-btn-icon: #{escape-svg($accordion-button-icon-dark)};
155
+ --#{$prefix}accordion-btn-active-icon: #{escape-svg($accordion-button-active-icon-dark)};
156
+ }
157
+ }
158
+ }
@@ -0,0 +1,68 @@
1
+ //
2
+ // Base styles
3
+ //
4
+
5
+ .alert {
6
+ // scss-docs-start alert-css-vars
7
+ --#{$prefix}alert-bg: transparent;
8
+ --#{$prefix}alert-padding-x: #{$alert-padding-x};
9
+ --#{$prefix}alert-padding-y: #{$alert-padding-y};
10
+ --#{$prefix}alert-margin-bottom: #{$alert-margin-bottom};
11
+ --#{$prefix}alert-color: inherit;
12
+ --#{$prefix}alert-border-color: transparent;
13
+ --#{$prefix}alert-border: #{$alert-border-width} solid var(--#{$prefix}alert-border-color);
14
+ --#{$prefix}alert-border-radius: #{$alert-border-radius};
15
+ --#{$prefix}alert-link-color: inherit;
16
+ // scss-docs-end alert-css-vars
17
+
18
+ position: relative;
19
+ padding: var(--#{$prefix}alert-padding-y) var(--#{$prefix}alert-padding-x);
20
+ margin-bottom: var(--#{$prefix}alert-margin-bottom);
21
+ color: var(--#{$prefix}alert-color);
22
+ background-color: var(--#{$prefix}alert-bg);
23
+ border: var(--#{$prefix}alert-border);
24
+ @include border-radius(var(--#{$prefix}alert-border-radius));
25
+ }
26
+
27
+ // Headings for larger alerts
28
+ .alert-heading {
29
+ // Specified to prevent conflicts of changing $headings-color
30
+ color: inherit;
31
+ }
32
+
33
+ // Provide class for links that match alerts
34
+ .alert-link {
35
+ font-weight: $alert-link-font-weight;
36
+ color: var(--#{$prefix}alert-link-color);
37
+ }
38
+
39
+
40
+ // Dismissible alerts
41
+ //
42
+ // Expand the right padding and account for the close button's positioning.
43
+
44
+ .alert-dismissible {
45
+ padding-right: $alert-dismissible-padding-r;
46
+
47
+ // Adjust close link position
48
+ .btn-close {
49
+ position: absolute;
50
+ top: 0;
51
+ right: 0;
52
+ z-index: $stretched-link-z-index + 1;
53
+ padding: $alert-padding-y * 1.25 $alert-padding-x;
54
+ }
55
+ }
56
+
57
+
58
+ // scss-docs-start alert-modifiers
59
+ // Generate contextual modifier classes for colorizing the alert
60
+ @each $state in map-keys($theme-colors) {
61
+ .alert-#{$state} {
62
+ --#{$prefix}alert-color: var(--#{$prefix}#{$state}-text-emphasis);
63
+ --#{$prefix}alert-bg: var(--#{$prefix}#{$state}-bg-subtle);
64
+ --#{$prefix}alert-border-color: var(--#{$prefix}#{$state}-border-subtle);
65
+ --#{$prefix}alert-link-color: var(--#{$prefix}#{$state}-text-emphasis);
66
+ }
67
+ }
68
+ // scss-docs-end alert-modifiers
@@ -0,0 +1,38 @@
1
+ // Base class
2
+ //
3
+ // Requires one of the contextual, color modifier classes for `color` and
4
+ // `background-color`.
5
+
6
+ .badge {
7
+ // scss-docs-start badge-css-vars
8
+ --#{$prefix}badge-padding-x: #{$badge-padding-x};
9
+ --#{$prefix}badge-padding-y: #{$badge-padding-y};
10
+ @include rfs($badge-font-size, --#{$prefix}badge-font-size);
11
+ --#{$prefix}badge-font-weight: #{$badge-font-weight};
12
+ --#{$prefix}badge-color: #{$badge-color};
13
+ --#{$prefix}badge-border-radius: #{$badge-border-radius};
14
+ // scss-docs-end badge-css-vars
15
+
16
+ display: inline-block;
17
+ padding: var(--#{$prefix}badge-padding-y) var(--#{$prefix}badge-padding-x);
18
+ @include font-size(var(--#{$prefix}badge-font-size));
19
+ font-weight: var(--#{$prefix}badge-font-weight);
20
+ line-height: 1;
21
+ color: var(--#{$prefix}badge-color);
22
+ text-align: center;
23
+ white-space: nowrap;
24
+ vertical-align: baseline;
25
+ @include border-radius(var(--#{$prefix}badge-border-radius));
26
+ @include gradient-bg();
27
+
28
+ // Empty badges collapse automatically
29
+ &:empty {
30
+ display: none;
31
+ }
32
+ }
33
+
34
+ // Quick fix for badges in buttons
35
+ .btn .badge {
36
+ position: relative;
37
+ top: -1px;
38
+ }
@@ -0,0 +1,40 @@
1
+ .breadcrumb {
2
+ // scss-docs-start breadcrumb-css-vars
3
+ --#{$prefix}breadcrumb-padding-x: #{$breadcrumb-padding-x};
4
+ --#{$prefix}breadcrumb-padding-y: #{$breadcrumb-padding-y};
5
+ --#{$prefix}breadcrumb-margin-bottom: #{$breadcrumb-margin-bottom};
6
+ @include rfs($breadcrumb-font-size, --#{$prefix}breadcrumb-font-size);
7
+ --#{$prefix}breadcrumb-bg: #{$breadcrumb-bg};
8
+ --#{$prefix}breadcrumb-border-radius: #{$breadcrumb-border-radius};
9
+ --#{$prefix}breadcrumb-divider-color: #{$breadcrumb-divider-color};
10
+ --#{$prefix}breadcrumb-item-padding-x: #{$breadcrumb-item-padding-x};
11
+ --#{$prefix}breadcrumb-item-active-color: #{$breadcrumb-active-color};
12
+ // scss-docs-end breadcrumb-css-vars
13
+
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x);
17
+ margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom);
18
+ @include font-size(var(--#{$prefix}breadcrumb-font-size));
19
+ list-style: none;
20
+ background-color: var(--#{$prefix}breadcrumb-bg);
21
+ @include border-radius(var(--#{$prefix}breadcrumb-border-radius));
22
+ }
23
+
24
+ .breadcrumb-item {
25
+ // The separator between breadcrumbs (by default, a forward-slash: "/")
26
+ + .breadcrumb-item {
27
+ padding-left: var(--#{$prefix}breadcrumb-item-padding-x);
28
+
29
+ &::before {
30
+ float: left; // Suppress inline spacings and underlining of the separator
31
+ padding-right: var(--#{$prefix}breadcrumb-item-padding-x);
32
+ color: var(--#{$prefix}breadcrumb-divider-color);
33
+ content: var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
34
+ }
35
+ }
36
+
37
+ &.active {
38
+ color: var(--#{$prefix}breadcrumb-item-active-color);
39
+ }
40
+ }
@@ -0,0 +1,142 @@
1
+ // Make the div behave like a button
2
+ .btn-group,
3
+ .btn-group-vertical {
4
+ position: relative;
5
+ display: inline-flex;
6
+ vertical-align: middle; // match .btn alignment given font-size hack above
7
+
8
+ > .btn {
9
+ position: relative;
10
+ flex: 1 1 auto;
11
+ }
12
+
13
+ // Bring the hover, focused, and "active" buttons to the front to overlay
14
+ // the borders properly
15
+ > .btn-check:checked + .btn,
16
+ > .btn-check:focus + .btn,
17
+ > .btn:hover,
18
+ > .btn:focus,
19
+ > .btn:active,
20
+ > .btn.active {
21
+ z-index: 1;
22
+ }
23
+ }
24
+
25
+ // Optional: Group multiple button groups together for a toolbar
26
+ .btn-toolbar {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ justify-content: flex-start;
30
+
31
+ .input-group {
32
+ width: auto;
33
+ }
34
+ }
35
+
36
+ .btn-group {
37
+ @include border-radius($btn-border-radius);
38
+
39
+ // Prevent double borders when buttons are next to each other
40
+ > :not(.btn-check:first-child) + .btn,
41
+ > .btn-group:not(:first-child) {
42
+ margin-left: calc(#{$btn-border-width} * -1); // stylelint-disable-line function-disallowed-list
43
+ }
44
+
45
+ // Reset rounded corners
46
+ > .btn:not(:last-child):not(.dropdown-toggle),
47
+ > .btn.dropdown-toggle-split:first-child,
48
+ > .btn-group:not(:last-child) > .btn {
49
+ @include border-end-radius(0);
50
+ }
51
+
52
+ // The left radius should be 0 if the button is:
53
+ // - the "third or more" child
54
+ // - the second child and the previous element isn't `.btn-check` (making it the first child visually)
55
+ // - part of a btn-group which isn't the first child
56
+ > .btn:nth-child(n + 3),
57
+ > :not(.btn-check) + .btn,
58
+ > .btn-group:not(:first-child) > .btn {
59
+ @include border-start-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
+ .dropup &::after,
81
+ .dropend &::after {
82
+ margin-left: 0;
83
+ }
84
+
85
+ .dropstart &::before {
86
+ margin-right: 0;
87
+ }
88
+ }
89
+
90
+ .btn-sm + .dropdown-toggle-split {
91
+ padding-right: $btn-padding-x-sm * .75;
92
+ padding-left: $btn-padding-x-sm * .75;
93
+ }
94
+
95
+ .btn-lg + .dropdown-toggle-split {
96
+ padding-right: $btn-padding-x-lg * .75;
97
+ padding-left: $btn-padding-x-lg * .75;
98
+ }
99
+
100
+
101
+ // The clickable button for toggling the menu
102
+ // Set the same inset shadow as the :active state
103
+ .btn-group.show .dropdown-toggle {
104
+ @include box-shadow($btn-active-box-shadow);
105
+
106
+ // Show no shadow for `.btn-link` since it has no other button styles.
107
+ &.btn-link {
108
+ @include box-shadow(none);
109
+ }
110
+ }
111
+
112
+
113
+ //
114
+ // Vertical button groups
115
+ //
116
+
117
+ .btn-group-vertical {
118
+ flex-direction: column;
119
+ align-items: flex-start;
120
+ justify-content: center;
121
+
122
+ > .btn,
123
+ > .btn-group {
124
+ width: 100%;
125
+ }
126
+
127
+ > .btn:not(:first-child),
128
+ > .btn-group:not(:first-child) {
129
+ margin-top: calc(#{$btn-border-width} * -1); // stylelint-disable-line function-disallowed-list
130
+ }
131
+
132
+ // Reset rounded corners
133
+ > .btn:not(:last-child):not(.dropdown-toggle),
134
+ > .btn-group:not(:last-child) > .btn {
135
+ @include border-bottom-radius(0);
136
+ }
137
+
138
+ > .btn ~ .btn,
139
+ > .btn-group:not(:first-child) > .btn {
140
+ @include border-top-radius(0);
141
+ }
142
+ }