infotorg-api-jekyll-theme 0.1.0

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 (125) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +3 -0
  3. data/_config.yml +37 -0
  4. data/_includes/footer.html +11 -0
  5. data/_includes/head-app-css.html +2 -0
  6. data/_includes/head-fonts.html +2 -0
  7. data/_includes/head-google-analytics.html +13 -0
  8. data/_includes/navigation.html +58 -0
  9. data/_includes/services.html +75 -0
  10. data/_includes/title.html +4 -0
  11. data/_layouts/default.html +38 -0
  12. data/_layouts/services.html +5 -0
  13. data/_layouts/swagger-ui.html +67 -0
  14. data/_sass/_bootstrap.scss +51 -0
  15. data/_sass/_bootstrap_variables.scss +124 -0
  16. data/_sass/_typography.scss +15 -0
  17. data/_sass/_variables.scss +75 -0
  18. data/_sass/bootstrap/_accordion.scss +125 -0
  19. data/_sass/bootstrap/_alert.scss +57 -0
  20. data/_sass/bootstrap/_badge.scss +29 -0
  21. data/_sass/bootstrap/_breadcrumb.scss +28 -0
  22. data/_sass/bootstrap/_button-group.scss +139 -0
  23. data/_sass/bootstrap/_buttons.scss +109 -0
  24. data/_sass/bootstrap/_card.scss +215 -0
  25. data/_sass/bootstrap/_carousel.scss +223 -0
  26. data/_sass/bootstrap/_close.scss +40 -0
  27. data/_sass/bootstrap/_containers.scss +41 -0
  28. data/_sass/bootstrap/_dropdown.scss +235 -0
  29. data/_sass/bootstrap/_forms.scss +9 -0
  30. data/_sass/bootstrap/_functions.scss +205 -0
  31. data/_sass/bootstrap/_grid.scss +22 -0
  32. data/_sass/bootstrap/_helpers.scss +7 -0
  33. data/_sass/bootstrap/_images.scss +42 -0
  34. data/_sass/bootstrap/_list-group.scss +163 -0
  35. data/_sass/bootstrap/_mixins.scss +41 -0
  36. data/_sass/bootstrap/_modal.scss +235 -0
  37. data/_sass/bootstrap/_nav.scss +127 -0
  38. data/_sass/bootstrap/_navbar.scss +293 -0
  39. data/_sass/bootstrap/_pagination.scss +64 -0
  40. data/_sass/bootstrap/_popover.scss +173 -0
  41. data/_sass/bootstrap/_progress.scss +45 -0
  42. data/_sass/bootstrap/_reboot.scss +635 -0
  43. data/_sass/bootstrap/_root.scss +16 -0
  44. data/_sass/bootstrap/_spinners.scss +65 -0
  45. data/_sass/bootstrap/_tables.scss +150 -0
  46. data/_sass/bootstrap/_toasts.scss +50 -0
  47. data/_sass/bootstrap/_tooltip.scss +115 -0
  48. data/_sass/bootstrap/_transitions.scss +19 -0
  49. data/_sass/bootstrap/_type.scss +104 -0
  50. data/_sass/bootstrap/_utilities.scss +560 -0
  51. data/_sass/bootstrap/_variables.scss +1333 -0
  52. data/_sass/bootstrap/bootstrap-grid.scss +65 -0
  53. data/_sass/bootstrap/bootstrap-reboot.scss +15 -0
  54. data/_sass/bootstrap/bootstrap-utilities.scss +18 -0
  55. data/_sass/bootstrap/forms/_floating-labels.scss +61 -0
  56. data/_sass/bootstrap/forms/_form-check.scss +151 -0
  57. data/_sass/bootstrap/forms/_form-control.scss +223 -0
  58. data/_sass/bootstrap/forms/_form-range.scss +91 -0
  59. data/_sass/bootstrap/forms/_form-select.scss +68 -0
  60. data/_sass/bootstrap/forms/_form-text.scss +11 -0
  61. data/_sass/bootstrap/forms/_input-group.scss +121 -0
  62. data/_sass/bootstrap/forms/_labels.scss +36 -0
  63. data/_sass/bootstrap/forms/_validation.scss +12 -0
  64. data/_sass/bootstrap/helpers/_clearfix.scss +3 -0
  65. data/_sass/bootstrap/helpers/_colored-links.scss +12 -0
  66. data/_sass/bootstrap/helpers/_position.scss +30 -0
  67. data/_sass/bootstrap/helpers/_ratio.scss +26 -0
  68. data/_sass/bootstrap/helpers/_stretched-link.scss +15 -0
  69. data/_sass/bootstrap/helpers/_text-truncation.scss +7 -0
  70. data/_sass/bootstrap/helpers/_visually-hidden.scss +8 -0
  71. data/_sass/bootstrap/mixins/_alert.scss +9 -0
  72. data/_sass/bootstrap/mixins/_border-radius.scss +76 -0
  73. data/_sass/bootstrap/mixins/_box-shadow.scss +18 -0
  74. data/_sass/bootstrap/mixins/_breakpoints.scss +127 -0
  75. data/_sass/bootstrap/mixins/_buttons.scss +128 -0
  76. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  77. data/_sass/bootstrap/mixins/_clearfix.scss +9 -0
  78. data/_sass/bootstrap/mixins/_container.scss +9 -0
  79. data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
  80. data/_sass/bootstrap/mixins/_forms.scss +117 -0
  81. data/_sass/bootstrap/mixins/_gradients.scss +43 -0
  82. data/_sass/bootstrap/mixins/_grid.scss +120 -0
  83. data/_sass/bootstrap/mixins/_image.scss +16 -0
  84. data/_sass/bootstrap/mixins/_list-group.scss +22 -0
  85. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  86. data/_sass/bootstrap/mixins/_pagination.scss +29 -0
  87. data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
  88. data/_sass/bootstrap/mixins/_resize.scss +6 -0
  89. data/_sass/bootstrap/mixins/_table-variants.scss +21 -0
  90. data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
  91. data/_sass/bootstrap/mixins/_transition.scss +26 -0
  92. data/_sass/bootstrap/mixins/_utilities.scss +68 -0
  93. data/_sass/bootstrap/mixins/_visually-hidden.scss +28 -0
  94. data/_sass/bootstrap/utilities/_api.scss +47 -0
  95. data/_sass/bootstrap/vendor/_rfs.scss +312 -0
  96. data/assets/bootstrap.min.js +7 -0
  97. data/assets/bootstrap.min.js.map +1 -0
  98. data/assets/css/main.scss +214 -0
  99. data/assets/css/print.scss +8 -0
  100. data/assets/css/swagger-ui/3.x/theme-feeling-blue.css +1672 -0
  101. data/assets/css/swagger-ui/3.x/theme-flattop.css +1672 -0
  102. data/assets/css/swagger-ui/3.x/theme-material.css +1719 -0
  103. data/assets/css/swagger-ui/3.x/theme-monokai.css +1792 -0
  104. data/assets/css/swagger-ui/3.x/theme-muted.css +1673 -0
  105. data/assets/css/swagger-ui/3.x/theme-newspaper.css +1671 -0
  106. data/assets/css/swagger-ui/3.x/theme-outline.css +1652 -0
  107. data/assets/images/cube.svg +11 -0
  108. data/assets/images/icons/collapse.svg +14 -0
  109. data/assets/images/icons/info.svg +14 -0
  110. data/assets/images/icons/services/eiendom.svg +9 -0
  111. data/assets/images/icons/services/foretak.svg +10 -0
  112. data/assets/images/icons/services/kreditt.svg +11 -0
  113. data/assets/images/icons/services/likningopplysning.svg +11 -0
  114. data/assets/images/icons/services/person.svg +11 -0
  115. data/assets/images/icons/services/small-boats.svg +9 -0
  116. data/assets/images/icons/services/vehicle.svg +9 -0
  117. data/assets/images/infotorg-developer.png +0 -0
  118. data/assets/images/infotorg-developer.svg +23 -0
  119. data/assets/images/infotorg-developer@2x.png +0 -0
  120. data/assets/images/infotorg-developer@3x.png +0 -0
  121. data/assets/images/it-gears.svg +14 -0
  122. data/assets/images/logo.svg +12 -0
  123. data/assets/images/tieto-evry-logo.svg +29 -0
  124. data/assets/openapi/eiendom.json +6817 -0
  125. metadata +180 -0
