From: Saman Bemel-Benrud Date: Thu, 13 Jun 2013 17:52:08 +0000 (-0400) Subject: Fine tune button styling for note popups X-Git-Tag: live~4907 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/2e444eb7bbb48ff534a639d6d7bab022b02add8f?hp=34edfdb9bae297144331b46dfe52319d13e519a3 Fine tune button styling for note popups --- diff --git a/app/assets/javascripts/templates/notes/show.jst.ejs b/app/assets/javascripts/templates/notes/show.jst.ejs index cc81bb9d3..63177012c 100644 --- a/app/assets/javascripts/templates/notes/show.jst.ejs +++ b/app/assets/javascripts/templates/notes/show.jst.ejs @@ -24,8 +24,8 @@
+ -
@@ -33,7 +33,7 @@
- +
diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 7331e201a..362071988 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -1640,27 +1640,40 @@ a.button { .button { box-sizing: border-box; float: left; - margin-bottom:0; + border-radius: 0; + margin:0; min-width: 100px; max-width: 150px; + border-right:1px solid white; } input:first-child, .button:first-child { border-radius:2px 0 0 2px; - border-right:1px solid white; - margin-left: 0px; } input:last-child, .button:last-child { border-radius:0 2px 2px 0; - margin-right: 0px; + border-right-width: 0; } input:only-child, - .button:only-child { + .button:only-child, + *[value="Hide"] + input:last-child, + *[value="Hide"] + .button:last-child { border-radius:2px; - margin-right: 0px; + border-right-width: 0; + } + /* if a 3-button set has a hidden middle button */ + *[value="Hide"] + input:nth-child(3), + *[value="Hide"] + .button:nth-child(3) { + border-radius:0 2px 2px 0; + border-right-width: 0; + } + /* if a 3-button set starts with a hidden button */ + *[value="Hide"] + input:nth-child(2):not(:last-child), + *[value="Hide"] + .button:nth-child(2):not(:last-child) { + border-radius:2px 0 0 2px; + border-right-width: 1px solid white; } - } /* Rules for doing distinct colour of alternate table rows */