打开/关闭菜单
26
6679
46
1.2万
OGAS数据中枢
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

User:弃权者/首页/styles.css:修订间差异

来自OGAS数据中枢
弃权者留言 | 贡献
创建页面,内容为“============================ 游戏切换器 — 首页专属样式 所有颜色/圆角/间距走 Citizen CSS 变量 ============================:​ --- 头图 ---:​ .gs-hero { display: block; width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--border-radius-medium); margin-bottom: var(--space-md); transition: opacity 0.2s ease; } .gs-hero--fade { opacity: 0; } .skin-citizen-dark .gs-hero { filter: bright…”
 
弃权者留言 | 贡献
无编辑摘要
 
(未显示同一用户的38个中间版本)
第1行: 第1行:
/* ============================
#gf-homepage {
  游戏切换器 — 首页专属样式
  width: 100%;
  所有颜色/圆角/间距走 Citizen CSS 变量
  margin: 0 auto;
  ============================ */
  margin-top: -1rem;
}


/* --- 头图 --- */
#gf-hero-wrap {
.gs-hero {
   position: relative;
   display: block;
   width: 100%;
   width: 100%;
   max-height: 360px;
   height: 400px;
   object-fit: cover;
   overflow: hidden;
  border-radius: var(--border-radius-medium);
  margin-bottom: var(--space-md);
  transition: opacity 0.2s ease;
}
}


.gs-hero--fade {
.gf-hero-slide {
  position: absolute;
  inset: 0;
   opacity: 0;
   opacity: 0;
  transition: opacity 0.5s ease;
}
}


.skin-citizen-dark .gs-hero {
.gf-hero-slide.active {
   filter: brightness(0.8);
   opacity: 1;
}
}


/* --- 按钮条 --- */
.gf-hero-bg {
.gs-tabs {
  display: none;
}
 
.gf-hero-fg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
 
@media ( min-width: 1201px ) {
  .gf-hero-bg {
    display: block;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur( 18px );
    transform: scale( 1.08 );
  }
 
  .gf-hero-fg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1200px;
    transform: translateX( -50% );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
}
 
#gf-hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 8;
}
 
#gf-switcher-wrap {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
   display: flex;
   display: flex;
   gap: var(--space-xs);
   justify-content: center;
   flex-wrap: wrap;
  z-index: 20;
   margin-bottom: var(--space-lg);
}
 
#gf-switcher {
  position: relative;
  display: inline-flex;
  background: rgba( 20, 22, 26, 0.82 );
   border-radius: 14px;
   border: 1px solid rgba( 255, 255, 255, 0.08 );
  padding: 0 8px;
}
}


.gs-tab-btn {
#gf-tab-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc( 100% - 8px );
  background: var(--color-progressive);
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier( 0.4, 0, 0.2, 1 ),
              width 0.3s cubic-bezier( 0.4, 0, 0.2, 1 );
  z-index: 0;
  pointer-events: none;
}
 
.gf-tab {
  position: relative;
  z-index: 1;
   display: inline-block;
   display: inline-block;
   padding: 8px 20px;
   padding: 0.4rem 1.2rem;
   border-radius: var(--border-radius-medium);
   font-size: 0.88rem;
  background: var(--color-surface-1);
   font-weight: 500;
   color: var(--color-base);
  border: 1px solid var(--border-color-base);
   cursor: pointer;
   cursor: pointer;
   font-size: 0.95rem;
   border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba( 255, 255, 255, 0.6 );
  transition: color 0.25s;
  outline: none;
   user-select: none;
   user-select: none;
   transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
   white-space: nowrap;
  outline-offset: 2px;
}
}


.gs-tab-btn:hover {
.gf-tab:hover {
   background: var(--color-surface-2);
   color: rgba( 255, 255, 255, 0.9 );
  box-shadow: 0 2px 8px var(--box-shadow-color-base);
}
}


.gs-tab-btn:focus-visible {
.gf-tab.active {
   outline: 2px solid var(--color-progressive);
   color: #fff;
}
}


.gs-tab-btn.gs-active {
  background: var(--color-progressive);
  color: #fff;
  border-color: var(--color-progressive);
  font-weight: 700;
  cursor: default;
}


/* --- 内容区 --- */
 
.gs-content {
#gf-content-wrap {
   position: relative;
   position: relative;
  min-height: 200px;
  margin-top: .5rem;
}
}


.gs-content-panel {
.gf-content-panel {
   display: none;
   display: none;
   animation: gsFadeIn 0.25s ease;
   animation: gfFadeIn 0.35s ease;
}
}


.gs-content-panel.gs-active {
.gf-content-panel.active {
   display: block;
   display: block;
}
}


