Skip to content

Customize nginx directory listings (e.g., use WHATWG green) #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sideshowbarker opened this issue Sep 12, 2017 · 2 comments
Closed

Customize nginx directory listings (e.g., use WHATWG green) #91

sideshowbarker opened this issue Sep 12, 2017 · 2 comments

Comments

@sideshowbarker
Copy link
Member

From @sideshowbarker on September 12, 2017 8:50

See #84 (comment). With some minimal CSS, we can customize the styling of nginx directory listings for, e.g., https://resources.whatwg.org/ and https://images.whatwg.org/ and https://n.whatwg.org/

Copied from original issue: whatwg/resources.whatwg.org#64

@sideshowbarker
Copy link
Member Author

From @annevk on September 12, 2017 8:55

This should probably be in whatwg/whatwg.org as well as this repository is obsolete.

@annevk
Copy link
Member

annevk commented Jan 8, 2018

@sideshowbarker @foolip how about the following:

html {
 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --whatwggreen: #3A7908;
}
body { 
  padding:0;
  margin:1em;
}
a {
 color: #00F;
}
a:visited {
 color: #0E388C;
}
a:hover, a:focus {
  color:var(--whatwggreen);
  text-decoration:none;
}
h1 {
  color:var(--whatwggreen);
}
table {
 border:1px solid #aaa;
 width:100%;
}
tr:nth-child(even) {
  background:#f4f4f4;
}
th,td {
  padding:0.5em;
}
th {
  text-align:left;
  font-weight:bold;
  background:#eee;
  border-bottom:1px solid #aaa;
}
th > a {
  text-decoration:none;
}

I basically created this in the browser.

It reuses fonts and styles from #153 for future consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants