halo-theme-hao/templates/assets/libs/fcircle/heo-fcircle3.css

512 lines
10 KiB
CSS
Raw Normal View History

2024-04-12 06:35:37 +00:00
@charset "utf-8";
/*
Last Modified time : 20220211 98:00 by https://immmmm.com
已适配 FriendCircle 公共库和主库
*/
:root {
--lmm-fontcolor: #363636;
--lmm-background: #f7f9fe;
--lmm-floorcolor: #a9a9b3;
--lmm-dark-fontcolor: #a9a9b3;
--lmm-dack-background: #252627;
--lmm-dark-floorcolor: #454545;
}
[data-theme=light] {
--lmm-fontcolor: #363636;
--lmm-background: #f7f9fe;
--lmm-floorcolor: #a9a9b3;
}
[data-theme=dark] {
--lmm-fontcolor: #a9a9b3;
--lmm-background: #252627;
--lmm-floorcolor: #454545;
}
/* 基本信息 */
#cf-state {
font-size: 16px;
border-radius: 8px;
box-shadow: none;
max-width: 810px;
margin: auto;
overflow: hidden;
display: flex;
flex-direction: row;
flex-wrap: wrap;
padding: 8px 0;
}
.cf-state-data {
width: 100%;
display: flex;
}
.cf-data-friends, .cf-data-active, .cf-data-article {
height: 60px;
background: transparent;
display: flex;
flex-direction: column;
width: 33%;
cursor: pointer;
}
.cf-label {
font-size: 16px;
padding: 0 3%;
align-self: center;
text-align: center;
width: 100%;
height: 30px;
}
.cf-message {
align-self: center;
text-align: center;
padding: 0 3%;
width: 50%;
font-size: 20px;
}
/* 排序按钮 */
#cf-change {
font-size: 14px;
display: block;
padding: 12px 0 4px;
width: 100%;
text-align: center;
}
/* 更多按钮 */
#cf-more {
width: 40%;
max-width: 810px;
height: 30px;
margin: auto;
margin-top: 1rem;
border-radius: 12px;
font-weight: bolder;
text-align: center;
display: flex;
flex-direction: column;
justify-content: space-around;
cursor: pointer;
transition: 0.3s;
}
#cf-more:hover {
width: 60%;
background: var(--heo-main);
color: var(--heo-white);
border: var(--style-border-hover);
box-shadow: var(--heo-shadow-main);
}
#cf-more i.fas::before {
content: "∞";
}
/* 主容器 */
#cf-container {
width: 100%;
max-width: 1500px;
height: auto;
margin: auto;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
}
#cf-container a {
text-decoration: none;
display: flex;
align-items: center;
border-bottom: none;
}
#cf-container a:hover {
color: var(--heo-lighttext) !important;
border-bottom: none !important;
background-color: var(--heo-none) !important;
box-shadow: none !important;
}
#cf-container .img-alt {
display: none;
}
.cf-article-avatar {
line-height: 35px;
display: flex;
justify-content: space-between;
}
.cf-img-avatar {
align-self: center;
text-align: center;
width: 22px !important;
height: 22px !important;
min-width: 22px !important;
min-height: 22px !important;
border-radius: 50%;
background: #fff;
margin-right: 0.3rem;
}
img.cf-img-avatar {
margin-bottom: 0 !important;
margin-top: 0 !important;
}
.cf-article-author {
line-height: 35px;
font-size: 14px;
font-weight: 400;
margin-left: 5px;
align-self: center;
text-align: center;
white-space: nowrap;
overflow: hidden;
transition: 0.3s;
}
.cf-article-avatar a:hover span {
color: var(--heo-lighttext);
}
.cf-article-author:hover {
color: var(--heo-lighttext);
}
.cf-article-author .cf-img-avatar {
margin-right: 0.3rem;
}
.cf-article-floor {
position: absolute;
top: 0;
right: 0.5rem;
font-style: italic;
font-size: 3rem;
line-height: 1.5rem;
z-index: 1;
font-weight: 400;
display: none;
}
.cf-article-title {
font-weight: 500;
position: relative;
z-index: 2;
margin-right: auto;
display: block;
letter-spacing: 1.5px;
font-size: 18px;
align-self: start;
text-align: left;
line-height: 1.2;
padding: 0;
margin-bottom: 10px;
transition: 0.3s;
-webkit-line-clamp: 2;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box !important;
-webkit-box-orient: vertical;
}
.cf-article-time {
font-size: 14px;
text-align: right;
float: right;
font-weight: 400;
}
.cf-time-updated, .cf-time-created {
display: inline-block;
text-align: left;
white-space: nowrap;
}
.cf-time-updated i.fas, .cf-time-created i.far {
padding-right: 8px;
}
.cf-article-time i:before {
margin-right: 5px;
}
/* 底部 */
#cf-footer {
margin: 1rem 0;
text-align: right;
font-size: 13px;
}
.cf-data-lastupdated {
font-size: 13px;
text-align: right;
display: block;
color: var(--heo-secondtext);
}
/* 个人文章列表层 */
#cf-overlay, #cf-overshow {
position: fixed;
width: 100%;
height: 100%;
}
#cf-overlay {
top: 0;
left: 100%;
background-color: rgba(255, 255, 255, 0.42);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
overflow-y: auto;
pointer-events: all;
transition: all 0.1s ease;
z-index: 998;
}
#cf-overshow {
bottom: 100%;
left: 0;
transition: all 0.3s ease;
z-index: 999;
transition: 0.3s;
}
#cf-overlay.cf-show-now {
left: 0;
}
#cf-overshow.cf-show-now {
bottom: 0;
transition: 0.3s;
}
.cf-overshow {
text-align: center;
border-radius: 20px;
position: absolute;
width: 320px;
min-height: 170px;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.093);
background: var(--heo-theme);
}
.cf-overshow-head:hover img.cf-img-avatar {
transform: rotate(360deg);
transition: 0.8s;
}
.cf-overshow .cf-overshow-head a {
color: var(--heo-white);
display: block;
text-align: center;
font-weight: bold;
margin-top: -5px;
padding: 5px 8px 5px;
text-decoration: none;
}
.cf-overshow img.cf-img-avatar {
background: #fff;
width: 80px;
height: 80px;
border-radius: 50%;
margin: -45px auto 0 !important;
box-shadow: 0 12px 40px rgb(0 0 0 / 9%);
transform: rotate(-360deg);
transition: 0.8s;
}
.cf-overshow p {
margin: 0.3rem 5px;
position: relative;
display: flex;
flex-direction: column;
}
.cf-overshow p a.cf-article-title {
text-decoration: none !important;
display: block;
text-align: justify;
position: relative;
z-index: 2;
font-size: 15px;
line-height: 1.2;
letter-spacing: normal;
max-height: 50px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
display: box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
color: var(--heo-fontcolor);
}
.cf-overshow p span {
z-index: 1;
font-size: 12px;
margin-left: auto;
}
#cf-container .cf-overshow p a:hover {
letter-spacing: 1px;
transition: 0.3s;
}
.cf-overshow .cf-overshow-content {
padding: 10px 15px 10px;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
background: var(--heo-card-bg);
display: flex;
flex-direction: column;
max-height: 70vh;
overflow: scroll;
}
.cf-overshow .cf-overshow-content .cf-article-title {
margin: 0;
}
#cf-overshow .cf-overshow-close {
position: sticky;
display: block;
width: 100%;
height: 100%;
}
/* 颜色 */
#cf-state, #cf-more {
background: var(--heo-card-bg);
color: var(--heo-fontcolor);
border: var(--style-border);
box-shadow: var(--heo-shadow-border);
}
#cf-change, .cf-time-updated, .cf-time-created, .cf-article-floor {
color: var(--heo-fontcolor);
opacity: 0.4;
transition: 0.3s;
}
.cf-article-author, .cf-article a.cf-article-title, .cf-article:hover .cf-article-floor, .cf-article:hover .cf-time-created, .cf-article:hover .cf-time-updated {
color: var(--heo-fontcolor);
opacity: 1;
}
.cf-article {
display: flex;
flex-direction: column;
justify-content: space-between;
box-shadow: var(--heo-shadow-border);
margin: 8px 0;
border-radius: 8px;
font-weight: bolder;
overflow: hidden;
transition: all ease-out .3s;
position: relative;
padding: 0.8rem;
padding-bottom: 0.4rem;
width: calc(50% - 12px);
background: var(--heo-card-bg);
border: var(--style-border-always);
}
.cf-article:hover {
transition: 0.3s;
border: var(--style-border-hover);
box-shadow: var(--heo-shadow-main);
}
@media screen and (max-width: 768px) {
.cf-article {
box-shadow: none !important;
width: 100%;
}
}
#cf-change span:hover {
color: var(--heo-lighttext);
cursor: pointer;
}
#cf-change .cf-change-now {
color: var(--heo-lighttext);
font-weight: 800;
}
.cf-overshow p a:hover {
color: var(--heo-lighttext) !important;
}
.cf-overshow p span {
color: var(--heo-fontcolor);
opacity: 0.4;
}
/* 暗色主题 */
.dark-theme #cf-overlay, .theme-dark #cf-overlay {
background-color: rgba(59, 61, 66, 0.42);
}
.dark-theme .cf-overshow, .theme-dark .cf-overshow {
background: #292a2d;
}
.dark-theme .cf-overshow p a, .theme-dark .cf-overshow p a {
color: var(--lmm-fontcolor);
}
.dark-theme .cf-overshow .cf-overshow-content, .theme-dark .cf-overshow .cf-overshow-content {
background: #eaeaea;
}
.dark-theme #cf-state, .dark-theme #cf-more, .theme-dark #cf-state, .theme-dark #cf-more {
background: var(--lmm-dack-background);
color: var(--lmm-dark-fontcolor);
}
.dark-theme #cf-change, .dark-theme .cf-time-updated, .dark-theme .cf-time-created, .dark-theme .cf-article-floor, .theme-dark #cf-change, .theme-dark .cf-time-updated, .theme-dark .cf-time-created, .theme-dark .cf-article-floor {
color: var(--lmm-dark-floorcolor);
}
.dark-theme .cf-article-author, .dark-theme .cf-article a.cf-article-title, .theme-dark .cf-article-author, .theme-dark .cf-article a.cf-article-title {
color: var(--lmm-dark-fontcolor);
}
.dark-theme .cf-article, .theme-dark .cf-article {
background: var(--lmm-dack-background);
}
.dark-theme .cf-article:hover .cf-article-floor, .dark-theme .cf-article:hover .cf-time-created, .dark-theme .cf-article:hover .cf-time-updated, .dark-theme .cf-overshow p span, .theme-dark .cf-article:hover .cf-article-floor, .theme-dark .cf-article:hover .cf-time-created, .theme-dark .cf-article:hover .cf-time-updated, .theme-dark .cf-overshow p span {
color: var(--lmm-dark-fontcolor);
}
/* 移动端适配 */
@media screen and (max-width: 400px) {
#cf-state {
font-size: 14px;
}
.cf-article-time i {
display: none;
}
}
@media screen and (max-width: 300px) {
#cf-state, .cf-article-time {
display: none;
}
}