Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 1... Línea 1...
1
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
1
// stylelint-disable declaration-no-important, selector-no-qualifying-type, property-no-vendor-prefix
Línea -... Línea 2...
-
 
2
 
2
 
3
 
3
// Reboot
4
// Reboot
4
//
5
//
5
// Normalization of HTML elements, manually forked from Normalize.css to remove
6
// Normalization of HTML elements, manually forked from Normalize.css to remove
6
// styles targeting irrelevant browsers while applying new styles.
7
// styles targeting irrelevant browsers while applying new styles.
7
//
8
//
Línea 8... Línea 9...
8
// Normalize is licensed MIT. https://github.com/necolas/normalize.css
9
// Normalize is licensed MIT. https://github.com/necolas/normalize.css
9
 
10
 
10
 
11
 
11
// Document
-
 
12
//
-
 
13
// 1. Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
-
 
14
// 2. Change the default font family in all browsers.
-
 
Línea 15... Línea 12...
15
// 3. Correct the line height in all browsers.
12
// Document
16
// 4. Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.
13
//
17
// 5. Change the default tap highlight to be completely transparent in iOS.
14
// Change from `box-sizing: content-box` so that `width` is not affected by `padding` or `border`.
18
 
15
 
19
*,
16
*,
Línea 20... Línea -...
20
*::before,
-
 
21
*::after {
-
 
22
  box-sizing: border-box; // 1
-
 
23
}
-
 
24
 
-
 
