「MediaWiki:Common.css」の版間の差分

提供: StartLeno
ナビゲーションに移動 検索に移動
Fit randomized talent icon and name cards to available page width
Replace sliding talent icons with static random selection fitting page width
 
2行目: 2行目:
/* STARTLENO TALENT MARQUEE v1 BEGIN */
/* STARTLENO TALENT MARQUEE v1 BEGIN */
#sl-talent-marquee { width:100%; max-width:100%; min-width:0; }
#sl-talent-marquee { width:100%; max-width:100%; min-width:0; }
.sl-marquee-controls { text-align:right; margin:0 0 8px; }
.sl-marquee-controls button { cursor:pointer; padding:6px 12px; border:1px solid #bbb; border-radius:20px; background:#fff; color:#333; font:inherit; font-size:0.85em; }
.sl-marquee-viewport { width:100%; overflow:hidden; padding:8px 0; }
.sl-marquee-viewport { width:100%; overflow:hidden; padding:8px 0; }
.sl-marquee-track { display:flex; width:max-content; animation:sl-marquee-drift 60s linear infinite; }
.sl-marquee-track { display:flex; width:max-content; animation:none; }
.sl-marquee-group { display:flex; flex:none; gap:22px; padding-right:22px; }
.sl-marquee-group { display:flex; flex:none; gap:22px; padding-right:0; }
.sl-marquee-card { display:flex; flex-direction:column; align-items:center; gap:10px; flex:0 0 var(--sl-marquee-card-width,132px); width:var(--sl-marquee-card-width,132px); text-align:center; text-decoration:none !important; color:inherit; }
.sl-marquee-card { display:flex; flex-direction:column; align-items:center; gap:10px; flex:0 0 var(--sl-marquee-card-width,132px); width:var(--sl-marquee-card-width,132px); text-align:center; text-decoration:none !important; color:inherit; }
.sl-marquee-portrait { position:relative; display:block; width:104px; height:104px; border-radius:50%; overflow:hidden; background:linear-gradient(140deg,#e2defc,#dcecf4); box-shadow:0 3px 12px #0002; }
.sl-marquee-portrait { position:relative; display:block; width:104px; height:104px; border-radius:50%; overflow:hidden; background:linear-gradient(140deg,#e2defc,#dcecf4); box-shadow:0 3px 12px #0002; }
12行目: 10行目:
.sl-marquee-portrait img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.sl-marquee-portrait img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.sl-marquee-name { font-weight:600; font-size:14px; overflow-wrap:anywhere; }
.sl-marquee-name { font-weight:600; font-size:14px; overflow-wrap:anywhere; }
#sl-talent-marquee:hover .sl-marquee-track,
#sl-talent-marquee:focus-within .sl-marquee-track,
#sl-talent-marquee.sl-marquee-paused .sl-marquee-track { animation-play-state:paused; }
.sl-marquee-card:focus-visible { outline:3px solid #6250ab; outline-offset:-3px; border-radius:8px; }
.sl-marquee-card:focus-visible { outline:3px solid #6250ab; outline-offset:-3px; border-radius:8px; }
@keyframes sl-marquee-drift { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@media(max-width:600px) { .sl-marquee-card { width:var(--sl-marquee-card-width,108px); flex-basis:var(--sl-marquee-card-width,108px); } .sl-marquee-portrait { width:84px; height:84px; } .sl-marquee-group { gap:14px; padding-right:0; } .sl-marquee-name { font-size:13px; } }
@media(max-width:600px) { .sl-marquee-card { width:var(--sl-marquee-card-width,108px); flex-basis:var(--sl-marquee-card-width,108px); } .sl-marquee-portrait { width:84px; height:84px; } .sl-marquee-group { gap:14px; padding-right:14px; } .sl-marquee-name { font-size:13px; } }
.sl-marquee-card[hidden] { display:none; }
@media(prefers-reduced-motion:reduce) {
  .sl-marquee-viewport { overflow-x:auto; }
  .sl-marquee-track { animation:none; width:max-content; }
  .sl-marquee-group { flex-wrap:nowrap; }
  .sl-marquee-copy, .sl-marquee-fill, .sl-marquee-controls { display:none; }
}
#sl-talent-marquee.sl-marquee-static .sl-marquee-viewport { overflow-x:auto; }
#sl-talent-marquee.sl-marquee-static .sl-marquee-track { animation:none; }
#sl-talent-marquee.sl-marquee-static .sl-marquee-group { flex-wrap:nowrap; }
#sl-talent-marquee.sl-marquee-static .sl-marquee-controls { display:none; }
/* STARTLENO TALENT MARQUEE v1 END */
/* STARTLENO TALENT MARQUEE v1 END */

2026年11月17日 (火) 05:21時点における最新版


/* STARTLENO TALENT MARQUEE v1 BEGIN */
#sl-talent-marquee { width:100%; max-width:100%; min-width:0; }
.sl-marquee-viewport { width:100%; overflow:hidden; padding:8px 0; }
.sl-marquee-track { display:flex; width:max-content; animation:none; }
.sl-marquee-group { display:flex; flex:none; gap:22px; padding-right:0; }
.sl-marquee-card { display:flex; flex-direction:column; align-items:center; gap:10px; flex:0 0 var(--sl-marquee-card-width,132px); width:var(--sl-marquee-card-width,132px); text-align:center; text-decoration:none !important; color:inherit; }
.sl-marquee-portrait { position:relative; display:block; width:104px; height:104px; border-radius:50%; overflow:hidden; background:linear-gradient(140deg,#e2defc,#dcecf4); box-shadow:0 3px 12px #0002; }
.sl-marquee-placeholder { display:flex; align-items:center; justify-content:center; width:100%; height:100%; color:#57437b; font-size:36px; font-weight:bold; }
.sl-marquee-portrait img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.sl-marquee-name { font-weight:600; font-size:14px; overflow-wrap:anywhere; }
.sl-marquee-card:focus-visible { outline:3px solid #6250ab; outline-offset:-3px; border-radius:8px; }
@media(max-width:600px) { .sl-marquee-card { width:var(--sl-marquee-card-width,108px); flex-basis:var(--sl-marquee-card-width,108px); } .sl-marquee-portrait { width:84px; height:84px; } .sl-marquee-group { gap:14px; padding-right:0; } .sl-marquee-name { font-size:13px; } }
.sl-marquee-card[hidden] { display:none; }
/* STARTLENO TALENT MARQUEE v1 END */