on master help sign in
Underline links
e83e5beDevine Lu Linvega
links/main.css+3−2
@@ -4,7 +4,7 @@ body { background:#f4f4f4; padding:0px; margin:0px; }
4body > div { display:block; background: #111;min-height: calc(100vh - 60px);width: calc(100vw - 60px);margin: 15px;color: #333;padding: 15px;font-family:'input_mono_regular', 'Monospaced','Courier New',courier;font-size:11px; position: relative; border-radius: 2px; color:white; overflow: hidden;}
4body > div { display:block; background: #111;min-height: calc(100vh - 60px);width: calc(100vw - 60px);margin: 15px;color: #333;padding: 15px;font-family:'input_mono_regular', 'Monospaced','Courier New',courier;font-size:11px; position: relative; border-radius: 2px; color:white; overflow: hidden;}
5body div ul { max-width: 800px; border-bottom: 2px solid white;padding-bottom: 15px;margin-bottom:15px; overflow: hidden;}
5body div ul { max-width: 800px; border-bottom: 2px solid white;padding-bottom: 15px;margin-bottom:15px; overflow: hidden;}
6body div p { display:block; padding:0px 5px; line-height: 20px; max-width: 600px}
6body div p { display:block; padding:0px 5px; line-height: 20px; max-width: 600px}
7−body div p a { text-decoration: underline;}
7+body div p a { text-decoration: underline; cursor: pointer;}
8body div p a:hover { text-decoration: underline; }
8body div p a:hover { text-decoration: underline; }
9body b { font-weight: normal; font-family: 'input_mono_medium' }
9body b { font-weight: normal; font-family: 'input_mono_medium' }
10body div p.readme { max-width:500px; }
10body div p.readme { max-width:500px; }
@@ -80,9 +80,10 @@ body #portal ul li a:hover { text-decoration: underline; }
80/* Wiki */
80/* Wiki */
81
81
82body #wiki #entry { max-width: calc(100% - 230px); margin-bottom: 30px }
82body #wiki #entry { max-width: calc(100% - 230px); margin-bottom: 30px }
83+body #wiki #entry a { text-decoration: underline; }
83body #wiki ul.term { border-bottom: 0px; margin-bottom: 0px; padding-bottom: 0px}
84body #wiki ul.term { border-bottom: 0px; margin-bottom: 0px; padding-bottom: 0px}
84body #wiki ul.term li.name { margin-bottom: 5px }
85body #wiki ul.term li.name { margin-bottom: 5px }
85−body #wiki ul.term li a.author { color:#555; }
86+body #wiki ul.term li a.author { color:#555; text-decoration: none !important; }
86
87
87
88
88
89
scripts/wiki.js+2−1
@@ -50,7 +50,8 @@ function Wiki (sites) {
50 this._entry.innerHTML = html
50 this._entry.innerHTML = html
51 }
51 }
52 } else {
52 } else {
53+ const random = this.random()
53− this._entry.innerHTML = `Click a /topic to get started, or try a <a onclick='wiki.go("${this.random()}")'>random page</a>.`
54+ this._entry.innerHTML = `Click a /topic to get started, or try a <a href='#${random.toUrl()}' onclick='wiki.go("${random}")'>random page</a>.`
54 }
55 }
55 // Sidebar
56 // Sidebar
56 this._categories.innerHTML = Object.keys(this.categories).reduce((acc, id) => { return this.categories[id].length > 5 ? `${acc}<li onclick='wiki.go("${id}")' class='${wiki.at(id) ? 'selected' : ''}'>${id.substr(0, 20)} <span class='right'>${this.categories[id].length}</span></li>` : acc }, '')
57 this._categories.innerHTML = Object.keys(this.categories).reduce((acc, id) => { return this.categories[id].length > 5 ? `${acc}<li onclick='wiki.go("${id}")' class='${wiki.at(id) ? 'selected' : ''}'>${id.substr(0, 20)} <span class='right'>${this.categories[id].length}</span></li>` : acc }, '')