Skip to content

Commit

Permalink
[2375] Add a "medium" size to the form
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Jun 6, 2012
1 parent e201371 commit 999551d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions ckan/public/base/less/forms.less
Expand Up @@ -54,6 +54,12 @@ textarea {
width: 100%;
}

.control-medium input,
.control-medium select,
.control-medium textarea {
width: 320px;
}

.control-large input,
.control-large .control-label {
font-size: 18px;
Expand Down Expand Up @@ -184,10 +190,30 @@ textarea {
background: @error-border;
margin: -@input-border-radius 0 0;
color: @input-background;
width: 216px;
}

.error-block {
.border-radius(0 0 @input-border-radius @input-border-radius);
display: block;
padding: 6px 8px 3px;
background: @error-border;
margin: -@input-border-radius 0 0;
color: @input-background;
width: 216px;
}

.control-medium .error-block {
width: 326px;
}

.control-full .error-block {
width: auto;
}

.control-group.error .input-prepend .error-block {
margin-left: -1px;
width: auto;
}

// Stages
Expand Down

0 comments on commit 999551d

Please sign in to comment.