Skip to content

Commit

Permalink
feat: Added progress bar styling samples to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Protoss78 authored and masonlouchart committed Dec 30, 2017
1 parent 4463abb commit aa833e3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 4 additions & 2 deletions demo/login-fire-social.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,15 @@ <h3>Max horizontal, no icons login-fire-social Demo</h3>
<style is="custom-style">
login-fire-social.custom {
width: 100%;
--paper-progress-active-color: darkred;
--paper-progress-secondary-color: lightred;
--login-fire-button-text:{
font-size: 12px;
font-weight: bold;
}
};
--login-fire-button-icon:{
display: none
}
};
}
</style>
</template>
Expand Down
2 changes: 2 additions & 0 deletions demo/login-fire.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ <h3>login-fire Demo with all options in dark style</h3>
--paper-input-container-color: #a58e7a;
--paper-input-container-focus-color: #fecea8;
--paper-input-container-input-color: white;
--paper-progress-active-color: orangered;
--paper-progress-secondary-color: whitesmoke;
--login-fire-form: {
width: 400px;
};
Expand Down
5 changes: 3 additions & 2 deletions login-fire-button.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@
@apply --login-fire-btn-signout-hover;
}

paper-progress {
.btn-progress {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
@apply --login-fire-button-progress;
}

[hidden] {
Expand All @@ -147,7 +148,7 @@
<iron-icon class="btn__icon" icon="login-fire-icons:[[provider]]" hidden$="[[_hideIcon]]"></iron-icon>
<iron-icon class="btn__icon" icon="login-fire-icons:logout" hidden$="[[!_hideIcon]]"></iron-icon>
<span class="btn__text">[[_text]]</span>
<paper-progress hidden$="[[!_inProgress]]" disabled$="[[!_inProgress]]" indeterminate></paper-progress>
<paper-progress class="btn-progress" hidden$="[[!_inProgress]]" disabled$="[[!_inProgress]]" indeterminate></paper-progress>
</paper-button>

<firebase-auth id="auth"
Expand Down
9 changes: 5 additions & 4 deletions login-fire-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,12 @@
paper-icon-button {
color: grey;
}
paper-progress {
.btn-progress {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
@apply --login-fire-button-progress;
}
</style>

Expand Down Expand Up @@ -204,7 +205,7 @@
</paper-input>
<paper-button raised$="[[!flat]]" type="submit" on-click="_signUp" class="btn--signup" disabled$="[[_inProgress]]">
<span>[[localize('lf-signup-button')]]</span>
<paper-progress hidden$="[[!_inProgress]]" disabled$="[[!_inProgress]]" indeterminate></paper-progress>
<paper-progress class="btn-progress" hidden$="[[!_inProgress]]" disabled$="[[!_inProgress]]" indeterminate></paper-progress>
</paper-button>
<p class="signup-toggle">
<span>[[localize('lf-already-have-account')]]</span>
Expand All @@ -222,7 +223,7 @@
</p>
<paper-button raised$="[[!flat]]" type="submit" on-click="_signIn" class="btn--signin" disabled$="[[_inProgress]]">
<span>[[localize('lf-signin-button')]]</span>
<paper-progress hidden$="[[!_inProgress]]" disabled$="[[!_inProgress]]" indeterminate></paper-progress>
<paper-progress class="btn-progress" hidden$="[[!_inProgress]]" disabled$="[[!_inProgress]]" indeterminate></paper-progress>
</paper-button>
<template is="dom-if" if="[[!noSignUp]]">
<p class="signup-toggle">
Expand All @@ -238,7 +239,7 @@
<template is="dom-if" if="[[showResetPW]]">
<paper-button raised$="[[!flat]]" type="submit" on-click="_resetPassword" class="btn--resetpw" disabled$="[[_inProgress]]">
<span>[[localize('lf-resetpw-button')]]</span>
<paper-progress hidden$="[[!_inProgress]]" disabled$="[[!_inProgress]]" indeterminate></paper-progress>
<paper-progress class="btn-progress" hidden$="[[!_inProgress]]" disabled$="[[!_inProgress]]" indeterminate></paper-progress>
</paper-button>
<p>
<paper-button class="link--reset-pw" on-click="toggleShowResetPW"
Expand Down

0 comments on commit aa833e3

Please sign in to comment.