Update icons and default stylesheet
This commit is contained in:
@@ -47,4 +47,7 @@
|
|||||||
}
|
}
|
||||||
.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?med5x8');
|
src:url('../fonts/sportspress.eot?ow30gn');
|
||||||
src:url('../fonts/sportspress.eot?#iefixmed5x8') format('embedded-opentype'),
|
src:url('../fonts/sportspress.eot?#iefixow30gn') format('embedded-opentype'),
|
||||||
url('../fonts/sportspress.woff2?med5x8') format('woff2'),
|
url('../fonts/sportspress.woff2?ow30gn') format('woff2'),
|
||||||
url('../fonts/sportspress.ttf?med5x8') format('truetype'),
|
url('../fonts/sportspress.ttf?ow30gn') format('truetype'),
|
||||||
url('../fonts/sportspress.woff?med5x8') format('woff'),
|
url('../fonts/sportspress.woff?ow30gn') format('woff'),
|
||||||
url('../fonts/sportspress.svg?med5x8#sportspress') format('svg');
|
url('../fonts/sportspress.svg?ow30gn#sportspress') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
@@ -127,6 +127,9 @@
|
|||||||
.sp-icon-time:before {
|
.sp-icon-time:before {
|
||||||
content: "\f469";
|
content: "\f469";
|
||||||
}
|
}
|
||||||
|
.sp-icon-timeline:before {
|
||||||
|
content: "\f203";
|
||||||
|
}
|
||||||
.sp-icon-ticket:before {
|
.sp-icon-ticket:before {
|
||||||
content: "\f524";
|
content: "\f524";
|
||||||
}
|
}
|
||||||
@@ -149,7 +152,7 @@
|
|||||||
.sp-icon-key:before {
|
.sp-icon-key:before {
|
||||||
content: "\f112";
|
content: "\f112";
|
||||||
}
|
}
|
||||||
.sp-icon-moon:before {
|
.sp-icon-sub:before {
|
||||||
content: "\f503";
|
content: "\f503";
|
||||||
}
|
}
|
||||||
.sp-icon-baseball:before {
|
.sp-icon-baseball:before {
|
||||||
|
|||||||
@@ -20,6 +20,11 @@
|
|||||||
font-family: dashicons !important;
|
font-family: dashicons !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sp-template [class^="sp-icon-"],
|
||||||
|
.sp-template [class*=" sp-icon-"] {
|
||||||
|
font-family: sportspress, dashicons !important;
|
||||||
|
}
|
||||||
|
|
||||||
.sp-template {
|
.sp-template {
|
||||||
overflow: hidden !important;
|
overflow: hidden !important;
|
||||||
margin-bottom: 20px !important;
|
margin-bottom: 20px !important;
|
||||||
|
|||||||
Binary file not shown.
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 48 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -92,7 +92,7 @@ class SportsPress_Icons {
|
|||||||
$meta = get_post_meta( $id, 'sp_icon', true );
|
$meta = get_post_meta( $id, 'sp_icon', true );
|
||||||
if ( null !== $meta && in_array( $meta, $this->icons ) ) {
|
if ( null !== $meta && in_array( $meta, $this->icons ) ) {
|
||||||
$color = get_post_meta( $id, 'sp_color', true );
|
$color = get_post_meta( $id, 'sp_color', true );
|
||||||
$icon = '<i class="sp-icon-' . $meta . '" style="color:' . $color . '"></i>';
|
$icon = '<i class="sp-icon-' . $meta . '" style="color:' . $color . ' !important"></i>';
|
||||||
}
|
}
|
||||||
return $icon;
|
return $icon;
|
||||||
}
|
}
|
||||||
@@ -108,9 +108,9 @@ class SportsPress_Icons {
|
|||||||
$color = get_post_meta( $id, 'sp_color', true );
|
$color = get_post_meta( $id, 'sp_color', true );
|
||||||
preg_match( '#\((.*?)\)#', $value, $match );
|
preg_match( '#\((.*?)\)#', $value, $match );
|
||||||
if ( ! empty( $match ) && isset( $match[1] ) ) {
|
if ( ! empty( $match ) && isset( $match[1] ) ) {
|
||||||
$icons = '<i class="sp-icon-' . $icon . '" title="' . $title . '" style="color:' . $color . '"></i> ' . $match[1] . '<br>';
|
$icons = '<i class="sp-icon-' . $icon . '" title="' . $title . '" style="color:' . $color . ' !important"></i> ' . $match[1] . '<br>';
|
||||||
} else {
|
} else {
|
||||||
$icons = str_repeat( '<i class="sp-icon-' . $icon . '" title="' . $title . '" style="color:' . $color . '"></i> ', intval( $value ) );
|
$icons = str_repeat( '<i class="sp-icon-' . $icon . '" title="' . $title . '" style="color:' . $color . ' !important"></i> ', intval( $value ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $icons;
|
return $icons;
|
||||||
|
|||||||
Reference in New Issue
Block a user