From 2e444eb7bbb48ff534a639d6d7bab022b02add8f Mon Sep 17 00:00:00 2001 From: Saman Bemel-Benrud Date: Thu, 13 Jun 2013 13:52:08 -0400 Subject: [PATCH 1/1] Fine tune button styling for note popups --- .../javascripts/templates/notes/show.jst.ejs | 4 +-- app/assets/stylesheets/common.css.scss | 27 ++++++++++++++----- 2 files changed, 22 insertions(+), 9 deletions(-) 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 */ -- 2.43.2