Skip to content

Commit

Permalink
fix: dokan seller setup wizard style (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
saimonh3 authored and sabbir1991 committed Nov 26, 2018
1 parent b306762 commit 5137957
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
7 changes: 3 additions & 4 deletions assets/css/setup.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,13 @@
}
.wc-setup .wc-setup-actions .button-primary {
color: #fff;
background: #f2624d !important;
border-color: #f2624d !important;
text-shadow: 0 -1px 1px #ef381d, 1px 0 1px #ef381d, 0 1px 1px #ef381d, -1px 0 1px #ef381d;
background: #f2624d;
border-color: #f2624d;
}
.wc-setup .wc-setup-actions .button-primary:hover,
.wc-setup .wc-setup-actions .button-primary:active,
.wc-setup .wc-setup-actions .button-primary:focus {
background-color: #ef381d !important;
background-color: #ef381d;
}
.wc-setup .wc-setup-content a {
color: #f2624d;
Expand Down
7 changes: 3 additions & 4 deletions assets/src/less/setup.less
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,13 @@

.button-primary {
color: #fff;
background: @dokan-color !important;
border-color: @dokan-color !important;
text-shadow: 0 -1px 1px @dokan-color-darken, 1px 0 1px @dokan-color-darken, 0 1px 1px @dokan-color-darken, -1px 0 1px @dokan-color-darken;
background: @dokan-color;
border-color: @dokan-color;

&:hover,
&:active,
&:focus {
background-color: @dokan-color-darken !important;
background-color: @dokan-color-darken;
}
}
}
Expand Down
10 changes: 5 additions & 5 deletions classes/seller-setup-wizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,8 @@ public function dokan_setup_store() {

</table>
<p class="wc-setup-actions step">
<input type="submit" class="button-primary button button-large button-next store-step-continue" value="<?php esc_attr_e( 'Continue', 'dokan-lite' ); ?>" name="save_step" />
<a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button button-large button-next store-step-skip-btn"><?php _e( 'Skip this step', 'dokan-lite' ); ?></a>
<input type="submit" class="button-primary button button-large button-next store-step-continue dokan-btn-theme" value="<?php esc_attr_e( 'Continue', 'dokan-lite' ); ?>" name="save_step" />
<a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button button-large button-next store-step-skip-btn dokan-btn-theme"><?php _e( 'Skip this step', 'dokan-lite' ); ?></a>
<?php wp_nonce_field( 'dokan-seller-setup' ); ?>
</p>
</form>
Expand Down Expand Up @@ -375,8 +375,8 @@ public function dokan_setup_payment() {
?>
</table>
<p class="wc-setup-actions step">
<input type="submit" class="button-primary button button-large button-next payment-continue-btn" value="<?php esc_attr_e( 'Continue', 'dokan-lite' ); ?>" name="save_step" />
<a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button button-large button-next payment-step-skip-btn"><?php _e( 'Skip this step', 'dokan-lite' ); ?></a>
<input type="submit" class="button-primary button button-large button-next payment-continue-btn dokan-btn-theme" value="<?php esc_attr_e( 'Continue', 'dokan-lite' ); ?>" name="save_step" />
<a href="<?php echo esc_url( $this->get_next_step_link() ); ?>" class="button button-large button-next payment-step-skip-btn dokan-btn-theme"><?php _e( 'Skip this step', 'dokan-lite' ); ?></a>
<?php wp_nonce_field( 'dokan-seller-setup' ); ?>
</p>
</form>
Expand Down Expand Up @@ -442,7 +442,7 @@ public function dokan_setup_ready() {

<div class="dokan-setup-done-content">
<p class="wc-setup-actions step">
<a class="button button-primary" href="<?php echo esc_url( $dashboard_url ); ?>"><?php _e( 'Go to your Store Dashboard!', 'dokan-lite' ); ?></a>
<a class="button button-primary dokan-btn-theme" href="<?php echo esc_url( $dashboard_url ); ?>"><?php _e( 'Go to your Store Dashboard!', 'dokan-lite' ); ?></a>
</p>
</div>
<?php
Expand Down

0 comments on commit 5137957

Please sign in to comment.