mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-03-18 01:47:25 +08:00
feat: delete useless config
This commit is contained in:
@@ -43,17 +43,8 @@ body {
|
|||||||
/*************************
|
/*************************
|
||||||
* Vditor 自定义皮肤覆写
|
* Vditor 自定义皮肤覆写
|
||||||
*************************/
|
*************************/
|
||||||
/*
|
|
||||||
思路:
|
|
||||||
1. 用 CSS 变量快速改大色块;
|
|
||||||
2. 再用选择器去掉边框 / 阴影。
|
|
||||||
注意顺序:一定写在官方 index.css 之后才能生效。
|
|
||||||
*/
|
|
||||||
|
|
||||||
.comment-editor-container .vditor {
|
.comment-editor-container .vditor {
|
||||||
/* 去掉整体背景与边框,让它融入父容器 */
|
/* 去掉整体背景与边框,让它融入父容器 */
|
||||||
--panel-background-color: transparent;
|
|
||||||
--border-color: transparent;
|
|
||||||
--textarea-background-color: transparent;
|
--textarea-background-color: transparent;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
@@ -65,31 +56,3 @@ body {
|
|||||||
border: none !important;
|
border: none !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 编辑区(wysiwyg / ir / sv)背景透明 */
|
|
||||||
.comment-editor-container .vditor-content,
|
|
||||||
.comment-editor-container .vditor-wysiwyg,
|
|
||||||
.comment-editor-container .vditor-ir,
|
|
||||||
.comment-editor-container .vditor-textarea {
|
|
||||||
background: transparent !important;
|
|
||||||
}
|
|
||||||
.post-editor-container .vditor {
|
|
||||||
--panel-background-color: transparent;
|
|
||||||
--border-color: transparent;
|
|
||||||
--textarea-background-color: transparent;
|
|
||||||
border: none !important;
|
|
||||||
box-shadow: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-editor-container .vditor-toolbar {
|
|
||||||
background: transparent !important;
|
|
||||||
border: none !important;
|
|
||||||
box-shadow: none !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-editor-container .vditor-content,
|
|
||||||
.post-editor-container .vditor-wysiwyg,
|
|
||||||
.post-editor-container .vditor-ir,
|
|
||||||
.post-editor-container .vditor-textarea {
|
|
||||||
background: transparent !important;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -4,11 +4,13 @@
|
|||||||
<template v-if="multiple">
|
<template v-if="multiple">
|
||||||
<span v-if="selectedLabels.length">
|
<span v-if="selectedLabels.length">
|
||||||
<template v-for="(label, idx) in selectedLabels" :key="label.id">
|
<template v-for="(label, idx) in selectedLabels" :key="label.id">
|
||||||
<template v-if="label.icon">
|
<div class="selected-label">
|
||||||
<img v-if="isImageIcon(label.icon)" :src="label.icon" class="option-icon" />
|
<template v-if="label.icon">
|
||||||
<i v-else :class="['option-icon', label.icon]"></i>
|
<img v-if="isImageIcon(label.icon)" :src="label.icon" class="option-icon" />
|
||||||
</template>
|
<i v-else :class="['option-icon', label.icon]"></i>
|
||||||
<span>{{ label.name }}</span>
|
</template>
|
||||||
|
<span>{{ label.name }}</span>
|
||||||
|
</div>
|
||||||
<span v-if="idx !== selectedLabels.length - 1">, </span>
|
<span v-if="idx !== selectedLabels.length - 1">, </span>
|
||||||
</template>
|
</template>
|
||||||
</span>
|
</span>
|
||||||
@@ -16,11 +18,13 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<span v-if="selectedLabels.length">
|
<span v-if="selectedLabels.length">
|
||||||
<template v-if="selectedLabels[0].icon">
|
<div class="selected-label">
|
||||||
<img v-if="isImageIcon(selectedLabels[0].icon)" :src="selectedLabels[0].icon" class="option-icon" />
|
<template v-if="selectedLabels[0].icon">
|
||||||
<i v-else :class="['option-icon', selectedLabels[0].icon]"></i>
|
<img v-if="isImageIcon(selectedLabels[0].icon)" :src="selectedLabels[0].icon" class="option-icon" />
|
||||||
</template>
|
<i v-else :class="['option-icon', selectedLabels[0].icon]"></i>
|
||||||
<span>{{ selectedLabels[0].name }}</span>
|
</template>
|
||||||
|
<span>{{ selectedLabels[0].name }}</span>
|
||||||
|
</div>
|
||||||
</span>
|
</span>
|
||||||
<span v-else class="placeholder">{{ placeholder }}</span>
|
<span v-else class="placeholder">{{ placeholder }}</span>
|
||||||
</template>
|
</template>
|
||||||
@@ -35,7 +39,8 @@
|
|||||||
<l-hatch size="20" stroke="4" speed="3.5" color="var(--primary-color)"></l-hatch>
|
<l-hatch size="20" stroke="4" speed="3.5" color="var(--primary-color)"></l-hatch>
|
||||||
</div>
|
</div>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div class="dropdown-option" v-for="o in filteredOptions" :key="o.id" @click="select(o.id)" :class="{ 'selected': isSelected(o.id) }">
|
<div class="dropdown-option" v-for="o in filteredOptions" :key="o.id" @click="select(o.id)"
|
||||||
|
:class="{ 'selected': isSelected(o.id) }">
|
||||||
<template v-if="o.icon">
|
<template v-if="o.icon">
|
||||||
<img v-if="isImageIcon(o.icon)" :src="o.icon" class="option-icon" />
|
<img v-if="isImageIcon(o.icon)" :src="o.icon" class="option-icon" />
|
||||||
<i v-else :class="['option-icon', o.icon]"></i>
|
<i v-else :class="['option-icon', o.icon]"></i>
|
||||||
@@ -198,6 +203,13 @@ export default {
|
|||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.selected-label {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 5px;
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown-search {
|
.dropdown-search {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|||||||
@@ -289,6 +289,10 @@ export default {
|
|||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
|
line-clamp: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-item-title:hover {
|
.article-item-title:hover {
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ export default {
|
|||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
font-size: 42px;
|
font-size: 42px;
|
||||||
|
width: 100%;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="info-content-container">
|
<div class="info-content-container author-info-container">
|
||||||
<div class="user-avatar-container">
|
<div class="user-avatar-container">
|
||||||
<div class="user-avatar-item">
|
<div class="user-avatar-item">
|
||||||
<img class="user-avatar-item-img" :src="author.avatar" alt="avatar">
|
<img class="user-avatar-item-img" :src="author.avatar" alt="avatar">
|
||||||
@@ -408,6 +408,10 @@ export default {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.author-info-container {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.scroller-range::-moz-range-track {
|
.scroller-range::-moz-range-track {
|
||||||
width: 2px;
|
width: 2px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user