Skip to content

Commit

Permalink
Merge pull request #498 from lingbopro/news_widget_feature
Browse files Browse the repository at this point in the history
真正的在线新闻功能
  • Loading branch information
NB-Group authored Nov 29, 2024
2 parents e735fe6 + 5026b40 commit 54711a2
Show file tree
Hide file tree
Showing 4 changed files with 294 additions and 76 deletions.
94 changes: 85 additions & 9 deletions desktop.css
Original file line number Diff line number Diff line change
Expand Up @@ -1474,40 +1474,116 @@ input-before {
}


#widgets>.news {
overflow: hidden;
}

#widgets>.news>.full-tip {
/* position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0; */
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

#widgets>.news>.full-tip.hidden {
display: none;
}

#widgets>.news>.full-tip>* {
margin-bottom: 10px;
}

#widgets>.news>.full-tip>.tit {
font-weight: bold;
font-size: large;
}

#widgets>.news>.full-tip>.info {
font-size: small;
}

#widgets>.news>.content {
overflow: auto;
}

#widgets>.news>.content .line {
margin-top: 10px;
display: grid;
justify-content: center;
gap: 10px;
grid-template-columns: repeat(5, 83px);
grid-template-rows: repeat(11, 83px);
/* grid-template-rows: repeat(1, 114px); */
}

#widgets>.news>.content>.card {
#widgets>.news>.content .card {
border-radius: 10px;
transition: 10ms;
background-image: linear-gradient(#00000000,#111 90%);
background-size: cover;
grid-row: 1;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-start;
padding: 10px;
height: 175px;
}

#widgets>.news>.content .card-left {
grid-column: 1 / 4;
}

#widgets>.news>.content .card-right {
grid-column: 4 / 6;
}

#widgets>.news>.content .line:nth-child(even) .card-left {
grid-column: 1 / 3;
}

#widgets>.news>.content .line:nth-child(even) .card-right {
grid-column: 3 / 6;
}

#widgets>.news>.content>.card:hover {
#widgets>.news>.content .card:hover {
box-shadow: 1px 1px 7px var(--sd);
filter: brightness(0.95);
}

#widgets>.news>.content>.card>.tit {
#widgets>.news>.content .card>.tit {
color: white;
font-size: 18px;
line-height: 1.2;
margin: 30px 0 0 10px;
margin-bottom: 10px;
transition: 100ms;
text-shadow: 0 0 8px #000;
}

#widgets>.news>.content>.card>.a {
color: var(--href);
#widgets>.news>.content .card>.a {
color: #9dd0fb;
font-size: 17px;
text-shadow: 0 0 3px #000;
}

#widgets>.news>.content>.card>.a:hover {
#widgets>.news>.content .card>.a:hover {
border-bottom: 2px solid;
}

#widgets>.news>.content .card.top-news {
color: #fff;
background-color: var(--bgul);
}

#widgets>.news>.content .card.top-news>.tit {
font-size: 20px;
}

/*** 以下任务栏各面板 ***/

#datebox,
Expand Down
Loading

0 comments on commit 54711a2

Please sign in to comment.