diff options
author | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2019-06-05 12:30:30 -0500 |
---|---|---|
committer | Yoshie Muranaka <yoshiemuranaka@gmail.com> | 2019-06-21 14:27:51 -0500 |
commit | c86ce3c9c7736ef199d885596b6fc745c7d8c86e (patch) | |
tree | d8ce85478e7436298e328e91f0997d03747530b3 /app/assets/images/icon-plus.svg | |
parent | e4194ce0dc8a941c4f30fd0995f9ba4c13cec560 (diff) | |
download | phosphor-webui-c86ce3c9c7736ef199d885596b6fc745c7d8c86e.tar.gz phosphor-webui-c86ce3c9c7736ef199d885596b6fc745c7d8c86e.zip |
Consolidate button styles
This patchset will create consistent button styling according
to the styleguide and remove redundant button styles by creating
reusable button classes.
This patchset also implements a consistent strategy for including
icon assets. Currently, svg icons are imported as CSS background
images or inlined into the markup. Inlining an svg is preferred,
especially when used with buttons or links so the colors can
be easily changed for different states (hover, focus, disabled)
without having to request variants.
The icon provider allows us to inline svgs without cluttering
the markup. Webpack config was adjusted to use svg-inline-loader
when resolving svgs that are used by the icon provider directive.
- All svgs were optimized to remove unncessary information.
- Removed unused svg color variants
- Moved icons used by icon provider to separate directory to
avoid Webpack parsing the files twice
- Small changes to navigation icons
Signed-off-by: Yoshie Muranaka <yoshiemuranaka@gmail.com>
Change-Id: I1ca214b74fc502e6b6e760cfee88b48110237c43
Diffstat (limited to 'app/assets/images/icon-plus.svg')
-rw-r--r-- | app/assets/images/icon-plus.svg | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/app/assets/images/icon-plus.svg b/app/assets/images/icon-plus.svg deleted file mode 100644 index 0e18b22..0000000 --- a/app/assets/images/icon-plus.svg +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<svg width="19px" height="19px" viewBox="0 0 19 19" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> -<defs> - <path d="M10.3189655,8.7447318 L13.822318,8.7447318 L13.822318,10.5464559 L10.3189655,10.5464559 L10.3189655,14.0498084 L8.51724138,14.0498084 L8.51724138,10.5464559 L5.01388889,10.5464559 L5.01388889,8.7447318 L8.51724138,8.7447318 L8.51724138,5.24137931 L10.3189655,5.24137931 L10.3189655,8.7447318 Z M9.5,19 C4.25329488,19 0,14.7467051 0,9.5 C0,4.25329488 4.25329488,0 9.5,0 C14.7467051,0 19,4.25329488 19,9.5 C19,14.7467051 14.7467051,19 9.5,19 Z M9.55533929,17.6650264 C14.0341958,17.6650264 17.6650264,14.0341958 17.6650264,9.55533929 C17.6650264,5.07648277 14.0341958,1.44565217 9.55533929,1.44565217 C5.07648277,1.44565217 1.44565217,5.07648277 1.44565217,9.55533929 C1.44565217,14.0341958 5.07648277,17.6650264 9.55533929,17.6650264 Z" id="path-1"></path> -</defs> -<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> - <g id="Icon/Add" transform="translate(-6.000000, -6.000000)"> - <g id="Icon" transform="translate(6.000000, 6.000000)"> - <mask id="mask-2" fill="white"> - <use xlink:href="#path-1"></use> - </mask> - <use id="Mask" fill="#2d60e5" fill-rule="nonzero" xlink:href="#path-1"></use> - <g id="Colors/Base/Blue50" mask="url(#mask-2)" fill="#3c6df0"> - <g transform="translate(-3.275862, -3.931034)" id="Rectangle-6-Copy"> - <rect x="0" y="0" width="25" height="25"></rect> - </g> - </g> - </g> - </g> -</g> -</svg> |