chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

style.css (8017B)


      1 /* chamesle.org */
      2 
      3 body {
      4 	margin: 0;
      5 	padding: 0;
      6 	background: #ffffff;
      7 	color: #000000;
      8 	font-family: "DejaVu Sans Mono", "Liberation Mono", "Courier New", Courier, monospace;
      9 	font-size: 14px;
     10 	line-height: 1.45;
     11 }
     12 
     13 a:link    { color: #0000ee; }
     14 a:visited { color: #551a8b; }
     15 a:active  { color: #ee0000; }
     16 img { max-width: 100%; height: auto; border: 0; }
     17 
     18 #top {
     19 	background: #ffffff;
     20 	border-bottom: 1px solid #000000;
     21 	padding: 0 16px;
     22 }
     23 #top h1 {
     24 	margin: 0;
     25 	padding: 10px 0 8px 0;
     26 	font-size: 24px;
     27 	line-height: 0;
     28 	font-weight: bold;
     29 	letter-spacing: 1px;
     30 }
     31 #top h1 a, #top h1 a:visited { color: #000000; text-decoration: none; }
     32 #top h1 small { color: #555555; font-size: 12px; font-weight: normal; letter-spacing: 0; margin-left: 10px; }
     33 
     34 #nav {
     35 	border-bottom: 1px solid #000000;
     36 	padding: 4px 16px;
     37 }
     38 
     39 #page { padding: 0; }
     40 main, #foot { display: block; max-width: none; margin: 0 auto; padding: 0 16px; }
     41 
     42 main { padding-top: 6px; padding-bottom: 10px; }
     43 
     44 /* headings read like the sections of a man page */
     45 h1 { font-size: 18px; margin: 14px 0 6px 0; }
     46 h2 { font-size: 14px; margin: 20px 0 6px 0; text-transform: uppercase; }
     47 h3 { font-size: 14px; margin: 12px 0 4px 0; }
     48 h4 { font-size: 14px; margin: 10px 0 4px 0; }
     49 
     50 pre, code, tt, kbd {
     51 	font-family: inherit;
     52 	font-size: 14px;
     53 }
     54 pre {
     55 	margin: 8px 0;
     56 	padding: 0 0 0 4ch;
     57 	overflow-x: auto;
     58 	white-space: pre;
     59 }
     60 code { font-weight: bold; }
     61 pre code { font-weight: normal; }
     62 pre code {
     63 	background: none;
     64 	border: 0;
     65 	padding: 0;
     66 }
     67 
     68 table { border-collapse: collapse; margin: 8px 0; }
     69 .grid th, .grid td, .facts td, main th, main td {
     70 	border: 1px solid #000000;
     71 	padding: 2px 8px;
     72 	text-align: left;
     73 	vertical-align: top;
     74 }
     75 .grid th, main th { font-weight: bold; }
     76 .facts td:first-child { font-weight: bold; }
     77 
     78 hr { border: none; border-top: 1px solid #000000; margin: 20px 0 6px 0; }
     79 
     80 #foot { font-size: 12px; color: #555555; padding-bottom: 20px; }
     81 dl dt { font-weight: bold; margin-top: 6px; }
     82 dl dd { margin: 1px 0 0 24px; }
     83 
     84 .small, .meta { font-size: 14px; }
     85 ul { padding-left: 26px; }
     86 li { margin: 2px 0; }
     87 
     88 /* each page's own title */
     89 .dochead h1 { font-size: 24px; margin: 18px 0 2px 0; }
     90 .dochead .lead { font-style: italic; margin: 0 0 8px 0; }
     91 
     92 /* the homepage */
     93 .release { margin: 14px 0; }
     94 .release p { margin: 0 0 4px; }
     95 .news dt { margin-top: 8px; font-weight: bold; }
     96 .news dd { margin: 2px 0 0 32px; }
     97 .new { font-size: 13px; font-weight: bold; }
     98 .shots td { text-align: center; width: 25%; font-size: 14px; }
     99 .shots img { display: block; margin: 0 auto 4px; border: 1px solid #000000; }
    100 .linkus img { float: left; margin: 2px 12px 4px 0; image-rendering: pixelated; }
    101 .linkus pre { clear: both; margin: 8px 0 0 0; font-size: 13px; }
    102 
    103 /* pages that show screenshots, downloads, tables of contents */
    104 .button { font-weight: bold; }
    105 .button.go::before { content: "\00bb\00a0"; }
    106 .box, .release-box { border: 1px solid #808080; padding: 8px 12px; }
    107 .shot { margin: 20px 0 0 0; }
    108 .shot img, .edition img, .dl img { border: 1px solid #000000; }
    109 .shot figcaption { font-size: 14px; font-style: italic; }
    110 .tag { font-size: 12px; font-weight: bold; text-transform: uppercase; }
    111 .tag.soon { color: #666666; }
    112 .edition { border-bottom: 1px solid #c0c0c0; padding-bottom: 6px; }
    113 .edition img { margin-top: 6px; }
    114 details { margin: 8px 0; }
    115 summary { cursor: pointer; font-weight: bold; }
    116 .dl { margin: 14px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
    117 .dl img { display: block; }
    118 .dl h3 { margin-top: 0; }
    119 .toc { margin: 10px 0; font-size: 15px; }
    120 .toc h4 { margin: 0 0 4px 0; }
    121 .toc a { margin-right: 12px; }
    122 .timeline { padding-left: 0; list-style: none; }
    123 .timeline li { margin: 0 0 10px 0; }
    124 .timeline .ver { font-weight: bold; display: inline-block; min-width: 40px; }
    125 .timeline li.next .ver { color: #666666; }
    126 .timeline li div { display: inline; }
    127 .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
    128 .notfound .code { font-size: 64px; font-weight: bold; margin: 0; }
    129 h1.banner img { max-width: 100%; }
    130 
    131 /* packages and the board */
    132 .pkgs, .posts { padding-left: 0; list-style: none; }
    133 .pkgs li { border-bottom: 1px solid #c0c0c0; padding: 4px 0; }
    134 .posts li { border-bottom: 1px solid #c0c0c0; padding: 6px 0; display: flex; gap: 12px; }
    135 .posts h3 { margin: 0; font-size: 17px; }
    136 .posts p { margin: 2px 0 0 0; font-size: 15px; }
    137 .votes { min-width: 40px; text-align: center; font-size: 13px; }
    138 .votes span { display: block; font-size: 18px; font-weight: bold; }
    139 .meta img { width: 16px; height: 16px; vertical-align: -3px; }
    140 .cat { font-size: 12px; border: 1px solid #808080; padding: 0 4px; margin-right: 4px; }
    141 .bar { margin: 10px 0; }
    142 .bar a, .bar button { margin-right: 8px; font: inherit; }
    143 .bar .on { font-weight: bold; }
    144 .post-body { white-space: pre-wrap; overflow-wrap: anywhere; }
    145 .form label { display: block; font-weight: bold; margin: 12px 0 2px 0; }
    146 .form input, .form select, .form textarea, input[type=search] { font: inherit; padding: 2px 4px; max-width: 100%; }
    147 input[type=search].big { width: 100%; font-size: 18px; }
    148 
    149 /* chess */
    150 .chessbar { margin: 10px 0 14px 0; }
    151 .chessbar label { margin-right: 12px; white-space: nowrap; }
    152 .chessbar select, .chessbar button { font: inherit; margin: 0 2px 6px 0; }
    153 .chess { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
    154 .board { display: grid; grid-template-columns: repeat(8, 1fr); width: min(480px, calc(100vw - 32px)); border: 1px solid #000000; }
    155 .sq { aspect-ratio: 1; border: 0; margin: 0; padding: 0; position: relative; cursor: pointer; display: block; }
    156 .sq img { width: 100%; height: 100%; display: block; pointer-events: none; }
    157 .sq.light { background: #f0f0f0; }
    158 .sq.dark { background: #a0a0a0; }
    159 .sq.last { background: #d8d8a0; }
    160 .sq.picked { outline: 3px solid #0000ee; outline-offset: -3px; }
    161 .sq.to::after { content: ""; position: absolute; left: 38%; top: 38%; width: 24%; height: 24%; border-radius: 50%; background: rgba(0, 0, 0, .35); }
    162 .sq.take { box-shadow: inset 0 0 0 4px rgba(200, 0, 0, .6); }
    163 .sq.check { background: #ff6060; }
    164 .sq .file, .sq .rank { position: absolute; font-size: 11px; font-weight: bold; }
    165 .sq .file { right: 3px; bottom: 2px; }
    166 .sq .rank { left: 3px; top: 2px; }
    167 .status { font-weight: bold; margin: 8px 0; }
    168 .status.over { color: #cc0000; }
    169 .moves { border: 1px solid #808080; padding: 4px 10px; min-width: 150px; max-height: 480px; overflow-y: auto;
    170 	font-family: "Courier New", Courier, monospace; font-size: 14px; }
    171 .moves ol { margin: 4px 0 0 0; padding-left: 30px; }
    172 
    173 @media screen and (max-width: 600px) {
    174 	#top h1 { font-size: 20px; }
    175 	pre { margin-left: 0; }
    176 	table.grid, main table { display: block; overflow-x: auto; }
    177 	.dl { grid-template-columns: 1fr; }
    178 	.shots, .shots tbody, .shots tr { display: block; }
    179 	.shots tr { display: grid; grid-template-columns: 1fr 1fr; }
    180 	.shots td { width: auto; }
    181 }
    182 
    183 
    184 main.editing { outline: 1px dashed #888; padding: 4px; }
    185 #editbar { position: sticky; top: 0; z-index: 10; padding: 6px 8px; background: #ffd; border-bottom: 1px solid #aa6; font-size: 13px; }
    186 #editbar button { margin-right: 6px; font: inherit; }
    187 
    188 .button { font-weight: bold; }
    189 .button::before { content: "\2193\00a0"; }
    190 
    191 /* front page: text on the left, a box on the right */
    192 .front { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; }
    193 .side { padding-top: 12px; }
    194 .side .sbox { border: 1px solid #000000; margin-bottom: 14px; font-size: 13px; }
    195 .side .sbox h3 { margin: 0; padding: 2px 8px; border-bottom: 1px solid #000000; font-size: 13px; text-transform: uppercase; }
    196 .side .sbox div, .side .sbox ul { padding: 6px 8px; margin: 0; }
    197 .side .sbox ul { list-style: none; }
    198 .side .sbox li { margin: 2px 0; }
    199 .side .ver { font-weight: bold; }
    200 @media screen and (max-width: 700px) { .front { grid-template-columns: 1fr; } }
    201 .me { float: right; margin: 0 0 8px 16px; border: 1px solid #000000; }
    202 @media (max-width: 520px) { .me { float: none; display: block; margin: 0 0 8px 0; } }