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

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

来自OGAS数据中枢
弃权者留言 | 贡献
无编辑摘要
弃权者留言 | 贡献
无编辑摘要
第1行: 第1行:
#gf-homepage {
#gf-homepage {
   width: 100%;
   width: 100%;
第6行: 第5行:
}
}


/* --- 头图区域 --- */
#gf-hero-wrap {
#gf-hero-wrap {
   position: relative;
   position: relative;
第27行: 第25行:
}
}


/* 下方渐隐 */
#gf-hero-fade-bottom {
#gf-hero-fade-bottom {
   position: absolute;
   position: absolute;
第34行: 第31行:
   right: 0;
   right: 0;
   height: 55%;
   height: 55%;
  background: linear-gradient( to bottom, transparent 0%, #1d1e20 100% );
   pointer-events: none;
   pointer-events: none;
   z-index: 2;
   z-index: 2;
}
}


/* 左侧渐隐 */
#gf-hero-fade-left {
#gf-hero-fade-left {
   position: absolute;
   position: absolute;
第46行: 第41行:
   bottom: 0;
   bottom: 0;
   width: 20%;
   width: 20%;
  background: linear-gradient( to right, #1d1e20 0%, transparent 100% );
   pointer-events: none;
   pointer-events: none;
   z-index: 2;
   z-index: 2;
}
}


/* 右侧渐隐 */
#gf-hero-fade-right {
#gf-hero-fade-right {
   position: absolute;
   position: absolute;
第58行: 第51行:
   bottom: 0;
   bottom: 0;
   width: 20%;
   width: 20%;
  background: linear-gradient( to left, #1d1e20 0%, transparent 100% );
   pointer-events: none;
   pointer-events: none;
   z-index: 2;
   z-index: 2;
}
}


/* --- 切换按钮区 --- */
#gf-switcher {
#gf-switcher {
   display: flex;
   display: flex;
第76行: 第67行:


.gf-tab {
.gf-tab {
   position: relative;
   display: inline-block;
   padding: 0.45rem 1.4rem;
   padding: 0.45rem 1.4rem;
   font-size: 0.9rem;
   font-size: 0.9rem;
第88行: 第79行:
   transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
   transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
   outline: none;
   outline: none;
  user-select: none;
}
}


第106行: 第98行:
}
}


/* --- 内容面板 --- */
#gf-content-wrap {
#gf-content-wrap {
   position: relative;
   position: relative;
第132行: 第123行:
}
}


/* --- 响应式:移动端 --- */
@media ( max-width: 720px ) {
@media ( max-width: 720px ) {
   #gf-hero-wrap {
   #gf-hero-wrap {

2026年6月20日 (六) 17:02的版本

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

#gf-hero-wrap {
  position: relative;
  width: 100%;
  height: clamp( 220px, 38vw, 520px );
  overflow: hidden;
}

.gf-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

#gf-hero-fade-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  pointer-events: none;
  z-index: 2;
}

#gf-hero-fade-left {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 20%;
  pointer-events: none;
  z-index: 2;
}

#gf-hero-fade-right {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 20%;
  pointer-events: none;
  z-index: 2;
}

#gf-switcher {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  position: relative;
  z-index: 5;
  margin-top: -2.5rem;
}

.gf-tab {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-radius: 2em;
  border: 1.5px solid rgba( 255, 255, 255, 0.25 );
  background: rgba( 30, 32, 38, 0.72 );
  color: #e8e8e8;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.15s;
  outline: none;
  user-select: none;
}

.gf-tab:hover {
  background: rgba( 60, 65, 80, 0.85 );
  border-color: #6ea7e0;
}

.gf-tab.active {
  background: #3d78c4;
  border-color: #3d78c4;
  color: #fff;
  transform: scale( 1.04 );
}

.gf-tab:focus {
  box-shadow: 0 0 0 3px rgba( 61, 120, 196, 0.45 );
}

#gf-content-wrap {
  position: relative;
  min-height: 200px;
}

.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 );
  }
}

@media ( max-width: 720px ) {
  #gf-hero-wrap {
    height: clamp( 160px, 52vw, 280px );
  }

  .gf-tab {
    font-size: 0.78rem;
    padding: 0.35rem 0.9rem;
  }

  #gf-switcher {
    gap: 0.35rem;
    padding: 0.75rem 0 1rem;
    margin-top: -1.8rem;
  }
}