on master help sign in
numerations now added through css
commitddc975396af54e861266ec82e0faea661757fe84 authorDYM <re@dym.sh> dateMon 5 Aug 2019, 21:46 (7 years ago) parentd879474
2 files changed+5−4
links/main.css+4−3 scripts/portal.js+1−1
links/main.css+4−3
@@ -61,21 +61,22 @@ body #hallway ul li:last-child { border-bottom:0px; }
6161body #portal #icon { display: block;width: 30px;height: 30px;background-image: url(../icon.white.svg);background-size: cover;background-repeat: no-repeat;position: absolute;bottom: 15px;right:15px;background-position: center;padding:0px }
6262body #portal ul { columns:3; }
6363body #portal ul li { display:block; padding-left:5px; text-overflow: ellipsis; text-transform: lowercase;}
64+body #portal ul li:before { content: attr(id) ")"; }
6465body #portal ul li:not([data-type=''])::after { content:"<" attr(data-type) ">"; color:#555; }
6566body #portal ul li a { line-height: 20px; padding:0px 5px; text-decoration: none;}
6667body #portal ul li a:visited { color:#ccc; text-decoration: none;}
6768body #portal ul li a:hover { text-decoration: underline; }
6869
6970@media (max-width: 730px) {
70− body #portal ul li span.counter { display: none }
71+ body #portal ul li:before { display: none }
7172}
7273@media (max-width: 630px) {
7374 body #portal ul { columns: 2 !important; }
74− body #portal ul li span.counter { display: none }
75+ body #portal ul li:before { display: none }
7576}
7677@media (max-width: 530px) {
7778 body #portal ul { columns: 1 !important; }
78− body #portal ul li span.counter { display: inline }
79+ body #portal ul li:before { display: inline }
7980}
8081
8182/* Wiki */
scripts/portal.js+1−1
@@ -18,7 +18,7 @@ function Portal (sites) {
1818 function _directory (sites) {
1919 return `
2020 <ul>${sites.reduce( (acc, site, id) =>
21− `${acc}<li data-type='${site.type || ''}' id='${id}'><span class='counter'>${id})</span><a href='${site.url}'>${_name(site)}</a></li>`
21+ `${acc}<li data-type='${site.type || ''}' id='${id}'><a href='${site.url}'>${_name(site)}</a></li>`
2222 , '')}</ul>\n${_readme()}${_buttons()}`
2323 }
2424