1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-11-22 18:00:06 +01:00

fix form inputs

This commit is contained in:
Matthias Kretschmann 2016-04-16 21:17:09 +02:00
parent 2745963fa4
commit f4a2cd88fd
Signed by: m
GPG Key ID: BD3C1F3EDD7831FC
3 changed files with 3 additions and 10 deletions

View File

@ -65,7 +65,6 @@ select[size]
.form-control
display: block
width: 100%
height: $input-height-base
padding: $padding-base-vertical $padding-base-horizontal
font-size: $input-font-size
font-weight: $input-font-weight
@ -176,11 +175,11 @@ input[type="checkbox"],
/////////////////////////////////////
input-small()
input-size($input-height-small, $padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small)
input-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small)
placeholder(font-size $font-size-small, line-height $line-height-small)
input-large()
input-size($input-height-large, $padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large)
input-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large)
placeholder(font-size $font-size-large, line-height $line-height-large)
.input-small

View File

@ -219,8 +219,7 @@ button-size(padding-vertical, padding-horizontal, font-size, line-height, border
// Form control sizing
/////////////////////////////////////
input-size(input-height, padding-vertical, padding-horizontal, font-size, line-height, border-radius)
height: input-height
input-size(padding-vertical, padding-horizontal, font-size, line-height, border-radius)
padding: padding-vertical padding-horizontal
font-size: font-size
line-height: line-height
@ -232,7 +231,6 @@ input-size(input-height, padding-vertical, padding-horizontal, font-size, line-h
padding-left: (padding-vertical*4)
select&
height: input-height
line-height: input-height
textarea&,

View File

@ -125,10 +125,6 @@ $input-border = $brand-grey-light
$input-border-radius = $border-radius-base
$input-border-focus = $brand-cyan
$input-height-base = ($spacer + ($padding-base-vertical * 2) + 2)
$input-height-large = (ceil($font-size-large * $line-height-large) + ($padding-large-vertical * 2) + 1)
$input-height-small = (floor($font-size-small * $line-height-small) + ($padding-small-vertical * 2) + 2)
// Code
/////////////////////////////////////