As a follow up to the addition of the color palette, #1547146: Color palette , the 'view' portion had requests to finesse the styling. The original suggestion was something close to https://drupal.org/node/1051644

Comments

dead_arm’s picture

Title: Adjsut the CSS of the color palette » Adjust the CSS of the color palette
dead_arm’s picture

Status: Active » Needs review
StatusFileSize
new1.31 KB
new24.61 KB

Attached patch adjusts the styling of the swatches in the view mode. I added some spacing and alignment, moved the title of the swatch to sit under the swatch not above it, and changed the border of the swatch from #000 to #f1f1f1.

In the original issue, #1547146: Color palette ifrik requested that the black border be removed because it makes the colors look different. I agree with this, but I also think we need some sort of border if a swatch is white or close to it. Hopefully the light border is sufficient for this edge-case but also does not get in the way.

Example if a swatch color is white:
swatch-CSS.png

jptaranto’s picture

I've reviewed this, code looks fine and I think it's a great change.

jptaranto’s picture

Status: Needs review » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, styleguide-swatchCSS-1863424.2.patch, failed testing.

dead_arm’s picture

Status: Needs work » Needs review
StatusFileSize
new1.05 KB
new2.36 KB

Updated patch attached. The test needed to be changed as well, so that is why the patch failed before.

dead_arm’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.