Skip to content

Commit 368666b

Browse files
authored
Remove extra small size (closes #2) (#4)
1 parent b679d57 commit 368666b

File tree

6 files changed

+3
-38
lines changed

6 files changed

+3
-38
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,21 +81,21 @@ const FormGroup = styled.div`
8181
Name | Type | Default | Description
8282
:--- | :--- | :------ | :----------
8383
tag | element | 'div' |
84-
fcSize | One of:<br/>'lg'<br/>'md'<br/>'sm'<br/>'xs' | 'md' |
84+
fcSize | One of:<br/>'lg'<br/>'md'<br/>'sm' | 'md' |
8585

8686
#### Input
8787

8888
Name | Type | Default | Description
8989
:--- | :--- | :------ | :----------
9090
tag | element | 'input' |
91-
fcSize | One of:<br/>'lg'<br/>'md'<br/>'sm'<br/>'xs' | 'md' |
91+
fcSize | One of:<br/>'lg'<br/>'md'<br/>'sm' | 'md' |
9292

9393
#### Select
9494

9595
Name | Type | Default | Description
9696
:--- | :--- | :------ | :----------
9797
tag | element | 'select' |
98-
fcSize | One of:<br/>'lg'<br/>'md'<br/>'sm'<br/>'xs' | 'md' |
98+
fcSize | One of:<br/>'lg'<br/>'md'<br/>'sm' | 'md' |
9999

100100
#### Textarea
101101

src/form-control.styl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,3 @@
8484
border-radius: $input-border-radius-sm;
8585
}
8686
}
87-
88-
.form-control-xs {
89-
height: $input-height-xs;
90-
padding: $input-padding-y-xs $input-padding-x-xs;
91-
font-size: $input-font-size-xs;
92-
line-height: $input-line-height-xs;
93-
94-
if ($enable-rounded) {
95-
border-radius: $input-border-radius-xs;
96-
}
97-
}

src/variables.styl

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,16 @@ $disabled = #ddd;
1212
$font-size-lg = 16px;
1313
$font-size-md = 13px;
1414
$font-size-sm = 12px;
15-
$font-size-xs = 12px;
1615
$font-weight-base = 400;
1716
$line-height-lg = 24px;
1817
$line-height-md = 20px;
1918
$line-height-sm = 18px;
20-
$line-height-xs = 18px;
2119

2220
$border-width = 1px;
2321
$border-color = #ccc;
2422
$border-radius-lg = 3px;
2523
$border-radius-md = 3px;
2624
$border-radius-sm = 3px;
27-
$border-radius-xs = 3px;
2825

2926
$input-btn-padding-y-lg = 9px;
3027
$input-btn-padding-x-lg = 12px;
@@ -41,11 +38,6 @@ $input-btn-padding-x-sm = 12px;
4138
$input-btn-font-size-sm = $font-size-sm;
4239
$input-btn-line-height-sm = $line-height-sm;
4340

44-
$input-btn-padding-y-xs = 1px;
45-
$input-btn-padding-x-xs = 12px;
46-
$input-btn-font-size-xs = $font-size-xs;
47-
$input-btn-line-height-xs = $line-height-xs;
48-
4941
// Forms
5042

5143
$input-font-weight = $font-weight-base;
@@ -65,11 +57,6 @@ $input-padding-x-sm = $input-btn-padding-x-sm;
6557
$input-font-size-sm = $input-btn-font-size-sm;
6658
$input-line-height-sm = $input-btn-line-height-sm;
6759

68-
$input-padding-y-xs = $input-btn-padding-y-xs;
69-
$input-padding-x-xs = $input-btn-padding-x-xs;
70-
$input-font-size-xs = $input-btn-font-size-xs;
71-
$input-line-height-xs = $input-btn-line-height-xs;
72-
7360
$input-background-color = $white;
7461
$input-disabled-background-color = $disabled;
7562

@@ -80,7 +67,6 @@ $input-border-width = $border-width;
8067
$input-border-radius-lg = $border-radius-lg;
8168
$input-border-radius-md = $border-radius-md;
8269
$input-border-radius-sm = $border-radius-sm;
83-
$input-border-radius-xs = $border-radius-xs;
8470

8571
$input-focus-background-color = $input-background-color;
8672
$input-focus-border-color = $primary;
@@ -100,7 +86,4 @@ $input-height-md = "calc(%s + %s)" % ($input-height-inner-md $input-height-borde
10086
$input-height-inner-sm = ($input-line-height-sm) + ($input-padding-y-sm * 2);
10187
$input-height-sm = "calc(%s + %s)" % ($input-height-inner-sm $input-height-border);
10288

103-
$input-height-inner-xs = ($input-line-height-xs) + ($input-padding-y-xs * 2);
104-
$input-height-xs = "calc(%s + %s)" % ($input-height-inner-xs $input-height-border);
105-
10689
$input-transition = border-color .15s ease-in-out;

styleguide/examples/FormControl.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
<FormControl fcSize="sm">
1111
Small
1212
</FormControl>
13-
<FormControl fcSize="xs">
14-
Extra small
15-
</FormControl>
1613
```
1714

1815
### Plain text

styleguide/examples/Input.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
<Input type="text" fcSize="lg" placeholder="Large input" />
55
<Input type="text" fcSize="md" placeholder="Medium input" />
66
<Input type="text" fcSize="sm" placeholder="Small input" />
7-
<Input type="text" fcSize="xs" placeholder="Extra small input" />
87
```
98

109
### Attributes

styleguide/examples/Select.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
<Select fcSize="sm">
1111
<option>Small select</option>
1212
</Select>
13-
<Select fcSize="xs">
14-
<option>Extra small select</option>
15-
</Select>
1613
```
1714

1815
### Attributes

0 commit comments

Comments
 (0)