Files
BlackFruit-UI/clientarea/hgcloud/css/news.css
yiqiu 0b845b2075
All checks were successful
continuous-integration/drone/push Build is passing
feat: 会员中心全局暗色主题重构
阶段一:全局覆盖
- 新增 dark-override.css (450+ 行),覆盖所有 Element UI 组件暗色样式
  - 输入框、表格、Tabs、弹窗、按钮、分页、复选框、下拉框等
  - 侧边栏、顶栏、主内容区暗色背景
  - 滚动条、日期选择器、消息面板等
- header.php 引入 dark-override.css

阶段二:页面独立 CSS 暗色化(22 个文件)
- 白色背景 #fff → #161b22
- 浅灰背景 #F3F5F9 → #0d1117
- 深色文字 #171725/#1E2736 → #E6E8EB
- 灰色文字 #8692B0 → #8B949E
- 浅色边框 #E6E7EB → rgba(255,255,255,0.06)
- 悬停背景 #F5F7FA → #21262d
2026-03-19 19:49:49 +08:00

345 lines
6.5 KiB
CSS

.news .top-back {
width: calc(100% - 190px);
background: #F6FAFF;
height: calc(40px + 2.56rem);
position: absolute;
z-index: -1;
}
.news .main-card {
position: relative;
}
.news .main-card .main-card-title {
font-size: 0.28rem;
color: #E6E8EB;
margin-bottom: 0.24rem;
}
.news .main-card .search-input {
margin-bottom: 0.6rem;
height: 0.46rem;
width: 3.2rem;
}
.news .main-card .search-input .el-input__inner {
height: 0.46rem;
}
.news .main-card .search-input .el-input__suffix {
display: flex;
align-items: center;
right: 0.14rem;
}
.news .main-card .search-input .input-search {
cursor: pointer;
}
.news .main-card .back-img {
width: 3.7rem;
height: 2.35rem;
position: absolute;
top: -0.3rem;
right: 1.84rem;
z-index: -1;
}
.news .top-search {
display: flex;
justify-content: space-between;
align-items: flex-start;
padding: 0 0.4rem 0 0;
}
.news .top-search .input-search {
line-height: 0.4rem;
}
.news .tit {
font-size: 0.2rem;
color: #E6E8EB;
line-height: 1;
}
.news .com-search {
height: 0.4rem;
}
.news .com-search .el-input__inner {
height: 0.4rem;
line-height: 0.4rem;
}
.news .box {
margin-top: 0.4rem;
position: relative;
min-height: 70vh;
}
.news .com-l-box {
margin-right: 3.57rem;
}
.news .com-r-box {
width: 3.58rem !important;
padding: 0.3rem;
box-sizing: border-box;
box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.1);
margin-right: 3px;
float: right;
}
.news .com-r-box .tit {
margin-bottom: 0.3rem;
}
.news .no-data {
text-align: center;
line-height: 0.6rem;
height: 0.6rem;
color: #999;
}
.news .myPage {
margin-top: 0.2rem;
}
.news .el-icon-download {
color: var(--color-primary);
font-size: 0.16rem;
cursor: pointer;
}
.news .tag {
line-height: 0.2rem;
height: 0.2rem;
padding: 0 0.05rem;
border-radius: 0.03rem;
font-size: 0.13rem;
background: #E6E7EB;
color: #4E5259;
}
.news .tag.suc {
background: #C9F7F5;
color: var(--color-success);
}
.news .tag.war {
background: #FFF4DE;
color: var(--color-warning);
}
.news .tag.error {
background: #FFE2E5;
color: var(--color-danger);
}
.news .tag.def {
background: rgba(22,93,255,0.1);
color: var(--color-info);
}
.news .total {
display: flex;
width: 100%;
justify-content: space-between;
align-items: center;
line-height: 0.2rem;
font-size: 0.16rem;
color: #E6E8EB;
padding-left: 0.2rem;
margin-bottom: 0.2rem;
box-sizing: border-box;
cursor: pointer;
}
.news .total.active {
color: var(--color-primary);
}
.news .file_folder {
padding-left: 0.1rem;
}
.news .file_folder .item {
position: relative;
line-height: 0.18rem;
padding-left: 0.15rem;
margin-bottom: 0.2rem;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}
.news .file_folder .item::before {
content: '';
width: 0.03rem;
height: 0.18rem;
background: #E6E7EB;
position: absolute;
left: 0;
top: 0;
}
.news .file_folder .item.active {
color: var(--color-primary);
}
.news .file_folder .item.active::before {
background: var(--color-primary);
}
.news .news-list {
padding: 0 0.4rem 0 0;
}
.news .news-list .item {
margin-top: 0.32rem;
cursor: pointer;
display: flex;
flex-direction: row;
}
.news .news-list .item .item-left {
margin-right: 0.2rem;
}
.news .news-list .item .item-left .item-img {
width: 1.4rem;
height: 0.84rem;
}
.news .news-list .item .item-right {
width: 100%;
height: 0.84rem;
border-bottom: 1px solid rgba(255,255,255,0.06);
}
.news .news-list .title {
margin-bottom: 0.1rem;
font-size: 0.16rem;
}
.news .news-list .info {
font-size: 0.13rem;
color: var(--color-text-tips);
}
.news .mobile {
display: none;
}
/* news_detail */
.news_detail .main-card-title {
padding-bottom: 0.2rem;
border-bottom: 1px solid rgba(255,255,255,0.06);
}
.news_detail .back {
cursor: pointer;
width: 0.24rem;
}
.news_detail .news_annex {
margin-top: 0.3rem;
line-height: 0.24rem;
}
.news_detail .news_annex a {
text-decoration: none;
color: #E6E8EB;
}
.news_detail .news_annex a:hover {
text-decoration: underline;
color: var(--color-primary);
}
.news_detail .new-box {
width: 10.33rem;
border: 1px solid rgba(255,255,255,0.06);
margin: 0.4rem auto;
padding: 0.3rem 0.5rem;
box-sizing: border-box;
}
.news_detail .new-box .tit {
line-height: 1.2;
font-size: 0.28rem;
color: #E6E8EB;
margin-bottom: 0.14rem;
}
.news_detail .new-box .time {
font-size: 0.14rem;
color: var(--color-text-tips);
margin-bottom: 0.4rem;
}
.news_detail .new-box img {
max-width: 100%;
width: auto !important;
height: auto !important;
margin: 0 auto;
}
.news_detail .new-box .content {
word-break: break-all;
overflow-x: auto;
}
.news_detail .page {
overflow: hidden;
margin-top: 0.3rem;
}
.news_detail .page .link {
width: 50%;
height: 0.24rem;
float: left;
}
.news_detail .page .link .txt,
.news_detail .page .link .icon {
color: var(--color-text-tips);
}
.news_detail .page .link a {
display: block;
font-size: 0.14rem;
color: #E6E8EB;
text-decoration: none;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.news_detail .page .link:last-child {
text-align: right;
}
@media screen and (max-width: 1100px) {
.news .com-search {
height: 0.5rem;
}
.news .com-search .el-input__inner {
height: 0.5rem;
line-height: 0.5rem;
}
.news .top-search .input-search {
line-height: 0.5rem;
}
.news .com-l-box {
margin-right: 3rem;
}
.news .com-r-box {
width: 3rem !important;
}
.news .box::after {
right: 3rem;
}
.news_detail .new-box {
width: 100%;
}
}
@media screen and (max-width: 750px) {
.news .com-l-box {
width: 100%;
margin-top: 10px;
margin-right: 0;
}
.news .pc {
display: flex;
flex-wrap: wrap;
}
.news .tit {
font-size: 0.3rem;
}
.news .main-card-title {
font-size: 0.48rem;
}
.news .com-r-box {
font-size: 0.16rem;
width: 100% !important;
}
.news_detail .back {
width: 0.42rem;
}
.news_detail .new-box {
border: none;
padding: 0;
}
.news_detail .new-box .tit {
font-size: 0.46rem;
font-weight: bold;
margin-bottom: 0.3rem;
}
.news_detail .new-box .time {
font-size: 0.24rem;
margin-bottom: 0.6rem;
}
.news_detail .new-box .content {
font-size: 0.28rem;
line-height: 1.5;
}
.news_detail .new-box .news_annex {
line-height: 1.5;
font-size: 0.24rem;
}
.news_detail .page .link {
height: 0.4rem;
line-height: 0.4rem;
}
.news_detail .page .link a {
font-size: 0.24rem;
}
}