fix shuoshuo api url and atk to twikoo
This commit is contained in:
@@ -22,7 +22,7 @@ menu:
|
|||||||
存档: /archives/ || fas fa-archive
|
存档: /archives/ || fas fa-archive
|
||||||
标签: /tags/ || fas fa-tags
|
标签: /tags/ || fas fa-tags
|
||||||
分类: /categories/ || fas fa-folder-open
|
分类: /categories/ || fas fa-folder-open
|
||||||
说说: /artitalk/ || fa-regular fa-comment
|
说说: /shuoshuo/ || fa-regular fa-comment
|
||||||
友链: /link/ || fas fa-link
|
友链: /link/ || fas fa-link
|
||||||
关于: /about/ || fas fa-heart
|
关于: /about/ || fas fa-heart
|
||||||
|
|
||||||
|
|||||||
@@ -1,266 +1,285 @@
|
|||||||
|
/* ================= 主题变量 ================= */
|
||||||
:root {
|
:root {
|
||||||
--liushen-card-bg: #fff;
|
--card-bg: #fff;
|
||||||
--liushen-card-border: 1px solid #e3e8f7;
|
--card-border: 1px solid #e3e8f7;
|
||||||
--card-box-shadow: 0 3px 8px 6px rgba(7,17,27,0.09);
|
--card-box-shadow: 0 3px 8px 6px rgba(7,17,27,0.09);
|
||||||
--card-hover-box-shadow: 0 3px 8px 6px rgba(7,17,27,0.2);
|
--card-hover-box-shadow: 0 3px 8px 6px rgba(7,17,27,0.2);
|
||||||
--liushen-card-secondbg: #f1f3f8;
|
--card-secondbg: #f1f3f8;
|
||||||
--liushen-button-hover-bg: #2679cc;
|
--button-hover-bg: #2679cc;
|
||||||
--liushen-text: #4c4948;
|
--text: #4c4948;
|
||||||
--liushen-button-bg: #f1f3f8;
|
--button-bg: #f1f3f8;
|
||||||
--liushen-fancybox-bg: rgba(255,255,255,0.5);
|
--fancybox-bg: rgba(255,255,255,0.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
:root, [data-theme=dark] {
|
[data-theme=dark] {
|
||||||
--liushen-card-bg: #181818;
|
--card-bg: #181818;
|
||||||
--liushen-card-secondbg: #30343f;
|
--card-secondbg: #30343f;
|
||||||
--liushen-card-border: 1px solid #42444a;
|
--card-border: 1px solid #42444a;
|
||||||
--card-box-shadow: 0 3px 8px 6px rgba(7,17,27,0.09);
|
--card-box-shadow: 0 3px 8px 6px rgba(7,17,27,0.09);
|
||||||
--card-hover-box-shadow: 0 3px 8px 6px rgba(7,17,27,0.2);
|
--card-hover-box-shadow: 0 3px 8px 6px rgba(7,17,27,0.2);
|
||||||
--liushen-button-bg: #30343f;
|
--button-bg: #30343f;
|
||||||
--liushen-button-hover-bg: #2679cc;
|
--button-hover-bg: #2679cc;
|
||||||
--liushen-text: rgba(255,255,255,0.702);
|
--text: rgba(255,255,255,0.702);
|
||||||
--liushen-fancybox-bg: rgba(0,0,0,0.5);
|
--fancybox-bg: rgba(0,0,0,0.5);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ================= 卡片布局 ================= */
|
||||||
|
#talk {
|
||||||
|
position: relative;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 卡片初始化 */
|
|
||||||
#talk .talk_item {
|
#talk .talk_item {
|
||||||
width: calc(33.333% - 6px);
|
width: calc(33.333% - 6px);
|
||||||
background: var(--liushen-card-bg);
|
background: var(--card-bg);
|
||||||
border: var(--liushen-card-border);
|
border: var(--card-border);
|
||||||
box-shadow: var(--card-box-shadow);
|
box-shadow: var(--card-box-shadow);
|
||||||
transition: box-shadow .3s ease-in-out;
|
border-radius: 12px;
|
||||||
border-radius: 12px;
|
padding: 20px;
|
||||||
display: flex;
|
margin-right: 9px;
|
||||||
flex-direction: column;
|
margin-bottom: 9px;
|
||||||
padding: 20px;
|
display: flex;
|
||||||
margin-bottom: 9px;
|
flex-direction: column;
|
||||||
margin-right: 9px;
|
transition: box-shadow .3s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item:hover {
|
#talk .talk_item:hover {
|
||||||
box-shadow: var(--card-hover-box-shadow);
|
box-shadow: var(--card-hover-box-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 900px) {
|
@media (max-width: 900px) {
|
||||||
#talk .talk_item {
|
#talk .talk_item {
|
||||||
width: calc(50% - 5px);
|
width: calc(50% - 5px);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
@media (max-width: 450px) {
|
|
||||||
#talk .talk_item {
|
|
||||||
width: calc(100%);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk{
|
@media (max-width: 450px) {
|
||||||
position: relative;
|
#talk .talk_item {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ================= 头部信息 ================= */
|
||||||
|
#talk .talk_meta,
|
||||||
|
#talk .talk_bottom {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#talk .talk_meta {
|
||||||
|
width: 100%;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
border-bottom: 1px dashed grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_meta .avatar {
|
#talk .talk_meta .avatar {
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
}
|
|
||||||
#talk .talk_bottom,
|
|
||||||
#talk .talk_meta {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
#talk .talk_meta {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
border-bottom: 1px dashed grey; /* 添加灰色虚线边框 */
|
|
||||||
}
|
|
||||||
#talk .talk_bottom {
|
|
||||||
margin-top: 15px;
|
|
||||||
padding-top: 10px;
|
|
||||||
border-top: 1px dashed grey; /* 添加灰色虚线边框 */
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_meta .info {
|
#talk .talk_meta .info {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_meta .info .talk_nick {
|
#talk .talk_meta .info .talk_nick {
|
||||||
color: #6dbdc3;
|
color: #6dbdc3;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_meta .info svg.is-badge.icon {
|
#talk .talk_meta .info svg.is-badge.icon {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_meta .info span.talk_date {
|
#talk .talk_meta .info span.talk_date {
|
||||||
opacity: .6;
|
opacity: .6;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ================= 内容区域 ================= */
|
||||||
#talk .talk_item .talk_content {
|
#talk .talk_item .talk_content {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_content .zone_imgbox {
|
#talk .talk_item .talk_content .zone_imgbox {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
--w: calc(25% - 8px);
|
--w: calc(25% - 8px);
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_content .zone_imgbox a {
|
#talk .talk_item .talk_content .zone_imgbox a {
|
||||||
display: block;
|
display: block;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
width: var(--w);
|
width: var(--w);
|
||||||
aspect-ratio: 1/1;
|
aspect-ratio: 1/1;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_content .zone_imgbox a:first-child {
|
#talk .talk_item .talk_content .zone_imgbox a:first-child {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
aspect-ratio: 1.8;
|
aspect-ratio: 1.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_content .zone_imgbox img {
|
#talk .talk_item .talk_content .zone_imgbox img {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
}
|
}
|
||||||
/* 底部 */
|
|
||||||
|
/* ================= 底部信息 ================= */
|
||||||
#talk .talk_item .talk_bottom {
|
#talk .talk_item .talk_bottom {
|
||||||
opacity: .9;
|
margin-top: 15px;
|
||||||
|
padding-top: 10px;
|
||||||
|
border-top: 1px dashed grey;
|
||||||
|
justify-content: space-between;
|
||||||
|
opacity: .9;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_bottom .icon {
|
#talk .talk_item .talk_bottom .icon {
|
||||||
float: right;
|
float: right;
|
||||||
transition: all .3s;
|
transition: all .3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_bottom .icon:hover {
|
#talk .talk_item .talk_bottom .icon:hover {
|
||||||
color: #49b1f5;
|
color: #49b1f5;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_bottom span.talk_tag,
|
#talk .talk_item .talk_bottom span.talk_tag,
|
||||||
#talk .talk_item .talk_bottom span.location_tag {
|
#talk .talk_item .talk_bottom span.location_tag {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: var(--liushen-card-secondbg);
|
background-color: var(--card-secondbg);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
padding: 3px 15px 3px 10px;
|
padding: 3px 15px 3px 10px;
|
||||||
transition: box-shadow 0.3s ease;
|
transition: box-shadow 0.3s ease;
|
||||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_bottom span.location_tag {
|
#talk .talk_item .talk_bottom span.location_tag {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#talk .talk_item .talk_bottom span.talk_tag:hover,
|
#talk .talk_item .talk_bottom span.talk_tag:hover,
|
||||||
#talk .talk_item .talk_bottom span.location_tag:hover {
|
#talk .talk_item .talk_bottom span.location_tag:hover {
|
||||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||||
}
|
|
||||||
#talk .talk_item .talk_content>a {
|
|
||||||
margin: 0 3px;
|
|
||||||
color: #ff7d73 !important;
|
|
||||||
}
|
|
||||||
#talk .talk_item .talk_content>a:hover{
|
|
||||||
text-decoration: none !important;
|
|
||||||
color: #ff5143 !important
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ================= 文本链接 ================= */
|
||||||
|
#talk .talk_item .talk_content > a {
|
||||||
|
margin: 0 3px;
|
||||||
|
color: #ff7d73 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#talk .talk_item .talk_content > a:hover {
|
||||||
|
text-decoration: none !important;
|
||||||
|
color: #ff5143 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ================= 响应式 ================= */
|
||||||
@media screen and (max-width: 900px) {
|
@media screen and (max-width: 900px) {
|
||||||
#talk .talk_item .talk_content .zone_imgbox {
|
#talk .talk_item .talk_content .zone_imgbox {
|
||||||
--w: calc(33% - 5px);
|
--w: calc(33% - 5px);
|
||||||
}
|
}
|
||||||
#talk .talk_item #post-comment{
|
|
||||||
margin: 0 3px
|
#talk .talk_item #post-comment {
|
||||||
}
|
margin: 0 3px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 768px) {
|
@media screen and (max-width: 768px) {
|
||||||
.zone_imgbox {
|
.zone_imgbox {
|
||||||
gap: 6px;
|
gap: 6px;
|
||||||
}
|
--w: calc(50% - 3px);
|
||||||
.zone_imgbox {
|
}
|
||||||
--w: calc(50% - 3px);
|
|
||||||
}
|
span.talk_date {
|
||||||
span.talk_date {
|
font-size: 14px;
|
||||||
font-size: 14px;
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ================= 豆瓣卡片 ================= */
|
||||||
#talk .talk_item .talk_content .douban-card {
|
#talk .talk_item .talk_content .douban-card {
|
||||||
margin-top: 10px !important;
|
margin-top: 10px !important;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
color: #faebd7;
|
color: #faebd7;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 15px;
|
padding: 15px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 外链卡片 */
|
/* ================= 外链卡片 ================= */
|
||||||
#talk .talk_item .talk_content .shuoshuo-external-link {
|
#talk .talk_item .talk_content .shuoshuo-external-link {
|
||||||
/* 无下划线 */
|
width: 100%;
|
||||||
width: 100%;
|
height: 80px;
|
||||||
height: 80px;
|
margin-top: 10px;
|
||||||
margin-top: 10px;
|
border-radius: 12px;
|
||||||
border-radius: 12px;
|
background-color: var(--card-secondbg);
|
||||||
background-color: var(--liushen-card-secondbg);
|
color: var(--card-text);
|
||||||
color: var(--liushen-card-text);
|
border: var(--card-border);
|
||||||
border: var(--liushen-card-border);
|
transition: background-color .3s ease-in-out;
|
||||||
transition: background-color .3s ease-in-out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.shuoshuo-external-link:hover {
|
.shuoshuo-external-link:hover {
|
||||||
background-color: var(--liushen-button-hover-bg);
|
background-color: var(--button-hover-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.shuoshuo-external-link .external-link {
|
.shuoshuo-external-link .external-link {
|
||||||
display: flex;
|
display: flex;
|
||||||
color: var(--liushen-text) !important;
|
color: var(--text) !important;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shuoshuo-external-link .external-link:hover {
|
.shuoshuo-external-link .external-link:hover {
|
||||||
color: white !important;
|
color: white !important;
|
||||||
}
|
text-decoration: none !important;
|
||||||
|
|
||||||
.shuoshuo-external-link .external-link:hover {
|
|
||||||
text-decoration: none !important;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.shuoshuo-external-link .external-link-left {
|
.shuoshuo-external-link .external-link-left {
|
||||||
width: 60px;
|
width: 60px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shuoshuo-external-link .external-link-right {
|
.shuoshuo-external-link .external-link-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: calc(100% - 80px);
|
width: calc(100% - 80px);
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shuoshuo-external-link .external-link-right .external-link-title {
|
.shuoshuo-external-link .external-link-right .external-link-title {
|
||||||
font-size: 1.0rem;
|
font-size: 1.0rem;
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.shuoshuo-external-link .external-link-right i {
|
.shuoshuo-external-link .external-link-right i {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ================= 结尾 ================= */
|
||||||
.limit {
|
.limit {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -295,7 +295,7 @@ function renderTalks() {
|
|||||||
const goComment = (e) => {
|
const goComment = (e) => {
|
||||||
const match = e.match(/<div class="talk_content_text">([\s\S]*?)<\/div>/);
|
const match = e.match(/<div class="talk_content_text">([\s\S]*?)<\/div>/);
|
||||||
const textContent = match ? match[1] : "";
|
const textContent = match ? match[1] : "";
|
||||||
const textarea = document.querySelector("tk-input el-textarea");
|
const textarea = document.querySelector("#twikoo .el-textarea__inner");
|
||||||
textarea.value = `> ${textContent}\n\n`;
|
textarea.value = `> ${textContent}\n\n`;
|
||||||
textarea.focus();
|
textarea.focus();
|
||||||
btf.snackbarShow("已为您引用该说说,不删除空格效果更佳");
|
btf.snackbarShow("已为您引用该说说,不删除空格效果更佳");
|
||||||
|
|||||||
Reference in New Issue
Block a user