Add options to box score icons
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
/* SportsPress icons */
|
/* SportsPress icons */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'sportspress';
|
font-family: 'sportspress';
|
||||||
src:url('../fonts/sportspress.eot?-76nsup');
|
src:url('../fonts/sportspress.eot?ddphik');
|
||||||
src:url('../fonts/sportspress.eot?#iefix-76nsup') format('embedded-opentype'),
|
src:url('../fonts/sportspress.eot?#iefixddphik') format('embedded-opentype'),
|
||||||
url('../fonts/sportspress.woff2?-76nsup') format('woff2'),
|
url('../fonts/sportspress.woff2?ddphik') format('woff2'),
|
||||||
url('../fonts/sportspress.ttf?-76nsup') format('truetype'),
|
url('../fonts/sportspress.ttf?ddphik') format('truetype'),
|
||||||
url('../fonts/sportspress.woff?-76nsup') format('woff'),
|
url('../fonts/sportspress.woff?ddphik') format('woff'),
|
||||||
url('../fonts/sportspress.svg?-76nsup#sportspress') format('svg');
|
url('../fonts/sportspress.svg?ddphik#sportspress') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@@ -30,24 +30,82 @@
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Performance Icons */
|
||||||
|
.sp-icon-sub:before {
|
||||||
|
content: "\f503";
|
||||||
|
}
|
||||||
|
.sp-icon-star-filled:before {
|
||||||
|
content: "\f155";
|
||||||
|
}
|
||||||
|
.sp-icon-update:before {
|
||||||
|
content: "\f113";
|
||||||
|
}
|
||||||
|
.sp-icon-undo:before {
|
||||||
|
content: "\f171";
|
||||||
|
}
|
||||||
|
.sp-icon-redo:before {
|
||||||
|
content: "\f172";
|
||||||
|
}
|
||||||
|
.sp-icon-marker:before {
|
||||||
|
content: "\f159";
|
||||||
|
}
|
||||||
|
.sp-icon-no:before {
|
||||||
|
content: "\f158";
|
||||||
|
}
|
||||||
|
.sp-icon-heart:before {
|
||||||
|
content: "\f487";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Performance Icons - Sports */
|
||||||
|
.sp-icon-soccerball:before {
|
||||||
|
content: "\e700";
|
||||||
|
}
|
||||||
.sp-icon-baseball:before {
|
.sp-icon-baseball:before {
|
||||||
content: "\e701";
|
content: "\e701";
|
||||||
}
|
}
|
||||||
.sp-icon-basketball:before {
|
.sp-icon-basketball:before {
|
||||||
content: "\e602";
|
content: "\e602";
|
||||||
}
|
}
|
||||||
|
.sp-icon-golfball:before {
|
||||||
|
content: "\e603";
|
||||||
|
}
|
||||||
.sp-icon-cricketball:before {
|
.sp-icon-cricketball:before {
|
||||||
content: "\e604";
|
content: "\e604";
|
||||||
}
|
}
|
||||||
.sp-icon-soccerball:before {
|
.sp-icon-bowling:before {
|
||||||
content: "\e700";
|
content: "\e605";
|
||||||
}
|
}
|
||||||
|
.sp-icon-ice-hockey:before {
|
||||||
|
content: "\e606";
|
||||||
|
}
|
||||||
|
.sp-icon-football:before {
|
||||||
|
content: "\e607";
|
||||||
|
}
|
||||||
|
.sp-icon-poolball:before {
|
||||||
|
content: "\e608";
|
||||||
|
}
|
||||||
|
.sp-icon-table-tennis:before {
|
||||||
|
content: "\e609";
|
||||||
|
}
|
||||||
|
.sp-icon-tennis:before {
|
||||||
|
content: "\e610";
|
||||||
|
}
|
||||||
|
.sp-icon-racing-flag:before {
|
||||||
|
content: "\e611";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Performance Icons - Sports (Alt) */
|
||||||
|
.sp-icon-soccerball-alt:before {
|
||||||
|
content: "\e600";
|
||||||
|
}
|
||||||
|
.sp-icon-baseball-alt:before {
|
||||||
|
content: "\e601";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Performance Icons - Misc */
|
||||||
.sp-icon-shoe:before {
|
.sp-icon-shoe:before {
|
||||||
content: "\e800";
|
content: "\e800";
|
||||||
}
|
}
|
||||||
.sp-icon-card:before {
|
.sp-icon-card:before {
|
||||||
content: "\e801";
|
content: "\e801";
|
||||||
}
|
}
|
||||||
.sp-icon-sub:before {
|
|
||||||
content: "\f503";
|
|
||||||
}
|
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
/* SportsPress menu styles */
|
/* SportsPress menu styles */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'sportspress';
|
font-family: 'sportspress';
|
||||||
src:url('../fonts/sportspress.eot?wwkd2y');
|
src:url('../fonts/sportspress.eot?ddphik');
|
||||||
src:url('../fonts/sportspress.eot?#iefixwwkd2y') format('embedded-opentype'),
|
src:url('../fonts/sportspress.eot?#iefixddphik') format('embedded-opentype'),
|
||||||
url('../fonts/sportspress.woff2?wwkd2y') format('woff2'),
|
url('../fonts/sportspress.woff2?ddphik') format('woff2'),
|
||||||
url('../fonts/sportspress.ttf?wwkd2y') format('truetype'),
|
url('../fonts/sportspress.ttf?ddphik') format('truetype'),
|
||||||
url('../fonts/sportspress.woff?wwkd2y') format('woff'),
|
url('../fonts/sportspress.woff?ddphik') format('woff'),
|
||||||
url('../fonts/sportspress.svg?wwkd2y#sportspress') format('svg');
|
url('../fonts/sportspress.svg?ddphik#sportspress') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@@ -167,10 +167,34 @@
|
|||||||
.sp-icon-yoast:before {
|
.sp-icon-yoast:before {
|
||||||
content: "\f179";
|
content: "\f179";
|
||||||
}
|
}
|
||||||
|
.sp-icon-sub:before {
|
||||||
|
content: "\f503";
|
||||||
|
}
|
||||||
|
.sp-icon-star-filled:before {
|
||||||
|
content: "\f155";
|
||||||
|
}
|
||||||
|
.sp-icon-update:before {
|
||||||
|
content: "\f113";
|
||||||
|
}
|
||||||
|
.sp-icon-undo:before {
|
||||||
|
content: "\f171";
|
||||||
|
}
|
||||||
|
.sp-icon-redo:before {
|
||||||
|
content: "\f172";
|
||||||
|
}
|
||||||
|
.sp-icon-marker:before {
|
||||||
|
content: "\f159";
|
||||||
|
}
|
||||||
|
.sp-icon-no:before {
|
||||||
|
content: "\f158";
|
||||||
|
}
|
||||||
|
.sp-icon-heart:before {
|
||||||
|
content: "\f487";
|
||||||
|
}
|
||||||
|
|
||||||
/* Performance Icons */
|
/* Performance Icons - Sports */
|
||||||
.sp-icon-card:before {
|
.sp-icon-soccerball:before {
|
||||||
content: "\e801";
|
content: "\e700";
|
||||||
}
|
}
|
||||||
.sp-icon-baseball:before {
|
.sp-icon-baseball:before {
|
||||||
content: "\e701";
|
content: "\e701";
|
||||||
@@ -178,23 +202,51 @@
|
|||||||
.sp-icon-basketball:before {
|
.sp-icon-basketball:before {
|
||||||
content: "\e602";
|
content: "\e602";
|
||||||
}
|
}
|
||||||
|
.sp-icon-golfball:before {
|
||||||
|
content: "\e603";
|
||||||
|
}
|
||||||
.sp-icon-cricketball:before {
|
.sp-icon-cricketball:before {
|
||||||
content: "\e604";
|
content: "\e604";
|
||||||
}
|
}
|
||||||
.sp-icon-golfball:before {
|
.sp-icon-bowling:before {
|
||||||
content: "\e603";
|
content: "\e605";
|
||||||
|
}
|
||||||
|
.sp-icon-ice-hockey:before {
|
||||||
|
content: "\e606";
|
||||||
}
|
}
|
||||||
.sp-icon-football:before {
|
.sp-icon-football:before {
|
||||||
content: "\e607";
|
content: "\e607";
|
||||||
}
|
}
|
||||||
|
.sp-icon-poolball:before {
|
||||||
|
content: "\e608";
|
||||||
|
}
|
||||||
|
.sp-icon-table-tennis:before {
|
||||||
|
content: "\e609";
|
||||||
|
}
|
||||||
|
.sp-icon-tennis:before {
|
||||||
|
content: "\e610";
|
||||||
|
}
|
||||||
|
.sp-icon-racing-flag:before {
|
||||||
|
content: "\e611";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Performance Icons - Sports (Alt) */
|
||||||
|
.sp-icon-soccerball-alt:before {
|
||||||
|
content: "\e600";
|
||||||
|
}
|
||||||
|
.sp-icon-baseball-alt:before {
|
||||||
|
content: "\e601";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Performance Icons - Misc */
|
||||||
.sp-icon-shoe:before {
|
.sp-icon-shoe:before {
|
||||||
content: "\e800";
|
content: "\e800";
|
||||||
}
|
}
|
||||||
.sp-icon-soccerball:before {
|
.sp-icon-card:before {
|
||||||
content: "\e700";
|
content: "\e801";
|
||||||
}
|
}
|
||||||
.sp-icon-sub:before {
|
.sp-icon-card:before {
|
||||||
content: "\f503";
|
content: "\e801";
|
||||||
}
|
}
|
||||||
|
|
||||||
#adminmenu #toplevel_page_sportspress .toplevel_page_sportspress div.wp-menu-image:before,
|
#adminmenu #toplevel_page_sportspress .toplevel_page_sportspress div.wp-menu-image:before,
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 62 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -76,12 +76,29 @@ class SportsPress_Icons {
|
|||||||
private function get_icons() {
|
private function get_icons() {
|
||||||
$this->icons = apply_filters( 'sportspress_icons', array(
|
$this->icons = apply_filters( 'sportspress_icons', array(
|
||||||
'soccerball',
|
'soccerball',
|
||||||
|
'soccerball-alt',
|
||||||
'baseball',
|
'baseball',
|
||||||
|
'baseball-alt',
|
||||||
'basketball',
|
'basketball',
|
||||||
|
'golfball',
|
||||||
'cricketball',
|
'cricketball',
|
||||||
|
'bowling',
|
||||||
|
'ice-hockey',
|
||||||
'football',
|
'football',
|
||||||
|
'poolball',
|
||||||
|
'table-tennis',
|
||||||
|
'tennis',
|
||||||
|
'racing-flag',
|
||||||
'shoe',
|
'shoe',
|
||||||
'card',
|
'card',
|
||||||
|
'sub',
|
||||||
|
'update',
|
||||||
|
'undo',
|
||||||
|
'redo',
|
||||||
|
'marker',
|
||||||
|
'no',
|
||||||
|
'heart',
|
||||||
|
'star-filled',
|
||||||
) );
|
) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user