25
html {
-
 
Línea -... Línea 17...
-
 
17
*::before,
-
 
18
*::after {
26
  font-family: sans-serif; // 2
19
  box-sizing: border-box;
-
 
20
}
-
 
21
 
-
 
22
 
27
  line-height: 1.15; // 3
23
// Root
28
  -webkit-text-size-adjust: 100%; // 4
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
 
29
  -webkit-tap-highlight-color: rgba($black, 0); // 5
28
:root {
30
}
29
  @if $font-size-root != null {
-
 
30
    @include font-size(var(--#{$prefix}root-font-size));
-
 
31
  }
31
 
32
 
Línea -... Línea 33...
-
 
33
  @if $enable-smooth-scroll {
32
// Shim for "new" HTML5 structural elements to display correctly (IE10, older browsers)
34
    @media (prefers-reduced-motion: no-preference) {
33
// TODO: remove in v5
35
      scroll-behavior: smooth;
34
// stylelint-disable-next-line selector-list-comma-newline-after
36
    }
35
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
37
  }
36
  display: block;
38
}
37
}
39
 
Línea -... Línea 40...
-
 
40
 
38
 
41
// Body
39
// Body
42
//
40
//
43
// 1. Remove the margin in all browsers.
41
// 1. Remove the margin in all browsers.
44
// 2. As a best practice, apply a default `background-color`.
42
// 2. As a best practice, apply a default `background-color`.
45
// 3. Prevent adjustments of font size after orientation changes in iOS.
43
// 3. Set an explicit initial text-align value so that we can later use
46
// 4. Change the default tap highlight to be completely transparent in iOS.
44
//    the `inherit` value on things like `<th>` elements.
47
 
45
 
48
// scss-docs-start reboot-body-rules
46
body {
49
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: left; // 3
-
 
54
  background-color: $body-bg; // 2
50
  margin: 0; // 1
55
}
-
 
56
 
-
 
57
// Future-proof rule: in browsers that support :focus-visible, suppress the focus outline
-
 
58
// on elements that programmatically receive focus but wouldn't normally show a visible
51
  font-family: var(--#{$prefix}body-font-family);
59
// focus outline. In general, this would mean that the outline is only applied if the
-
 
60
// interaction that led to the element receiving programmatic focus was a keyboard interaction,
52
  @include font-size(var(--#{$prefix}body-font-size));
-
 
53
  font-weight: var(--#{$prefix}body-font-weight);
Línea 61... Línea 54...
61
// or the browser has somehow determined that the user is primarily a keyboard user and/or
54
  line-height: var(--#{$prefix}body-line-height);
62
// wants focus outlines to always be presented.
55
  color: var(--#{$prefix}body-color);
63
//
56
  text-align: var(--#{$prefix}body-text-align);
64
// See https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible
-
 
Línea 65... Línea 57...
65
// and https://developer.paciellogroup.com/blog/2018/03/focus-visible-and-backwards-compatibility/
57
  background-color: var(--#{$prefix}body-bg); // 2
-
 
58
  -webkit-text-size-adjust: 100%; // 3
66
[tabindex="-1"]:focus:not(:focus-visible) {
59
  -webkit-tap-highlight-color: rgba($black, 0); // 4
67
  outline: 0 !important;
60
}
-
 
61
// scss-docs-end reboot-body-rules
68
}
62
 
69
 
63
 
Línea 70... Línea -...
70
 
-
 
71
// Content grouping
64
// Content grouping
72
//
65
//
-
 
66
// 1. Reset Firefox's gray color
-
 
67
 
-
 
68
hr {
Línea 73... Línea -...
73
// 1. Add the correct box sizing in Firefox.
-
 
74
// 2. Show the overflow in Edge and IE.
-
 
75
 
-
 
76
hr {
-
 
77
  box-sizing: content-box; // 1
-
 
78
  height: 0; // 1
69
  margin: $hr-margin-y 0;
79
  overflow: visible; // 2
70
  color: $hr-color; // 1
80
}
71
  border: 0;
-
 
72
  border-top: $hr-border-width solid $hr-border-color;
-
 
73
  opacity: $hr-opacity;
-
 
74
}
-
 
75
 
-
 
76
 
81
 
77
// Typography
Línea -... Línea 78...
-
 
78
//
-
 
79
// 1. Remove top margins from headings
-
 
80
//    By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
-
 
81
//    margin for easier control within type scales as it avoids margin collapsing.
-
 
82
 
-
 
83
%heading {
-
 
84
  margin-top: 0; // 1
-
 
85
  margin-bottom: $headings-margin-bottom;
-
 
86
  font-family: $headings-font-family;
-
 
87
  font-style: $headings-font-style;
-
 
88
  font-weight: $headings-font-weight;
-
 
89
  line-height: $headings-line-height;
-
 
90
  color: var(--#{$prefix}heading-color);
-
 
91
}
-
 
92
 
-
 
93
h1 {
-
 
94
  @extend %heading;
-
 
95
  @include font-size($h1-font-size);
-
 
96
}
-
 
97
 
-
 
98
h2 {
-
 
99
  @extend %heading;
-
 
100
  @include font-size($h2-font-size);
-
 
101
}
-
 
102
 
-
 
103
h3 {
-
 
104
  @extend %heading;
-
 
105
  @include font-size($h3-font-size);
-
 
106
}
-
 
107
 
-
 
108
h4 {
82
 
109
  @extend %heading;
83
//
110
  @include font-size($h4-font-size);
84
// Typography
111
}
85
//
112
 
-
 
113
h5 {
86
 
114
  @extend %heading;
87
// Remove top margins from headings
115
  @include font-size($h5-font-size);
88
//
116
}
89
// By default, `<h1>`-`<h6>` all receive top and bottom margins. We nuke the top
117
 
Línea -... Línea 118...
-
 
118
h6 {
90
// margin for easier control within type scales as it avoids margin collapsing.
119
  @extend %heading;
91
// stylelint-disable-next-line selector-list-comma-newline-after
120
  @include font-size($h6-font-size);
92
h1, h2, h3, h4, h5, h6 {
-
 
93
  margin-top: 0;
121
}
94
  margin-bottom: $headings-margin-bottom;
122
 
95
}
-
 
96
 
123
 
97
// Reset margins on paragraphs
124
// Reset margins on paragraphs
98
//
125
//
99
// Similarly, the top margin on `<p>`s get reset. However, we also reset the
-
 
100
// bottom margin to use `rem` units instead of `em`.
-
 
101
p {
126
// Similarly, the top margin on `<p>`s get reset. However, we also reset the
102
  margin-top: 0;
127
// bottom margin to use `rem` units instead of `em`.
103
  margin-bottom: $paragraph-margin-bottom;
-
 
104
}
128
 
105
 
129
p {
Línea -... Línea 130...
-
 
130
  margin-top: 0;
-
 
131
  margin-bottom: $paragraph-margin-bottom;
-
 
132
}
106
// Abbreviations
133
 
107
//
134
 
108
// 1. Duplicate behavior to the data-* attribute for our tooltip plugin
135
// Abbreviations
109
// 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
136
//
110
// 3. Add explicit cursor to indicate changed behavior.
137
// 1. Add the correct text decoration in Chrome, Edge, Opera, and Safari.
Línea -... Línea 138...
-
 
138
// 2. Add explicit cursor to indicate changed behavior.
-
 
139
// 3. Prevent the text-decoration to be skipped.
-
 
140
 
-
 
141
abbr[title] {
-
 
142
  text-decoration: underline dotted; // 1
-
 
143
  cursor: help; // 2
-
 
144
  text-decoration-skip-ink: none; // 3
-
 
145
}
111
// 4. Remove the bottom border in Firefox 39-.
146
 
112
// 5. Prevent the text-decoration to be skipped.
147
 
113
 
148
// Address
114
abbr[title],
149
 
115
abbr[data-original-title] { // 1
150
address {
Línea 142... Línea 177...
142
 
177
 
143
dt {
178
dt {
144
  font-weight: $dt-font-weight;
179
  font-weight: $dt-font-weight;
Línea -... Línea 180...
-
 
180
}
-
 
181
 
145
}
182
// 1. Undo browser default
146
 
183
 
147
dd {
184
dd {
148
  margin-bottom: .5rem;
185
  margin-bottom: .5rem;
Línea -... Línea 186...
-
 
186
  margin-left: 0; // 1
-
 
187
}
-
 
188
 
149
  margin-left: 0; // Undo browser default
189
 
150
}
190
// Blockquote
151
 
191
 
Línea -... Línea 192...
-
 
192
blockquote {
-
 
193
  margin: 0 0 1rem;
-
 
194
}
-
 
195
 
-
 
196
 
152
blockquote {
197
// Strong
153
  margin: 0 0 1rem;
198
//
154
}
199
// Add the correct font weight in Chrome, Edge, and Safari
155
 
200
 
Línea -... Línea 201...
-
 
201
b,
-
 
202
strong {
-
 
203
  font-weight: $font-weight-bolder;
-
 
204
}
-
 
205
 
156
b,
206
 
157
strong {
207
// Small
158
  font-weight: $font-weight-bolder; // Add the correct font weight in Chrome, Edge, and Safari
208
//
Línea -... Línea 209...
-
 
209
// Add the correct font size in all browsers
-
 
210
 
-
 
211
small {
-
 
212
  @include font-size($small-font-size);
-
 
213
}
-
 
214
 
-
 
215
 
-
 
216
// Mark
-
 
217
 
-
 
218
mark {
-
 
219
  padding: $mark-padding;
159
}
220
  color: var(--#{$prefix}highlight-color);
160
 
221
  background-color: var(--#{$prefix}highlight-bg);
161
small {
222
}
162
  @include font-size(80%); // Add the correct font size in all browsers
-
 
Línea 163... Línea 223...
163
}
223
 
164
 
224
 
165
//
225
// Sub and Sup
166
// Prevent `sub` and `sup` elements from affecting the line height in
226
//
167
// all browsers.
227
// Prevent `sub` and `sup` elements from affecting the line height in
168
//
228
// all browsers.
169
 
229
 
Línea 170... Línea 230...
170
sub,
230
sub,
171
sup {
231
sup {
Línea 172... Línea -...
172
  position: relative;
-
 
173
  @include font-size(75%);
232
  position: relative;
174
  line-height: 0;
-
 
Línea 175... Línea 233...
175
  vertical-align: baseline;
233
  @include font-size($sub-sup-font-size);
176
}
234
  line-height: 0;
177
 
235
  vertical-align: baseline;
178
sub { bottom: -.25em; }
-
 
Línea 179... Línea 236...
179
sup { top: -.5em; }
236
}
180
 
237
 
181
 
238
sub { bottom: -.25em; }
182
//
239
sup { top: -.5em; }
183
// Links
240
 
Línea 184... Línea 241...
184
//
241
 
185
 
242
// Links
186
a {
243
 
187
  color: $link-color;
244
a {
Línea 188... Línea 245...
188
  text-decoration: $link-decoration;
245
  color: rgba(var(--#{$prefix}link-color-rgb), var(--#{$prefix}link-opacity, 1));
189
  background-color: transparent; // Remove the gray background on active links in IE 10.
-
 
190
 
-
 
191
  @include hover() {
246
  text-decoration: $link-decoration;
192
    color: $link-hover-color;
247
 
193
    text-decoration: $link-hover-decoration;
248
  &:hover {
194
  }
249
    --#{$prefix}link-color-rgb: var(--#{$prefix}link-hover-color-rgb);
195
}
250
    text-decoration: $link-hover-decoration;
196
 
251
  }
Línea 197... Línea -...
197
// And undo these styles for placeholder links/named anchors (without href).
-
 
198
// It would be more straightforward to just use a[href] in previous block, but that
252
}
199
// causes specificity issues in many other styles that are too complex to fix.
-
 
Línea 200... Línea 253...
200
// See https://github.com/twbs/bootstrap/issues/19402
253
 
201
 
254
// And undo these styles for placeholder links/named anchors (without href).
202
a:not([href]):not([class]) {
255
// It would be more straightforward to just use a[href] in previous block, but that
203
  color: inherit;
256
// causes specificity issues in many other styles that are too complex to fix.
204
  text-decoration: none;
257
// See https://github.com/twbs/bootstrap/issues/19402
205
 
258
 
206
  @include hover() {
259
a:not([href]):not([class]) {
Línea -... Línea 260...
-
 
260
  &,
-
 
261
  &:hover {
-
 
262
    color: inherit;
-
 
263
    text-decoration: none;
207
    color: inherit;
264
  }
208
    text-decoration: none;
265
}
209
  }
266
 
-
 
267
 
-
 
268
// Code
-
 
269
 
-
 
270
pre,
-
 
271
code,
210
}
272
kbd,
-
 
273
samp {
-
 
274
  font-family: $font-family-code;
-
 
275
  @include font-size(1em); // Correct the odd `em` font sizing in all browsers.
211
 
276
}
-
 
277
 
-
 
278
// 1. Remove browser default top margin
-
 
279
// 2. Reset browser default of `1em` to use `rem`s
-
 
280
// 3. Don't allow content to break outside
212
 
281
 
-
 
282
pre {
213
//
283
  display: block;
-
 
284
  margin-top: 0; // 1
214
// Code
285
  margin-bottom: 1rem; // 2
-
 
286
  overflow: auto; // 3
-
 
287
  @include font-size($code-font-size);
-
 
288
  color: $pre-color;
-
 
289
 
-
 
290
  // Account for some code outputs that place code tags in pre tags
-
 
291
  code {
215
//
292
    @include font-size(inherit);
-
 
293
    color: inherit;
-
 
294
    word-break: normal;
216
 
295
  }
-
 
296
}
-
 
297
 
-
 
298
code {
-
 
299
  @include font-size($code-font-size);
-
 
300
  color: var(--#{$prefix}code-color);
-
 
301
  word-wrap: break-word;
-
 
302
 
217
pre,
303
  // Streamline the style when inside anchors to avoid broken underline and more
Línea 218... Línea -...
218
code,
-
 
219
kbd,
304
  a > & {
220
samp {
305
    color: inherit;
-
 
306
  }
Línea 221... Línea 307...
221
  font-family: $font-family-monospace;
307
}
222
  @include font-size(1em); // Correct the odd `em` font sizing in all browsers.
-
 
223
}
308
 
224
 
309
kbd {
Línea 225... Línea -...
225
pre {
-
 
226
  // Remove browser default top margin
310
  padding: $kbd-padding-y $kbd-padding-x;
227
  margin-top: 0;
-
 
228
  // Reset browser default of `1em` to use `rem`s
-
 
229
  margin-bottom: 1rem;
-
 
230
  // Don't allow content to break outside
-
 
231
  overflow: auto;
-
 
232
  // Disable auto-hiding scrollbar in IE & legacy Edge to avoid overlap,
-
 
Línea -... Línea 311...
-
 
311
  @include font-size($kbd-font-size);
233
  // making it impossible to interact with the content
312
  color: $kbd-color;
234
  -ms-overflow-style: scrollbar;
-
 
235
}
-
 
236
 
-
 
237
 
313
  background-color: $kbd-bg;
238
//
314
  @include border-radius($border-radius-sm);
Línea 239... Línea -...
239
// Figures
-
 
240
//
315
 
241
 
316
  kbd {
-
 
317
    padding: 0;
Línea 242... Línea 318...
242
figure {
318
    @include font-size(1em);
-
 
319
    font-weight: $nested-kbd-font-weight;
243
  // Apply a consistent margin strategy (matches our type styles).
320
  }
244
  margin: 0 0 1rem;
321
}
Línea 245... Línea 322...
245
}
322
 
246
 
323
 
247
 
324
// Figures
248
//
325
//
249
// Images and content
326
// Apply a consistent margin strategy (matches our type styles).
250
//
-
 
251
 
327
 
Línea 252... Línea 328...
252
img {
328
figure {
253
  vertical-align: middle;
329
  margin: 0 0 1rem;
254
  border-style: none; // Remove the border on images inside links in IE 10-.
330
}
Línea 286... Línea 362...
286
  font-weight: $table-th-font-weight; // 1
362
  font-weight: $table-th-font-weight; // 1
287
  text-align: inherit; // 2
363
  text-align: inherit; // 2
288
  text-align: -webkit-match-parent; // 3
364
  text-align: -webkit-match-parent; // 3
289
}
365
}
Línea -... Línea 366...
-
 
366
 
-
 
367
thead,
-
 
368
tbody,
-
 
369
tfoot,
-
 
370
tr,
-
 
371
td,
-
 
372
th {
-
 
373
  border-color: inherit;
-
 
374
  border-style: solid;
-
 
375
  border-width: 0;
-
 
376
}
Línea 290... Línea -...
290
 
-
 
291
 
377
 
292
//
378
 
-
 
379
// Forms
Línea 293... Línea 380...
293
// Forms
380
//
294
//
-
 
295
 
381
// 1. Allow labels to use `margin` for spacing.
296
label {
-
 
297
  // Allow labels to use `margin` for spacing.
382
 
Línea 298... Línea 383...
298
  display: inline-block;
383
label {
299
  margin-bottom: $label-margin-bottom;
-
 
300
}
384
  display: inline-block; // 1
-
 
385
}
301
 
386
 
302
// Remove the default `border-radius` that macOS Chrome adds.
387
// Remove the default `border-radius` that macOS Chrome adds.
303
//
388
// See https://github.com/twbs/bootstrap/issues/24093
304
// Details at https://github.com/twbs/bootstrap/issues/24093
389
 
Línea 314... Línea 399...
314
 
399
 
315
button:focus:not(:focus-visible) {
400
button:focus:not(:focus-visible) {
316
  outline: 0;
401
  outline: 0;
Línea -... Línea 402...
-
 
402
}
-
 
403
 
317
}
404
// 1. Remove the margin in Firefox and Safari
318
 
405
 
319
input,
406
input,
320
button,
407
button,
321
select,
408
select,
322
optgroup,
409
optgroup,
323
textarea {
410
textarea {
324
  margin: 0; // Remove the margin in Firefox and Safari
411
  margin: 0; // 1
325
  font-family: inherit;
412
  font-family: inherit;
326
  @include font-size(inherit);
413
  @include font-size(inherit);
Línea 327... Línea -...
327
  line-height: inherit;
-
 
328
}
-
 
329
 
414
  line-height: inherit;
330
button,
-
 
331
input {
-
 
332
  overflow: visible; // Show the overflow in Edge
415
}
333
}
416
 
334
 
417
// Remove the inheritance of text transform in Firefox
335
button,
418
button,
336
select {
-
 
337
  text-transform: none; // Remove the inheritance of text transform in Firefox
419
select {
338
}
420
  text-transform: none;
339
 
421
}
340
// Set the cursor for non-`<button>` buttons
422
// Set the cursor for non-`<button>` buttons
341
//
423
//
342
// Details at https://github.com/twbs/bootstrap/pull/30562
424
// Details at https://github.com/twbs/bootstrap/pull/30562
Línea 343... Línea -...
343
[role="button"] {
-
 
344
  cursor: pointer;
-
 
345
}
-
 
346
 
425
[role="button"] {
-
 
426
  cursor: pointer;
-
 
427
}
347
// Remove the inheritance of word-wrap in Safari.
428
 
-
 
429
select {
-
 
430
  // Remove the inheritance of word-wrap in Safari.
-
 
431
  // See https://github.com/twbs/bootstrap/issues/24990
-
 
432
  word-wrap: normal;
-
 
433
 
348
//
434
  // Undo the opacity change from Chrome
Línea -... Línea 435...
-
 
435
  &:disabled {
-
 
436
    opacity: 1;
-
 
437
  }
-
 
438
}
-
 
439
 
-
 
440
// Remove the dropdown arrow only from text type inputs built with datalists in Chrome.
Línea 349... Línea 441...
349
// Details at https://github.com/twbs/bootstrap/issues/24990
441
// See https://stackoverflow.com/a/54997118
350
select {
442
 
351
  word-wrap: normal;
443
[list]:not([type="date"]):not([type="datetime-local"]):not([type="month"]):not([type="week"]):not([type="time"])::-webkit-calendar-picker-indicator {
-
 
444
  display: none !important;
-
 
445
}
352
}
446
 
353
 
447
// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
354
 
448
//    controls in Android 4.
355
// 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
449
// 2. Correct the inability to style clickable types in iOS and Safari.
356
//    controls in Android 4.
450
// 3. Opinionated: add "hand" cursor to non-disabled button elements.
357
// 2. Correct the inability to style clickable types in iOS and Safari.
-
 
Línea 358... Línea -...
358
button,
-
 
359
[type="button"], // 1
451
 
360
[type="reset"],
-
 
361
[type="submit"] {
-
 
362
  -webkit-appearance: button; // 2
-
 
363
}
-
 
364
 
452
button,
365
// Opinionated: add "hand" cursor to non-disabled button elements.
453
[type="button"], // 1
366
@if $enable-pointer-cursor-for-buttons {
454
[type="reset"],
367
  button,
455
[type="submit"] {
368
  [type="button"],
456
  -webkit-appearance: button; // 2
Línea 369... Línea 457...
369
  [type="reset"],
457
 
-
 
458
  @if $enable-button-pointers {
370
  [type="submit"] {
459
    &:not(:disabled) {
371
    &:not(:disabled) {
-
 
372
      cursor: pointer;
-
 
373
    }
-
 
374
  }
460
      cursor: pointer; // 3
375
}
461
    }
376
 
462
  }
Línea 377... Línea -...
377
// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
-
 
378
button::-moz-focus-inner,
-
 
379
[type="button"]::-moz-focus-inner,
463
}
380
[type="reset"]::-moz-focus-inner,
-
 
381
[type="submit"]::-moz-focus-inner {
-
 
382
  padding: 0;
-
 
Línea 383... Línea 464...
383
  border-style: none;
464
 
384
}
-
 
385
 
-
 
386
input[type="radio"],
465
// Remove inner border and padding from Firefox, but don't restore the outline like Normalize.
387
input[type="checkbox"] {
466
 
Línea -... Línea 467...
-
 
467
::-moz-focus-inner {
-
 
468
  padding: 0;
-
 
469
  border-style: none;
-
 
470
}
-
 
471
 
-
 
472
// 1. Textareas should really only resize vertically so they don't break their (horizontal) containers.
-
 
473
 
388
  box-sizing: border-box; // 1. Add the correct box sizing in IE 10-
474
textarea {
389
  padding: 0; // 2. Remove the padding in IE 10-
-
 
390
}
-
 
391
 
-
 
392
 
-
 
393
textarea {
-
 
394
  overflow: auto; // Remove the default vertical scrollbar in IE.
475
  resize: vertical; // 1
395
  // Textareas should really only resize vertically so they don't break their (horizontal) containers.
-
 
396
  resize: vertical;
476
}
397
}
477
 
398
 
478
// 1. Browsers set a default `min-width: min-content;` on fieldsets,
399
fieldset {
479
//    unlike e.g. `<div>`s, which have `min-width: 0;` by default.
Línea 400... Línea 480...
400
  // Browsers set a default `min-width: min-content;` on fieldsets,
480
//    So we reset that to ensure fieldsets behave more like a standard block element.
401
  // unlike e.g. `<div>`s, which have `min-width: 0;` by default.
481
//    See https://github.com/twbs/bootstrap/issues/12359
-
 
482
//    and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements
-
 
483
// 2. Reset the default outline behavior of fieldsets so they don't affect page layout.
-
 
484
 
402
  // So we reset that to ensure fieldsets behave more like a standard block element.
485
fieldset {
403
  // See https://github.com/twbs/bootstrap/issues/12359
486
  min-width: 0; // 1
404
  // and https://html.spec.whatwg.org/multipage/#the-fieldset-and-legend-elements
487
  padding: 0; // 2
405
  min-width: 0;
-
 
406
  // Reset the default outline behavior of fieldsets so they don't affect page layout.
488
  margin: 0; // 2
407
  padding: 0;
489
  border: 0; // 2
408
  margin: 0;
490
}
-
 
491
 
409
  border: 0;
492
// 1. By using `float: left`, the legend will behave like a block element.
-
 
493
//    This way the border of a fieldset wraps around the legend if present.
410
}
494
// 2. Fix wrapping bug.
411
 
495
//    See https://github.com/twbs/bootstrap/issues/29712
-
 
496
 
412
// 1. Correct the text wrapping in Edge and IE.
497
legend {
Línea -... Línea 498...
-
 
498
  float: left; // 1
-
 
499
  width: 100%;
-
 
500
  padding: 0;
-
 
501
  margin-bottom: $legend-margin-bottom;
-
 
502
  @include font-size($legend-font-size);
-
 
503
  font-weight: $legend-font-weight;
-
 
504
  line-height: inherit;
-
 
505
 
-
 
506
  + * {
-
 
507
    clear: left; // 2
413
// 2. Correct the color inheritance from `fieldset` elements in IE.
508
  }
414
legend {
-
 
415
  display: block;
509
}
Línea 416... Línea -...
416
  width: 100%;
-
 
417
  max-width: 100%; // 1
510
 
418
  padding: 0;
-
 
419
  margin-bottom: .5rem;
511
// Fix height of inputs with a type of datetime-local, date, month, week, or time
420
  @include font-size(1.5rem);
512
// See https://github.com/twbs/bootstrap/issues/18842
Línea -... Línea 513...
-
 
513
 
-
 
514
::-webkit-datetime-edit-fields-wrapper,
-
 
515
::-webkit-datetime-edit-text,
-
 
516
::-webkit-datetime-edit-minute,
-
 
517
::-webkit-datetime-edit-hour-field,
-
 
518
::-webkit-datetime-edit-day-field,
421
  line-height: inherit;
519
::-webkit-datetime-edit-month-field,
422
  color: inherit; // 2
-
 
423
  white-space: normal; // 1
-
 
424
}
-
 
425
 
520
::-webkit-datetime-edit-year-field {
426
progress {
521
  padding: 0;
427
  vertical-align: baseline; // Add the correct vertical alignment in Chrome, Firefox, and Opera.
-
 
428
}
522
}
Línea -... Línea 523...
-
 
523
 
-
 
524
::-webkit-inner-spin-button {
-
 
525
  height: auto;
-
 
526
}
-
 
527
 
-
 
528
// 1. This overrides the extra rounded corners on search inputs in iOS so that our
-
 
529
//    `.form-control` class can properly style them. Note that this cannot simply
-
 
530
//    be added to `.form-control` as it's not specific enough. For details, see
-
 
531
//    https://github.com/twbs/bootstrap/issues/11586.
-
 
532
// 2. Correct the outline style in Safari.
-
 
533
 
-
 
534
[type="search"] {
429
 
535
  -webkit-appearance: textfield; // 1
-
 
536
  outline-offset: -2px; // 2
430
// Correct the cursor style of increment and decrement buttons in Chrome.
537
}
431
[type="number"]::-webkit-inner-spin-button,
-
 
Línea 432... Línea 538...
432
[type="number"]::-webkit-outer-spin-button {
538
 
433
  height: auto;
539
// 1. A few input types should stay LTR
434
}
540
// See https://rtlstyling.com/posts/rtl-styling#form-inputs
Línea 435... Línea -...
435
 
-
 
436
[type="search"] {
-
 
437
  // This overrides the extra rounded corners on search inputs in iOS so that our
541
// 2. RTL only output
438
  // `.form-control` class can properly style them. Note that this cannot simply
-
 
Línea 439... Línea 542...
439
  // be added to `.form-control` as it's not specific enough. For details, see
542
// See https://rtlcss.com/learn/usage-guide/control-directives/#raw
-
 
543
 
-
 
544
/* rtl:raw:
-
 
545
[type="tel"],
-
 
546
[type="url"],
-
 
547
[type="email"],
-
 
548
[type="number"] {
-
 
549
  direction: ltr;
-
 
550
}
440
  // https://github.com/twbs/bootstrap/issues/11586.
551
*/
441
  outline-offset: -2px; // 2. Correct the outline style in Safari.
552
 
442
  -webkit-appearance: none;
553
// Remove the inner padding in Chrome and Safari on macOS.
Línea 443... Línea -...
443
}
-
 
444
 
554
 
445
//
-
 
Línea 446... Línea 555...
446
// Remove the inner padding in Chrome and Safari on macOS.
555
::-webkit-search-decoration {
447
//
556
  -webkit-appearance: none;
448
 
557
}
Línea -... Línea 558...
-
 
558
 
-
 
559
// Remove padding around color pickers in webkit browsers
-
 
560
 
-
 
561
::-webkit-color-swatch-wrapper {
-
 
562
  padding: 0;
-
 
563
}
-
 
564
 
-
 
565
 
-
 
566
// 1. Inherit font family and line height for file input buttons
-
 
567
// 2. Correct the inability to style clickable types in iOS and Safari.
449
[type="search"]::-webkit-search-decoration {
568
 
450
  -webkit-appearance: none;
569
::file-selector-button {
451
}
570
  font: inherit; // 1
452
 
571
  -webkit-appearance: button; // 2
Línea -... Línea 572...
-
 
572
}
-
 
573
 
-
 
574
// Correct element displays
-
 
575
 
-
 
576
output {
453
//
577
  display: inline-block;
454
// 1. Correct the inability to style clickable types in iOS and Safari.
578
}
455
// 2. Change font properties to `inherit` in Safari.
579
 
Línea -... Línea 580...
-
 
580
// Remove border from iframe
-
 
581
 
-
 
582
iframe {
456
//
583
  border: 0;
457
 
-
 
-
 
584
}
458
::-webkit-file-upload-button {
585
 
459
  font: inherit; // 2
586
// Summary
460
  -webkit-appearance: button; // 1
587
//