mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 15:05:32 +00:00
Simplify CSS
This commit is contained in:
13
css/app.css
13
css/app.css
@@ -1497,32 +1497,33 @@ input[type=number] {
|
||||
|
||||
/* Preset form address */
|
||||
|
||||
.addr-row .addr-column[type="text"] {
|
||||
.addr-row input {
|
||||
border-right: 0;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.addr-row:first-of-type .addr-column[type="text"] {
|
||||
.addr-row:first-of-type input {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.addr-row .addr-column[type="text"]:first-of-type {
|
||||
.addr-row input:first-of-type {
|
||||
border-left: 0;
|
||||
}
|
||||
|
||||
.addr-column[type="text"] {
|
||||
.addr-row input {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.addr-row:last-of-type .addr-column[type="text"]:first-of-type {
|
||||
.addr-row:last-of-type input:first-of-type {
|
||||
border-radius: 0 0 0 4px;
|
||||
}
|
||||
|
||||
.addr-row:last-of-type .addr-column[type="text"]:last-of-type {
|
||||
.addr-row:last-of-type input:last-of-type {
|
||||
border-radius: 0 0 4px 0;
|
||||
}
|
||||
|
||||
.form-field .addr-housename {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.form-field .addr-number {
|
||||
|
||||
@@ -118,7 +118,7 @@ iD.ui.preset.address = function(field, context) {
|
||||
.append('input')
|
||||
.property('type', 'text')
|
||||
.attr('placeholder', function (d) { return field.t('placeholders.' + d); })
|
||||
.attr('class', function (d) { return 'addr-column addr-' + d; });
|
||||
.attr('class', function (d) { return 'addr-' + d; });
|
||||
|
||||
// Update
|
||||
|
||||
|
||||
Reference in New Issue
Block a user