diff --git a/examples/demo.css b/examples/demo.css index 2798012f..d47b1b03 100644 --- a/examples/demo.css +++ b/examples/demo.css @@ -1,14 +1,14 @@ /* https://github.com/theleagueof/league-spartan */ @font-face { - font-family: 'League Spartan'; - src: url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.eot'); - src: url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.eot?#iefix') format('embedded-opentype'), - url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.woff2') format('woff2'), - url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.woff') format('woff'), - url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.ttf') format('truetype'), - url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.svg#league_spartanbold') format('svg'); - font-weight: bold; - font-style: normal; + font-family: 'League Spartan'; + src: url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.eot'); + src: url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.eot?#iefix') format('embedded-opentype'), + url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.woff2') format('woff2'), + url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.woff') format('woff'), + url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.ttf') format('truetype'), + url('https://raw.githubusercontent.com/theleagueof/league-spartan/master/_webfonts/leaguespartan-bold.svg#league_spartanbold') format('svg'); + font-weight: bold; + font-style: normal; } body { @@ -72,7 +72,6 @@ h1 { } .details { - border-top: 3px solid #444; padding-left: 6px; } @@ -159,19 +158,19 @@ h1 { } #move-up { - position: fixed; - bottom: 50px; - right: 40px; - z-index: 550; - display: none; - background:transparent; - border:none; + position: fixed; + bottom: 50px; + right: 40px; + z-index: 550; + display: none; + background:transparent; + border:none; } #move-up i { - font-size:60px; - opacity:0.7; - color:#BABABA; + font-size:60px; + opacity:0.7; + color:#BABABA; } .btn-circle{ @@ -208,7 +207,7 @@ h1 { .savesequencemsg{ display: none; text-align: center; - } +} .notification { background-color: #808b96; @@ -252,7 +251,29 @@ a.name-header{ } .step-column{ - display:flex; - align-content: center; - justify-content: center; + display:flex; + align-content: center; + justify-content: center; } + +.trash-container button.btn-xs { + margin-top: -5px !important; +} + +/* +.panel-footer .insert-step{ + margin-left:10px; + border-radius:6px; + background-color:#fff; + border:solid #bababa 1.1px; +} +.col-md-4{ + padding-left: 30px; +} +.panel-heading{ + height:45px; +} +.panel-footer{ + height: 45px; +} +*/ diff --git a/examples/index.html b/examples/index.html index 59ed0364..29bea52e 100644 --- a/examples/index.html +++ b/examples/index.html @@ -179,14 +179,14 @@

Save

- - - + +

+

diff --git a/examples/lib/defaultHtmlStepUi.js b/examples/lib/defaultHtmlStepUi.js index 0aa81e25..ac12585f 100644 --- a/examples/lib/defaultHtmlStepUi.js +++ b/examples/lib/defaultHtmlStepUi.js @@ -26,36 +26,41 @@ function DefaultHtmlStepUi(_sequencer, options) { step.ui = '\
\ -
\ -
\ -
\ -

\ - ' +step.name + ' ' + - '' + - '

"'+ - (step.description || "") + - '

\ -
\ -
\ -
\ - \ -
\ - \ -
\ -
\ -
\ -
\ - '; +
\ +
\ +
\ +
\ +

' + + '' +step.name + '\ +

\ +
\ +
\ +
\ +
\ +

\ + ' + + '

'+ + (step.description || "") + + '

\ +
\ +
\ + \ +
\ + \ +
\ +
\ +
\ +
\ + \ +
\ +
\ + '; var tools = - '
\ - \ - \ -
\ + '
\ + \
'; var util = intermediateHtmlStepUi(_sequencer, step); @@ -125,23 +130,24 @@ function DefaultHtmlStepUi(_sequencer, options) {
"; step.ui.querySelector("div.details").appendChild(div); } - - $(step.ui.querySelector("div.details")).append( - '

Press apply to see changes

' + $(step.ui.querySelector("div.panel-footer")).append( + '
Press apply to see changes
' ); - - + $(step.ui.querySelector("div.panel-footer")).prepend( + '' + ); } if (step.name != "load-image") { step.ui - .querySelector("div.details") - .appendChild( + .querySelector("div.trash-container") + .prepend( parser.parseFromString(tools, "text/html").querySelector("div") ); $(step.ui.querySelectorAll(".remove")).on('click', function() {notify('Step Removed','remove-notification')}); - $(step.ui.querySelectorAll(".insert-step")).on('click', function() { util.insertStep(step.ID) }); - + $(step.ui.querySelectorAll(".insert-step")).on('click', function() { util.insertStep(step.ID) }); // Insert the step's UI in the right place if (stepOptions.index == _sequencer.steps.length) { stepsEl.appendChild(step.ui); @@ -319,7 +325,8 @@ function DefaultHtmlStepUi(_sequencer, options) { $('#'+id).fadeIn(500).delay(200).fadeOut(500); } - + + return { getPreview: getPreview, onSetup: onSetup,