on master help sign in
numerations now added through css
ddc9753DYM
links/main.css+4−3
@@ -61,21 +61,22 @@ body #hallway ul li:last-child { border-bottom:0px; }
61body #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 }
61body #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 }
62body #portal ul { columns:3; }
62body #portal ul { columns:3; }
63body #portal ul li { display:block; padding-left:5px; text-overflow: ellipsis; text-transform: lowercase;}
63body #portal ul li { display:block; padding-left:5px; text-overflow: ellipsis; text-transform: lowercase;}
64+body #portal ul li:before { content: attr(id) ")"; }
64body #portal ul li:not([data-type=''])::after { content:"<" attr(data-type) ">"; color:#555; }
65body #portal ul li:not([data-type=''])::after { content:"<" attr(data-type) ">"; color:#555; }
65body #portal ul li a { line-height: 20px; padding:0px 5px; text-decoration: none;}
66body #portal ul li a { line-height: 20px; padding:0px 5px; text-decoration: none;}
66body #portal ul li a:visited { color:#ccc; text-decoration: none;}
67body #portal ul li a:visited { color:#ccc; text-decoration: none;}
67body #portal ul li a:hover { text-decoration: underline; }
68body #portal ul li a:hover { text-decoration: underline; }
68
69
69@media (max-width: 730px) {
70@media (max-width: 730px) {
70− body #portal ul li span.counter { display: none }
71+ body #portal ul li:before { display: none }
71}
72}
72@media (max-width: 630px) {
73@media (max-width: 630px) {
73 body #portal ul { columns: 2 !important; }
74 body #portal ul { columns: 2 !important; }
74− body #portal ul li span.counter { display: none }
75+ body #portal ul li:before { display: none }
75}
76}
76@media (max-width: 530px) {
77@media (max-width: 530px) {
77 body #portal ul { columns: 1 !important; }
78 body #portal ul { columns: 1 !important; }
78− body #portal ul li span.counter { display: inline }
79+ body #portal ul li:before { display: inline }
79}
80}
80
81
81/* Wiki */
82/* Wiki */
scripts/portal.js+1−1
@@ -18,7 +18,7 @@ function Portal (sites) {
18 function _directory (sites) {
18 function _directory (sites) {
19 return `
19 return `
20 <ul>${sites.reduce( (acc, site, id) =>
20 <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>`
22 , '')}</ul>\n${_readme()}${_buttons()}`
22 , '')}</ul>\n${_readme()}${_buttons()}`
23 }
23 }
24
24