This commit is contained in:
Lieu Le 2019-09-28 14:51:01 +07:00
parent 758df32f28
commit cdc5a562aa
10 changed files with 24 additions and 18 deletions

View File

@ -2867,6 +2867,7 @@ ul.property-status {
line-height: 1; } line-height: 1; }
.opalestate-rating__stars::before { .opalestate-rating__stars::before {
font-family: "Font Awesome 5 Free"; font-family: "Font Awesome 5 Free";
font-weight: 400;
font-size: inherit; font-size: inherit;
text-rendering: auto; text-rendering: auto;
content: "\f005\f005\f005\f005\f005"; content: "\f005\f005\f005\f005\f005";
@ -2886,6 +2887,7 @@ ul.property-status {
font-size: inherit; font-size: inherit;
text-rendering: auto; text-rendering: auto;
content: "\f005\f005\f005\f005\f005"; content: "\f005\f005\f005\f005\f005";
font-weight: 900;
color: #f6be15; color: #f6be15;
position: absolute; position: absolute;
top: 0; top: 0;
@ -2908,13 +2910,16 @@ p.stars a {
height: 1em; height: 1em;
line-height: 1; line-height: 1;
font-family: "Font Awesome 5 Free"; font-family: "Font Awesome 5 Free";
content: "\f006"; font-weight: 400;
content: "\f005";
text-indent: 0; } text-indent: 0; }
p.stars a:hover ~ a::before { p.stars a:hover ~ a::before {
content: "\f006"; } content: "\f005";
font-weight: 400; }
p.stars:hover a::before { p.stars:hover a::before {
content: '\f005'; } content: '\f005';
font-weight: 900; }
p.stars.selected a.active::before { p.stars.selected a.active::before {
content: '\f005'; } content: '\f005'; }

View File

@ -99,9 +99,9 @@ ul.property-status{
font-size: $font-size-base; font-size: $font-size-base;
width: calc(#{$font-size-base}*5 - 5px); width: calc(#{$font-size-base}*5 - 5px);
line-height: 1; line-height: 1;
&::before{ &::before{
font-family:$font-family-icon; font-family:$font-family-icon;
font-weight: 400;
font-size: inherit; font-size: inherit;
text-rendering: auto; text-rendering: auto;
content: "\f005\f005\f005\f005\f005"; content: "\f005\f005\f005\f005\f005";
@ -122,6 +122,7 @@ ul.property-status{
font-size: inherit; font-size: inherit;
text-rendering: auto; text-rendering: auto;
content: "\f005\f005\f005\f005\f005"; content: "\f005\f005\f005\f005\f005";
font-weight: 900;
color: #f6be15; color: #f6be15;
position: absolute; position: absolute;
top: 0; top: 0;
@ -138,7 +139,6 @@ p.stars {
text-indent: -999em; text-indent: -999em;
display: inline-block; display: inline-block;
text-decoration: none; text-decoration: none;
&::before { &::before {
display: block; display: block;
position: absolute; position: absolute;
@ -148,14 +148,15 @@ p.stars {
height: 1em; height: 1em;
line-height: 1; line-height: 1;
font-family: $font-family-icon; font-family: $font-family-icon;
content: "\f006"; font-weight: 400;
content: "\f005";
text-indent: 0; text-indent: 0;
} }
&:hover { &:hover {
~ a::before { ~ a::before {
content: "\f005";
content: "\f006"; font-weight: 400;
} }
} }
} }
@ -163,8 +164,8 @@ p.stars {
&:hover { &:hover {
a { a {
&::before { &::before {
content: '\f005'; content: '\f005';
font-weight: 900;
} }
} }
} }

View File

@ -15,7 +15,7 @@ $agent = new OpalEstate_Agent();
<?php endif; ?> <?php endif; ?>
<?php if ( $agent->get_trusted() ): ?> <?php if ( $agent->get_trusted() ): ?>
<span class="trusted-label hint--top" aria-label="<?php esc_attr_e( 'Trusted Member', 'opalestate-pro' ); ?>" title="<?php esc_attr_e( 'Trusted Member', 'opalestate-pro' ); ?>"> <span class="trusted-label hint--top" aria-label="<?php esc_attr_e( 'Trusted Member', 'opalestate-pro' ); ?>" title="<?php esc_attr_e( 'Trusted Member', 'opalestate-pro' ); ?>">
<i class="fab fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<?php endif; ?> <?php endif; ?>
</header> </header>

View File

@ -25,7 +25,7 @@ $agent = new OpalEstate_Agent();
<?php if ( $agent->get_trusted() ): ?> <?php if ( $agent->get_trusted() ): ?>
<span class="trusted-label hint--top" aria-label="<?php esc_attr_e( 'Trusted Member', 'opalestate-pro' ); ?>" <span class="trusted-label hint--top" aria-label="<?php esc_attr_e( 'Trusted Member', 'opalestate-pro' ); ?>"
title="<?php esc_attr_e( 'Trusted Member', 'opalestate-pro' ); ?>"> title="<?php esc_attr_e( 'Trusted Member', 'opalestate-pro' ); ?>">
<i class="fab fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<?php endif; ?> <?php endif; ?>
</h4><!-- /.agent-box-title --> </h4><!-- /.agent-box-title -->

View File

@ -47,7 +47,7 @@ if ( $agent_id ) {
<?php endif; ?> <?php endif; ?>
<?php if ( $agent->get_trusted() ): ?> <?php if ( $agent->get_trusted() ): ?>
<span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>" title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>"> <span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>" title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>">
<i class="fab fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>

View File

@ -28,7 +28,7 @@ $address = $agency->get_meta( 'address' ); ?>
<?php if ( $agency->get_trusted() ): ?> <?php if ( $agency->get_trusted() ): ?>
<span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>" title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>"> <span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>" title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>">
<i class="fab fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<?php endif; ?> <?php endif; ?>
</header> </header>

View File

@ -23,7 +23,7 @@ $agent = new OpalEstate_Agent();
<?php if ( $agent->get_trusted() ): ?> <?php if ( $agent->get_trusted() ): ?>
<span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>" <span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>"
title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>"> title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>">
<i class="fab fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<?php endif; ?> <?php endif; ?>
</div><!-- /.agent-box-image --> </div><!-- /.agent-box-image -->

View File

@ -26,7 +26,7 @@
<?php if( $trusted ): ?> <?php if( $trusted ): ?>
<span class="trusted-label hint--top" aria-label="<?php esc_html_e('Trusted Member', 'opalestate-pro'); ?>" title="<?php esc_html_e('Trusted Member', 'opalestate-pro'); ?>"> <span class="trusted-label hint--top" aria-label="<?php esc_html_e('Trusted Member', 'opalestate-pro'); ?>" title="<?php esc_html_e('Trusted Member', 'opalestate-pro'); ?>">
<i class="fab fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<?php endif; ?> <?php endif; ?>

View File

@ -50,7 +50,7 @@
<?php if ( $trusted ): ?> <?php if ( $trusted ): ?>
<span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>" <span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>"
title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>"> title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>">
<i class="fab fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<?php endif; ?> <?php endif; ?>
@ -64,7 +64,7 @@
<?php $phone = get_user_meta( $user_id, $prefix . 'phone', true ); ?> <?php $phone = get_user_meta( $user_id, $prefix . 'phone', true ); ?>
<?php if ( ! empty( $phone ) ) : ?> <?php if ( ! empty( $phone ) ) : ?>
<div class="agent-box-phone"> <div class="agent-box-phone">
<i class="fab fa-phone"></i><span><a href="tel:<?php echo sanitize_title( $phone ); ?>"><?php echo esc_attr( $phone ); ?></a></span> <i class="fas fa-phone"></i><span><a href="tel:<?php echo sanitize_title( $phone ); ?>"><?php echo esc_attr( $phone ); ?></a></span>
</div><!-- /.agent-box-phone --> </div><!-- /.agent-box-phone -->
<?php endif; ?> <?php endif; ?>
</div><!-- /.agent-box-content --> </div><!-- /.agent-box-content -->

View File

@ -65,7 +65,7 @@
<?php if ( $trusted ): ?> <?php if ( $trusted ): ?>
<span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>" <span class="trusted-label hint--top" aria-label="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>"
title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>"> title="<?php esc_html_e( 'Trusted Member', 'opalestate-pro' ); ?>">
<i class="fab fa-star"></i> <i class="fas fa-star"></i>
</span> </span>
<?php endif; ?> <?php endif; ?>