Files
bbs/internal/forum/static/smf1.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

279 lines
18 KiB
CSS

/*
* The forum's core theme: laid out in the manner of the PHP boards of
* 2005-2010 (Simple Machines Forum 1's "Core" look and its kind): a
* pale lilac-grey page, a box with a blue gradient head carrying the
* board's name, a greeting strip and a member strip beneath, dark blue
* menu tabs hanging below it in small capitals, tables with blue
* category bars and pale title bars over two grey-lavender cells, posts
* with the poster's name, group and stars on the left, Verdana.
* Written for this BBS; it takes no code or images from any board.
*/
:root {
--page: #e5e5e8;
--text: #444;
--link: #476c8e;
--cat-a: #a1bfd9;
--cat-b: #6f91b3;
--cat-line: #375576;
--title-a: #f7fafc;
--title-b: #dfe9f2;
--title-line: #9baebf;
--win: #ecedf3;
--win2: #f6f6f6;
--win3: #e0e1e8;
--border: #adadad;
--tab: #4a6b8f;
--tab-dark: #2f4a69;
--tab-active: #6f91b3;
}
* { box-sizing: border-box; }
body { margin: 0; padding: 12px 0 4px; background: var(--page); color: var(--text); font: 13px/1.35 Verdana, Helvetica, sans-serif; }
a:link, a:visited { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0; font-size: 1em; color: #000; }
p { margin: 4px 0; }
form { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.smalltext, .small, .desc { font-size: 11px; }
.middletext { font-size: 12px; }
.center { text-align: center; }
.righttext { 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 { text-decoration: underline; }
.time { color: #666; }
#mainframe { max-width: 1100px; margin: 0 auto; padding: 0 12px; }
/* --- the head box */
.tborder { background: #fff; border: 1px solid var(--border); padding: 1px; margin-bottom: 8px; }
.catbg, tr.catbg th, h3.catbg {
background: linear-gradient(var(--cat-a), var(--cat-b)); border-bottom: 1px solid var(--cat-line);
color: #fff; font-weight: bold; padding: 5px 10px; line-height: 1.6;
}
.catbg a:link, .catbg a:visited { color: #fff; }
.catbg a:hover { color: #e0e0ff; text-decoration: none; }
.titlebg, .titlebg2, h4.titlebg {
background: linear-gradient(var(--title-a), var(--title-b)); border-top: 1px solid #fff; border-bottom: 1px solid var(--title-line);
color: #000; padding: 4px 10px; font-weight: bold;
}
.windowbg { background: var(--win); color: #000; }
.windowbg2 { background: var(--win2); color: #000; }
.headbar { display: flex; justify-content: space-between; align-items: center; flex-direction: row-reverse; gap: 10px; padding: 8px 12px; }
#forum_name { color: #fff; font: bold 20px Verdana, Helvetica, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; text-shadow: 1px 1px 1px rgba(0,0,0,0.3); }
#forum_name a:link, #forum_name a:visited { color: #fff; }
.smflogo { display: inline-flex; gap: 2px; flex: none; }
.smflogo b { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 22px; border-radius: 3px; background: linear-gradient(#fff, #d8e3ee); color: var(--tab-dark); font: bold 14px Georgia, serif; box-shadow: 1px 1px 0 var(--cat-line); }
#greeting_section { display: flex; justify-content: space-between; flex-direction: row-reverse; gap: 10px; font-weight: normal; }
#greeting_section #name em { font-style: normal; font-weight: bold; }
#user_section { display: flex; gap: 12px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; }
#myavatar { padding-right: 12px; border-right: 1px solid var(--border); }
#user_section li { margin: 2px 0; }
#guest_form input { font-size: 11px; }
#news_section { padding: 5px 10px; font-size: 11px; font-weight: normal; }
/* the hanging tabs */
#main_menu { margin: -9px 0 14px 10px; }
.buttonlist ul { display: flex; flex-wrap: wrap; }
.buttonlist li a, .buttonlist li .linkish {
display: block; padding: 3px 10px 6px; background: linear-gradient(var(--tab), var(--tab-dark)); border-right: 1px solid #1f3550;
color: #fff; font: 10px Tahoma, sans-serif; text-transform: uppercase; text-decoration: none; letter-spacing: 0.03em;
}
.buttonlist li:first-child a { border-radius: 0 0 0 8px; }
.buttonlist li:last-child a, .buttonlist li:last-child .linkish { border-radius: 0 0 8px 0; }
.buttonlist li a:hover, .buttonlist li .linkish:hover { color: #e0e0ff; text-decoration: none; }
.buttonlist li.active a { background: linear-gradient(var(--tab-active), var(--tab)); font-weight: bold; padding-bottom: 8px; }
.buttonlist.small li a, .buttonlist.small li .linkish { padding: 5px 10px 3px; border-radius: 0; }
.buttonlist.small li:first-child a { border-radius: 8px 0 0 0; }
.buttonlist.small li:last-child a, .buttonlist.small li:last-child .linkish { border-radius: 0 8px 0 0; }
/* --- the body */
#bodyarea { padding: 0 2px; }
.linktree { margin: 6px 0 8px; font-size: 12px; }
.notice { padding: 8px 10px; }
.pagesection { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; }
.pagelinks { font-size: 11px; padding-bottom: 4px; }
.pagesection .buttonlist { margin-left: auto; }
.pagesection + .tborder, .pagesection + #quickreply { margin-top: 0; }
/* the board index */
table.table_list, table.table_grid, table.profiletable { width: 100%; border-collapse: separate; border-spacing: 1px; }
.table_list td, .table_grid td { padding: 6px 8px; vertical-align: middle; }
.table_list td.icon { width: 50px; text-align: center; }
.table_list td.info .subject { font-weight: bold; font-size: 13px; }
.table_list td.info .desc { margin: 3px 0 0; color: #555; }
.table_list td.stats { width: 100px; text-align: right; }
.table_list td.lastpost { width: 28%; line-height: 1.4; }
.board_icon { display: inline-block; position: relative; width: 34px; height: 30px; border-radius: 4px; border: 1px solid #8d9db0; background: linear-gradient(#f4f6f9, #c9d2dc); vertical-align: middle; }
.board_icon::before, .board_icon::after { content: ""; position: absolute; left: 6px; right: 6px; height: 4px; border-radius: 2px; background: #a3b0bf; }
.board_icon::before { top: 8px; }
.board_icon::after { top: 16px; right: 12px; }
.board_icon.on { border-color: #3e6588; background: linear-gradient(#dcebf8, #7fa6cb); }
.board_icon.on::before, .board_icon.on::after { background: #fff; }
.board_icon.small { width: 18px; height: 15px; }
.board_icon.small::before, .board_icon.small::after { left: 3px; right: 3px; height: 2px; }
.board_icon.small::before { top: 4px; }
.board_icon.small::after { top: 8px; right: 6px; }
.iconlegend { margin: 4px 0 10px; padding: 6px; text-align: right; }
.iconlegend.tborder { text-align: left; }
.infocenter .inforow { display: flex; gap: 10px; align-items: center; padding: 6px 10px; }
.infoicon { flex: none; display: inline-block; width: 26px; height: 24px; border-radius: 3px; border: 1px solid #8d9db0; background: #fff; position: relative; }
.infoicon.stats { background: linear-gradient(to right, transparent 4px, #6f91b3 4px 9px, transparent 9px 11px, #a1bfd9 11px 16px, transparent 16px 18px, #e0a03a 18px 22px, transparent 22px) bottom / 100% 75% no-repeat, #fff; }
.infoicon.online::before { content: ""; position: absolute; left: 8px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: #6f91b3; }
.infoicon.online::after { content: ""; position: absolute; left: 4px; bottom: 2px; width: 16px; height: 8px; border-radius: 8px 8px 0 0; background: #6f91b3; }
/* the topic list */
.table_grid th { padding: 5px 8px; text-align: left; font-size: 12px; }
.table_grid th.stats { width: 70px; text-align: center; }
.table_grid th.lastpost { width: 25%; }
.table_grid td.icon1, .table_grid td.icon2 { width: 28px; text-align: center; }
.table_grid td.stats { text-align: center; }
.table_grid td.subject p { margin: 2px 0 0; }
.topic_icon { display: inline-block; position: relative; width: 20px; height: 16px; border: 1px solid #8d9db0; border-radius: 2px; background: linear-gradient(#fff, #d5dde6); vertical-align: middle; }
.topic_icon::after { content: ""; position: absolute; left: 3px; right: 3px; top: 4px; height: 5px; border-top: 1px solid #a3b0bf; border-bottom: 1px solid #a3b0bf; }
.topic_icon.hot { background: linear-gradient(#ffe2c4, #f2a35e); border-color: #b4652a; }
.topic_icon.new { box-shadow: 0 0 0 2px #7fa6cb; }
.xx { display: inline-block; width: 14px; height: 14px; border: 1px solid #8d9db0; border-radius: 2px; background: #fff; vertical-align: middle; }
a.newpost { display: inline-block; padding: 0 4px; border-radius: 2px; background: #c33; color: #fff !important; font: bold 9px Verdana, sans-serif; text-transform: uppercase; vertical-align: 1px; }
.lastlink { display: inline-block; width: 11px; height: 9px; vertical-align: middle; background: var(--link); clip-path: polygon(0 30%, 55% 30%, 55% 0, 100% 50%, 55% 100%, 55% 70%, 0 70%); }
/* posts */
.topichead { display: flex; gap: 10px; }
.topichead .author { width: 160px; flex: none; }
.post_wrapper { display: grid; grid-template-columns: 160px minmax(0, 1fr); border-top: 1px solid var(--border); }
.poster { grid-row: span 2; padding: 8px 10px; border-right: 1px solid #d6d6dc; overflow-wrap: anywhere; }
.poster h4 { font-size: 13px; margin-bottom: 4px; }
.poster li { margin: 2px 0; }
.poster .membergroup { font-weight: normal; }
.poster .stars { color: #e3a21a; letter-spacing: 1px; }
.poster .avatar { margin: 6px 0; }
.profileicon { display: inline-block; position: relative; width: 14px; height: 14px; }
.profileicon::before { content: ""; position: absolute; left: 4px; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--link); }
.profileicon::after { content: ""; position: absolute; left: 1px; bottom: 0; width: 12px; height: 6px; border-radius: 6px 6px 0 0; background: var(--link); }
.postarea { padding: 6px 10px 4px; min-width: 0; }
.flow_hidden { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; padding-bottom: 4px; border-bottom: 1px solid #c6c6d0; }
.keyinfo { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; }
.keyinfo .smalltext { grid-column: 2; }
.keyinfo h5 { font-size: 12px; }
.messageicon { grid-row: span 2; display: inline-block; width: 16px; height: 16px; border: 1px solid #8d9db0; border-radius: 2px; background: linear-gradient(#fff, #dfe6ee); }
.quickbuttons { display: flex; gap: 8px; }
.quickbuttons a, .quickbuttons .linkish { font-weight: bold; }
.quote_button::before { content: "\201C "; font: bold 14px Georgia, serif; }
.like_button::before { content: "\2665 "; color: #c55; }
.remove_button::before { content: "\2715 "; color: #a33; }
.post .inner { padding: 8px 0; color: #000; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.moderatorbar { grid-column: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 10px 6px; border-top: 1px dashed #c6c6d0; margin: 0 0 0 0; }
.likes { color: #555; }
.reportlinks { margin-left: auto; color: #777; }
.ip_icon { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #a3b0bf; vertical-align: -1px; }
/* quotes, as SMF 1 set them */
.citation { margin: 6px 0 0; padding: 2px 4px; color: #000; font-size: 11px; font-weight: bold; }
.citation::before { content: "Quote: "; }
blockquote.quote { margin: 1px 0 8px; padding: 4px 8px; border: 1px solid var(--border); background: #f2f3f7; font-size: 12px; }
blockquote.quote:not(.citation + blockquote.quote)::before { content: "Quote"; display: block; margin: -2px 0 3px; font-size: 11px; font-weight: bold; }
.bbc_url:link, .bbc_url:visited { text-decoration: underline; }
/* polls */
.pollbody { padding: 8px 12px; }
.pollicon { display: inline-block; width: 14px; height: 12px; vertical-align: -1px; background: linear-gradient(to right, #fff 0 3px, transparent 3px 5px, #fff 5px 8px, transparent 8px 10px, #fff 10px 13px, transparent 13px); clip-path: polygon(0 40%, 3px 40%, 3px 100%, 5px 100%, 5px 0, 8px 0, 8px 100%, 10px 100%, 10px 25%, 13px 25%, 13px 100%, 0 100%); }
.options { display: grid; grid-template-columns: minmax(0, 40%) 1fr; gap: 4px 12px; margin: 0 0 8px; }
.options dd { margin: 0; display: flex; align-items: center; gap: 8px; }
.options dt.voted { font-weight: bold; }
meter { width: 60%; height: 12px; }
meter::-webkit-meter-bar { background: #fff; border: 1px solid #8d9db0; border-radius: 0; }
meter::-webkit-meter-optimum-value { background: linear-gradient(var(--cat-a), var(--cat-b)); }
meter::-moz-meter-bar { background: var(--cat-b); }
.pollvote { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
/* quick reply */
.qrbody { padding: 8px 12px; }
.qrbody textarea { margin: 4px 0; }
/* profile */
.profiletable td { padding: 8px 10px; vertical-align: top; }
.profleft { width: 70%; }
.profright { text-align: center; }
table.facts td { padding: 3px 12px 3px 0; font-size: 12px; }
.online { color: #2a8a2a; font-weight: bold; }
.offline { color: #888; }
.recentpost { padding: 6px 10px; border-top: 1px solid #fff; }
/* --- forms and the default theme's pages */
input, select, textarea, button { font: 12px Verdana, sans-serif; }
input[type=text], input[type=password], input[type=email], input[type=search], select, textarea { padding: 2px 3px; border: 1px solid #7f9db9; background: #fff; color: #000; }
textarea { width: 100%; }
.button_submit, .button, button.button, a.button:link, a.button:visited { padding: 2px 8px; border: 1px solid #aaa; background: linear-gradient(#fff, #cde7ff); color: #000; cursor: pointer; text-decoration: none; }
.button_submit:hover, .button:hover { border-color: #666; }
.button.important { font-weight: bold; }
.box { margin: 0 0 8px; background: #fff; border: 1px solid var(--border); padding: 1px; }
.box > h2.maintitle { display: flex; gap: 8px; margin: 0; padding: 5px 10px; background: linear-gradient(var(--cat-a), var(--cat-b)); border-bottom: 1px solid var(--cat-line); color: #fff; font: bold 13px Verdana, sans-serif; }
.box .count { margin-left: auto; font-weight: normal; }
.box-body { padding: 10px; background: var(--win); }
.box.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.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: #c00; font-weight: bold; }
p.message { padding: 6px 10px; border: 1px solid var(--border); background: var(--win2); }
table.board { width: 100%; border-collapse: separate; border-spacing: 1px; }
table.board th { padding: 4px 10px; background: linear-gradient(var(--title-a), var(--title-b)); border-bottom: 1px solid var(--title-line); color: #000; font-size: 12px; text-align: left; }
table.board td { padding: 6px 10px; background: var(--win); vertical-align: top; }
table.board tr:nth-child(even) td { background: var(--win2); }
table.board h3 { margin: 0; font-size: 13px; }
.snippet { font-size: 11px; }
td.none { text-align: center; }
/* letter pictures for those without one */
.avatar { display: inline-flex; align-items: center; justify-content: center; color: #fff; font: bold 14px Verdana, sans-serif; border: 1px solid #8d9db0; vertical-align: middle; }
.avatar.tiny { width: 16px; height: 16px; font-size: 10px; }
.avatar.mini { width: 24px; height: 24px; font-size: 12px; }
.avatar.large { width: 64px; height: 64px; font-size: 30px; }
.avatar.huge { width: 100px; height: 100px; font-size: 48px; }
.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 */
#footerarea { margin: 14px 0 6px; text-align: center; font-size: 11px; }
#footerarea ul { display: flex; justify-content: center; flex-wrap: wrap; }
#footerarea li { padding: 0 6px; border-right: 1px solid #888; }
#footerarea li.last, #footerarea li.copyright { border-right: 0; }
#footerarea li.copyright { flex-basis: 100%; padding-top: 6px; }
.themerow { display: flex; justify-content: center; margin-bottom: 6px; }
.themepicker { display: inline-flex; align-items: center; gap: 4px; }
.themepicker select, .themepicker .button { font-size: 11px; }
/* --- narrow screens */
@media (max-width: 760px) {
#mainframe { padding: 0 6px; }
#forum_name { font-size: 16px; }
#main_menu { margin-left: 4px; }
.table_list tbody.content tr { display: grid; grid-template-columns: 50px 1fr; }
.table_list td.stats { display: none; }
.table_list td.lastpost { grid-column: 1 / -1; width: auto; }
.table_grid th.stats, .table_grid td.stats, .table_grid th.lastpost, .table_grid td.lastpost, .table_grid td.icon2 { display: none; }
.topichead .author { display: none; }
.post_wrapper { grid-template-columns: 1fr; }
.poster { grid-row: auto; border-right: 0; border-bottom: 1px solid #d6d6dc; }
.poster ul { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.poster .avatar.large { width: 32px; height: 32px; font-size: 15px; margin: 0; }
.moderatorbar { grid-column: 1; }
.profiletable tr { display: flex; flex-direction: column-reverse; }
.profleft { width: auto; }
.options { grid-template-columns: 1fr; }
.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; }