Mark Otto
371fbdb0e8
.text-help is dead, long live .form-control-feedback
...
Uses a new more specific class, adds some basic spacing, and clarifies
that this class is only for validation feedback.
Clears up the help text class question in
https://github.com/twbs/bootstrap/pull/18704#issuecomment-168241731 and
addresses the vertical spacing in #18703 .
2016-02-09 01:10:05 -08:00
Mark Otto
04f145b9d5
fix #18515 : add .form-control-label-* classes to match large/small inputs
2016-02-09 00:35:14 -08:00
Mark Otto
51d3267ea9
don't set horizontal padding on .form-control-label /cc #18130 #17498
2016-02-09 00:34:41 -08:00
Mark Otto
c3e4cbdfb0
Move to a translucent input border with background-clip: padding-box for improved blending across different background-colors
2016-02-08 22:28:11 -08:00
Chris Rebert
8141835682
_forms.scss: Use division instead of fractional multiplication
...
[skip sauce]
[skip validator]
2016-02-08 03:34:24 -08:00
Chris Rebert
8ffcb5f055
_forms.scss: Remove extra trailing 0 in fractional number
...
[skip sauce]
[skip validator]
2016-02-08 03:31:54 -08:00
Mark Otto
e455b6b8d2
Merge branch 'v4-dev' into v4-form-sizing
2016-02-07 22:48:26 -08:00
Mark Otto
38c93371c1
updated button/form-control padding and line-height
...
- Moves from no set line-height (inherited of 1.5) to declared 1.25 for
all inputs and buttons (regardless of size modifier).
- Updates padding to be `.5rem` instead of `.375rem` so that padding is
more likely to be whole numbers based on the root font-size.
- Whole numbers will be beneficial in avoiding odd fractional pixels
that can lead to misalignment as shown in #18607 .
- Large buttons and inputs are now a tad wider, and smaller
buttons/inputs a tad shorter and narrower, too.
2016-02-07 22:46:50 -08:00
Mark Otto
ab451e5dc0
Remove commented out height on large/small inputs
2016-02-07 22:43:24 -08:00
Mark Otto
8fcdbd38f8
Remove specific line-heights from large/small inputs as well
2016-02-07 22:43:10 -08:00
Chris Rebert
da848536ce
_forms.scss: Remove extra url()s in commented-out code
...
[skip sauce]
[skip validator]
2016-02-07 20:20:14 -08:00
vsn4ik
e7b0ccff63
Fix CSS3 :not() selector
2016-02-07 19:21:26 +03:00
Mark Otto
caa36b8dd7
Fixes #17194 : Ensure proper height on default select.form-control instances
2016-02-06 18:20:27 -08:00
Mark Otto
697466badf
tweak sizing
2016-02-06 18:05:34 -08:00
Mark Otto
dee1979683
move the url to the variable value
2016-02-06 18:05:24 -08:00
Mark Otto
03ec195974
linter overhaul
2016-02-06 12:28:18 -08:00
Mark Otto
ba37c37615
Redo line-height globally
...
- Rename -height to -height-base to match other vars
- Drop use of -height across the board and rely on it to be inherited
- Adjust padding of .dropdown-header to account for different line-height of h6 heading element (this needs refactoring for variables and rems also)
2016-02-03 19:45:13 -08:00
Chris Rebert
7e2e31e964
scss/_forms.scss: Remove now-unnecessary SCSS-Lint exemption
...
[skip sauce]
2016-01-23 03:06:21 -08:00
Chris Rebert
350ce2f707
Switch to actually-Safari-specific CSS hack when fixing vertical alignment of temporal input text in iOS Safari
...
See http://browserbu.gs/css-hacks/webkit-full-page-media/
Fixes #17308
[skip sauce]
[skip validator]
2016-01-10 18:22:10 -08:00
Chris Rebert
8adc9d771f
Remove remaining reference to <input type="datetime"> in SCSS comment
...
Erratum of #18778
[skip sauce]
[skip validator]
2016-01-08 23:55:23 -08:00
Mark Otto
6a7577d3c6
remove instances of font-weight: normal since we no longer specify bold labels (as of v4)
2016-01-05 00:14:58 -08:00
Mark Otto
30aad997d0
tweak comment
2015-12-07 23:52:10 -08:00
Chris Rebert
9dacdce42c
Use $input-btn-border-width for both .form-control and .btn borders; fixes #18424
...
Both widgets need to use the same border width because of input groups.
Thus:
$btn-border-width => $input-btn-border-width
$input-border-width => $input-btn-border-width
[skip sauce]
2015-12-07 20:41:51 -08:00
Mark Otto
21b15d450d
fixes #18087 : .navbar-form is no more
2015-12-06 16:59:33 -08:00
Chris Rebert
85c9cc806b
.form-control: Use $input-border-width instead of $border-width
...
[skip sauce]
2015-11-15 01:18:40 -08:00
Chris Rebert
2d02910e01
$input-border => $input-border-color
2015-11-14 22:40:43 -08:00
Mark Otto
925f0ca018
fix error to danger
2015-11-14 19:45:48 -08:00
Mark Otto
9f66e7309c
fix broke shit, ugh my bad
2015-11-12 23:15:31 -08:00
Mark Otto
6fd1c80d37
Merge pull request #17153 from kkirsche/patch-17
...
v4 — Change .has-error to .has-danger for uniformity.
2015-11-12 22:20:07 -08:00
Chris Rebert
364925f951
Fix typos in comments
2015-10-28 14:33:48 -07:00
Chris Rebert
25d724b279
_forms.scss: Copy over iOS <input> type compatibility note from v3
...
Refs b6e6a05b95
We ought to re-check this for iOS 9.1 at some point...
[skip sauce]
[skip validator]
2015-10-23 23:05:13 -07:00
Chris Rebert
a180a3362a
Move border-radius mixin from scss/_mixins.scss to scss/mixins/_border-radius.scss
...
Reunites the family.
Closes #17791
2015-10-08 08:56:13 -04:00
Mark Otto
85f08df3b0
fixes border-width issues when customizing font-size by using 1px instead of .0625rem as default -width
2015-09-15 21:11:15 -07:00
Gleb Mazovetskiy
79aebf6c1d
Merge pull request #17364 from twbs/avoid-parent-selector-suffix2
...
Remove all uses of `selector &` to support nested import
2015-09-05 10:14:59 +01:00
Andrew Smith
b424626e97
Update all usages of 'control-label' with 'form-control-label' in docs
2015-09-02 15:01:02 +10:00
Chris Rebert
8ad1f8ddbe
Merge pull request #17331 from twbs/fix-17323
...
rm unused $state param from form-control-validation mixin
2015-08-29 15:55:45 -07:00
Gleb Mazovetskiy
f7b27a02ce
Remove all uses of selector &
...
If we want to support namespaced import:
```scss
.twbs {
@import 'bootstrap';
}
```
We cannot use `selector &`, see sass/sass#1817 .
`fieldset[disabled] &` is not needed as we no longer support IE8.
2015-08-27 13:11:14 +01:00
XhmikosR
3e66427127
Less to Sass typos.
...
[ci skip]
2015-08-27 08:14:39 +03:00
Chris Rebert
5c239aae7d
rm unused $state param from form-control-validation mixin; fixes #17323
...
[skip sauce]
[skip validator]
2015-08-26 01:32:26 -07:00
Mark Otto
b2dccb15d7
fix majority of scss linter errors
2015-08-23 01:00:22 -07:00
Kevin Kirsche
477790c672
Use border-radius mixing in form-control-sm and form-control-lg
...
Fix #17160
2015-08-20 15:53:41 -04:00
Mark Otto
dcc92778d5
really temporarily disable those heights
2015-08-17 23:42:58 -07:00
Mark Otto
c3373df95f
clean out comments that aren't all that helpful
2015-08-17 18:33:34 -07:00
Mark Otto
9b1ee31567
nuke the shared padding vars and assign to individual components
...
- no real need for everything to be 100% shared
- padding looked and felt too large for inputs but not for buttons
- tying forms and buttons seems fine, but throwing in pagination feels wrong
2015-08-13 23:04:16 -07:00
Mark Otto
6af9412674
move form validation icon vars to variables file
2015-08-12 22:39:46 -07:00
Mark Otto
faacbdb49f
Remove .help-block entirely
...
- Fixes #13267 somewhat.
- Instead of a single, block-level class, let's use a combination of existing elements and classes.
- For block-level help text, use p.text-muted.
- For inline-level help text, use span.text-muted or small.text-muted.
2015-08-12 22:14:31 -07:00
Mark Otto
a90f6c7093
reorder variables, rename -color to -color
2015-08-10 23:38:41 -07:00
Mark Otto
7c3f5b6d59
rewrite some forms docs, use new validation styles and icons
2015-08-08 14:15:09 -07:00
Mark Otto
b451104bcd
use mixin on input transition
2015-07-03 18:35:53 -07:00
Mark Otto
4665b9dd6f
Add new variable for -box-shadow
2015-07-03 18:35:46 -07:00