git repos / oastat_static_web_generator

static_content/css/oastat.css

browsing at commit = 705ef4315793db45078cf8f9ca297967be617bae

raw · blame · history

/*
  The CSS. It is under the MIT license because it is CSS.

  Copyright (c) 2019 Poul Sander

  Permission is hereby granted, free of charge, to any person
  obtaining a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be
  included in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  SOFTWARE.
*/

body {
    background: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 20px;
}

.main-section {
    max-width: 1400px;
    background: #ffffff;
    border-radius: 8px;
    padding: 30px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table section start */
table {
    border-collapse: collapse;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

table, th, td {
    text-align: center;
}

th, td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background: #2c3e50;
    color: #ffffff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

tr:nth-child(odd) {
    background: #f9f9f9;
}

tr:nth-child(even) {
    background: #ffffff;
}

tr:hover {
    background: #f0f7ff;
    transition: background-color 0.2s ease;
}

td {
    color: #555;
}
/*table section end*/

.site-nav {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #2c3e50;
}

.site-nav .brand {
    font-size: 1.4em;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.site-nav .breadcrumb {
    color: #666;
    font-size: 0.95em;
}

.site-nav .breadcrumb a {
    color: #2c3e50;
}

.update {
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}

.levelshot {
    padding: 20px;
    text-align: center;
}

.levelshot img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Kill matrix styling */
.kill-matrix {
    font-size: 0.9em;
    border: 2px solid #34495e;
}

/* Top-left corner cell - diagonal split appearance */
.kill-matrix th:first-child {
    background: linear-gradient(to top right, #34495e 0%, #34495e 49.5%, #fff 49.5%, #fff 50.5%, #5d6d7e 50.5%, #5d6d7e 100%);
    color: #333;
    text-align: center;
    font-size: 0.75em;
    position: relative;
    padding: 8px;
}

/* Column headers (victims) */
.kill-matrix thead th:not(:first-child) {
    background: #5d6d7e;
    color: #ffffff;
    writing-mode: horizontal-tb;
    text-align: center;
    font-size: 0.8em;
    min-width: 60px;
    padding: 10px 5px;
}

/* Row headers (killers) */
.kill-matrix tbody td:first-child {
    background: #5d6d7e;
    color: #ffffff;
    text-align: left;
    font-weight: 600;
    padding-left: 12px;
    min-width: 120px;
}

/* Data cells */
.kill-matrix tbody td:not(:first-child) {
    background: #f8f9fa;
    text-align: center;
    color: #95a5a6;
    font-weight: normal;
}

.kill-matrix td.has-kills {
    background: #d4edda;
    font-weight: 700;
    color: #155724;
    font-size: 1.1em;
}

.kill-matrix td.diagonal {
    background: #34495e;
    color: #95a5a6;
    font-style: italic;
}

/* Remove hover effect from kill matrix */
.kill-matrix tr:hover {
    background: inherit;
}

.kill-matrix tbody tr:hover td:not(:first-child) {
    background: #e9ecef;
}

.kill-matrix tbody tr:hover td.has-kills {
    background: #c3e6cb;
}

.kill-matrix tbody tr:hover td.diagonal {
    background: #2c3e50;
}

.kill-matrix tbody tr:hover td:first-child {
    background: #4a5f7f;
}