-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate dashboard icons to icon-font
Using a font instead of custom inline-svg all default dashboard styles are applied to the Cachify icons, too. Convert the current icons into a font using IcoMoon app and adjust the output accordingly. Preserve original SVG files, but do not distribute. Inline WOFF2 to prevent additional requests for most modern browsers.
- Loading branch information
Showing
11 changed files
with
62 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
/.github | ||
/.wordpress-org | ||
/bin | ||
/images/src | ||
/node_modules | ||
/tests | ||
/vendor | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"extends": "@wordpress/stylelint-config", | ||
"rules": { | ||
"font-family-no-missing-generic-family-keyword": null, | ||
"selector-id-pattern": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,37 @@ | ||
/* @group Dashboard */ | ||
#dashboard_right_now .cachify-icon { | ||
width: 19px; | ||
height: 13px; | ||
fill: #606a73; | ||
@font-face { | ||
font-family: cachify-symbols; | ||
src: url(../images/symbols.eot); | ||
src: | ||
url(../images/symbols.eot#iefix) format("embedded-opentype"), | ||
url(data:font/woff2;base64,d09GMgABAAAAAAUYAA0AAAAACjAAAATBAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGhgGYACCZhEICokshzsLEgABNgIkAxwEIAWDGwdaG0cIII7URvMXGYLngU7r/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qhd69FSDO/DDow1yslzuNSZ3YbVQWMgO1Bpl+qP5Oqa0Vxs2G97A3mFwV6emdG/vrNC8/tcL1OxId7r/yyIWLSIrqMiorrNpnBd21ar1UzhPaTJ7jtI47D59qumZ3Z4XlKoiK5bGVTyndzeJInmeWmaWNA3n7j5+9+lXXJqiCC46jZaTPHlWs/PzaDxnNk3CeVIrr9N6FZNfb55cOHeAo+5v5hSN9fjrKD5tOKSeBswoAAisgYsxHAMwmIPQM40aDOlGVMFBSaqRQHJmcaFpJ7CCnR0IOcGEEyIFSiMVGiINeooNpDDNY1RB8n6dVO6gIpoFwQ4QKRBEKkSQBi3FBvwM9BgDvPhCnaosYziFjGU0YxnLGBi+M+oZ297XmcEMZTKjiDIB3uk3Cy5TsnF3BjOBiQzvzSafikTgPMCS+RUj7r7mos5JZDOUwYyZmXyUSQxmUGUB08mmFUO7eEW44DFykBhvVTj2f2Q8ACj0zzSDKCiiooomBjGaJo8ZHiHHJD5f1KxWJAL53soAAAA=) format("woff2"), | ||
url(../images/symbols.woff) format("woff"), | ||
url(../images/symbols.ttf) format("truetype"), | ||
url(../images/symbols.svg#cachify) format("svg"); | ||
font-weight: 400; | ||
font-style: normal; | ||
font-display: block; | ||
} | ||
|
||
html.dark-mode body:not(.block-editor-page) #dashboard_right_now .cachify-icon { | ||
fill: #bbc8d4; | ||
} | ||
|
||
#dashboard_right_now li a.cachify-glance::before { | ||
content: ""; | ||
padding: 0; | ||
}/* @end group */ | ||
font: 400 13px/1 cachify-symbols; | ||
} | ||
|
||
#dashboard_right_now li a.cachify-glance.cachify-icon-db::before { | ||
content: "\e900"; | ||
} | ||
|
||
#dashboard_right_now li a.cachify-glance.cachify-icon-hdd::before { | ||
content: "\e901"; | ||
} | ||
|
||
#dashboard_right_now li a.cachify-glance.cachify-icon-apc::before, | ||
#dashboard_right_now li a.cachify-glance.cachify-icon-memcached::before { | ||
content: "\e902"; | ||
} | ||
|
||
/* @end group */ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Oops, something went wrong.