xref: /plugin/botmon/admin.css (revision f207f6f2a8fe52383c218ed0f2c8539e5c3dc666)
1#botmon__admin {
2
3	section[role="tabpanel"] {
4		margin: .25rem 0;
5	}
6
7	/* icon items */
8	.has_icon {
9		display: inline-flex;
10	}
11	.icon_only {
12		display: inline-grid;
13		grid-template-columns: 20px max-content;
14		overflow: hidden;
15		width: 20px;
16	}
17
18	.has_icon, .icon_only {
19		& {
20			align-items: center;
21			column-gap: .25em;
22		}
23
24		&::before {
25			content: '';
26			display: inline-block;
27			width: 20px; height: 20px;
28			background: transparent none center no-repeat;
29			background-position: 0 0;
30			background-size: 20px;
31		}
32
33		/* user info Icon */
34		&.user_known::before { background-image: url('img/user.svg') }
35
36		/* IP Address types */
37		&.ipaddr::before { background-image: url('img/addr.png') }
38		&.ip4::before { background-position-y: -20px }
39		&.ip6::before { background-position-y: -40px }
40		&.ipnet::before { background-position-y: -60px }
41		&.ipother::before { background-image: url('img/more.svg') }
42
43		/* Bot icons */
44		&.bot::before { background-image: url('img/bots.png') }
45		&.bot_googlebot::before, &.bot_googleads::before, &.bot_googleapi::before,
46			&.bot_googleother::before, &.bot_googinspct::before { background-position-y: -20px }
47		&.bot_bingbot::before { background-position-y: -40px }
48		&.bot_applebot::before { background-position-y: -60px }
49		&.bot_openai::before { background-position-y: -80px }
50		&.bot_metabots::before { background-position-y: -100px }
51		&.bot_ahrefs::before { background-position-y: -120px }
52		&.bot_seznambot::before { background-position-y: -140px }
53		&.bot_claude::before { background-position-y: -160px }
54		&.bot_baidu::before { background-position-y: -180px }
55		&.bot_reddit::before { background-position-y: -200px }
56		&.bot_wayback::before { background-position-y: -220px }
57		&.bot_alibaba::before { background-position-y: -241px }
58		&.bot_ibou::before { background-position-y: -260px }
59		&.bot_discord::before { background-position-y: -280px }
60		&.bot_twitter::before { background-position-y: -300px }
61		&.bot_other::before { background-image: url('img/more.svg') }
62
63		/* platform icons */
64		&.platform::before { background-image: url('img/platforms.png') }
65		&.pf_win10::before { background-position-y: -20px }
66		&.pf_winold::before, dd.platform_winold::before,
67			&.pf_winsrvr:before { background-position-y: -40px }
68		&.pf_macos::before { background-position-y: -60px }
69		&.pf_macosold::before { background-position-y: -80px }
70		&.pf_ios::before { background-position-y: -100px }
71		&.pf_android::before { background-position-y: -120px }
72		&.pf_androidold::before { background-position-y: -140px }
73		&.pf_linux::before { background-position-y: -160px }
74		&.pf_bsd::before { background-position-y: -180px }
75		&.pf_chromium::before { background-position-y: -200px }
76		&.pf_hmos::before { background-position-y: -220px }
77		&.pf_tizen::before { background-position-y: -240px }
78		&.pf_fire::before { background-position-y: -260px }
79		&.pf_app::before { background-position-y: -280px }
80		&.pf_other::before { background-image: url('img/more.svg') }
81
82		/* browser icons */
83		&.client::before { background-image: url('img/clients.png') }
84		&.cl_firefox::before, &.cl_ffios::before { background-position-y: -20px }
85		&.cl_safari::before { background-position-y: -40px }
86		&.cl_chrome::before { background-position-y: -60px }
87		&.cl_msedge::before { background-position-y: -80px }
88		&.cl_msie::before { background-position-y: -100px }
89		&.cl_opera::before { background-position-y: -120px }
90		&.cl_brave::before { background-position-y: -140px }
91		&.cl_ddg::before { background-position-y: -160px }
92		&.cl_samsung::before { background-position-y: -180px }
93		&.cl_huawei::before { background-position-y: -200px }
94		&.cl_vivaldi::before { background-position-y: -220px }
95		&.cl_aol::before { background-position-y: -240px }
96		&.cl_ya::before { background-position-y: -260px }
97		&.cl_silk::before { background-position-y: -280px }
98		&.cl_ffold::before { background-position-y: -300px }
99		&.cl_chromeold::before { background-position-y: -320px }
100		&.cl_ecosia::before { background-position-y: -340px }
101		&.cl_webkit::before { background-position-y: -360px }
102		&.cl_operaold::before { background-position-y: -380px }
103		&.cl_whatsapp::before { background-position-y: -400px }
104		&.cl_applemsgs::before { background-position-y: -420px }
105		&.cl_goognblm::before { background-position-y: -440px }
106		&.cl_chatgpt::before { background-position-y: -460px }
107		&.cl_meta::before { background-position-y: -480px }
108		&.cl_other::before { background-image: url('img/more.svg') }
109
110		/* Country flags */
111		/* Note: flag images and CSS adapted from: https://github.com/lafeber/world-flags-sprite/ */
112		&.country::before {
113			content: '';
114			height: 20px; width: 20px;
115			background:url(img/flags.png) no-repeat 0 0;
116			background-size: 20px auto;
117		}
118		&.ctry_ad::before { background-position-y: -441px }
119		&.ctry_ae::before { background-position-y: -461px }
120		&.ctry_af::before { background-position-y: -481px }
121		&.ctry_ag::before { background-position-y: -501px }
122		&.ctry_ai::before { background-position-y: -521px }
123		&.ctry_al::before { background-position-y: -541px }
124		&.ctry_am::before { background-position-y: -561px }
125		&.ctry_ao::before { background-position-y: -581px }
126		&.ctry_aq::before { background-position-y: -601px }
127		&.ctry_ar::before { background-position-y: -621px }
128		&.ctry_as::before { background-position-y: -641px }
129		&.ctry_at::before { background-position-y: -661px }
130		&.ctry_au::before { background-position-y: -681px }
131		&.ctry_aw::before { background-position-y: -701px }
132		&.ctry_ax::before { background-position-y: -721px }
133		&.ctry_az::before { background-position-y: -741px }
134		&.ctry_ba::before { background-position-y: -761px }
135		&.ctry_bb::before { background-position-y: -781px }
136		&.ctry_bd::before { background-position-y: -801px }
137		&.ctry_be::before { background-position-y: -821px }
138		&.ctry_bf::before { background-position-y: -841px }
139		&.ctry_bg::before { background-position-y: -861px }
140		&.ctry_bh::before { background-position-y: -881px }
141		&.ctry_bi::before { background-position-y: -901px }
142		&.ctry_bj::before { background-position-y: -921px }
143		&.ctry_bm::before { background-position-y: -941px }
144		&.ctry_bn::before { background-position-y: -961px }
145		&.ctry_bo::before { background-position-y: -981px }
146		&.ctry_br::before { background-position-y: -1001px }
147		&.ctry_bs::before { background-position-y: -1021px }
148		&.ctry_bt::before { background-position-y: -1041px }
149		&.ctry_bw::before { background-position-y: -1061px }
150		&.ctry_by::before { background-position-y: -1081px }
151		&.ctry_bz::before { background-position-y: -1101px }
152		&.ctry_ca::before { background-position-y: -1121px }
153		&.ctry_cd::before { background-position-y: -1141px }
154		&.ctry_cf::before { background-position-y: -1161px }
155		&.ctry_cg::before { background-position-y: -1181px }
156		&.ctry_ch::before { background-position-y: -1201px }
157		&.ctry_ci::before { background-position-y: -1221px }
158		&.ctry_ck::before { background-position-y: -1241px }
159		&.ctry_cl::before { background-position-y: -1261px }
160		&.ctry_cm::before { background-position-y: -1281px }
161		&.ctry_cn::before { background-position-y: -1301px }
162		&.ctry_co::before { background-position-y: -1321px }
163		&.ctry_cr::before { background-position-y: -1341px }
164		&.ctry_cu::before { background-position-y: -1361px }
165		&.ctry_cv::before { background-position-y: -1381px }
166		&.ctry_cy::before { background-position-y: -1401px }
167		&.ctry_cz::before { background-position-y: -1421px }
168		&.ctry_de::before { background-position-y: -1441px }
169		&.ctry_dj::before { background-position-y: -1461px }
170		&.ctry_dk::before { background-position-y: -1481px }
171		&.ctry_dm::before { background-position-y: -1501px }
172		&.ctry_do::before { background-position-y: -1521px }
173		&.ctry_dz::before { background-position-y: -1541px }
174		&.ctry_ec::before { background-position-y: -1561px }
175		&.ctry_ee::before { background-position-y: -1581px }
176		&.ctry_eg::before { background-position-y: -1601px }
177		&.ctry_eh::before { background-position-y: -1621px }
178		&.ctry_er::before { background-position-y: -1641px }
179		&.ctry_es::before { background-position-y: -1661px }
180		&.ctry_et::before { background-position-y: -1681px }
181		&.ctry_fi::before { background-position-y: -1701px }
182		&.ctry_fj::before { background-position-y: -1721px }
183		&.ctry_fm::before { background-position-y: -1741px }
184		&.ctry_fo::before { background-position-y: -1761px }
185		&.ctry_fr::before, &.ctry_bl::before, &.ctry_cp::before, &.ctry_mf::before,
186			&.ctry_yt::before { background-position-y: -1781px }
187		&.ctry_ga::before { background-position-y: -1801px }
188		&.ctry_gb::before, &.ctry_bg::before, &.ctry_uk::before,
189			&.ctry_sh::before { background-position-y: -1821px }
190		&.ctry_gd::before { background-position-y: -1841px }
191		&.ctry_ge::before { background-position-y: -1861px }
192		&.ctry_gg::before { background-position-y: -1881px }
193		&.ctry_gh::before { background-position-y: -1901px }
194		&.ctry_gi::before { background-position-y: -1921px }
195		&.ctry_gl::before { background-position-y: -1941px }
196		&.ctry_gm::before { background-position-y: -1961px }
197		&.ctry_gn::before { background-position-y: -1981px }
198		&.ctry_gp::before { background-position-y: -2001px }
199		&.ctry_gq::before { background-position-y: -2021px }
200		&.ctry_gr::before { background-position-y: -2041px }
201		&.ctry_gt::before { background-position-y: -2061px }
202		&.ctry_gu::before { background-position-y: -2081px }
203		&.ctry_gw::before { background-position-y: -2101px }
204		&.ctry_gy::before { background-position-y: -2121px }
205		&.ctry_hk::before { background-position-y: -2141px }
206		&.ctry_hn::before { background-position-y: -2161px }
207		&.ctry_hr::before { background-position-y: -2181px }
208		&.ctry_ht::before { background-position-y: -2201px }
209		&.ctry_hu::before { background-position-y: -2221px }
210		&.ctry_id::before, &.ctry_mc::before { background-position-y: -2241px }
211		&.ctry_ie::before { background-position-y: -2261px }
212		&.ctry_il::before { background-position-y: -2281px }
213		&.ctry_im::before { background-position-y: -2301px }
214		&.ctry_in::before { background-position-y: -2321px }
215		&.ctry_iq::before { background-position-y: -2341px }
216		&.ctry_ir::before { background-position-y: -2361px }
217		&.ctry_is::before { background-position-y: -2381px }
218		&.ctry_it::before { background-position-y: -2401px }
219		&.ctry_je::before { background-position-y: -2421px }
220		&.ctry_jm::before { background-position-y: -2441px }
221		&.ctry_jo::before { background-position-y: -2461px }
222		&.ctry_jp::before { background-position-y: -2481px }
223		&.ctry_ke::before { background-position-y: -2501px }
224		&.ctry_kg::before { background-position-y: -2521px }
225		&.ctry_kh::before { background-position-y: -2541px }
226		&.ctry_ki::before { background-position-y: -2561px }
227		&.ctry_km::before { background-position-y: -2581px }
228		&.ctry_kn::before { background-position-y: -2601px }
229		&.ctry_kp::before { background-position-y: -2621px }
230		&.ctry_kr::before { background-position-y: -2641px }
231		&.ctry_kw::before { background-position-y: -2661px }
232		&.ctry_ky::before { background-position-y: -2681px }
233		&.ctry_kz::before { background-position-y: -2701px }
234		&.ctry_la::before { background-position-y: -2721px }
235		&.ctry_lb::before { background-position-y: -2741px }
236		&.ctry_lc::before { background-position-y: -2761px }
237		&.ctry_li::before { background-position-y: -2781px }
238		&.ctry_lk::before { background-position-y: -2801px }
239		&.ctry_lr::before { background-position-y: -2821px }
240		&.ctry_ls::before { background-position-y: -2841px }
241		&.ctry_lt::before { background-position-y: -2861px }
242		&.ctry_lu::before { background-position-y: -2881px }
243		&.ctry_lv::before { background-position-y: -2901px }
244		&.ctry_ly::before { background-position-y: -2921px }
245		&.ctry_ma::before { background-position-y: -2941px }
246		&.ctry_md::before { background-position-y: -2961px }
247		&.ctry_me::before { background-position-y: -2981px }
248		&.ctry_mg::before { background-position-y: -3001px }
249		&.ctry_mh::before { background-position-y: -3021px }
250		&.ctry_mk::before { background-position-y: -3041px }
251		&.ctry_ml::before { background-position-y: -3061px }
252		&.ctry_mm::before { background-position-y: -3081px }
253		&.ctry_mn::before { background-position-y: -3101px }
254		&.ctry_mo::before { background-position-y: -3121px }
255		&.ctry_mq::before { background-position-y: -3141px }
256		&.ctry_mr::before { background-position-y: -3161px }
257		&.ctry_ms::before { background-position-y: -3181px }
258		&.ctry_mt::before { background-position-y: -3201px }
259		&.ctry_mu::before { background-position-y: -3221px }
260		&.ctry_mv::before { background-position-y: -3241px }
261		&.ctry_mw::before { background-position-y: -3261px }
262		&.ctry_mx::before { background-position-y: -3281px }
263		&.ctry_my::before { background-position-y: -3301px }
264		&.ctry_mz::before { background-position-y: -3321px }
265		&.ctry_na::before { background-position-y: -3341px }
266		&.ctry_nc::before { background-position-y: -3361px }
267		&.ctry_ne::before { background-position-y: -3381px }
268		&.ctry_ng::before { background-position-y: -3401px }
269		&.ctry_ni::before { background-position-y: -3421px }
270		&.ctry_nl::before,
271			&.ctry_bq::before { background-position-y: -3441px }
272		&.ctry_no::before, &.ctry_bv::before , &.ctry_nq::before,
273			&.ctry_sj::before { background-position-y: -3461px }
274		&.ctry_np::before { background-position-y: -3481px }
275		&.ctry_nr::before { background-position-y: -3501px }
276		&.ctry_nz::before { background-position-y: -3521px }
277		&.ctry_om::before { background-position-y: -3541px }
278		&.ctry_pa::before { background-position-y: -3561px }
279		&.ctry_pe::before { background-position-y: -3581px }
280		&.ctry_pf::before { background-position-y: -3601px }
281		&.ctry_pg::before { background-position-y: -3621px }
282		&.ctry_ph::before { background-position-y: -3641px }
283		&.ctry_pk::before { background-position-y: -3661px }
284		&.ctry_pl::before { background-position-y: -3681px }
285		&.ctry_pr::before { background-position-y: -3701px }
286		&.ctry_ps::before { background-position-y: -3721px }
287		&.ctry_pt::before { background-position-y: -3741px }
288		&.ctry_pw::before { background-position-y: -3761px }
289		&.ctry_py::before { background-position-y: -3781px }
290		&.ctry_qa::before { background-position-y: -3801px }
291		&.ctry_re::before { background-position-y: -3821px }
292		&.ctry_ro::before { background-position-y: -3841px }
293		&.ctry_rs::before { background-position-y: -3861px }
294		&.ctry_ru::before { background-position-y: -3881px }
295		&.ctry_rw::before { background-position-y: -3901px }
296		&.ctry_sa::before { background-position-y: -3921px }
297		&.ctry_sb::before { background-position-y: -3941px }
298		&.ctry_sc::before { background-position-y: -3961px }
299		&.ctry_sd::before { background-position-y: -3981px }
300		&.ctry_se::before { background-position-y: -4001px }
301		&.ctry_sg::before { background-position-y: -4021px }
302		&.ctry_si::before { background-position-y: -4041px }
303		&.ctry_sk::before { background-position-y: -4061px }
304		&.ctry_sl::before { background-position-y: -4081px }
305		&.ctry_sm::before { background-position-y: -4101px }
306		&.ctry_sn::before { background-position-y: -4121px }
307		&.ctry_so::before { background-position-y: -4141px }
308		&.ctry_sr::before { background-position-y: -4161px }
309		&.ctry_st::before { background-position-y: -4181px }
310		&.ctry_sv::before { background-position-y: -4201px }
311		&.ctry_sy::before { background-position-y: -4221px }
312		&.ctry_sz::before { background-position-y: -4241px }
313		&.ctry_tc::before { background-position-y: -4261px }
314		&.ctry_td::before { background-position-y: -4281px }
315		&.ctry_tg::before { background-position-y: -4301px }
316		&.ctry_th::before { background-position-y: -4321px }
317		&.ctry_tj::before { background-position-y: -4341px }
318		&.ctry_tl::before { background-position-y: -4361px }
319		&.ctry_tm::before { background-position-y: -4381px }
320		&.ctry_tn::before { background-position-y: -4401px }
321		&.ctry_to::before { background-position-y: -4421px }
322		&.ctry_tr::before { background-position-y: -4441px }
323		&.ctry_tt::before { background-position-y: -4461px }
324		&.ctry_tv::before { background-position-y: -4481px }
325		&.ctry_tw::before { background-position-y: -4501px }
326		&.ctry_tz::before { background-position-y: -4521px }
327		&.ctry_ua::before { background-position-y: -4541px }
328		&.ctry_ug::before { background-position-y: -4561px }
329		&.ctry_us::before { background-position-y: -4581px }
330		&.ctry_uy::before { background-position-y: -4601px }
331		&.ctry_uz::before { background-position-y: -4621px }
332		&.ctry_va::before { background-position-y: -4641px }
333		&.ctry_vc::before { background-position-y: -4661px }
334		&.ctry_ve::before { background-position-y: -4681px }
335		&.ctry_vg::before { background-position-y: -4701px }
336		&.ctry_vi::before { background-position-y: -4721px }
337		&.ctry_vn::before { background-position-y: -4741px }
338		&.ctry_vu::before { background-position-y: -4761px }
339		&.ctry_ws::before { background-position-y: -4781px }
340		&.ctry_ye::before { background-position-y: -4801px }
341		&.ctry_za::before { background-position-y: -4821px }
342		&.ctry_zm::before { background-position-y: -4841px }
343		&.ctry_zw::before { background-position-y: -4861px }
344		&.ctry_sx::before { background-position-y: -4881px }
345		&.ctry_cw::before { background-position-y: -4901px }
346		&.ctry_ss::before { background-position-y: -4921px }
347		&.ctry_nu::before { background-position-y: -4941px }
348
349		&.ctry_local::before { background-image: url('img/addr.png') } /* localhost */
350		&.ctry_other::before { background-image: url('img/more.svg') } /* other countries */
351
352		/* Session icons */
353		&.session::before { background-image: url('img/idtyp.png') }
354		&.typ_dw::before { background-position-y: -20px }
355		&.typ_php::before { background-position-y: -40px }
356		&.typ_ip::before { background-position-y: -60px }
357		&.typ_usr::before { background-position-y: -80px }
358
359		/* External link icons */
360		&.extlink::before { background-image: url('img/links.png') }
361		&.extlink.ipinfo::before { background-position-y: -40px }
362		&.extlink.abuseipdb::before { background-position-y: -20px }
363
364		/* Common referers icons */
365		&.referer::before { background-image: url('img/referers.png') }
366		&.ref_null::before { background-position-y: -20px }
367		&.ref_google::before { background-position-y: -40px }
368		&.ref_bing::before { background-position-y: -60px }
369		&.ref_yahoo::before { background-position-y: -80px }
370		&.ref_dokuwiki::before { background-position-y: -100px }
371		&.ref_duckduckgo::before { background-position-y: -120px }
372		&.ref_ecosia::before { background-position-y: -140px }
373		&.ref_yandex::before { background-position-y: -160px }
374		&.ref_chatgpt::before { background-position-y: -180px }
375		&.ref_brave::before { background-position-y: -200px }
376		&.ref_wikipedia::before { background-position-y: -220px }
377		&.ref_denkfehler::before { background-position-y: -240px }
378		&.ref_fallacies::before { background-position-y: -260px }
379		&.ref_facebook::before { background-position-y: -280px }
380		&.ref_discord::before { background-position-y: -300px }
381		&.ref_other::before { background-image: url('img/more.svg') }
382	}
383
384	.page_icon {
385		display: inline-flex;
386		column-gap: .25em;
387		align-items: center;
388	}
389	.page_icon::before {
390		content: '';
391		display: inline-block;
392		width: 20px; height: 20px;
393		background: transparent url('img/page.svg') center no-repeat;
394		background-position: 0 0;
395		background-size: 20px;
396	}
397
398	/* grid layout for the overview: */
399	.botmon_bots_grid, .botmon_webmetrics_grid, .botmon_traffic_grid {
400		& {
401			display: grid;
402			grid-gap: 0 .33em;
403		}
404		dl {
405			dd {
406				display: flex;
407				justify-content: space-between;
408				align-items: baseline;
409			}
410		}
411	}
412	.botmon_bots_grid {
413		&[data-geoip="disabled"] {
414			& {
415				grid-template-columns: 1fr 1fr 1fr;
416			}
417			#botmon__botcountries {
418				display: none;
419			}
420		}
421		&:not([data-geoip="disabled"]) {
422			grid-template-columns: 1fr 1fr 1fr 1fr;
423		}
424	}
425	.botmon_webmetrics_grid {
426		&[data-geoip="disabled"] {
427			& {
428				grid-template-columns: 1fr 1fr 1fr;
429			}
430			#botmon__today__wm_countries {
431				display: none;
432			}
433		}
434		&:not([data-geoip="disabled"]) {
435			grid-template-columns: 1fr 1fr 1fr 1fr;
436		}
437	}
438	.botmon_traffic_grid {
439		grid-template-columns: 2fr 1fr;
440	}
441
442	/* The tabs bar */
443	#botmon__tabs ul.tabs li {
444		a[aria-selected="true"] {
445			background-color: #DDD;
446			color: #111;
447		}
448		a[aria-selected="false"] {
449			background-color: #EEE;
450			color: #111;
451		}
452	}
453
454	/* the "today" tab: */
455	#botmon__latest {
456
457		/* item header */
458		header {
459			background-color: #F0F0F0;
460			color: #333;
461			border: #999 solid 1px;
462			border-radius: .5rem .5rem 0 0;
463			margin: .5rem 0 1pt 0;
464			padding: .25rem .5rem;
465			font-size: 1rem;
466			line-height: 1.25;
467		}
468
469		/* list formatting */
470		dl {
471			& {
472				border-left: #555 solid 1px;
473				padding-left: .5rem;
474				margin: 0;
475				font-size: 1rem;
476				line-height: 1.5;
477			}
478			&:first-child {
479				border-left: none;
480				padding-left: 0;
481			}
482			dt {
483				margin-bottom: .2em;
484			}
485			dd {
486				padding: 0; margin: 0;
487			}
488			dd.spaced {
489				display: flex;
490				justify-content: space-between;
491			}
492			dd:nth-child(even) {
493				background-color: #EEE;
494			}
495		}
496
497		/* Content */
498		#botmon__today__content {
499			& details {
500				& {
501					margin: 0 0 1pt 0;
502					text-align: left;
503				}
504				summary {
505					& {
506						display: flex;
507						justify-content: flex-start;
508						align-items: center;
509						column-gap: .25em;
510						font-weight: bold;
511						font-size: 1rem;
512						line-height: 1.5;
513						margin: 0;
514						padding: .25em;
515						color: #333;
516						cursor: pointer;
517					}
518					&::marker, &::before {
519						content: none;
520						display: none;
521					}
522					&::before {
523						content: '';
524						display: inline-block;
525						width: 1.25em; height: 1.25em;
526						background: transparent url('img/chevron.svg') center no-repeat;
527						background-size: 1.25em;
528						transform: rotate(-90deg);
529						transition-duration: .25s;
530					}
531				}
532				&[open] {
533					& > summary::before {
534						transform: rotate(0deg);
535					}
536				}
537				& > div {
538					padding: .5rem;
539					border: #999 solid 1px;
540					border-top-width: 0;
541					border-radius: 0 0 .25rem .25rem;
542				}
543				& details summary {
544					& {
545						background-color: transparent;
546						border: transparent none 0;
547					}
548					span.title {
549						flex-grow: 1;
550					}
551					a.ext_info {
552						display: inline-block;
553						width: 1.25em; height: 1.25em;
554						overflow: hidden;
555						border-radius: 50%;
556					}
557					a.ext_info::before {
558						content: '';
559						display: inline-block;
560						width: 1.25em; height: 1.25em;
561						background: transparent url('img/info.svg') center no-repeat
562					}
563				}
564			}
565			& > details > summary {
566				background-color: #F0F0F0;
567				border: #999 solid 1px;
568			}
569		}
570
571		/* visitor lists: */
572		#botmon__today__visitorlists {
573			& > details summary {
574				border-radius: .5em;
575			}
576			details ul {
577				margin: 0;
578				padding: 0;
579				list-style: none;
580			}
581			details ul > li {
582				margin: 0 0 0 .75rem;
583				padding: 0;
584				color: #000;
585			}
586			details ul > li > details {
587				border: #ccc solid 1px;
588				border-radius: .5em;
589			}
590			details ul > li > details > summary {
591				display: flex;
592				justify-content: space-between;
593				align-items: center;
594				column-gap: .5em;
595				font-weight: normal;
596				font-size: 1rem;
597				line-height: 1.5;
598				background-color: #F0F0F0;
599				border-bottom: #CCC solid 1px;
600				border-radius: .7em;
601			}
602			details ul > li > details > summary.noServer {
603				opacity: 67%;
604			}
605			details ul > li > details > summary > span {
606				display: flex;
607				align-items: center;
608				column-gap: .25em;
609			}
610			details ul > li > details > summary > span:first-child {
611				flex-grow: 1;
612			}
613			details ul > li > details > summary > span > span[title] {
614				cursor: help;
615			}
616
617			dl.visitor_details {
618				& {
619					display: grid;
620					grid-template-columns: min-content auto;
621					border-left: transparent none 0;
622					margin: 0 .5rem .25rem 0;
623				}
624				dt {
625					grid-column: 1;
626					white-space: nowrap;
627				}
628				dd {
629					grid-column: 2;
630					background-color: transparent;
631				}
632				dd.pages {
633					& {
634					}
635					ul {
636						li {
637							& {
638								display: flex;
639								flex-direction: column;
640								line-height: 1.2rem;
641								margin: 0;
642								padding: 0 .25em;
643							}
644							&:nth-child(odd) {
645								background-color: #DFDFDF;
646							}
647							div.row {
648								display: flex;
649								flex-direction: row;
650								justify-content: space-between;
651								align-items: baseline;
652								white-space: nowrap;
653								line-height: 1.35em;
654							}
655							span {
656								display: inline-block;
657							}
658						}
659					}
660					a[hreflang] {
661						overflow: hidden;
662						text-overflow: ellipsis;
663						padding: 2pt 0 0 2pt;
664
665					}
666					a[hreflang]::after {
667						content: attr(hreflang);
668						font-size: smaller;
669						color: #666;
670						border: #666 solid 1px;
671						line-height: 1.25;
672						border-radius: 2pt;
673						padding: 0 1pt;
674						margin-left: .2em;
675					}
676					span.first-seen {
677						min-width: 4.2em;
678						text-align: right;
679					}
680					span.visit-length {
681						font-size: smaller;
682					}
683					span.bounce {
684						width: 1.25em; height: 1.25em;
685						overflow: hidden;
686					}
687					span.bounce::before {
688						display: inline-block;
689						content: '';
690						width: 1.25em; height: 1em;
691						background: transparent url('img/bounce.svg') center no-repeat;
692						background-size: .95em;
693					}
694					span.referer {
695						font-size: smaller;
696						margin-left: .67rem;
697					}
698				}
699			}
700
701			dd.eval > ul {
702				li {
703					display: flex;
704					justify-content: space-between;
705					align-items: center;
706				}
707				li:nth-child(odd) {
708					background-color: #DFDFDF;
709				}
710				li.total {
711					border-top: #333 solid 1px;
712					font-style: italic;
713				}
714			}
715
716			/* user agent */
717			span.agent::before {
718				background-image: url('img/info.svg')
719			}
720
721			/* pageviews */
722			span.pageviews {
723				border: #999 solid 1px;
724				padding: 0 2px;
725				font-size: smaller;
726				border-radius: .5em;
727				margin-right: .25em;
728			}
729			span.pageviews::before {
730				content : '';
731				display: inline-block;
732				width: 1.25em; height: 1.25em;
733				background: transparent url('img/page.svg') center no-repeat;
734				background-size: 1.25em;
735			}
736		}
737
738		/* item footer */
739		footer {
740			& {
741				display: flex;
742				align-items: center;
743				column-gap: .25rem;
744				background-color: #F0F0F0;
745				color: #333;
746				border: #999 solid 1px;
747				border-radius: 0 0 .5rem .5rem;
748				margin: 1pt 0 0 0;
749				padding: .25rem .5rem;
750				line-height: 1.25;
751			}
752			& > svg {
753				width: 1.25em; height: 1.25em;
754				fill: #333;
755				flex-shrink: 0;
756			}
757			& > span {
758				font-size: .96rem;
759				line-height: 1.25rem;
760			}
761			& > span.error {
762				color: #961D1B;
763				font-weight: bold;
764			}
765		}
766	}
767
768	/* the log tab: */
769	#botmon__log {
770
771		#botmon__loglist {
772			& {
773				border: #999 solid 1px;
774				background-color: #F0F0F0;
775				margin: .5rem 0 0 0;
776				padding: .5em;
777				border-radius: .5em 1pt 1pt .5em;
778				list-style: none inside;
779				display: block;
780				min-height: 24rem;
781				max-height: 32rem;
782				overflow: hidden auto
783			}
784			li {
785				& {
786					margin: 0; padding: 0;
787				}
788				&:nth-child(even) {
789					background-color: #DFDFDF;
790				}
791				&.skipped { color: #626262; font-style: italic;}
792				&.success { color: #217121; }
793				&.error { color: #bb2929; }
794			}
795		}
796	}
797}
798
799/* dark mode overrides */
800@media (prefers-color-scheme: dark) {
801	body.darkmode.mode_admin #botmon__admin {
802
803		#botmon__tabs ul.tabs li {
804			a[aria-selected="true"] {
805				background-color: #0c0c0d;
806				color: #adadb3;
807			}
808			a[aria-selected="false"] {
809				background-color: #39393D;
810				color: #ADADB3;
811			}
812		}
813
814		#botmon__latest {
815
816			header {
817				background-color: #0c0c0d;
818				color: #adadb3;
819				border-color: #666;
820			}
821
822			/* list formatting */
823			dl {
824				& {
825					border-left-color: #777;
826				}
827				dt {
828					color: #adadb3;
829				}
830				dd:nth-child(even) {
831					background-color: #333;
832				}
833			}
834
835			#botmon__today__content > details {
836				summary {
837					& {
838						background-color: #0c0c0d;
839						color: #adadb3;
840						border-color: #666;
841					}
842					&::after {
843						color: #76b0fd;
844					}
845				}
846				& > div {
847					border-color: #666;
848				}
849			}
850
851			/* visitor lists: */
852			#botmon__today__visitorlists {
853				details ul > li {
854					& {
855						color: #aeaeae;
856					}
857					& > details {
858						border-color: #666;
859					}
860					& > details summary {
861						background-color: #171717;
862					}
863				}
864
865				dl.visitor_details {
866					dd.pages {
867						ul li:nth-child(odd) {
868							background-color: #333;
869						}
870					}
871				}
872
873				dd.eval > ul {
874					li:nth-child(odd) {
875						background-color: #333;
876					}
877					li.total {
878						border-top-color: #CCC;
879					}
880				}
881				span.pageviews {
882					border-color: #555;
883				}
884
885			}
886
887			footer {
888				& {
889					background-color: #0c0c0d;
890					color: #adadb3;
891					border-color: #666;
892				}
893				& > svg {
894					fill: #777;
895				}
896				& > span.error {
897					color: #961D1B;
898				}
899			}
900		}
901
902		#botmon__log {
903			#botmon__loglist {
904				& {
905					border-color: #CCC;
906					background-color: #232327;
907				}
908				li {
909					&:nth-child(even) { background-color: #39393D; }
910					&.info { color: #a2a2a2;}
911					&.success { color: #50b750; }
912					&.error { color: #f87d7d; }
913				}
914			}
915		}
916
917	}
918}
919/* layout overrides for narrow screens: */
920@media (max-width: 800px) {
921	#botmon__admin #botmon__latest #botmon__today__visitorlists {
922		dl.visitor_details {
923			& {
924				display: block;
925				margin-top: .5rem;
926			}
927			dt {
928				margin-left: .67rem;
929				font-size: smaller;
930			}
931			dd {
932				margin-left: 1.5rem;
933			}
934			dd.pages, dd.eval {
935				margin-left: 0;
936			}
937		}
938	}
939}
940
941@media (max-width: 670px) {
942	#botmon__admin #botmon__latest {
943		.botmon_bots_grid, .botmon_webmetrics_grid, .botmon_traffic_grid {
944			& {
945				grid-template-columns: 1fr !important;
946			}
947			dt {
948				margin: .5em 0;
949			}
950			dl {
951				border-left: transparent none 0;
952				padding-left: 0;
953			}
954		}
955	}
956}
957