1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

Restore .form-text (#30565)

This commit is contained in:
Catalin Zalog
2020-04-14 09:21:13 +03:00
committed by GitHub
parent 789bcf6ad6
commit e2afbbfa82
6 changed files with 25 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
@import "forms/labels";
@import "forms/form-text";
@import "forms/form-control";
@import "forms/form-select";
@import "forms/form-check";

View File

@@ -565,6 +565,11 @@ $btn-transition: color .15s ease-in-out, background-color .15s ease
// Forms
$form-text-margin-top: .25rem !default;
$form-text-font-size: null !default;
$form-text-font-style: null !default;
$form-text-color: $text-muted !default;
$form-label-margin-bottom: .5rem !default;
$form-label-font-size: null !default;
$form-label-font-style: null !default;
@@ -669,8 +674,6 @@ $form-switch-checked-color: $component-active-color !default;
$form-switch-checked-bg-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='#{$form-switch-checked-color}'/></svg>") !default;
$form-switch-checked-bg-position: right center !default;
$form-text-margin-top: .25rem !default;
$form-check-inline-margin-right: 1rem !default;
$input-group-addon-color: $input-color !default;

View File

@@ -0,0 +1,11 @@
//
// Form text
//
.form-text {
display: block;
margin-top: $form-text-margin-top;
@include font-size($form-text-font-size);
font-style: $form-text-font-style;
color: $form-text-color;
}