@keyframes gsFadeIn {
@keyframes gfFadeIn {
   from { opacity: 0; transform: translateY(6px); }
   from {
   to   { opacity: 1; transform: translateY(0); }
    opacity: 0;
    transform: translateY( 10px );
  }
   to {
    opacity: 1;
    transform: translateY( 0 );
  }
}
}


/* --- 加载中 --- */
.gf-cards {
.gs-loading {
   display: grid;
   padding: var(--space-xl);
  grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
   text-align: center;
   gap: 8px;
   color: var(--color-subtle);
   padding: 1rem 0;
}
}


/* --- 卡片网格 (1-4 列自适应) --- */
.gf-card {
.gs-grid {
    border: 1px solid var(--color-progressive);
  display: grid;
    overflow: hidden;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    transition: background 0.2s;
  gap: var(--space-md);
    padding: .8rem;
}
}


.gs-card {
.gf-card__img img {
   background: var(--color-surface-1);
   width: 100%;
  border: 1px solid var(--border-color-base);
  border-radius: var(--border-radius-medium);
  padding: var(--space-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--color-base);
   display: block;
   display: block;
}
}


.gs-card:hover {
.gf-card__body {
   transform: translateY(-3px);
   padding: 0.75rem 1rem;
   box-shadow: 0 2px 8px var(--box-shadow-color-base);
}
 
.gf-card--span2 {
   grid-column: span 2;
}
 
.gf-card--span3 {
  grid-column: span 3;
}
}


.gs-card__title {
.gf-card--full {
   font-size: 1.05rem;
   grid-column: 1 / -1;
  font-weight: 700;
  color: var(--color-emphasized);
  margin: 0 0 4px;
}
}


.gs-card__desc {
@media ( max-width: 720px ) {
  font-size: 0.85rem;
  #gf-hero-wrap {
   color: var(--color-subtle);
    height: 240px;
   margin: 0;
  }
 
  .gf-tab {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }
    
  .gf-card--span2,
   .gf-card--span3 {
    grid-column: span 1;
  }
}
}

2026年6月21日 (日) 11:26的最新版本

#gf-homepage {
  width: 100%;
  margin: 0 auto;
  margin-top: -1rem;
}

#gf-hero-wrap {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.gf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gf-hero-slide.active {
  opacity: 1;
}

.gf-hero-bg {
  display: none;
}

.gf-hero-fg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

@media ( min-width: 1201px ) {
  .gf-hero-bg {
    display: block;
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    filter: blur( 18px );
    transform: scale( 1.08 );
  }

  .gf-hero-fg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1200px;
    transform: translateX( -50% );
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }
}

#gf-hero-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 8;
}

#gf-switcher-wrap {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 20;
}

#gf-switcher {
  position: relative;
  display: inline-flex;
  background: rgba( 20, 22, 26, 0.82 );
  border-radius: 14px;
  border: 1px solid rgba( 255, 255, 255, 0.08 );
  padding: 0 8px;
}

#gf-tab-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc( 100% - 8px );
  background: var(--color-progressive);
  border-radius: 10px;
  transition: transform 0.3s cubic-bezier( 0.4, 0, 0.2, 1 ),
              width 0.3s cubic-bezier( 0.4, 0, 0.2, 1 );
  z-index: 0;
  pointer-events: none;
}

.gf-tab {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: rgba( 255, 255, 255, 0.6 );
  transition: color 0.25s;
  outline: none;
  user-select: none;
  white-space: nowrap;
}

.gf-tab:hover {
  color: rgba( 255, 255, 255, 0.9 );
}

.gf-tab.active {
  color: #fff;
}



#gf-content-wrap {
  position: relative;
  min-height: 200px;
  margin-top: .5rem;
}

.gf-content-panel {
  display: none;
  animation: gfFadeIn 0.35s ease;
}

.gf-content-panel.active {
  display: block;
}

@keyframes gfFadeIn {
  from {
    opacity: 0;
    transform: translateY( 10px );
  }
  to {
    opacity: 1;
    transform: translateY( 0 );
  }
}

.gf-cards {
  display: grid;
  grid-template-columns: repeat( auto-fill, minmax( 200px, 1fr ) );
  gap: 8px;
  padding: 1rem 0;
}

.gf-card {
    border: 1px solid var(--color-progressive);
    overflow: hidden;
    transition: background 0.2s;
    padding: .8rem;
}

.gf-card__img img {
  width: 100%;
  display: block;
}

.gf-card__body {
  padding: 0.75rem 1rem;
}

.gf-card--span2 {
  grid-column: span 2;
}

.gf-card--span3 {
  grid-column: span 3;
}

.gf-card--full {
  grid-column: 1 / -1;
}

@media ( max-width: 720px ) {
  #gf-hero-wrap {
    height: 240px;
  }

  .gf-tab {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }
  
  .gf-card--span2,
  .gf-card--span3 {
    grid-column: span 1;
  }
}