mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-16 09:34:28 +02:00
#1149 keep command visible and have small link to reset animation
This commit is contained in:
parent
05464d167e
commit
ad95c98ef2
3 changed files with 26 additions and 10 deletions
|
@ -21,7 +21,7 @@ var GitDemonstrationView = ContainedBase.extend({
|
|||
|
||||
events: {
|
||||
'click div.command > p.uiButton:not([target="reset"])': 'positive',
|
||||
'click div.command > p.uiButton[target="reset"]': 'onResetButtonClick',
|
||||
'click div.command > p[target="reset"]': 'onResetButtonClick',
|
||||
},
|
||||
|
||||
initialize: function(options) {
|
||||
|
|
|
@ -1146,8 +1146,26 @@ div.gitDemonstrationView {
|
|||
opacity: 0;
|
||||
}
|
||||
|
||||
.gitDemonstrationView p.uiButton[target="reset"] {
|
||||
.gitDemonstrationView p[target="reset"] {
|
||||
display: none;
|
||||
opacity: 0.0;
|
||||
}
|
||||
|
||||
.gitDemonstrationView p.uiButton {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
|
||||
.gitDemonstrationView.demonstrated p[target="reset"] {
|
||||
display: block;
|
||||
margin: 0.5em 0;
|
||||
opacity: 0.3;
|
||||
font-size: 8pt;
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.gitDemonstrationView div.afterText p {
|
||||
margin-top: 0.1em;
|
||||
}
|
||||
|
||||
.gitDemonstrationView.demonstrated div.afterText {
|
||||
|
@ -1159,12 +1177,10 @@ div.gitDemonstrationView {
|
|||
}
|
||||
|
||||
.gitDemonstrationView.demonstrated p.uiButton {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.gitDemonstrationView.demonstrated p.uiButton[target="reset"] {
|
||||
display: block;
|
||||
opacity: 0.5;
|
||||
opacity: 0.6;
|
||||
margin-bottom: 0.1em;
|
||||
cursor: auto;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* LeftRightView */
|
||||
|
|
|
@ -154,8 +154,8 @@
|
|||
-->
|
||||
<%= command.replace(' --aboveAll', '') %>
|
||||
</p>
|
||||
<p class="uiButton uiButtonPink transitionOpacity" target="reset">
|
||||
(Reset Animation)
|
||||
<p class="transitionOpacity" target="reset">
|
||||
Reset Animation
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue