有觉性 以安住且中立的心 照见身心的实相

MediaWiki:Timeless.css:修订间差异

来自Dhamma.cn
法藏​(留言 | 贡献)
小无编辑摘要
标签:已被回退
法藏​(留言 | 贡献)
小无编辑摘要
标签:已被回退
第84行: 第84行:


/* Tailwind 风格尝试 */
/* Tailwind 风格尝试 */
/* ==========================================================================
/* ==========================================================================
   MediaWiki Timeless 主题 - Tailwind 风格改造皮肤
   MediaWiki Timeless 主题 - Tailwind 风格强效重置版
   ========================================================================== */
   ========================================================================== */


/* 1. 基础全局背景与字体重置 (类似 Tailwind 的 base 样式) */
/* 1. 全局背景与字体重置 */
body {
body.skin-timeless {
     background-color: #f8fafc !important; /* bg-slate-50 */
     background-color: #f8fafc !important;  
     color: #334155 !important;            /* text-slate-700 */
     color: #334155 !important;             
     font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
     font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
}


/* 2. 主内容区域卡片化 (类似 bg-white rounded-xl shadow-sm) */
/* 2. 主内容区域卡片化 - 强效穿透 */
#mw-content-container {
body.skin-timeless #mw-content-container,
body.skin-timeless #mw-content {
     background: #ffffff !important;
     background: #ffffff !important;
     border-radius: 0.75rem !important;    /* rounded-xl */
     border-radius: 0.75rem !important;     
     border: 1px solid #e2e8f0 !important; /* border-slate-200 */
     border: 1px solid #e2e8f0 !important;  
     box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important; /* shadow-sm */
     box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;  
     padding: 2rem !important;            /* p-8 */
     padding: 2rem !important;             
    margin-top: 1.5rem !important;
}
}


/* 3. 页面标题现代化 (类似 text-slate-900 font-bold) */
/* 3. 页面标题现代化 */
.firstHeading {
body.skin-timeless .firstHeading {
     color: #0f172a !important;            /* text-slate-900 */
     color: #0f172a !important;             
     font-weight: 700 !important;          /* font-bold */
     font-weight: 700 !important;           
     letter-spacing: -0.025em !important;  /* tracking-tight */
     letter-spacing: -0.025em !important;   
     border-bottom: 2px solid #f1f5f9 !important; /* border-slate-100 */
     border-bottom: 2px solid #f1f5f9 !important;  
     padding-bottom: 0.5rem !important;
     padding-bottom: 0.5rem !important;
}
}


/* 4. 左侧及顶部导航栏重构 */
/* 4. 左侧及相关导航栏重构 */
#mw-site-navigation .sidebar-chunk,  
body.skin-timeless #mw-site-navigation .sidebar-chunk,  
#mw-related-navigation .sidebar-chunk {
body.skin-timeless #mw-related-navigation .sidebar-chunk {
     background: #ffffff !important;
     background: #ffffff !important;
     border-radius: 0.5rem !important;    /* rounded-lg */
     border-radius: 0.5rem !important;     
     border: 1px solid #e2e8f0 !important; /* border-slate-200 */
     border: 1px solid #e2e8f0 !important;  
     box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
     box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
     padding: 1rem !important;
     padding: 1rem !important;
第126行: 第125行:
}
}


/* 5. 顶部个人工具栏与搜索框 */
/* 5. 搜索框圆角化 */
#p-search input[type="search"] {
body.skin-timeless #p-search input[type="search"] {
     border-radius: 9999px !important;    /* rounded-full */
     border-radius: 9999px !important;     
     border: 1px solid #cbd5e1 !important; /* border-slate-300 */
     border: 1px solid #cbd5e1 !important;  
     padding-left: 1rem !important;
     padding-left: 1rem !important;
    transition: all 0.2s;
}
#p-search input[type="search"]:focus {
    border-color: #3b82f6 !important;    /* border-blue-500 */
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3) !important; /* ring-3 ring-blue-500/30 */
    outline: none !important;
}
}


/* 6. 链接样式现代化 (类似 text-indigo-600 hover:text-indigo-500) */
/* 6. 全局链接颜色改为 Tailwind 经典 Indigo 蓝 */
a {
body.skin-timeless a {
     color: #4f46e5 !important;            /* text-indigo-600 */
     color: #4f46e5 !important;             
     text-decoration: none !important;
     text-decoration: none !important;
}
}
 
