/*
 * Filename: a_style.css
 * Author: Olivier Sirol <czo@free.fr>
 * License: GPL-2.0 (http://www.gnu.org/copyleft)
 * File Created: Sept 2015
 * Last Modified: Saturday 18 March 2023, 11:42
 * $Id: a_style.css,v 1.3 2023/03/18 10:42:32 czo Exp $
 * Edit Time: 3:28:44
 * Description:
 *             css style for apache autoindex
 *
 * Copyright: (C) 2015-2023 Olivier Sirol <czo@free.fr>
 */

body {
  margin: 0;
  padding: 0;
  background-color: white;
  color: #777;
  font-family: "Ubuntu", sans-serif;
}

h1 {
  margin: 0;
  color: #111;
  background: #eee;
  border-bottom: 1px solid #ccc;
  font-family: "Georgia", serif;
  font-weight: normal;
  padding: 1.2em 30pt;
  font-size: 140%;
}

table {
  padding: 1em 25pt;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
  width: 90%;
}

/* work's in chrome, but not in firefox */
/* td:first-child {
  border-radius: 10px 0 0 10px;
}
td:last-child {
  border-radius: 0 10px 10px 0;
} */

/* icon */
th:nth-child(1),
td:nth-child(1) {
  width: 5%;
  text-align: right;
  vertical-align: middle;
}

/* name */
th:nth-child(2),
td:nth-child(2) {
  width: 60%;
  white-space: nowrap;
  text-align: left;
}

/* last modified */
th:nth-child(3),
td:nth-child(3) {
  width: 30%;
  white-space: nowrap;
  text-align: left;
}

/* size */
th:nth-child(4),
td:nth-child(4) {
  width: 5%;
  white-space: nowrap;
  text-align: left;
}

th,
td {
  padding: 0.4em;
}

tr:hover {
  background-color: #ddd;
}

tr:first-child:hover {
  background-color: #fff;
}

address {
  padding: 1em;
}

a {
  color: #333;
  padding: 0.4em;
  text-decoration: none;
}

a:hover,
a:active {
  color: #111;
}

.odd {
  background-color: #f8f8f8;
}
