跳转到内容

模板:WelcomeHeader/styles.css:修订间差异

来自电棍ottowiki
琪露若
琪露若留言 | 贡献 (// Edit via Wikiplus)
第1行: 第1行:
/* ===== Banner 样式 ===== */
/* ===== Banner 样式 ===== */
.main-banner{
.main-banner {
   display:flex;
   display: flex;
   align-items:center;
   align-items: center;
   gap:20px;
   gap: 20px;
   padding:24px 32px;
   padding: 24px 32px;
   border-radius:16px;
   border-radius: 16px;
   background:linear-gradient(135deg,#3e83ff 0%,#eaf1ff 100%);
   background: rgba(255, 255, 255, 0.85);
   box-shadow:0 6px 18px rgba(0,0,0,.15);
  border: 1px solid rgba(255, 255, 255, 0.6);
   overflow:hidden;
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
   overflow: hidden;
  position: relative;
}
}
.banner-left img{
 
   max-width:200px;
/* 背景渐变层 */
   height:auto;
.main-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
   background: linear-gradient(135deg, rgba(62, 131, 255, 0.4) 0%, rgba(234, 241, 255, 0.3) 100%);
   z-index: -1;
}
}
.banner-right{
 
   flex:1;
.banner-left img {
   text-align:right;
   max-width: 200px;
   color:#0d1b3d;
   height: auto;
   filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}
}
.banner-right h1{
 
   font-size:38px;
.banner-right {
   font-weight:700;
   flex: 1;
   margin:0;
   text-align: right;
   color: #0d1b3d;
}
}
.subtitle{
 
   font-size:20px;
.banner-right h1 {
   margin:.3em 0 1.5em;
   font-size: 38px;
   color:#2f2f2f;
   font-weight: 700;
   margin: 0;
}
}
.divider{
 
   height:1px;
.subtitle {
   background:rgba(255,255,255,.6);
   font-size: 20px;
   margin-bottom:1.2em;
   margin: 0.3em 0 1.5em;
   color: #2f2f2f;
}
}
.count{
 
   font-size:16px;
.divider {
   margin:0;
   height: 1px;
  background: rgba(0, 0, 0, 0.1);
   margin-bottom: 1.2em;
}
}
.count {
  font-size: 16px;
  margin: 0;
}
/* ≤600 px 时纵向布局 */
/* ≤600 px 时纵向布局 */
@media(max-width:600px){
@media (max-width: 600px) {
   .main-banner{
   .main-banner {
     flex-direction:column;
     flex-direction: column;
     text-align:center;
     text-align: center;
   }
   }
   .banner-right{
   .banner-right {
     text-align:center;
     text-align: center;
   }
   }
   .divider{
   .divider {
     width:80%;
     width: 80%;
     margin:12px auto;
     margin: 12px auto;
   }
   }
}
}

2025年5月31日 (六) 07:20的版本

/* ===== Banner 样式 ===== */
.main-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 32px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

/* 背景渐变层 */
.main-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(62, 131, 255, 0.4) 0%, rgba(234, 241, 255, 0.3) 100%);
  z-index: -1;
}

.banner-left img {
  max-width: 200px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.banner-right {
  flex: 1;
  text-align: right;
  color: #0d1b3d;
}

.banner-right h1 {
  font-size: 38px;
  font-weight: 700;
  margin: 0;
}

.subtitle {
  font-size: 20px;
  margin: 0.3em 0 1.5em;
  color: #2f2f2f;
}

.divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 1.2em;
}

.count {
  font-size: 16px;
  margin: 0;
}

/* ≤600 px 时纵向布局 */
@media (max-width: 600px) {
  .main-banner {
    flex-direction: column;
    text-align: center;
  }
  .banner-right {
    text-align: center;
  }
  .divider {
    width: 80%;
    margin: 12px auto;
  }
}