User:弃权者/首页/styles.css:修订间差异
来自OGAS数据中枢
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第5行: | 第5行: | ||
} | } | ||
#gf-hero-wrap { | #gf-hero-wrap { | ||
position: relative; | position: relative; | ||
| 第13行: | 第12行: | ||
} | } | ||
.gf-hero-slide { | .gf-hero-slide { | ||
position: absolute; | position: absolute; | ||
| 第25行: | 第23行: | ||
} | } | ||
.gf-hero-bg { | .gf-hero-bg { | ||
display: none; | display: none; | ||
} | } | ||
/* | /* fg默认不加transform,由JS在init时设置初始缩放状态 */ | ||
.gf-hero-fg { | .gf-hero-fg { | ||
position: absolute; | position: absolute; | ||
| 第37行: | 第34行: | ||
background-position: center top; | background-position: center top; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
transition: transform 8s ease-out; | |||
transition: transform 8s ease-out | |||
} | } | ||
| 第63行: | 第54行: | ||
left: 50%; | left: 50%; | ||
width: 1200px; | width: 1200px; | ||
background-size: cover; | background-size: cover; | ||
background-position: center top; | background-position: center top; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
transition: transform 8s ease-out | transition: transform 8s ease-out; | ||
} | } | ||
} | } | ||
#gf-hero-fade-bottom { | #gf-hero-fade-bottom { | ||
position: absolute; | position: absolute; | ||
| 第86行: | 第71行: | ||
} | } | ||
#gf-switcher-wrap { | #gf-switcher-wrap { | ||
position: absolute; | position: absolute; | ||
| 第97行: | 第81行: | ||
} | } | ||
#gf-switcher { | #gf-switcher { | ||
position: relative; | position: relative; | ||
| 第107行: | 第90行: | ||
} | } | ||
#gf-tab-indicator { | #gf-tab-indicator { | ||
position: absolute; | position: absolute; | ||
| 第121行: | 第103行: | ||
} | } | ||
.gf-tab { | .gf-tab { | ||
position: relative; | position: relative; | ||
| 第146行: | 第127行: | ||
.gf-tab.active { | .gf-tab.active { | ||
color: #fff; | color: #fff; | ||
} | } | ||
| 第153行: | 第133行: | ||
} | } | ||
#gf-content-wrap { | #gf-content-wrap { | ||
position: relative; | position: relative; | ||
2026年6月20日 (六) 22:19的版本
#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.7s ease;
}
.gf-hero-slide.active {
opacity: 1;
}
.gf-hero-bg {
display: none;
}
/* fg默认不加transform,由JS在init时设置初始缩放状态 */
.gf-hero-fg {
position: absolute;
inset: 0;
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
transition: transform 8s ease-out;
}
@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;
background-size: cover;
background-position: center top;
background-repeat: no-repeat;
transition: transform 8s ease-out;
}
}
#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;
padding: 4px;
background: rgba( 20, 22, 26, 0.82 );
border-radius: 14px;
border: 1px solid rgba( 255, 255, 255, 0.08 );
}
#gf-tab-indicator {
position: absolute;
top: 4px;
left: 4px;
height: calc( 100% - 8px );
background: #3d78c4;
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-tab:focus {
box-shadow: 0 0 0 2px rgba( 61, 120, 196, 0.5 );
}
#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: 240px;
}
.gf-tab {
font-size: 0.78rem;
padding: 0.35rem 0.7rem;
}
}