Merge pull request #1808 from ethereum/swap_it_style_fixes_l

landing page
pull/1/head
yann300 6 years ago committed by GitHub
commit 143a831cce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/components/plugin-manager-component.js
  2. 2
      src/app/panels/styles/terminal-styles.js
  3. 10
      src/app/panels/terminal.js
  4. 2
      src/app/staticanalysis/staticAnalysisView.js
  5. 92
      src/app/ui/landing-page/landing-page.js
  6. 8
      src/app/ui/landing-page/section.js

@ -88,7 +88,7 @@ class PluginManagerComponent extends ApiFactory {
</button>` </button>`
return yo` return yo`
<article class="list-group-item" title="${name}" > <article class="list-group-item py-1" title="${name}" >
<div class="${css.row} justify-content-between align-items-center"> <div class="${css.row} justify-content-between align-items-center">
<h6 class="${css.displayName}">${displayName}</h6> <h6 class="${css.displayName}">${displayName}</h6>
${activationButton} ${activationButton}

@ -20,7 +20,6 @@ var css = csjs`
display : flex; display : flex;
align-items : center; align-items : center;
width : 100%; width : 100%;
border-bottom-style : ridge;
max-height : 35px; max-height : 35px;
} }
.clear { .clear {
@ -148,7 +147,6 @@ var css = csjs`
left : 0; left : 0;
cursor : ns-resize; cursor : ns-resize;
z-index : 999; z-index : 999;
border-top : 2px solid var(--primary);
} }
.ghostbar { .ghostbar {
position : absolute; position : absolute;

@ -156,6 +156,14 @@ class Terminal {
` `
self._view.term = yo` self._view.term = yo`
<div class="${css.terminal_container}" onscroll=${throttle(reattach, 10)} onclick=${focusinput}> <div class="${css.terminal_container}" onscroll=${throttle(reattach, 10)} onclick=${focusinput}>
<div style="
background-color: grey;
position: absolute;
height: 100%;
width: 100%;
opacity: 0.1;
z-index: -1;
"></div>
<div class=${css.terminal}> <div class=${css.terminal}>
${self._view.journal} ${self._view.journal}
${self._view.cli} ${self._view.cli}
@ -163,7 +171,7 @@ class Terminal {
</div> </div>
` `
self._view.el = yo` self._view.el = yo`
<div class="border ${css.panel}" style="height: 180px;"> <div class="${css.panel}" style="height: 180px;">
${self._view.bar} ${self._view.bar}
${self._view.term} ${self._view.term}
</div> </div>

@ -172,7 +172,7 @@ staticAnalysisView.prototype.renderModules = function () {
</label> </label>
` `
}) })
return yo`<div class="${css.analysisModulesContainer} list-group-item"> return yo`<div class="${css.analysisModulesContainer} list-group-item py-1">
<label class="${css.label}"><b>${category[0].categoryDisplayName}</b></label> <label class="${css.label}"><b>${category[0].categoryDisplayName}</b></label>
${entriesDom} ${entriesDom}
</div>` </div>`

File diff suppressed because one or more lines are too long

@ -31,8 +31,8 @@ class Section {
render () { render () {
let sectionLook = yo` let sectionLook = yo`
<div class="card border-0 bg-light bd-light text-dark p-1" style="min-width: 300px; min-height: 210px;"> <div class="card border-0 bg-light text-dark p-1" style="min-width: 300px; min-height: 180px;">
<div class="card-header font-weight-bold" style="user-select: none;">${this.title}</div> <div class="card-header h5 font-weight-bold" style="user-select: none;">${this.title}</div>
<p></p> <p></p>
</div> </div>
` `
@ -40,7 +40,7 @@ class Section {
if (this.actions[i].type === `callback`) { if (this.actions[i].type === `callback`) {
sectionLook.appendChild(yo` sectionLook.appendChild(yo`
<div> <div>
<span class="${css.text} text-dark" onclick=${this.actions[i].payload} > <span class="${css.text} p-3 h6 text-dark" onclick=${this.actions[i].payload} >
${this.actions[i].label} ${this.actions[i].label}
</span> </span>
</div> </div>
@ -48,7 +48,7 @@ class Section {
} else if (this.actions[i].type === `link`) { } else if (this.actions[i].type === `link`) {
sectionLook.appendChild(yo` sectionLook.appendChild(yo`
<div > <div >
<a class="${css.link} text-dark text-decoration-none" href=${this.actions[i].payload} target="_blank" > <a class="${css.link} text-dark p-3 h6 text-decoration-none" href=${this.actions[i].payload} target="_blank" >
${this.actions[i].label} ${this.actions[i].label}
</a> </a>
</div> </div>

Loading…
Cancel
Save