| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733 |
- /* =============================================
- Phycat 主题 for Seafile (亮色模式 · Sakura 风格)
- 基于 Obsidian Phycat 主题移植,完全重写 Seafile 界面
- ============================================= */
- :root {
- --primary-color: #ff7096;
- --secondary-color: #bd93f9;
- --bg-color: #fff7fa;
- --light-deep: #e91e63;
- --light-light: #ffb7cd;
- --light-lighter: #ffe3ec;
- --light-pale: #fff0f5;
- --text-color: #1c1719;
- --text-color-secondary: #3f3a3b;
- --link-hover-color: #d81b60;
- --select-text-bg-color: rgba(255, 112, 150, 0.3);
- --glow-color: rgba(255, 112, 150, 0.5);
- --border-color: color-mix(in srgb, var(--primary-color), transparent 60%);
- --h2-bg-gradient: linear-gradient(to right, var(--light-light), var(--primary-color), var(--light-light));
- --text-bold: var(--light-deep);
- --code-normal: #546e7a;
- --code-string: #2e7d32;
- --code-comment: #b0bec5;
- --code-keyword: #d81b60;
- --code-function: #8e24aa;
- --code-value: #f57c00;
- --code-tag: #d81b60;
- --code-operator: #8e24aa;
- --code-property: #00897b;
- --code-punctuation: #78909c;
- --code-block-bg: #fff4f8;
- --code-block-header-bg: color-mix(in srgb, var(--primary-color), transparent 92%);
- --blockquote-bg: #fff0f5;
- --table-th-bg: #ffe3ec;
- --table-border: #ffd9e2;
- --checkbox-size: 1.2rem;
- --checkmark-color: #ffffff;
- --file-line-width: 900px;
- --letter-spacing: 0.5px;
- --line-height-customize: 1.7;
- --code-line-height: 1.5;
- --blockquote-line-height: 1.6;
- --table-line-height: 1.6;
- --heading-spacing: 1.2em;
- --h1-size: 2.2em;
- --h2-size: 1.8em;
- --h3-size: 1.5em;
- --h4-size: 1.3em;
- --h5-size: 1.2em;
- --h6-size: 1.2em;
- --radius-small: 8px;
- --radius-medium: 12px;
- --radius-large: 20px;
- }
- /* ========== 全局基础样式 ========== */
- * {
- border-radius: var(--radius-medium) !important;
- box-sizing: border-box;
- }
- body {
- background-color: var(--bg-color) !important;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "LXGW WenKai", "霞鹜文楷", Helvetica, Arial, sans-serif !important;
- color: var(--text-color) !important;
- line-height: var(--line-height-customize) !important;
- letter-spacing: var(--letter-spacing) !important;
- }
- /* ========== 导航栏 ========== */
- .navbar,
- .navbar-default {
- background-color: var(--primary-color) !important;
- border: none !important;
- box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color), transparent 80%) !important;
- }
- .navbar-default .navbar-brand,
- .navbar-default .navbar-nav > li > a {
- color: white !important;
- font-weight: 500 !important;
- transition: all 0.2s ease;
- }
- .navbar-default .navbar-nav > li > a:hover,
- .navbar-default .navbar-nav > .open > a,
- .navbar-default .navbar-nav > .open > a:hover,
- .navbar-default .navbar-nav > .open > a:focus {
- background-color: color-mix(in srgb, var(--primary-color), black 10%) !important;
- color: white !important;
- }
- .navbar-default .navbar-toggle {
- border-color: rgba(255, 255, 255, 0.5) !important;
- }
- .navbar-default .navbar-toggle .icon-bar {
- background-color: white !important;
- }
- /* ========== 按钮 ========== */
- .btn,
- .btn-primary,
- .btn-default {
- border: none !important;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
- font-weight: 500 !important;
- transition: all 0.2s ease !important;
- border-radius: var(--radius-medium) !important;
- }
- .btn-primary {
- background-color: var(--primary-color) !important;
- color: white !important;
- }
- .btn-primary:hover,
- .btn-primary:focus {
- background-color: var(--link-hover-color) !important;
- box-shadow: 0 4px 12px var(--glow-color) !important;
- transform: translateY(-2px);
- }
- .btn-primary:active {
- transform: scale(0.96) !important;
- }
- .btn-default {
- background-color: white !important;
- color: var(--text-color) !important;
- border: 1px solid var(--border-color) !important;
- }
- .btn-default:hover {
- background-color: var(--light-pale) !important;
- border-color: var(--primary-color) !important;
- }
- /* ========== 链接 ========== */
- a {
- color: var(--secondary-color) !important;
- text-decoration: none !important;
- font-weight: 500 !important;
- transition: color 0.2s ease;
- }
- a:hover {
- color: var(--link-hover-color) !important;
- text-decoration: underline !important;
- }
- /* ========== 面板、卡片 ========== */
- .panel {
- border: none !important;
- background-color: white !important;
- box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03) !important;
- border-radius: var(--radius-large) !important;
- overflow: hidden;
- }
- .panel-heading {
- background-color: var(--light-pale) !important;
- color: var(--primary-color) !important;
- font-weight: bold !important;
- border-bottom: 1px solid var(--border-color) !important;
- border-radius: var(--radius-large) var(--radius-large) 0 0 !important;
- padding: 12px 18px !important;
- }
- .panel-footer {
- background-color: var(--light-pale) !important;
- border-top: 1px solid var(--border-color) !important;
- border-radius: 0 0 var(--radius-large) var(--radius-large) !important;
- }
- /* ========== 输入框、选择框 ========== */
- input,
- textarea,
- select,
- .form-control {
- border: 1px solid var(--border-color) !important;
- border-radius: var(--radius-small) !important;
- padding: 8px 12px !important;
- transition: all 0.2s ease !important;
- background-color: white !important;
- }
- input:focus,
- textarea:focus,
- select:focus {
- border-color: var(--primary-color) !important;
- box-shadow: 0 0 0 3px var(--glow-color) !important;
- outline: none !important;
- }
- /* ========== 标签、徽章 ========== */
- .badge,
- .label,
- .label-primary {
- background-color: var(--primary-color) !important;
- color: white !important;
- border-radius: 30px !important;
- padding: 3px 8px !important;
- font-weight: 500 !important;
- }
- /* ========== 表格 (普通表格) ========== */
- .table {
- background-color: white;
- border-radius: var(--radius-medium);
- overflow: hidden;
- box-shadow: 0 2px 8px rgba(0,0,0,0.02);
- }
- .table > thead > tr > th {
- background-color: var(--light-pale) !important;
- color: var(--primary-color) !important;
- font-weight: 600 !important;
- border-bottom: 2px solid var(--border-color) !important;
- }
- .table > tbody > tr > td,
- .table > tbody > tr > th {
- border-top: 1px solid var(--border-color) !important;
- padding: 10px 12px !important;
- }
- .table > tbody > tr:hover {
- background-color: var(--light-lighter) !important;
- }
- /* ========== Markdown 预览区 (Wiki 内容) ========== */
- .article {
- background-color: white !important;
- border-radius: var(--radius-large) !important;
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.02) !important;
- padding: 32px !important;
- margin: 16px 0 !important;
- line-height: var(--line-height-customize) !important;
- color: var(--text-color) !important;
- }
- /* ----- 标题 (仿 Phycat 双子塔风格) ----- */
- .article h1,
- .article h2,
- .article h3,
- .article h4,
- .article h5,
- .article h6 {
- color: var(--text-color) !important;
- font-weight: 600 !important;
- margin-top: calc(var(--heading-spacing) * 1.5);
- margin-bottom: calc(var(--heading-spacing) * 0.8);
- line-height: 1.3;
- position: relative;
- transition: all 0.3s ease;
- }
- /* H1:居中,下划线渐变 */
- .article h1 {
- font-size: var(--h1-size) !important;
- text-align: center;
- padding-bottom: 12px;
- border-bottom: 3px solid transparent;
- background-image: linear-gradient(to right, transparent, var(--primary-color), transparent);
- background-repeat: no-repeat;
- background-position: bottom;
- background-size: 40px 3px;
- transition: background-size 0.3s ease, color 0.3s ease;
- }
- .article h1:hover {
- color: var(--primary-color);
- background-size: 80% 3px;
- }
- /* H2:双子塔风格 (左侧双线条) */
- .article h2 {
- font-size: var(--h2-size) !important;
- padding-left: 24px !important;
- }
- .article h2::before {
- content: "";
- position: absolute;
- left: 0;
- top: 15%;
- height: 70%;
- width: 5px;
- background-color: var(--primary-color);
- border-radius: 4px;
- opacity: 0.8;
- transition: all 0.3s ease;
- }
- .article h2::after {
- content: "";
- position: absolute;
- left: 8px;
- top: 30%;
- height: 40%;
- width: 2px;
- background-color: var(--secondary-color);
- border-radius: 2px;
- opacity: 0.6;
- transition: all 0.3s ease 0.05s;
- }
- .article h2:hover {
- color: var(--primary-color) !important;
- }
- .article h2:hover::before {
- height: 100%;
- top: 0;
- opacity: 0.4;
- }
- .article h2:hover::after {
- height: 80%;
- top: 10%;
- width: 4px;
- opacity: 1;
- background-color: var(--primary-color);
- }
- /* H3:左侧小色块 */
- .article h3 {
- font-size: var(--h3-size) !important;
- padding-left: 18px !important;
- }
- .article h3::before {
- content: "";
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 5px;
- height: 1.3rem;
- border-radius: 4px;
- background-color: var(--primary-color);
- transition: all 0.3s ease;
- }
- .article h3:hover {
- padding-left: 22px;
- color: var(--primary-color);
- }
- .article h3:hover::before {
- height: 1.8rem;
- width: 7px;
- }
- /* H4:空心圆 */
- .article h4 {
- font-size: var(--h4-size) !important;
- padding-left: 20px !important;
- }
- .article h4::before {
- content: "";
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 10px;
- height: 10px;
- border-radius: 50%;
- background-color: white;
- border: 2px solid var(--primary-color);
- transition: all 0.3s ease;
- }
- .article h4:hover {
- color: var(--primary-color);
- transform: translateX(6px);
- }
- .article h4:hover::before {
- background-color: var(--primary-color);
- transform: translateY(-50%) scale(1.2);
- box-shadow: 0 0 0 4px var(--light-lighter);
- }
- /* H5:实心圆 */
- .article h5 {
- font-size: var(--h5-size) !important;
- padding-left: 20px !important;
- }
- .article h5::before {
- content: "";
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- width: 10px;
- height: 10px;
- border-radius: 50%;
- background-color: var(--primary-color);
- border: 2px solid var(--primary-color);
- transition: all 0.3s ease;
- }
- .article h5:hover {
- color: var(--primary-color);
- transform: translateX(6px);
- }
- .article h5:hover::before {
- transform: translateY(-50%) scale(1.3);
- box-shadow: 0 0 0 4px var(--light-lighter);
- }
- /* H6:减号 */
- .article h6 {
- font-size: var(--h6-size) !important;
- padding-left: 20px !important;
- }
- .article h6::before {
- content: "-";
- position: absolute;
- left: 0;
- top: 50%;
- transform: translateY(-50%);
- color: var(--primary-color);
- font-weight: bold;
- transition: all 0.3s ease;
- }
- .article h6:hover {
- color: var(--primary-color);
- transform: translateX(6px);
- }
- .article h6:hover::before {
- transform: translateY(-50%) scaleX(1.8);
- }
- /* ----- 段落与列表 ----- */
- .article p,
- .article ul,
- .article ol {
- margin-bottom: 1.2em;
- color: var(--text-color-secondary);
- }
- .article li {
- margin: 0.4em 0;
- }
- .article ul ul,
- .article ol ol,
- .article ul ol,
- .article ol ul {
- margin-bottom: 0;
- }
- /* 列表标记颜色 */
- .article ul > li::marker,
- .article ol > li::marker {
- color: var(--primary-color);
- }
- /* 列表引导线 (可选) */
- .article li {
- position: relative;
- }
- .article li::before {
- content: "";
- position: absolute;
- top: 1.2em;
- height: calc(100% - 1.5em);
- left: -18px;
- border-left: 1px solid var(--primary-color);
- opacity: 0.3;
- pointer-events: none;
- }
- .article > div > ul > li::before,
- .article > div > ol > li::before {
- display: none;
- }
- /* ----- 引用块 ----- */
- .article blockquote {
- position: relative;
- margin: 24px 0;
- padding: 18px 20px 18px 48px;
- background-color: var(--blockquote-bg) !important;
- border: 1px solid color-mix(in srgb, var(--primary-color), transparent 80%);
- border-radius: 18px;
- color: var(--text-color-secondary);
- transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
- line-height: var(--blockquote-line-height);
- }
- .article blockquote::before {
- content: "✨";
- position: absolute;
- left: 14px;
- top: 18px;
- font-size: 24px;
- line-height: 1;
- font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
- transform: rotate(30deg);
- transition: transform 0.3s ease;
- }
- .article blockquote:hover {
- transform: scale(1.01);
- border-color: var(--primary-color);
- background-color: color-mix(in srgb, var(--primary-color), white 92%);
- box-shadow: 0 8px 20px color-mix(in srgb, var(--primary-color), transparent 85%);
- }
- .article blockquote:hover::before {
- transform: rotate(0deg);
- text-shadow: 0 0 8px var(--primary-color);
- }
- .article blockquote p:last-child {
- margin-bottom: 0;
- }
- /* ----- 代码块 (带 Mac 风格圆点) ----- */
- .article pre {
- position: relative;
- background-color: var(--code-block-bg) !important;
- border: 1px solid color-mix(in srgb, var(--border-color), transparent 50%) !important;
- border-radius: var(--radius-large) !important;
- padding: 42px 16px 16px 16px !important;
- margin: 24px 0 !important;
- overflow-x: auto;
- transition: border-color 0.3s ease, box-shadow 0.3s ease;
- }
- .article pre::before {
- content: "";
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 32px;
- background-color: color-mix(in srgb, var(--primary-color), transparent 94%);
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 450 130'%3E%3Cellipse cx='65' cy='65' rx='50' ry='52' fill='%23ed6a5e' stroke='%23dc4a3a' stroke-width='2'/%3E%3Cellipse cx='225' cy='65' rx='50' ry='52' fill='%23f5bd4f' stroke='%23e0a03a' stroke-width='2'/%3E%3Cellipse cx='385' cy='65' rx='50' ry='52' fill='%2361c454' stroke='%2347a03a' stroke-width='2'/%3E%3C/svg%3E");
- background-repeat: no-repeat;
- background-size: 54px;
- background-position: 12px center;
- border-bottom: 1px solid color-mix(in srgb, var(--border-color), transparent 70%);
- border-radius: var(--radius-large) var(--radius-large) 0 0;
- z-index: 5;
- }
- .article pre:hover {
- border-color: var(--primary-color) !important;
- box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-color), transparent 85%);
- }
- .article pre code {
- font-family: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace !important;
- font-size: 0.9rem;
- line-height: var(--code-line-height);
- color: var(--code-normal) !important;
- background: transparent !important;
- border: none !important;
- padding: 0 !important;
- }
- /* 行内代码 */
- .article :not(pre) > code {
- background-color: var(--code-block-bg) !important;
- color: var(--code-keyword) !important;
- border: 1px solid var(--border-color) !important;
- border-radius: var(--radius-small) !important;
- padding: 0.2em 0.5em !important;
- font-family: monospace !important;
- font-size: 0.9em;
- transition: all 0.2s ease;
- }
- .article :not(pre) > code:hover {
- background-color: var(--primary-color) !important;
- color: white !important;
- border-color: var(--primary-color) !important;
- box-shadow: 0 0 10px var(--glow-color);
- }
- /* ----- 表格 (Markdown 内) ----- */
- .article table {
- display: block;
- width: 100%;
- overflow-x: auto;
- border-collapse: collapse;
- margin: 24px 0;
- border-radius: var(--radius-medium);
- border: 1px solid var(--table-border);
- box-shadow: 0 2px 8px rgba(0,0,0,0.02);
- }
- .article table th,
- .article table td {
- padding: 12px 16px;
- border: 1px solid var(--table-border);
- color: var(--text-color-secondary);
- }
- .article table th {
- background-color: var(--table-th-bg) !important;
- color: var(--primary-color) !important;
- font-weight: 600;
- border-bottom: 2px solid var(--primary-color);
- }
- .article table tr:nth-child(even) {
- background-color: #fff9fc;
- }
- .article table tbody tr:hover {
- background-color: var(--light-lighter);
- }
- /* ----- 水平分割线 ----- */
- .article hr {
- border: none;
- height: 2px;
- background: linear-gradient(to right, transparent, var(--primary-color), transparent);
- margin: 32px 0;
- position: relative;
- }
- .article hr::after {
- content: "";
- position: absolute;
- left: 50%;
- top: 50%;
- transform: translate(-50%, -50%) rotate(45deg);
- width: 8px;
- height: 8px;
- border: 2px solid var(--primary-color);
- background-color: white;
- border-radius: 2px;
- transition: all 0.3s ease;
- }
- .article hr:hover::after {
- transform: translate(-50%, -50%) rotate(225deg) scale(1.5);
- background-color: var(--primary-color);
- box-shadow: 0 0 10px var(--primary-color);
- }
- /* ----- 图片 ----- */
- .article img {
- max-width: 100%;
- border-radius: var(--radius-large);
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
- margin: 24px 0;
- border: 2px solid white;
- }
- /* ----- 任务列表 (复选框) ----- */
- .article .task-list-item {
- list-style: none;
- position: relative;
- padding-left: 0;
- }
- .article input[type="checkbox"] {
- appearance: none;
- -webkit-appearance: none;
- width: var(--checkbox-size);
- height: var(--checkbox-size);
- border-radius: 50% !important;
- border: 2px solid var(--border-color);
- background-color: white;
- margin-right: 8px;
- vertical-align: middle;
- position: relative;
- top: -2px;
- cursor: pointer;
- transition: all 0.2s ease;
- }
- .article input[type="checkbox"]:checked {
- background-color: var(--primary-color);
- border-color: var(--primary-color);
- box-shadow: 0 0 8px var(--glow-color);
- }
- .article input[type="checkbox"]:checked::after {
- content: "";
- position: absolute;
- left: 4px;
- top: 1px;
- width: 5px;
- height: 9px;
- border: solid white;
- border-width: 0 2px 2px 0;
- transform: rotate(45deg);
- }
- .article .task-list-item[data-task="/"] input[type="checkbox"]:checked::after {
- content: "•";
- border: none;
- color: white;
- font-size: 14px;
- line-height: 1;
- left: 3px;
- top: 0px;
- }
- /* ----- 链接 (Markdown 内) ----- */
- .article a {
- color: var(--secondary-color) !important;
- text-decoration: none !important;
- border-bottom: 1px dotted var(--primary-color);
- padding: 0 2px;
- }
- .article a:hover {
- color: var(--link-hover-color) !important;
- border-bottom-style: solid;
- }
- /* ----- 强调与加粗 ----- */
- .article strong {
- color: var(--text-bold);
- font-weight: 700;
- }
- .article em {
- color: var(--secondary-color);
- font-style: italic;
- }
- /* ========== Seafile 右侧大纲 ========== */
- .seafile-editor-outline {
- background-color: white;
- border-radius: var(--radius-large);
- padding: 16px;
- margin-top: 16px;
- box-shadow: 0 4px 12px rgba(0,0,0,0.02);
- }
- .seafile-editor-outline .outline-h2 {
- padding: 6px 12px;
- margin: 2px 0;
- border-left: 3px solid transparent;
- transition: all 0.2s ease;
- cursor: pointer;
- }
- .seafile-editor-outline .outline-h2:hover {
- border-left-color: var(--primary-color);
- background-color: var(--light-pale);
- }
- .seafile-editor-outline .outline-h2.active {
- border-left-color: var(--primary-color);
- background-color: var(--light-lighter);
- color: var(--primary-color);
- font-weight: 600;
- }
- /* ========== 最近修改信息 ========== */
- #wiki-page-last-modified {
- color: var(--text-color-secondary);
- font-size: 0.9em;
- margin-top: 24px;
- padding-top: 12px;
- border-top: 1px dashed var(--border-color);
- }
- /* ========== 全局滚动条美化 ========== */
- ::-webkit-scrollbar {
- width: 8px;
- height: 8px;
- }
- ::-webkit-scrollbar-track {
- background: transparent;
- }
- ::-webkit-scrollbar-thumb {
- background: color-mix(in srgb, var(--primary-color), transparent 70%);
- border-radius: 20px;
- border: 2px solid transparent;
- background-clip: content-box;
- }
- ::-webkit-scrollbar-thumb:hover {
- background: color-mix(in srgb, var(--primary-color), transparent 40%);
- }
|