body.skin-timeless a:hover {
a:hover {
     color: #6366f1 !important;             
     color: #6366f1 !important;            /* text-indigo-500 */
     text-decoration: underline !important;
     text-decoration: underline !important;
}
/* 7. Wiki 内置表格与分类标签美化 */
.catlinks {
    background: #f1f5f9 !important;        /* bg-slate-100 */
    border: none !important;
    border-radius: 0.5rem !important;    /* rounded-lg */
    padding: 0.75rem !important;
}
}

2026年7月18日 (六) 00:16的版本

/* 这里放置的CSS将应用于Timeless皮肤 */


/* 这里放置的CSS将应用于Timeless皮肤 */
/* Indefinite content width 
@media screen and (min-width: 851px) {
    .color-middle-container,
    .ts-inner { max-width: none; }
}
*/



/* Top bar font modernization */
#mw-header *,
#mw-site-navigation *,
#mw-related-navigation *  { font-family: 'Segoe UI','Segoe UI Emoji','Segoe UI Symbol','Lato','Liberation Sans','Noto Sans','Helvetica Neue','Helvetica',sans-serif  }

/* Avoid cutting off letters with descenders: g,j,p,q,y */
#personal h2 span {
    height: 1.5em;
    position:relative;
    bottom:0.1em
}

/* Triangle position patch */
#personal h2::after {
   position: relative;
   bottom: 0.5em;
}




/* Highlight section title upon navigation */

.mw-headline:target {
  background-color: gold;
}


/*content font 

body { color: #5a7425; font-size: 14px; font-family: "Courier New"; }*/


#content h1 { color: #000000; font-size: 18px;}



/* ===== 游客隐藏 Special Pages ===== */

/* 隐藏 Special:SpecialPages 链接 */
body.anonymous a[href*="Special:SpecialPages"] {
    display: none !important;
}

/* 隐藏所有 Special: 链接 */
body.anonymous a[href*="/wiki/Special:"] {
    display: none !important;
}

body.anonymous a[href*="title=Special:"] {
    display: none !important;
}





/* 隐藏页面日志 */
body.anonymous #ca-history {
    display: none !important;
}

/* 隐藏工具栏 */
body.anonymous #p-tb {
    display: none !important;
}





/* Tailwind 风格尝试 */
/* ==========================================================================
   MediaWiki Timeless 主题 - Tailwind 风格强效重置版
   ========================================================================== */

/* 1. 全局背景与字体重置 */
body.skin-timeless {
    background-color: #f8fafc !important; 
    color: #334155 !important;            
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* 2. 主内容区域卡片化 - 强效穿透 */
body.skin-timeless #mw-content-container,
body.skin-timeless #mw-content {
    background: #ffffff !important;
    border-radius: 0.75rem !important;    
    border: 1px solid #e2e8f0 !important; 
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important; 
    padding: 2rem !important;             
}

/* 3. 页面标题现代化 */
body.skin-timeless .firstHeading {
    color: #0f172a !important;            
    font-weight: 700 !important;          
    letter-spacing: -0.025em !important;  
    border-bottom: 2px solid #f1f5f9 !important; 
    padding-bottom: 0.5rem !important;
}

/* 4. 左侧及相关导航栏重构 */
body.skin-timeless #mw-site-navigation .sidebar-chunk, 
body.skin-timeless #mw-related-navigation .sidebar-chunk {
    background: #ffffff !important;
    border-radius: 0.5rem !important;     
    border: 1px solid #e2e8f0 !important; 
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    padding: 1rem !important;
    margin-bottom: 1rem !important;
}

/* 5. 搜索框圆角化 */
body.skin-timeless #p-search input[type="search"] {
    border-radius: 9999px !important;     
    border: 1px solid #cbd5e1 !important; 
    padding-left: 1rem !important;
}

/* 6. 全局链接颜色改为 Tailwind 经典 Indigo 蓝 */
body.skin-timeless a {
    color: #4f46e5 !important;            
    text-decoration: none !important;
}
body.skin-timeless a:hover {
    color: #6366f1 !important;            
    text-decoration: underline !important;
}