From 199fd35173b58965b348ca2891df1909956aea07 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Fri, 13 Jun 2014 10:36:28 -0700 Subject: [PATCH] Simplify CSS --- css/app.css | 13 +++++++------ js/id/ui/preset/address.js | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/css/app.css b/css/app.css index bf9cbee7b..7884d6ee1 100644 --- a/css/app.css +++ b/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 { diff --git a/js/id/ui/preset/address.js b/js/id/ui/preset/address.js index ff6a04bc6..b1743766c 100644 --- a/js/id/ui/preset/address.js +++ b/js/id/ui/preset/address.js @@ -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