style/color tweaks, fix missing redirect after load!

This commit is contained in:
Ilya Kreymer
2020-05-07 19:59:20 -07:00
parent 0796e01068
commit f9191f22d8
3 changed files with 50 additions and 43 deletions
+28 -26
View File
File diff suppressed because one or more lines are too long
+5 -2
View File
@@ -1,17 +1,20 @@
@charset "utf-8"; @charset "utf-8";
$wr-green: #64e986; $wr-green: #64e986;
$wr-yellow: #f5c71a; $wr-yellow: #ffd975;
$wr-light-blue: #43daff; $wr-light-blue: #43daff;
$wr-med-blue: #27a0ff; $wr-med-blue: #27a0ff;
$wr-dark-blue: #4876ff; $wr-dark-blue: #4876ff;
$wr-accent: #1b0921; $wr-accent: #1b0921;
$wr-light-green: #d2f9d6;
$primary: $wr-green; $primary: $wr-green;
$info: $wr-yellow; $info: $wr-yellow;
//$info: #97e7ff;
$link: $wr-dark-blue; $link: $wr-dark-blue;
$light: $wr-light-blue; $light: $wr-light-green;
$dark: $wr-accent; $dark: $wr-accent;
.main-scroll { .main-scroll {
+17 -15
View File
@@ -79,7 +79,7 @@ class AppMain extends LitElement
<a class="navbar-item has-text-weight-bold is-size-5 has-allcaps " href="/"> <a class="navbar-item has-text-weight-bold is-size-5 has-allcaps " href="/">
<img id="logo" src="/static/logo.svg"/> <img id="logo" src="/static/logo.svg"/>
<span class="has-text-primary">replay</span> <span class="has-text-primary">replay</span>
<span class="has-text-info">web.page</span> <span class="has-text-link">web.page</span>
</a> </a>
<a role="button" @click="${this.onNavMenu}" class="navbar-burger burger ${this.navMenuShown ? 'is-active' : ''}" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample"> <a role="button" @click="${this.onNavMenu}" class="navbar-burger burger ${this.navMenuShown ? 'is-active' : ''}" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
<span aria-hidden="true"></span> <span aria-hidden="true"></span>
@@ -95,10 +95,10 @@ class AppMain extends LitElement
</div>` : html``} </div>` : html``}
</div> </div>
<div class="navbar-end"> <div class="navbar-end">
<a href="?terms" @click="${(e) => { e.preventDefault(); this.showTerms = true} }"class="navbar-item">Terms</a>
<a href="/docs" target="_blank" class="navbar-item"> <a href="/docs" target="_blank" class="navbar-item">
<fa-icon .svg="${fasHelp}"></fa-icon>&nbsp;Docs <fa-icon .svg="${fasHelp}"></fa-icon>&nbsp;Info
</a> </a>
<a href="?terms" @click="${(e) => { e.preventDefault(); this.showTerms = true} }"class="navbar-item">Terms</a>
</div> </div>
</nav> </nav>
</div> </div>
@@ -284,7 +284,7 @@ class WrLoader extends LitElement
} }
this.progress = this.total; this.progress = this.total;
this.percent = 100; this.percent = 100;
//this.dispatchEvent(new CustomEvent("coll-loaded", {detail: event.data})); this.dispatchEvent(new CustomEvent("coll-loaded", {detail: event.data}));
} }
break; break;
} }
@@ -392,7 +392,7 @@ class WrLoader extends LitElement
render() { render() {
return html` return html`
<section class="container"> <section class="container">
<div class="level"> <div class="level has-text-centered">
<img class="level-item logo" src="/static/logo.svg"/> <img class="level-item logo" src="/static/logo.svg"/>
</div> </div>
<div class="level"> <div class="level">
@@ -544,9 +544,6 @@ class WrIndex extends LitElement
nav.main-scroll { nav.main-scroll {
max-height: calc(100vh - 279px); max-height: calc(100vh - 279px);
} }
#index-heading {
background-color: aliceblue;
}
`); `);
} }
@@ -554,7 +551,7 @@ class WrIndex extends LitElement
return html` return html`
<section class="section no-top-padding"> <section class="section no-top-padding">
<div class="container"> <div class="container">
<nav class="panel is-light"> <nav class="panel is-info">
<p class="panel-heading">Load Web Archive</p> <p class="panel-heading">Load Web Archive</p>
<div class="extra-padding panel-block file has-name"> <div class="extra-padding panel-block file has-name">
<form class="container" @submit="${this.onStartLoad}"> <form class="container" @submit="${this.onStartLoad}">
@@ -590,8 +587,8 @@ class WrIndex extends LitElement
</div> </div>
</section> </section>
<section class="container"> <section class="container">
<nav class="panel main-scroll"> <nav class="panel main-scroll is-light">
<p id="index-heading" class="panel-heading">Loaded Archives</p> <p class="panel-heading">Loaded Archives</p>
<div class="coll-list"> <div class="coll-list">
${this.colls.length ? this.colls.map((coll, i) => html` ${this.colls.length ? this.colls.map((coll, i) => html`
<div class="panel-block"> <div class="panel-block">
@@ -783,19 +780,21 @@ class WrColl extends LitElement
font-weight: initial; font-weight: initial;
margin-right: 20px; margin-right: 20px;
} }
.bg-alice-blue { .bg-light {
background-color: aliceblue; background-color: #f0fff8";
} }
`); `);
} }
render() { render() {
if (this.collInfo && !this.collInfo.coll) { if (this.collInfo && !this.collInfo.coll) {
return html`<wr-loader .loadInfo="${this.loadInfo}" .coll="${this.coll}" .sourceUrl="${this.sourceUrl}" @coll-loaded=${this.onCollLoaded}></wr-loader>`; return html`
<wr-loader .loadInfo="${this.loadInfo}"
.coll="${this.coll}" .sourceUrl="${this.sourceUrl}" @coll-loaded=${this.onCollLoaded}></wr-loader>`;
} else if (this.collInfo) { } else if (this.collInfo) {
return html` return html`
<nav class="panel is-light"> <nav class="panel is-light">
<p class="panel-tabs bg-alice-blue"> <p class="panel-tabs bg-light">
${this.hasCurated ? html` ${this.hasCurated ? html`
<a @click="${this.onTabClick}" href="#curated" <a @click="${this.onTabClick}" href="#curated"
class="is-size-6 ${this.tabData.view === 'curated' ? 'is-active' : ''}"> class="is-size-6 ${this.tabData.view === 'curated' ? 'is-active' : ''}">
@@ -917,6 +916,9 @@ class WrCuratedPages extends LitElement
margin-top: 10px; margin-top: 10px;
max-height: calc(100vh - 102px); max-height: calc(100vh - 102px);
} }
ul.menu-list a.is-active {
background-color: #55be6f;
}
`); `);
} }