Remove box-shadows from buttons.

Mechanical CL that removes box-shadows from buttons. This flattens buttons to more
closely match Chrome OS buttons. Box-shadows are very rarely used in Chrome OS, we
should be able to add them back as needed.

The CL finds all the css rules containing a selector for the CSS classes matching
".*buttons?[ ,]" (this covers 'button', 'spinbutton', 'math-buttons' and any
class with a 'button' suffix) in gtk-3.*/adapta.css and gtk-3.*/buttons.css and
removes lines in the body of the rule matching " *box-shadow:[^;]*;".

This removes "box-shadow: none;" in some cases which may add unwanted borders in
some cases, however it should also remove borders from the rules that would be
overridden by "box-shadow: none;" and so should not introduce any new borders.
This removal will allow future box-shadow styles to be applied to all buttons
without having to remove box-shadow special cases.

In testing, no new borders were observed.

Bug: 822495
Change-Id: I8f7ef4ee341b5cf00bbf42ee32ea2e6d98c67a2d
Reviewed-on: https://chromium-review.googlesource.com/1130556
Commit-Ready: Josh Pratt <jopra@chromium.org>
Tested-by: Josh Pratt <jopra@chromium.org>
Reviewed-by: Raymes Khoury <raymes@chromium.org>
4 files changed