Files
bbs/internal/forum/static/pun12.css
T
Claude 4d49631d37 Where callers are: GeoIP for the forums, caller ID decoding
- internal/phone reads modem caller IDs with its own tables: the ITU's
  country calling codes (shared ones told apart), the NANP's area codes
  by state and province, toll-free and other services, and how each
  country dials, so national numbers read as [general] phone_country
- [general] geoip (with geoip_credit) is the BBS's country database;
  [chan] geoip falls back to it.  geoip.File keeps a database file up
  to date for both
- bbs.Locate and Node.Place: a caller's place by caller ID, else by
  address; the connect log, who's online (the country), the sysop's node
  list (number and state) and the API's /who show it
- messages keep the poster's country (messages.country); the web forum
  shows its flag by the poster's name in every theme and on Online
  Users, with the database's credit at the foot ([http] forum_flags)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AFQhReUqUc7F5srk2hViqr
2026-10-14 08:05:27 +00:00

230 lines
12 KiB
CSS

/*
* The forum's pun theme: laid out in the manner of the light PHP boards
* of 2004-2008 (PunBB 1.2's default Oxygen style and its kind): a plain
* white page, a boxed head with the board's name over a bright blue
* menu bar and a grey welcome strip, sections under bright blue bars,
* tables with grey heads and cells in two greys, little bevelled
* squares that turn blue for new posts, posts with the poster's details
* in a pale column and the message in a darker one, Report and Quote
* beneath, small Verdana. Colors follow PunBB 1.2's Oxygen; the CSS is
* our own and no images are taken.
*/
:root {
--blue: #0066b9;
--postblue: #006fc9;
--light: #f1f1f1;
--dark: #dedfdf;
--th: #d1d1d1;
--td-line: #bbcede;
--link: #005cb1;
--hover: #b42000;
--text: #333;
--inset-a: #aca899;
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }
#punwrap { margin: 12px 20px; }
.pun { color: var(--text); font: 11px/1.4 Verdana, Arial, Helvetica, sans-serif; }
:where(.pun) :where(table, div, form, p, h1, h2, h3, h4, ul, dl, dt, dd, th, td, fieldset) { margin: 0; padding: 0; font-weight: normal; list-style: none; }
.pun a:link, .pun a:visited { color: var(--link); text-decoration: none; }
.pun a:hover { color: var(--hover); text-decoration: underline; }
.pun strong { font-weight: bold; }
.clearer, .clearb { clear: both; }
.clearer { height: 0; overflow: hidden; }
.nosize { position: absolute; left: -10000px; height: 0; width: 0; overflow: hidden; }
.conl { float: left; }
.conr { float: right; text-align: right; }
.inline-form { display: inline; }
.linkish { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--link); cursor: pointer; }
.linkish:hover { color: var(--hover); text-decoration: underline; }
.small, .desc { font-size: 10px; }
.muted, .time { color: #777; }
/* --- boxes and bars */
.block, .blocktable, .blockpost, .blockform { margin-bottom: 12px; }
.pun h2 { padding: 4px 6px; background: var(--blue); color: #fff; font-size: 11px; font-weight: bold; }
.pun h2 a:link, .pun h2 a:visited { color: #fff; }
.box { border: 1px solid var(--blue); background: var(--light); }
.inbox { padding: 0; }
/* the head */
#brdheader .box { border-color: var(--blue); }
#brdtitle { padding: 10px 6px 8px; background: var(--light); }
#brdtitle h1 { font: bold 22px "Trebuchet MS", Verdana, sans-serif; color: var(--text); }
#brdtitle h1 a:link, #brdtitle h1 a:visited { color: var(--text); }
#brddesc { margin-top: 3px; font-size: 11px; }
#brdmenu { padding: 3px 6px; background: var(--blue); color: #fff; }
#brdmenu ul { display: flex; flex-wrap: wrap; gap: 0 12px; }
#brdmenu a:link, #brdmenu a:visited, #brdmenu .linkish { color: #fff; }
#brdmenu .isactive a { font-weight: bold; }
#brdmenu a:hover, #brdmenu .linkish:hover { color: #fff; text-decoration: underline; }
#brdwelcome { display: flow-root; padding: 4px 6px; background: var(--light); }
#brdwelcome .conl li { display: inline; margin-right: 12px; }
#announce .inbox { padding: 6px; }
/* the breadcrumbs and page links */
.linkst, .linksb, .postlinksb { margin-bottom: 8px; }
.linksb, .postlinksb { margin-top: -4px; }
.crumbsplus { display: flow-root; padding: 4px 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 0 4px; font-size: 11px; }
.crumbs li { display: inline; }
.pagepost { display: flow-root; }
.pagelink a, .pagelink strong { margin-right: 2px; }
.postlink a { font-weight: bold; }
.subscribelink { margin-top: 4px; text-align: right; }
/* --- tables */
.blocktable .box { border-top: 0; }
.blocktable table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.blocktable th { padding: 4px 6px; background: var(--th); border-left: 1px solid var(--th); color: var(--text); font-weight: normal; text-align: left; }
.blocktable td { padding: 4px 6px; border-left: 1px solid var(--td-line); border-top: 1px solid var(--td-line); background: var(--light); vertical-align: middle; }
.blocktable td.tc2, .blocktable td.tc3 { background: var(--dark); text-align: center; }
.blocktable th.tc2, .blocktable th.tc3 { width: 9%; text-align: center; }
.blocktable th.tcr { width: 26%; }
.blocktable td.tcr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blocktable td:first-child, .blocktable th:first-child { border-left: 0; }
.intd { display: flex; gap: 8px; align-items: center; }
.tclcon { min-width: 0; overflow-wrap: anywhere; }
.tclcon h3 { font-size: 11px; font-weight: bold; }
.forumdesc { margin-top: 2px; }
.byuser { color: #555; }
.newtext a, .hottext { color: var(--hover); }
.pagestext a { margin-right: 2px; }
/* the status squares: bevelled, blue for new */
.icon { flex: none; position: relative; width: 22px; height: 22px; border: 7px solid; border-color: #e6e6e6 #dedede #dadada #e2e2e2; background: #fff; }
.icon.inew { border-color: #0080d7 #0065c0 #0058b3 #0072ca; }
/* the board information box */
#brdstats h2, #brdstats .conl dt, #brdstats .conr dt, #brdfooter h2, .postright h3 { position: absolute; left: -999em; }
#brdstats .inbox { display: flow-root; padding: 6px; }
#brdstats dl.conl, #brdstats dl.conr { line-height: 1.6; }
#onlinelist { display: flex; flex-wrap: wrap; margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--td-line); }
#onlinelist dd { display: inline; }
/* --- posts */
.blockpost h2 { background: var(--postblue); }
.blockpost h2 .conr { color: #aabdcd; }
.blockpost .box { border-color: var(--postblue) var(--blue) var(--blue); overflow: hidden; }
.postbody { display: flex; }
.postleft { flex: none; width: 18em; padding: 6px; background: var(--light); overflow-wrap: anywhere; }
.postleft dl { line-height: 1.6; }
.postleft dt { font-size: 12px; }
.usertitle { margin-bottom: 4px; }
.postavatar { margin: 4px 0 6px; }
.postright { flex: 1; min-width: 0; padding: 6px; background: var(--dark); border-left: 1px solid var(--light); }
.postmsg { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.postmsg p { margin: 0 0 8px; }
.postsignature { margin-top: 12px; font-size: 11px; }
.postsignature hr { height: 1px; border: 0; margin: 0 0 4px; width: 200px; background: var(--text); }
.postfoot { display: flex; }
.postfootleft { flex: none; width: 18em; padding: 4px 6px; background: var(--light); }
.postfootright { flex: 1; padding: 4px 6px; background: var(--dark); border-left: 1px solid var(--light); text-align: right; }
.postfootright ul { display: inline-flex; gap: 0; }
.postfootright li + li::before { content: "|"; margin: 0 6px; color: #888; }
.postfootright li { display: inline; }
/* quotes: an inset box, "alice wrote:" */
.postmsg .citation { margin: 8px 0 0; padding: 4px 8px 0; border: 1px solid; border-color: var(--inset-a) #fff transparent var(--inset-a); border-bottom: 0; background: var(--light); font-size: 11px; font-weight: bold; }
blockquote.quote { margin: 8px 0; padding: 6px 8px; border: 1px solid; border-color: var(--inset-a) #fff #fff var(--inset-a); background: var(--light); font-size: 12px; }
.citation + blockquote.quote { margin-top: 0; border-top: 0; }
.bbc_url { text-decoration: underline; }
/* polls */
.pollbox .inbox { padding: 6px; }
.pollresults { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.pollresults th { width: 35%; padding: 3px 6px 3px 0; text-align: left; font-weight: normal; }
.pollresults td { padding: 3px 0; }
.pollnum { width: 90px; text-align: right; }
meter { width: 100%; height: 10px; }
meter::-webkit-meter-bar { background: #fff; border: 1px solid var(--td-line); border-radius: 0; }
meter::-webkit-meter-optimum-value { background: var(--blue); }
meter::-moz-meter-bar { background: var(--blue); }
.pollvote fieldset { padding: 6px 8px; border: 1px solid var(--inset-a); }
.pollvote legend { color: var(--link); padding: 0 4px; }
.pollvote label { display: block; }
.buttons { margin-top: 6px; }
/* the quick post form */
.blockform .box { padding: 8px; }
.inform fieldset { padding: 6px 10px 10px; border: 1px solid var(--inset-a); }
.inform legend { padding: 0 4px; color: var(--link); }
.txtarea textarea { width: 100%; }
.bblinks { display: flex; gap: 14px; margin-top: 4px; font-size: 10px; }
/* the profile */
#viewprofile .box { padding: 8px; }
#viewprofile .inform { margin-bottom: 8px; }
#viewprofile dl { display: grid; grid-template-columns: 14em 1fr; gap: 3px 0; }
#viewprofile dt { font-weight: bold; text-align: right; padding-right: 8px; }
#viewprofile dd { padding: 1px 6px; background: var(--dark); overflow-wrap: anywhere; }
.snippet { margin-top: 2px; color: #555; }
/* --- forms and the default theme's pages */
.pun input[type=text], .pun input[type=password], .pun input[type=email], .pun input[type=search], .pun select, .pun textarea { padding: 2px; border: 1px solid #7f9db9; font: 12px Verdana, Arial, sans-serif; }
.pun button, .pun .button { padding: 1px 8px; border: 1px solid #888; background: linear-gradient(#fff, #ddd); font: 11px Verdana, sans-serif; cursor: pointer; }
.pun button.linkish { padding: 0; border: 0; background: none; font: inherit; }
.box > h2.maintitle, .pun .box > h2.maintitle { display: flex; gap: 8px; margin: 0; padding: 4px 6px; }
.pun .box.narrow, .box.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.pun .box .count { margin-left: auto; font-weight: normal; }
.box-body { padding: 8px; }
.field { display: grid; grid-template-columns: 35% 1fr; align-items: center; gap: 6px; padding: 3px 0; font-weight: bold; }
.field input, .field textarea { font-weight: normal; }
.editor .field { grid-template-columns: 1fr; }
.editor-foot { display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.signin .desc { margin-bottom: 6px; }
.poll-maker { margin: 8px 0; }
.poll-maker summary { cursor: pointer; font-weight: bold; }
.searchform { display: flex; gap: 6px; }
.searchform input { flex: 1; }
.message.error { color: var(--hover); font-weight: bold; }
p.message { padding: 6px; border: 1px solid var(--blue); background: var(--light); }
table.board { width: 100%; border-collapse: collapse; }
table.board th { padding: 4px 6px; background: var(--th); text-align: left; font-weight: normal; }
table.board td { padding: 4px 6px; border-top: 1px solid var(--td-line); background: var(--light); vertical-align: top; }
table.board h3 { margin: 0; font-size: 11px; font-weight: bold; }
td.none { text-align: center; }
/* letter pictures for those without one */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; font: bold 14px Verdana, sans-serif; vertical-align: middle; }
.avatar.tiny { width: 16px; height: 16px; font-size: 9px; }
.avatar.mini { width: 24px; height: 24px; font-size: 12px; }
.avatar.small { width: 32px; height: 32px; font-size: 15px; }
.avatar.large { width: 60px; height: 60px; font-size: 28px; }
.avatar.huge { width: 80px; height: 80px; font-size: 38px; }
.av0 { background: #4f7bb0; } .av1 { background: #b0574f; } .av2 { background: #4f9a6b; }
.av3 { background: #8a5fb0; } .av4 { background: #c0862d; } .av5 { background: #3e8f9e; }
.av6 { background: #a24f86; } .av7 { background: #6b7a3c; } .av8 { background: #c06a3e; }
.av9 { background: #546478; } .av10 { background: #2f7f5f; } .av11 { background: #9b4545; }
/* --- the foot */
#brdfooter .inbox { display: flow-root; padding: 6px; }
#poweredby { margin-top: 2px; }
.themepicker { display: inline-flex; align-items: center; gap: 4px; }
.themepicker select, .themepicker .button { font-size: 11px; }
/* --- narrow screens */
@media (max-width: 760px) {
#punwrap { margin: 6px; }
#brdtitle h1 { font-size: 17px; }
.blocktable th.tc2, .blocktable th.tc3, .blocktable td.tc2, .blocktable td.tc3 { display: none; }
.blocktable th.tcr { width: 40%; }
.blocktable td.tcr { white-space: normal; }
.postbody, .postfoot { flex-direction: column; }
.postleft, .postfootleft { width: auto; }
.postleft dl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.postleft .avatar.large { width: 32px; height: 32px; font-size: 15px; }
.postavatar { margin: 0; order: -1; }
.postfootleft { display: none; }
.postright { border-left: 0; }
#viewprofile dl { grid-template-columns: 1fr; }
#viewprofile dt { text-align: left; }
.conl, .conr { float: none; text-align: left; }
.field { grid-template-columns: 1fr; }
}
/* the country database's credit, where posters' flags are shown */
.geocredit { text-align: center; font-size: 11px; margin: 8px 0 16px; }