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.
- checksums.yaml +7 -0
- data/README.md +3 -0
- data/_config.yml +37 -0
- data/_includes/footer.html +11 -0
- data/_includes/head-app-css.html +2 -0
- data/_includes/head-fonts.html +2 -0
- data/_includes/head-google-analytics.html +13 -0
- data/_includes/navigation.html +58 -0
- data/_includes/services.html +75 -0
- data/_includes/title.html +4 -0
- data/_layouts/default.html +38 -0
- data/_layouts/services.html +5 -0
- data/_layouts/swagger-ui.html +67 -0
- data/_sass/_bootstrap.scss +51 -0
- data/_sass/_bootstrap_variables.scss +124 -0
- data/_sass/_typography.scss +15 -0
- data/_sass/_variables.scss +75 -0
- data/_sass/bootstrap/_accordion.scss +125 -0
- data/_sass/bootstrap/_alert.scss +57 -0
- data/_sass/bootstrap/_badge.scss +29 -0
- data/_sass/bootstrap/_breadcrumb.scss +28 -0
- data/_sass/bootstrap/_button-group.scss +139 -0
- data/_sass/bootstrap/_buttons.scss +109 -0
- data/_sass/bootstrap/_card.scss +215 -0
- data/_sass/bootstrap/_carousel.scss +223 -0
- data/_sass/bootstrap/_close.scss +40 -0
- data/_sass/bootstrap/_containers.scss +41 -0
- data/_sass/bootstrap/_dropdown.scss +235 -0
- data/_sass/bootstrap/_forms.scss +9 -0
- data/_sass/bootstrap/_functions.scss +205 -0
- data/_sass/bootstrap/_grid.scss +22 -0
- data/_sass/bootstrap/_helpers.scss +7 -0
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_list-group.scss +163 -0
- data/_sass/bootstrap/_mixins.scss +41 -0
- data/_sass/bootstrap/_modal.scss +235 -0
- data/_sass/bootstrap/_nav.scss +127 -0
- data/_sass/bootstrap/_navbar.scss +293 -0
- data/_sass/bootstrap/_pagination.scss +64 -0
- data/_sass/bootstrap/_popover.scss +173 -0
- data/_sass/bootstrap/_progress.scss +45 -0
- data/_sass/bootstrap/_reboot.scss +635 -0
- data/_sass/bootstrap/_root.scss +16 -0
- data/_sass/bootstrap/_spinners.scss +65 -0
- data/_sass/bootstrap/_tables.scss +150 -0
- data/_sass/bootstrap/_toasts.scss +50 -0
- data/_sass/bootstrap/_tooltip.scss +115 -0
- data/_sass/bootstrap/_transitions.scss +19 -0
- data/_sass/bootstrap/_type.scss +104 -0
- data/_sass/bootstrap/_utilities.scss +560 -0
- data/_sass/bootstrap/_variables.scss +1333 -0
- data/_sass/bootstrap/bootstrap-grid.scss +65 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +15 -0
- data/_sass/bootstrap/bootstrap-utilities.scss +18 -0
- data/_sass/bootstrap/forms/_floating-labels.scss +61 -0
- data/_sass/bootstrap/forms/_form-check.scss +151 -0
- data/_sass/bootstrap/forms/_form-control.scss +223 -0
- data/_sass/bootstrap/forms/_form-range.scss +91 -0
- data/_sass/bootstrap/forms/_form-select.scss +68 -0
- data/_sass/bootstrap/forms/_form-text.scss +11 -0
- data/_sass/bootstrap/forms/_input-group.scss +121 -0
- data/_sass/bootstrap/forms/_labels.scss +36 -0
- data/_sass/bootstrap/forms/_validation.scss +12 -0
- data/_sass/bootstrap/helpers/_clearfix.scss +3 -0
- data/_sass/bootstrap/helpers/_colored-links.scss +12 -0
- data/_sass/bootstrap/helpers/_position.scss +30 -0
- data/_sass/bootstrap/helpers/_ratio.scss +26 -0
- data/_sass/bootstrap/helpers/_stretched-link.scss +15 -0
- data/_sass/bootstrap/helpers/_text-truncation.scss +7 -0
- data/_sass/bootstrap/helpers/_visually-hidden.scss +8 -0
- data/_sass/bootstrap/mixins/_alert.scss +9 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +76 -0
- data/_sass/bootstrap/mixins/_box-shadow.scss +18 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +127 -0
- data/_sass/bootstrap/mixins/_buttons.scss +128 -0
- data/_sass/bootstrap/mixins/_caret.scss +62 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +9 -0
- data/_sass/bootstrap/mixins/_container.scss +9 -0
- data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/mixins/_forms.scss +117 -0
- data/_sass/bootstrap/mixins/_gradients.scss +43 -0
- data/_sass/bootstrap/mixins/_grid.scss +120 -0
- data/_sass/bootstrap/mixins/_image.scss +16 -0
- data/_sass/bootstrap/mixins/_list-group.scss +22 -0
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_pagination.scss +29 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_table-variants.scss +21 -0
- data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/mixins/_transition.scss +26 -0
- data/_sass/bootstrap/mixins/_utilities.scss +68 -0
- data/_sass/bootstrap/mixins/_visually-hidden.scss +28 -0
- data/_sass/bootstrap/utilities/_api.scss +47 -0
- data/_sass/bootstrap/vendor/_rfs.scss +312 -0
- data/assets/bootstrap.min.js +7 -0
- data/assets/bootstrap.min.js.map +1 -0
- data/assets/css/main.scss +214 -0
- data/assets/css/print.scss +8 -0
- data/assets/css/swagger-ui/3.x/theme-feeling-blue.css +1672 -0
- data/assets/css/swagger-ui/3.x/theme-flattop.css +1672 -0
- data/assets/css/swagger-ui/3.x/theme-material.css +1719 -0
- data/assets/css/swagger-ui/3.x/theme-monokai.css +1792 -0
- data/assets/css/swagger-ui/3.x/theme-muted.css +1673 -0
- data/assets/css/swagger-ui/3.x/theme-newspaper.css +1671 -0
- data/assets/css/swagger-ui/3.x/theme-outline.css +1652 -0
- data/assets/images/cube.svg +11 -0
- data/assets/images/icons/collapse.svg +14 -0
- data/assets/images/icons/info.svg +14 -0
- data/assets/images/icons/services/eiendom.svg +9 -0
- data/assets/images/icons/services/foretak.svg +10 -0
- data/assets/images/icons/services/kreditt.svg +11 -0
- data/assets/images/icons/services/likningopplysning.svg +11 -0
- data/assets/images/icons/services/person.svg +11 -0
- data/assets/images/icons/services/small-boats.svg +9 -0
- data/assets/images/icons/services/vehicle.svg +9 -0
- data/assets/images/infotorg-developer.png +0 -0
- data/assets/images/infotorg-developer.svg +23 -0
- data/assets/images/infotorg-developer@2x.png +0 -0
- data/assets/images/infotorg-developer@3x.png +0 -0
- data/assets/images/it-gears.svg +14 -0
- data/assets/images/logo.svg +12 -0
- data/assets/images/tieto-evry-logo.svg +29 -0
- data/assets/openapi/eiendom.json +6817 -0
- metadata +180 -0
@@ -0,0 +1,65 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Grid v5.0.0-beta1 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2020 The Bootstrap Authors
|
4
|
+
* Copyright 2011-2020 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
6
|
+
*/
|
7
|
+
|
8
|
+
$include-column-box-sizing: true !default;
|
9
|
+
|
10
|
+
@import "functions";
|
11
|
+
@import "variables";
|
12
|
+
|
13
|
+
@import "mixins/lists";
|
14
|
+
@import "mixins/breakpoints";
|
15
|
+
@import "mixins/container";
|
16
|
+
@import "mixins/grid";
|
17
|
+
@import "mixins/utilities";
|
18
|
+
|
19
|
+
@import "vendor/rfs";
|
20
|
+
|
21
|
+
@import "containers";
|
22
|
+
@import "grid";
|
23
|
+
|
24
|
+
@import "utilities";
|
25
|
+
// Only use the utilities we need
|
26
|
+
// stylelint-disable-next-line scss/dollar-variable-default
|
27
|
+
$utilities: map-get-multiple(
|
28
|
+
$utilities,
|
29
|
+
(
|
30
|
+
"display",
|
31
|
+
"order",
|
32
|
+
"flex",
|
33
|
+
"flex-direction",
|
34
|
+
"flex-grow",
|
35
|
+
"flex-shrink",
|
36
|
+
"flex-wrap",
|
37
|
+
"justify-content",
|
38
|
+
"align-items",
|
39
|
+
"align-content",
|
40
|
+
"align-self",
|
41
|
+
"margin",
|
42
|
+
"margin-x",
|
43
|
+
"margin-y",
|
44
|
+
"margin-top",
|
45
|
+
"margin-end",
|
46
|
+
"margin-bottom",
|
47
|
+
"margin-start",
|
48
|
+
"negative-margin",
|
49
|
+
"negative-margin-x",
|
50
|
+
"negative-margin-y",
|
51
|
+
"negative-margin-top",
|
52
|
+
"negative-margin-end",
|
53
|
+
"negative-margin-bottom",
|
54
|
+
"negative-margin-start",
|
55
|
+
"padding",
|
56
|
+
"padding-x",
|
57
|
+
"padding-y",
|
58
|
+
"padding-top",
|
59
|
+
"padding-end",
|
60
|
+
"padding-bottom",
|
61
|
+
"padding-start",
|
62
|
+
)
|
63
|
+
);
|
64
|
+
|
65
|
+
@import "utilities/api";
|
@@ -0,0 +1,15 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Reboot v5.0.0-beta1 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2020 The Bootstrap Authors
|
4
|
+
* Copyright 2011-2020 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/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
|
+
// Prevent the usage of custom properties since we don't add them to `:root` in reboot
|
12
|
+
$font-family-base: $font-family-sans-serif; // stylelint-disable-line scss/dollar-variable-default
|
13
|
+
$font-family-code: $font-family-monospace; // stylelint-disable-line scss/dollar-variable-default
|
14
|
+
@import "mixins";
|
15
|
+
@import "reboot";
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap Utilities v5.0.0-beta1 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2020 The Bootstrap Authors
|
4
|
+
* Copyright 2011-2020 Twitter, Inc.
|
5
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
6
|
+
*/
|
7
|
+
|
8
|
+
// Configuration
|
9
|
+
|
10
|
+
@import "functions";
|
11
|
+
@import "variables";
|
12
|
+
@import "mixins";
|
13
|
+
@import "utilities";
|
14
|
+
|
15
|
+
|
16
|
+
// Utilities
|
17
|
+
|
18
|
+
@import "utilities/api";
|
@@ -0,0 +1,61 @@
|
|
1
|
+
.form-floating {
|
2
|
+
position: relative;
|
3
|
+
|
4
|
+
> .form-control,
|
5
|
+
> .form-select {
|
6
|
+
height: $form-floating-height;
|
7
|
+
padding: $form-floating-padding-y $form-floating-padding-x;
|
8
|
+
}
|
9
|
+
|
10
|
+
> label {
|
11
|
+
position: absolute;
|
12
|
+
top: 0;
|
13
|
+
left: 0;
|
14
|
+
height: 100%; // allow textareas
|
15
|
+
padding: $form-floating-padding-y $form-floating-padding-x;
|
16
|
+
pointer-events: none;
|
17
|
+
border: $input-border-width solid transparent; // Required for aligning label's text with the input as it affects inner box model
|
18
|
+
transform-origin: 0 0;
|
19
|
+
@include transition($form-floating-transition);
|
20
|
+
}
|
21
|
+
|
22
|
+
// stylelint-disable no-duplicate-selectors
|
23
|
+
> .form-control {
|
24
|
+
&::placeholder {
|
25
|
+
color: transparent;
|
26
|
+
}
|
27
|
+
|
28
|
+
&:focus,
|
29
|
+
&:not(:placeholder-shown) {
|
30
|
+
padding-top: $form-floating-input-padding-t;
|
31
|
+
padding-bottom: $form-floating-input-padding-b;
|
32
|
+
}
|
33
|
+
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
|
34
|
+
&:-webkit-autofill {
|
35
|
+
padding-top: $form-floating-input-padding-t;
|
36
|
+
padding-bottom: $form-floating-input-padding-b;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
> .form-select {
|
41
|
+
padding-top: $form-floating-input-padding-t;
|
42
|
+
padding-bottom: $form-floating-input-padding-b;
|
43
|
+
}
|
44
|
+
|
45
|
+
> .form-control:focus,
|
46
|
+
> .form-control:not(:placeholder-shown),
|
47
|
+
> .form-select {
|
48
|
+
~ label {
|
49
|
+
opacity: $form-floating-label-opacity;
|
50
|
+
transform: $form-floating-label-transform;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
// Duplicated because `:-webkit-autofill` invalidates other selectors when grouped
|
54
|
+
> .form-control:-webkit-autofill {
|
55
|
+
~ label {
|
56
|
+
opacity: $form-floating-label-opacity;
|
57
|
+
transform: $form-floating-label-transform;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
// stylelint-enable no-duplicate-selectors
|
61
|
+
}
|
@@ -0,0 +1,151 @@
|
|
1
|
+
//
|
2
|
+
// Check/radio
|
3
|
+
//
|
4
|
+
|
5
|
+
.form-check {
|
6
|
+
display: block;
|
7
|
+
min-height: $form-check-min-height;
|
8
|
+
padding-left: $form-check-padding-start;
|
9
|
+
margin-bottom: $form-check-margin-bottom;
|
10
|
+
|
11
|
+
.form-check-input {
|
12
|
+
float: left;
|
13
|
+
margin-left: $form-check-padding-start * -1;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
.form-check-input {
|
18
|
+
width: $form-check-input-width;
|
19
|
+
height: $form-check-input-width;
|
20
|
+
margin-top: ($line-height-base - $form-check-input-width) / 2; // line-height minus check height
|
21
|
+
vertical-align: top;
|
22
|
+
background-color: $form-check-input-bg;
|
23
|
+
background-repeat: no-repeat;
|
24
|
+
background-position: center;
|
25
|
+
background-size: contain;
|
26
|
+
border: $form-check-input-border;
|
27
|
+
appearance: none;
|
28
|
+
color-adjust: exact; // Keep themed appearance for print
|
29
|
+
@include transition($form-check-transition);
|
30
|
+
|
31
|
+
&[type="checkbox"] {
|
32
|
+
@include border-radius($form-check-input-border-radius);
|
33
|
+
}
|
34
|
+
|
35
|
+
&[type="radio"] {
|
36
|
+
// stylelint-disable-next-line property-disallowed-list
|
37
|
+
border-radius: $form-check-radio-border-radius;
|
38
|
+
}
|
39
|
+
|
40
|
+
&:active {
|
41
|
+
filter: $form-check-input-active-filter;
|
42
|
+
}
|
43
|
+
|
44
|
+
&:focus {
|
45
|
+
border-color: $form-check-input-focus-border;
|
46
|
+
outline: 0;
|
47
|
+
box-shadow: $form-check-input-focus-box-shadow;
|
48
|
+
}
|
49
|
+
|
50
|
+
&:checked {
|
51
|
+
background-color: $form-check-input-checked-bg-color;
|
52
|
+
border-color: $form-check-input-checked-border-color;
|
53
|
+
|
54
|
+
&[type="checkbox"] {
|
55
|
+
@if $enable-gradients {
|
56
|
+
background-image: escape-svg($form-check-input-checked-bg-image), var(--#{$variable-prefix}gradient);
|
57
|
+
} @else {
|
58
|
+
background-image: escape-svg($form-check-input-checked-bg-image);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
&[type="radio"] {
|
63
|
+
@if $enable-gradients {
|
64
|
+
background-image: escape-svg($form-check-radio-checked-bg-image), var(--#{$variable-prefix}gradient);
|
65
|
+
} @else {
|
66
|
+
background-image: escape-svg($form-check-radio-checked-bg-image);
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
&[type="checkbox"]:indeterminate {
|
72
|
+
background-color: $form-check-input-indeterminate-bg-color;
|
73
|
+
border-color: $form-check-input-indeterminate-border-color;
|
74
|
+
|
75
|
+
@if $enable-gradients {
|
76
|
+
background-image: escape-svg($form-check-input-indeterminate-bg-image), var(--#{$variable-prefix}gradient);
|
77
|
+
} @else {
|
78
|
+
background-image: escape-svg($form-check-input-indeterminate-bg-image);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
&:disabled {
|
83
|
+
pointer-events: none;
|
84
|
+
filter: none;
|
85
|
+
opacity: $form-check-input-disabled-opacity;
|
86
|
+
}
|
87
|
+
|
88
|
+
// Use disabled attribute in addition of :disabled pseudo-class
|
89
|
+
// See: https://github.com/twbs/bootstrap/issues/28247
|
90
|
+
&[disabled],
|
91
|
+
&:disabled {
|
92
|
+
~ .form-check-label {
|
93
|
+
opacity: $form-check-label-disabled-opacity;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.form-check-label {
|
99
|
+
color: $form-check-label-color;
|
100
|
+
cursor: $form-check-label-cursor;
|
101
|
+
}
|
102
|
+
|
103
|
+
//
|
104
|
+
// Switch
|
105
|
+
//
|
106
|
+
|
107
|
+
.form-switch {
|
108
|
+
padding-left: $form-switch-padding-start;
|
109
|
+
|
110
|
+
.form-check-input {
|
111
|
+
width: $form-switch-width;
|
112
|
+
margin-left: $form-switch-padding-start * -1;
|
113
|
+
background-image: escape-svg($form-switch-bg-image);
|
114
|
+
background-position: left center;
|
115
|
+
@include border-radius($form-switch-border-radius);
|
116
|
+
|
117
|
+
&:focus {
|
118
|
+
background-image: escape-svg($form-switch-focus-bg-image);
|
119
|
+
}
|
120
|
+
|
121
|
+
&:checked {
|
122
|
+
background-position: $form-switch-checked-bg-position;
|
123
|
+
|
124
|
+
@if $enable-gradients {
|
125
|
+
background-image: escape-svg($form-switch-checked-bg-image), var(--#{$variable-prefix}gradient);
|
126
|
+
} @else {
|
127
|
+
background-image: escape-svg($form-switch-checked-bg-image);
|
128
|
+
}
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
.form-check-inline {
|
134
|
+
display: inline-block;
|
135
|
+
margin-right: $form-check-inline-margin-end;
|
136
|
+
}
|
137
|
+
|
138
|
+
.btn-check {
|
139
|
+
position: absolute;
|
140
|
+
clip: rect(0, 0, 0, 0);
|
141
|
+
pointer-events: none;
|
142
|
+
|
143
|
+
&[disabled],
|
144
|
+
&:disabled {
|
145
|
+
+ .btn {
|
146
|
+
pointer-events: none;
|
147
|
+
filter: none;
|
148
|
+
opacity: $form-check-btn-check-disabled-opacity;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
}
|
@@ -0,0 +1,223 @@
|
|
1
|
+
//
|
2
|
+
// General form controls (plus a few specific high-level interventions)
|
3
|
+
//
|
4
|
+
|
5
|
+
.form-control {
|
6
|
+
display: block;
|
7
|
+
width: 100%;
|
8
|
+
padding: $input-padding-y $input-padding-x;
|
9
|
+
font-family: $input-font-family;
|
10
|
+
@include font-size($input-font-size);
|
11
|
+
font-weight: $input-font-weight;
|
12
|
+
line-height: $input-line-height;
|
13
|
+
color: $input-color;
|
14
|
+
background-color: $input-bg;
|
15
|
+
background-clip: padding-box;
|
16
|
+
border: $input-border-width solid $input-border-color;
|
17
|
+
appearance: none; // Fix appearance for date inputs in Safari
|
18
|
+
|
19
|
+
// Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
|
20
|
+
@include border-radius($input-border-radius, 0);
|
21
|
+
|
22
|
+
@include box-shadow($input-box-shadow);
|
23
|
+
@include transition($input-transition);
|
24
|
+
|
25
|
+
&[type="file"] {
|
26
|
+
overflow: hidden; // prevent pseudo element button overlap
|
27
|
+
|
28
|
+
&:not(:disabled):not([readonly]) {
|
29
|
+
cursor: pointer;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
// Customize the `:focus` state to imitate native WebKit styles.
|
34
|
+
&:focus {
|
35
|
+
color: $input-focus-color;
|
36
|
+
background-color: $input-focus-bg;
|
37
|
+
border-color: $input-focus-border-color;
|
38
|
+
outline: 0;
|
39
|
+
@if $enable-shadows {
|
40
|
+
@include box-shadow($input-box-shadow, $input-focus-box-shadow);
|
41
|
+
} @else {
|
42
|
+
// Avoid using mixin so we can pass custom focus shadow properly
|
43
|
+
box-shadow: $input-focus-box-shadow;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
// Add some height to date inputs on iOS
|
48
|
+
// https://github.com/twbs/bootstrap/issues/23307
|
49
|
+
// TODO: we can remove this workaround once https://bugs.webkit.org/show_bug.cgi?id=198959 is resolved
|
50
|
+
&::-webkit-date-and-time-value {
|
51
|
+
// Multiply line-height by 1em if it has no unit
|
52
|
+
height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
|
53
|
+
}
|
54
|
+
|
55
|
+
// Placeholder
|
56
|
+
&::placeholder {
|
57
|
+
color: $input-placeholder-color;
|
58
|
+
// Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
|
59
|
+
opacity: 1;
|
60
|
+
}
|
61
|
+
|
62
|
+
// Disabled and read-only inputs
|
63
|
+
//
|
64
|
+
// HTML5 says that controls under a fieldset > legend:first-child won't be
|
65
|
+
// disabled if the fieldset is disabled. Due to implementation difficulty, we
|
66
|
+
// don't honor that edge case; we style them as disabled anyway.
|
67
|
+
&:disabled,
|
68
|
+
&[readonly] {
|
69
|
+
background-color: $input-disabled-bg;
|
70
|
+
border-color: $input-disabled-border-color;
|
71
|
+
// iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
|
72
|
+
opacity: 1;
|
73
|
+
}
|
74
|
+
|
75
|
+
// File input buttons theming
|
76
|
+
// stylelint-disable-next-line selector-pseudo-element-no-unknown
|
77
|
+
&::file-selector-button {
|
78
|
+
padding: $input-padding-y $input-padding-x;
|
79
|
+
margin: (-$input-padding-y) (-$input-padding-x);
|
80
|
+
margin-inline-end: $input-padding-x;
|
81
|
+
color: $form-file-button-color;
|
82
|
+
@include gradient-bg($form-file-button-bg);
|
83
|
+
pointer-events: none;
|
84
|
+
border-color: inherit;
|
85
|
+
border-style: solid;
|
86
|
+
border-width: 0;
|
87
|
+
border-inline-end-width: $input-border-width;
|
88
|
+
border-radius: 0; // stylelint-disable-line property-disallowed-list
|
89
|
+
@include transition($btn-transition);
|
90
|
+
}
|
91
|
+
|
92
|
+
// stylelint-disable-next-line selector-pseudo-element-no-unknown
|
93
|
+
&:hover:not(:disabled):not([readonly])::file-selector-button {
|
94
|
+
background-color: $form-file-button-hover-bg;
|
95
|
+
}
|
96
|
+
|
97
|
+
&::-webkit-file-upload-button {
|
98
|
+
padding: $input-padding-y $input-padding-x;
|
99
|
+
margin: (-$input-padding-y) (-$input-padding-x);
|
100
|
+
margin-inline-end: $input-padding-x;
|
101
|
+
color: $form-file-button-color;
|
102
|
+
@include gradient-bg($form-file-button-bg);
|
103
|
+
pointer-events: none;
|
104
|
+
border-color: inherit;
|
105
|
+
border-style: solid;
|
106
|
+
border-width: 0;
|
107
|
+
border-inline-end-width: $input-border-width;
|
108
|
+
border-radius: 0; // stylelint-disable-line property-disallowed-list
|
109
|
+
@include transition($btn-transition);
|
110
|
+
}
|
111
|
+
|
112
|
+
&:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
|
113
|
+
background-color: $form-file-button-hover-bg;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
// Readonly controls as plain text
|
118
|
+
//
|
119
|
+
// Apply class to a readonly input to make it appear like regular plain
|
120
|
+
// text (without any border, background color, focus indicator)
|
121
|
+
|
122
|
+
.form-control-plaintext {
|
123
|
+
display: block;
|
124
|
+
width: 100%;
|
125
|
+
padding: $input-padding-y 0;
|
126
|
+
margin-bottom: 0; // match inputs if this class comes on inputs with default margins
|
127
|
+
line-height: $input-line-height;
|
128
|
+
color: $input-plaintext-color;
|
129
|
+
background-color: transparent;
|
130
|
+
border: solid transparent;
|
131
|
+
border-width: $input-border-width 0;
|
132
|
+
|
133
|
+
&.form-control-sm,
|
134
|
+
&.form-control-lg {
|
135
|
+
padding-right: 0;
|
136
|
+
padding-left: 0;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
// Form control sizing
|
141
|
+
//
|
142
|
+
// Build on `.form-control` with modifier classes to decrease or increase the
|
143
|
+
// height and font-size of form controls.
|
144
|
+
//
|
145
|
+
// Repeated in `_input_group.scss` to avoid Sass extend issues.
|
146
|
+
|
147
|
+
.form-control-sm {
|
148
|
+
min-height: $input-height-sm;
|
149
|
+
padding: $input-padding-y-sm $input-padding-x-sm;
|
150
|
+
@include font-size($input-font-size-sm);
|
151
|
+
@include border-radius($input-border-radius-sm);
|
152
|
+
|
153
|
+
// stylelint-disable-next-line selector-pseudo-element-no-unknown
|
154
|
+
&::file-selector-button {
|
155
|
+
padding: $input-padding-y-sm $input-padding-x-sm;
|
156
|
+
margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
|
157
|
+
margin-inline-end: $input-padding-x-sm;
|
158
|
+
}
|
159
|
+
|
160
|
+
&::-webkit-file-upload-button {
|
161
|
+
padding: $input-padding-y-sm $input-padding-x-sm;
|
162
|
+
margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
|
163
|
+
margin-inline-end: $input-padding-x-sm;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
.form-control-lg {
|
168
|
+
min-height: $input-height-lg;
|
169
|
+
padding: $input-padding-y-lg $input-padding-x-lg;
|
170
|
+
@include font-size($input-font-size-lg);
|
171
|
+
@include border-radius($input-border-radius-lg);
|
172
|
+
|
173
|
+
// stylelint-disable-next-line selector-pseudo-element-no-unknown
|
174
|
+
&::file-selector-button {
|
175
|
+
padding: $input-padding-y-lg $input-padding-x-lg;
|
176
|
+
margin: (-$input-padding-y-lg) (-$input-padding-x-lg);
|
177
|
+
margin-inline-end: $input-padding-x-lg;
|
178
|
+
}
|
179
|
+
|
180
|
+
&::-webkit-file-upload-button {
|
181
|
+
padding: $input-padding-y-lg $input-padding-x-lg;
|
182
|
+
margin: (-$input-padding-y-lg) (-$input-padding-x-lg);
|
183
|
+
margin-inline-end: $input-padding-x-lg;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
// Make sure textareas don't shrink too much when resized
|
188
|
+
// https://github.com/twbs/bootstrap/pull/29124
|
189
|
+
// stylelint-disable selector-no-qualifying-type
|
190
|
+
textarea {
|
191
|
+
&.form-control {
|
192
|
+
min-height: $input-height;
|
193
|
+
}
|
194
|
+
|
195
|
+
&.form-control-sm {
|
196
|
+
min-height: $input-height-sm;
|
197
|
+
}
|
198
|
+
|
199
|
+
&.form-control-lg {
|
200
|
+
min-height: $input-height-lg;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
// stylelint-enable selector-no-qualifying-type
|
204
|
+
|
205
|
+
.form-control-color {
|
206
|
+
max-width: 3rem;
|
207
|
+
height: auto; // Override fixed browser height
|
208
|
+
padding: $input-padding-y;
|
209
|
+
|
210
|
+
&:not(:disabled):not([readonly]) {
|
211
|
+
cursor: pointer;
|
212
|
+
}
|
213
|
+
|
214
|
+
&::-moz-color-swatch {
|
215
|
+
height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
|
216
|
+
@include border-radius($input-border-radius);
|
217
|
+
}
|
218
|
+
|
219
|
+
&::-webkit-color-swatch {
|
220
|
+
height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
|
221
|
+
@include border-radius($input-border-radius);
|
222
|
+
}
|
223
|
+
}
|