@@ -0,0 +1,173 @@
1
+ .popover {
2
+ position: absolute;
3
+ top: 0;
4
+ left: 0 #{"/* rtl:ignore */"};
5
+ z-index: $zindex-popover;
6
+ display: block;
7
+ max-width: $popover-max-width;
8
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
9
+ // So reset our font and text properties to avoid inheriting weird values.
10
+ @include reset-text();
11
+ @include font-size($popover-font-size);
12
+ // Allow breaking very long words so they don't overflow the popover's bounds
13
+ word-wrap: break-word;
14
+ background-color: $popover-bg;
15
+ background-clip: padding-box;
16
+ border: $popover-border-width solid $popover-border-color;
17
+ @include border-radius($popover-border-radius);
18
+ @include box-shadow($popover-box-shadow);
19
+
20
+ .popover-arrow {
21
+ position: absolute;
22
+ display: block;
23
+ width: $popover-arrow-width;
24
+ height: $popover-arrow-height;
25
+ margin: 0 $popover-border-radius;
26
+
27
+ &::before,
28
+ &::after {
29
+ position: absolute;
30
+ display: block;
31
+ content: "";
32
+ border-color: transparent;
33
+ border-style: solid;
34
+ }
35
+ }
36
+ }
37
+
38
+ .bs-popover-top {
39
+ // Overrule margin set by popper.js
40
+ margin-bottom: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
41
+
42
+ > .popover-arrow {
43
+ bottom: subtract(-$popover-arrow-height, $popover-border-width);
44
+
45
+ &::before {
46
+ bottom: 0;
47
+ border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
48
+ border-top-color: $popover-arrow-outer-color;
49
+ }
50
+
51
+ &::after {
52
+ bottom: $popover-border-width;
53
+ border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
54
+ border-top-color: $popover-arrow-color;
55
+ }
56
+ }
57
+ }
58
+
59
+ .bs-popover-end {
60
+ // Overrule margin set by popper.js
61
+ margin-left: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
62
+
63
+ > .popover-arrow {
64
+ left: subtract(-$popover-arrow-height, $popover-border-width);
65
+ width: $popover-arrow-height;
66
+ height: $popover-arrow-width;
67
+ margin: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners
68
+
69
+ &::before {
70
+ left: 0;
71
+ border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
72
+ border-right-color: $popover-arrow-outer-color;
73
+ }
74
+
75
+ &::after {
76
+ left: $popover-border-width;
77
+ border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
78
+ border-right-color: $popover-arrow-color;
79
+ }
80
+ }
81
+ }
82
+
83
+ .bs-popover-bottom {
84
+ // Overrule margin set by popper.js
85
+ margin-top: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
86
+
87
+ > .popover-arrow {
88
+ top: subtract(-$popover-arrow-height, $popover-border-width);
89
+
90
+ &::before {
91
+ top: 0;
92
+ border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
93
+ border-bottom-color: $popover-arrow-outer-color;
94
+ }
95
+
96
+ &::after {
97
+ top: $popover-border-width;
98
+ border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
99
+ border-bottom-color: $popover-arrow-color;
100
+ }
101
+ }
102
+
103
+ // This will remove the popover-header's border just below the arrow
104
+ .popover-header::before {
105
+ position: absolute;
106
+ top: 0;
107
+ left: 50%;
108
+ display: block;
109
+ width: $popover-arrow-width;
110
+ margin-left: -$popover-arrow-width / 2;
111
+ content: "";
112
+ border-bottom: $popover-border-width solid $popover-header-bg;
113
+ }
114
+ }
115
+
116
+ .bs-popover-start {
117
+ // Overrule margin set by popper.js
118
+ margin-right: $popover-arrow-height !important; // stylelint-disable-line declaration-no-important
119
+
120
+ > .popover-arrow {
121
+ right: subtract(-$popover-arrow-height, $popover-border-width);
122
+ width: $popover-arrow-height;
123
+ height: $popover-arrow-width;
124
+ margin: $popover-border-radius 0; // make sure the arrow does not touch the popover's rounded corners
125
+
126
+ &::before {
127
+ right: 0;
128
+ border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
129
+ border-left-color: $popover-arrow-outer-color;
130
+ }
131
+
132
+ &::after {
133
+ right: $popover-border-width;
134
+ border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
135
+ border-left-color: $popover-arrow-color;
136
+ }
137
+ }
138
+ }
139
+
140
+ .bs-popover-auto {
141
+ &[data-popper-placement^="top"] {
142
+ @extend .bs-popover-top;
143
+ }
144
+ &[data-popper-placement^="right"] {
145
+ @extend .bs-popover-end;
146
+ }
147
+ &[data-popper-placement^="bottom"] {
148
+ @extend .bs-popover-bottom;
149
+ }
150
+ &[data-popper-placement^="left"] {
151
+ @extend .bs-popover-start;
152
+ }
153
+ }
154
+
155
+ // Offset the popover to account for the popover arrow
156
+ .popover-header {
157
+ padding: $popover-header-padding-y $popover-header-padding-x;
158
+ margin-bottom: 0; // Reset the default from Reboot
159
+ @include font-size($font-size-base);
160
+ color: $popover-header-color;
161
+ background-color: $popover-header-bg;
162
+ border-bottom: $popover-border-width solid shade-color($popover-header-bg, 10%);
163
+ @include border-top-radius($popover-inner-border-radius);
164
+
165
+ &:empty {
166
+ display: none;
167
+ }
168
+ }
169
+
170
+ .popover-body {
171
+ padding: $popover-body-padding-y $popover-body-padding-x;
172
+ color: $popover-body-color;
173
+ }
@@ -0,0 +1,45 @@
1
+ // Disable animation if transitions are disabled
2
+ @if $enable-transitions {
3
+ @keyframes progress-bar-stripes {
4
+ 0% { background-position-x: $progress-height; }
5
+ }
6
+ }
7
+
8
+ .progress {
9
+ display: flex;
10
+ height: $progress-height;
11
+ overflow: hidden; // force rounded corners by cropping it
12
+ @include font-size($progress-font-size);
13
+ background-color: $progress-bg;
14
+ @include border-radius($progress-border-radius);
15
+ @include box-shadow($progress-box-shadow);
16
+ }
17
+
18
+ .progress-bar {
19
+ display: flex;
20
+ flex-direction: column;
21
+ justify-content: center;
22
+ overflow: hidden;
23
+ color: $progress-bar-color;
24
+ text-align: center;
25
+ white-space: nowrap;
26
+ background-color: $progress-bar-bg;
27
+ @include transition($progress-bar-transition);
28
+ }
29
+
30
+ .progress-bar-striped {
31
+ @include gradient-striped();
32
+ background-size: $progress-height $progress-height;
33
+ }
34
+
35
+ @if $enable-transitions {
36
+ .progress-bar-animated {
37
+ animation: $progress-bar-animation-timing progress-bar-stripes;
38
+
39
+ @if $enable-reduced-motion {
40
+ @media (prefers-reduced-motion: reduce) {
41
+ animation: none;
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,635 @@
1
+ // stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
2
+
3
+
4
+ // Reboot
5
+ //
6
+ // Normalization of HTML elements, manually forked from Normalize.css to remove
7
+ // styles targeting irrelevant browsers while applying new styles.
8
+ //
9
+ // Normalize is licensed MIT. https://github.com/necolas/normalize.css
10
+
11
+
12
+ // Document
13
+ //
14
+ // Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
15
+
16
+ *,
17
+ *::before,
18
+ *::after {
19
+ box-sizing: border-box;
20
+ }
21
+
22
+
23
+ // Root
24
+ //
25
+ // Ability to the value of the root font sizes, affecting the value of `rem`.
26
+ // null by default, thus nothing is generated.
27
+
28
+ :root {
29
+ font-size: $font-size-root;
30
+
31
+ @if $enable-smooth-scroll {
32
+ @media (prefers-reduced-motion: no-preference) {
33
+ scroll-behavior: smooth;
34
+ }
35
+ }
36
+ }
37
+
38
+
39
+ // Body
40
+ //
41
+ // 1. Remove the margin in all browsers.
42
+ // 2. As a best practice, apply a default `background-color`.
43
+ // 3. Prevent adjustments of font size after orientation changes in iOS.
44
+ // 4. Change the default tap highlight to be completely transparent in iOS.
45
+
46
+ body {
47
+ margin: 0; // 1
48
+ font-family: $font-family-base;
49
+ @include font-size($font-size-base);
50
+ font-weight: $font-weight-base;
51
+ line-height: $line-height-base;
52
+ color: $body-color;
53
+ text-align: $body-text-align;
54
+ background-color: $body-bg; // 2
55
+ -webkit-text-size-adjust: 100%; // 3
56
+ -webkit-tap-highlight-color: rgba($black, 0); // 4
57
+ }
58
+
59
+
60
+ // Future-proof rule: in browsers that support :focus-visible, suppress the focus outline
61
+ // on elements that programmatically receive focus but wouldn't normally show a visible
62
+ // focus outline. In general, this would mean that the outline is only applied if the
63
+ // interaction that led to the element receiving programmatic focus was a keyboard interaction,
64
+ // or the browser has somehow determined that the user is primarily a keyboard user and/or
65
+ // wants focus outlines to always be presented.
66
+ // See https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible
67
+ // and https://developer.paciellogroup.com/blog/2018/03/focus-visible-and-backwards-compatibility/
68
+
69
+ [tabindex="-1"]:focus:not(:focus-visible) {
70
+ outline: 0 !important;
71
+ }
72
+
73
+
74
+ // Content grouping
75
+ //
76
+ // 1. Reset Firefox's gray color
77
+ // 2. Set correct height and prevent the `size` attribute to make the `hr` look like an input field
78
+
79
+ hr {
80
+ margin: $hr-margin-y 0;
81
+ color: $hr-color; // 1
82
+ background-color: currentColor;
83
+ border: 0;
84
+ opacity: $hr-opacity;
85
+ }
86
+
87
+ hr:not([size]) {
88
+ height: $hr-height; // 2
89
+ }
90
+
91
+
92
+ // Typography
93
+ //
94
+ // 1. Remove top margins from headings
95
+ // By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
96
+ // margin for easier control within type scales as it avoids margin collapsing.
97
+
98
+ %heading {
99
+ margin-top: 0; // 1
100
+ margin-bottom: $headings-margin-bottom;
101
+ font-family: $headings-font-family;
102
+ font-style: $headings-font-style;
103
+ font-weight: $headings-font-weight;
104
+ line-height: $headings-line-height;
105
+ color: $headings-color;
106
+ }
107
+
108
+ h1 {
109
+ @extend %heading;
110
+ @include font-size($h1-font-size);
111
+ }
112
+
113
+ h2 {
114
+ @extend %heading;
115
+ @include font-size($h2-font-size);
116
+ }
117
+
118
+ h3 {
119
+ @extend %heading;
120
+ @include font-size($h3-font-size);
121
+ }
122
+
123
+ h4 {
124
+ @extend %heading;
125
+ @include font-size($h4-font-size);
126
+ }
127
+
128
+ h5 {
129
+ @extend %heading;
130
+ @include font-size($h5-font-size);
131
+ }
132
+
133
+ h6 {
134
+ @extend %heading;
135
+ @include font-size($h6-font-size);
136
+ }
137
+
138
+
139
+ // Reset margins on paragraphs
140
+ //
141
+ // Similarly, the top margin on `<p>`s get reset. However, we also reset the
142
+ // bottom margin to use `rem` units instead of `em`.
143
+
144
+ p {
145
+ margin-top: 0;
146
+ margin-bottom: $paragraph-margin-bottom;
147
+ }
148
+
149
+
150
+ // Abbreviations
151
+ //
152
+ // 1. Duplicate behavior to the data-bs-* attribute for our tooltip plugin
153
+ // 2. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
154
+ // 3. Add explicit cursor to indicate changed behavior.
155
+ // 4. Prevent the text-decoration to be skipped.
156
+
157
+ abbr[title],
158
+ abbr[data-bs-original-title] { // 1
159
+ text-decoration: underline; // 2
160
+ text-decoration: underline dotted; // 2
161
+ cursor: help; // 3
162
+ text-decoration-skip-ink: none; // 4
163
+ }
164
+
165
+
166
+ // Address
167
+
168
+ address {
169
+ margin-bottom: 1rem;
170
+ font-style: normal;
171
+ line-height: inherit;
172
+ }
173
+
174
+
175
+ // Lists
176
+
177
+ ol,
178
+ ul {
179
+ padding-left: 2rem;
180
+ }
181
+
182
+ ol,
183
+ ul,
184
+ dl {
185
+ margin-top: 0;
186
+ margin-bottom: 1rem;
187
+ }
188
+
189
+ ol ol,
190
+ ul ul,
191
+ ol ul,
192
+ ul ol {
193
+ margin-bottom: 0;
194
+ }
195
+
196
+ dt {
197
+ font-weight: $dt-font-weight;
198
+ }
199
+
200
+ // 1. Undo browser default
201
+
202
+ dd {
203
+ margin-bottom: .5rem;
204
+ margin-left: 0; // 1
205
+ }
206
+
207
+
208
+ // Blockquote
209
+
210
+ blockquote {
211
+ margin: 0 0 1rem;
212
+ }
213
+
214
+
215
+ // Strong
216
+ //
217
+ // Add the correct font weight in Chrome, Edge, and Safari
218
+
219
+ b,
220
+ strong {
221
+ font-weight: $font-weight-bolder;
222
+ }
223
+
224
+
225
+ // Small
226
+ //
227
+ // Add the correct font size in all browsers
228
+
229
+ small {
230
+ @include font-size($small-font-size);
231
+ }
232
+
233
+
234
+ // Mark
235
+
236
+ mark {
237
+ padding: $mark-padding;
238
+ background-color: $mark-bg;
239
+ }
240
+
241
+
242
+ // Sub and Sup
243
+ //
244
+ // Prevent `sub` and `sup` elements from affecting the line height in
245
+ // all browsers.
246
+
247
+ sub,
248
+ sup {
249
+ position: relative;
250
+ @include font-size($sub-sup-font-size);
251
+ line-height: 0;
252
+ vertical-align: baseline;
253
+ }
254
+
255
+ sub { bottom: -.25em; }
256
+ sup { top: -.5em; }
257
+
258
+
259
+ // Links
260
+
261
+ a {
262
+ color: $link-color;
263
+ text-decoration: $link-decoration;
264
+
265
+ &:hover {
266
+ color: $link-hover-color;
267
+ text-decoration: $link-hover-decoration;
268
+ }
269
+ }
270
+
271
+ // And undo these styles for placeholder links/named anchors (without href).
272
+ // It would be more straightforward to just use a[href] in previous block, but that
273
+ // causes specificity issues in many other styles that are too complex to fix.
274
+ // See https://github.com/twbs/bootstrap/issues/19402
275
+
276
+ a:not([href]):not([class]) {
277
+ &,
278
+ &:hover {
279
+ color: inherit;
280
+ text-decoration: none;
281
+ }
282
+ }
283
+
284
+
285
+ // Code
286
+
287
+ pre,
288
+ code,
289
+ kbd,
290
+ samp {
291
+ font-family: $font-family-code;
292
+ @include font-size(1em); // Correct the odd `em` font sizing in all browsers.
293
+ direction: ltr #{"/* rtl:ignore */"};
294
+ unicode-bidi: bidi-override;
295
+ }
296
+
297
+ // 1. Remove browser default top margin
298
+ // 2. Reset browser default of `1em` to use `rem`s
299
+ // 3. Don't allow content to break outside
300
+
301
+ pre {
302
+ display: block;
303
+ margin-top: 0; // 1
304
+ margin-bottom: 1rem; // 2
305
+ overflow: auto; // 3
306
+ @include font-size($code-font-size);
307
+ color: $pre-color;
308
+
309
+ // Account for some code outputs that place code tags in pre tags
310
+ code {
311
+ @include font-size(inherit);
312
+ color: inherit;
313
+ word-break: normal;
314
+ }
315
+ }
316
+
317
+ code {
318
+ @include font-size($code-font-size);
319
+ color: $code-color;
320
+ word-wrap: break-word;
321
+
322
+ // Streamline the style when inside anchors to avoid broken underline and more
323
+ a > & {
324
+ color: inherit;
325
+ }
326
+ }
327
+
328
+ kbd {
329
+ padding: $kbd-padding-y $kbd-padding-x;
330
+ @include font-size($kbd-font-size);
331
+ color: $kbd-color;
332
+ background-color: $kbd-bg;
333
+ @include border-radius($border-radius-sm);
334
+
335
+ kbd {
336
+ padding: 0;
337
+ @include font-size(1em);
338
+ font-weight: $nested-kbd-font-weight;
339
+ }
340
+ }
341
+
342
+
343
+ // Figures
344
+ //
345
+ // Apply a consistent margin strategy (matches our type styles).
346
+
347
+ figure {
348
+ margin: 0 0 1rem;
349
+ }
350
+
351
+
352
+ // Images and content
353
+
354
+ img,
355
+ svg {
356
+ vertical-align: middle;
357
+ }
358
+
359
+
360
+ // Tables
361
+ //
362
+ // Prevent double borders
363
+
364
+ table {
365
+ caption-side: bottom;
366
+ border-collapse: collapse;
367
+ }
368
+
369
+ caption {
370
+ padding-top: $table-cell-padding-y;
371
+ padding-bottom: $table-cell-padding-y;
372
+ color: $table-caption-color;
373
+ text-align: left;
374
+ }
375
+
376
+ // 1. Removes font-weight bold by inheriting
377
+ // 2. Matches default `<td>` alignment by inheriting `text-align`.
378
+ // 3. Fix alignment for Safari
379
+
380
+ th {
381
+ font-weight: $table-th-font-weight; // 1
382
+ text-align: inherit; // 2
383
+ text-align: -webkit-match-parent; // 3
384
+ }
385
+
386
+ thead,
387
+ tbody,
388
+ tfoot,
389
+ tr,
390
+ td,
391
+ th {
392
+ border-color: inherit;
393
+ border-style: solid;
394
+ border-width: 0;
395
+ }
396
+
397
+
398
+ // Forms
399
+ //
400
+ // 1. Allow labels to use `margin` for spacing.
401
+
402
+ label {
403
+ display: inline-block; // 1
404
+ }
405
+
406
+ // Remove the default `border-radius` that macOS Chrome adds.
407
+ // See https://github.com/twbs/bootstrap/issues/24093
408
+
409
+ button {
410
+ // stylelint-disable-next-line property-disallowed-list
411
+ border-radius: 0;
412
+ }
413
+
414
+ // Work around a Firefox bug where the transparent `button` background
415
+ // results in a loss of the default `button` focus styles.
416
+ // Credit https://github.com/suitcss/base/
417
+
418
+ button:focus {
419
+ outline: dotted 1px;
420
+ outline: -webkit-focus-ring-color auto 5px;
421
+ }
422
+
423
+ // 1. Remove the margin in Firefox and Safari
424
+
425
+ input,
426
+ button,
427
+ select,
428
+ optgroup,
429
+ textarea {
430
+ margin: 0; // 1
431
+ font-family: inherit;
432
+ @include font-size(inherit);
433
+ line-height: inherit;
434
+ }
435
+
436
+ // Remove the inheritance of text transform in Firefox
437
+
438
+ button,
439
+ select {
440
+ text-transform: none;
441
+ }
442
+
443
+ // Set the cursor for non-`<button>` buttons
444
+ //
445
+ // Details at https://github.com/twbs/bootstrap/pull/30562
446
+ [role="button"] {
447
+ cursor: pointer;
448
+ }
449
+
450
+ // Remove the inheritance of word-wrap in Safari.
451
+ // See https://github.com/twbs/bootstrap/issues/24990
452
+
453
+ select {
454
+ word-wrap: normal;
455
+ }
456
+
457
+ // Remove the dropdown arrow in Chrome from inputs built with datalists.
458
+ // See https://stackoverflow.com/a/54997118
459
+
460
+ [list]::-webkit-calendar-picker-indicator {
461
+ display: none;
462
+ }
463
+
464
+ // 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
465
+ // controls in Android 4.
466
+ // 2. Correct the inability to style clickable types in iOS and Safari.
467
+ // 3. Opinionated: add "hand" cursor to non-disabled button elements.
468
+
469
+ button,
470
+ [type="button"], // 1
471
+ [type="reset"],
472
+ [type="submit"] {
473
+ -webkit-appearance: button; // 2
474
+
475
+ @if $enable-button-pointers {
476
+ &:not(:disabled) {
477
+ cursor: pointer; // 3
478
+ }
479
+ }
480
+ }
481
+
482
+ // Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
483
+
484
+ ::-moz-focus-inner {
485
+ padding: 0;
486
+ border-style: none;
487
+ }
488
+
489
+ // 1. Textareas should really only resize vertically so they don't break their (horizontal) containers.
490
+
491
+ textarea {
492
+ resize: vertical; // 1
493
+ }
494
+
495
+ // 1. Browsers set a default `min-width: min-content;` on fieldsets,
496
+ // unlike e.g. `<div>`s, which have `min-width: 0;` by default.
497
+ // So we reset that to ensure fieldsets behave more like a standard block element.
498
+ // See https://github.com/twbs/bootstrap/issues/12359
499
+ // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements
500
+ // 2. Reset the default outline behavior of fieldsets so they don't affect page layout.
501
+
502
+ fieldset {
503
+ min-width: 0; // 1
504
+ padding: 0; // 2
505
+ margin: 0; // 2
506
+ border: 0; // 2
507
+ }
508
+
509
+ // 1. By using `float: left`, the legend will behave like a block element.
510
+ // This way the border of a fieldset wraps around the legend if present.
511
+ // 2. Fix wrapping bug.
512
+ // See https://github.com/twbs/bootstrap/issues/29712
513
+
514
+ legend {
515
+ float: left; // 1
516
+ width: 100%;
517
+ padding: 0;
518
+ margin-bottom: $legend-margin-bottom;
519
+ @include font-size($legend-font-size);
520
+ font-weight: $legend-font-weight;
521
+ line-height: inherit;
522
+
523
+ + * {
524
+ clear: left; // 2
525
+ }
526
+ }
527
+
528
+ // Fix height of inputs with a type of datetime-local, date, month, week, or time
529
+ // See https://github.com/twbs/bootstrap/issues/18842
530
+
531
+ ::-webkit-datetime-edit-fields-wrapper,
532
+ ::-webkit-datetime-edit-text,
533
+ ::-webkit-datetime-edit-minute,
534
+ ::-webkit-datetime-edit-hour-field,
535
+ ::-webkit-datetime-edit-day-field,
536
+ ::-webkit-datetime-edit-month-field,
537
+ ::-webkit-datetime-edit-year-field {
538
+ padding: 0;
539
+ }
540
+
541
+ ::-webkit-inner-spin-button {
542
+ height: auto;
543
+ }
544
+
545
+ // 1. Correct the outline style in Safari.
546
+ // 2. This overrides the extra rounded corners on search inputs in iOS so that our
547
+ // `.form-control` class can properly style them. Note that this cannot simply
548
+ // be added to `.form-control` as it's not specific enough. For details, see
549
+ // https://github.com/twbs/bootstrap/issues/11586.
550
+
551
+ [type="search"] {
552
+ outline-offset: -2px; // 1
553
+ -webkit-appearance: textfield; // 2
554
+ }
555
+
556
+ // 1. A few input types should stay LTR
557
+ // See https://rtlstyling.com/posts/rtl-styling#form-inputs
558
+ // 2. RTL only output
559
+ // See https://rtlcss.com/learn/usage-guide/control-directives/#raw
560
+
561
+ /* rtl:raw:
562
+ [type="tel"],
563
+ [type="url"],
564
+ [type="email"],
565
+ [type="number"] {
566
+ direction: ltr;
567
+ }
568
+ */
569
+
570
+ // Remove the inner padding in Chrome and Safari on macOS.
571
+
572
+ ::-webkit-search-decoration {
573
+ -webkit-appearance: none;
574
+ }
575
+
576
+ // Remove padding around color pickers in webkit browsers
577
+
578
+ ::-webkit-color-swatch-wrapper {
579
+ padding: 0;
580
+ }
581
+
582
+
583
+ // Inherit font family and line height for file input buttons
584
+
585
+ // stylelint-disable-next-line selector-pseudo-element-no-unknown
586
+ ::file-selector-button {
587
+ font: inherit;
588
+ }
589
+
590
+ // 1. Change font properties to `inherit`
591
+ // 2. Correct the inability to style clickable types in iOS and Safari.
592
+
593
+ ::-webkit-file-upload-button {
594
+ font: inherit; // 1
595
+ -webkit-appearance: button; // 2
596
+ }
597
+
598
+ // Correct element displays
599
+
600
+ output {
601
+ display: inline-block;
602
+ }
603
+
604
+ // Remove border from iframe
605
+
606
+ iframe {
607
+ border: 0;
608
+ }
609
+
610
+ // Summary
611
+ //
612
+ // 1. Add the correct display in all browsers
613
+
614
+ summary {
615
+ display: list-item; // 1
616
+ cursor: pointer;
617
+ }
618
+
619
+
620
+ // Progress
621
+ //
622
+ // Add the correct vertical alignment in Chrome, Firefox, and Opera.
623
+
624
+ progress {
625
+ vertical-align: baseline;
626
+ }
627
+
628
+
629
+ // Hidden attribute
630
+ //
631
+ // Always hide an element with the `hidden` HTML attribute.
632
+
633
+ [hidden] {
634
+ display: none !important;
635
+ }