首页 > 其他分享 >purple.css

purple.css

时间:2022-08-21 05:11:06浏览次数:48  
标签:purple border padding color -- font margin css

:root {
--control-text-color: #777;
--select-text-bg-color: rgba(223, 197, 223); /*#7e66992e;*/

/* side bar */
--side-bar-bg-color: rgb(255, 255, 255);
--active-file-text-color: #8163bd;
--active-file-bg-color: #E9E4F0;
--item-hover-bg-color: #E9E4F0;
--active-file-border-color: #8163bd;

--title-color: #6c549c;
--font-sans-serif: 'Ubuntu', 'Source Sans Pro', sans-serif !important;
--font-monospace: 'Fira Code', 'Roboto Mono', monospace !important;
--purple-1: #8163bd;
--purple-2: #79589F;
--purple-3: #fd5eb8;
--purple-light-1: rgba(99, 99, 172, .05);
--purple-light-2: rgba(99, 99, 172, .1);
--purple-light-3: rgba(99, 99, 172, .2);
--purple-light-4: rgba(129, 99, 189, .3);
--purple-light-5: #E9E4F0;
--purple-light-6: rgba(129, 99, 189, .8);
}

/* html {
font-size: 16px;
} */

body {
font-family: var(--font-sans-serif);
color: #34495e;
-webkit-font-smoothing: antialiased;
line-height: 1.6rem;
letter-spacing: 0;
margin: 0;
overflow-x: hidden;
}

/* 页边距 和 页面大小 */
#write {
padding-left: 6ch;
padding-right: 6ch;
margin: 0 auto;
}

#write p {
line-height: 1.6rem;
word-spacing: .05rem;
}

#write ol li {
padding-left: 0.5rem;
}

#write > ul:first-child,
#write > ol:first-child {
margin-top: 30px;
}

body > *:first-child {
margin-top: 0 !important;
}

body > *:last-child {
margin-bottom: 0 !important;
}

a {
color: var(--purple-1);
padding: 0 2px;
text-decoration: none;
}
.md-content {
color: var(--purple-light-6);
}
#write a {
border-bottom: 1px solid var(--purple-1);
color: var(--purple-1);
text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
position: relative;
margin-top: 1rem;
margin-bottom: 0.5rem;
/* font-weight: bold; */
font-weight: 500 !important;
line-height: 1.4;
cursor: text;
color: var(--title-color);
font-family: var(--font-sans-serif);
}

h1:hover a.anchor,
h2:hover a.anchor,
h3:hover a.anchor,
h4:hover a.anchor,
h5:hover a.anchor,
h6:hover a.anchor {
text-decoration: none;
}

h1 tt,
h1 code {
font-size: inherit !important;
}
h2 tt,
h2 code {
font-size: inherit !important;
}
h3 tt,
h3 code {
font-size: inherit !important;
}
h4 tt,
h4 code {
font-size: inherit !important;
}
h5 tt,
h5 code {
font-size: inherit !important;
}
h6 tt,
h6 code {
font-size: inherit !important;
}


h1 {
padding-bottom: .4rem;
font-size: 2.2rem;
line-height: 1.3;
}
h1 {
text-align: center;
padding-bottom: 0.3em;
font-size: 2.2em;
line-height: 1.2;
margin: 2.4em auto 1.2em;
}
h1:after {
content: '';
display: block;
margin: 0.2em auto 0;
width: 100px;
height: 2px;
border-bottom: 2px solid var(--title-color);
}

h2 {
margin: 1.6em auto 0.5em;
padding-left: 10px;
line-height: 1.4;
font-size: 1.8em;
border-left: 9px solid var(--title-color);
border-bottom: 1px solid var(--title-color);
}
h3 {
font-size: 1.5rem;
margin: 1.2em auto 0.5em;
}
h4 {
font-size: 1.3rem;
}
h5 {
font-size: 1.2rem;
}
h6 {
font-size: 1.1rem;
}

p,
blockquote,
ul,
ol,
dl,
table {
margin: 0.8em 0;
}

li > ol,
li > ul {
margin: 0 0;
}

hr {
height: 2px;
padding: 0;
margin: 16px 0;
background-color: #e7e7e7;
border: 0 none;
overflow: hidden;
box-sizing: content-box;
}

body > h2:first-child {
margin-top: 0;
padding-top: 0;
}

body > h1:first-child {
margin-top: 0;
padding-top: 0;
}

body > h1:first-child + h2 {
margin-top: 0;
padding-top: 0;
}

body > h3:first-child,
body > h4:first-child,
body > h5:first-child,
body > h6:first-child {
margin-top: 0;
padding-top: 0;
}

a:first-child h1,
a:first-child h2,
a:first-child h3,
a:first-child h4,
a:first-child h5,
a:first-child h6 {
margin-top: 0;
padding-top: 0;
}

h1 p,
h2 p,
h3 p,
h4 p,
h5 p,
h6 p {
margin-top: 0;
}

li p.first {
display: inline-block;
}

ul,
ol {
padding-left: 30px;
}

ul:first-child,
ol:first-child {
margin-top: 0;
}

ul:last-child,
ol:last-child {
margin-bottom: 0;
}

/* 引用 */
blockquote {
/* margin-left: 1rem; */
border-left: 4px solid var(--purple-light-4);
padding: 10px 15px;
color: #777;
background-color: var(--purple-light-1);
}

/* 表格 */
table {
padding: 0;
word-break: initial;
}

table tr {
border-top: 1px solid #dfe2e5;
margin: 0;
padding: 0;
}

/* 表格 背景色 */
table tr:nth-child(2n),
thead {
background-color: var(--purple-light-1);
}

#write table thead th {
background-color: var(--purple-light-2);
}

table tr th {
font-weight: bold;
border: 1px solid #dfe2e5;
border-bottom: 0;
text-align: left;
margin: 0;
padding: 6px 13px;
}

table tr td {
border: 1px solid #dfe2e5;
text-align: left;
margin: 0;
padding: 6px 13px;
}

table tr th:first-child,
table tr td:first-child {
margin-top: 0;
}

table tr th:last-child,
table tr td:last-child {
margin-bottom: 0;
}

/* 粗体 */
#write strong {
padding: 0 2px;
color: var(--purple-1);
}

/* 斜体 */
#write em {
padding: 0 5px 0 2px;
/* font-style: normal; */
color: #42b983;
}


/* inline code */
/*
#write code, tt {
padding: 2px 4px;
border-radius: 2px;
font-family: var(--font-monospace);
font-size: 0.92rem;
color: var(--purple-3);
background-color: rgba(99, 99, 172, .05);
}
*/

.CodeMirror-lines {
padding-left: 4px;
}

.code-tooltip {
box-shadow: 0 1px 1px 0 rgba(0,28,36,.3);
border-top: 1px solid #eef2f2;
}

.md-fences,
code,
tt {
border: 1px solid #e7eaed;
background-color: #f8f8f8;
border-radius: 3px;
padding: 0;
padding: 2px 4px 0px 4px;
font-size: 0.9em;
}

code {
background-color: #f3f4f4;
padding: 0 2px 0 2px;
}

.md-fences {
margin-bottom: 15px;
margin-top: 15px;
padding-top: 8px;
padding-bottom: 6px;
}

.md-task-list-item > input {
margin-left: -1.3em;
}

@media print {
html {
font-size: 13px;
}
table,
pre {
page-break-inside: avoid;
}
pre {
word-wrap: break-word;
}
}

.md-fences {
background-color: #f8f8f8;
}
#write pre.md-meta-block {
padding: 1rem;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border: 0;
border-radius: 3px;
color: #777777;
margin-top: 0 !important;
}

.mathjax-block>.code-tooltip {
bottom: .375rem;
}

.md-mathjax-midline {
background: #fafafa;
}

#write>h3.md-focus:before{
left: -1.5625rem;
top: .375rem;
}
#write>h4.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
}
#write>h5.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
}
#write>h6.md-focus:before{
left: -1.5625rem;
top: .285714286rem;
}
.md-image>.md-meta {
/*border: 1px solid #ddd;*/
border-radius: 3px;
padding: 2px 0px 0px 4px;
font-size: 0.9em;
color: inherit;
}

.md-tag {
color: #a7a7a7;
opacity: 1;
}

.md-toc {
margin-top:20px;
padding-bottom:20px;
}

.sidebar-tabs {
border-bottom: none;
}

#typora-quick-open {
border: 1px solid #ddd;
background-color: #f8f8f8;
}

#typora-quick-open-item {
background-color: #FAFAFA;
border-color: #FEFEFE #e5e5e5 #e5e5e5 #eee;
border-style: solid;
border-width: 1px;
}

/** focus mode */
.on-focus-mode blockquote {
border-left-color: rgba(85, 85, 85, 0.12);
}

header, .context-menu, .megamenu-content, footer{
font-family: "Segoe UI", "Arial", sans-serif;
}

.file-node-content:hover .file-node-icon,
.file-node-content:hover .file-node-open-state{
visibility: visible;
}

.mac-seamless-mode #typora-sidebar {
background-color: #fafafa;
background-color: var(--side-bar-bg-color);
}

.md-lang {
color: #b4654d;
}

.html-for-mac .context-menu {
--item-hover-bg-color: #E6F0FE;
}

#md-notification .btn {
border: 0;
}

.dropdown-menu .divider {
border-color: #e5e5e5;
}

.ty-preferences .window-content {
background-color: #fafafa;
}

.ty-preferences .nav-group-item.active {
color: white;
background: #999;
}

.pin-outline .outline-active {
color: var(--active-file-text-color);
}

.file-list-item {
border-bottom: 1px solid;
border-color: var(--purple-light-5);
}

.file-list-item-summary {
font-weight: 400;
}

.file-list-item.active {
color: var(--active-file-text-color);
background-color: var(--purple-light-5);
}

.file-tree-node.active>.file-node-background {
background-color: var(--purple-light-5);
font-weight: 700;
}

.file-tree-node.active>.file-node-content {
color: var(--active-file-text-color);
font-weight: 700;
}

.file-node-content {
color: #5e676d;
}

.sidebar-tabs {
border-bottom: none;
}
.sidebar-tab.active {
font-weight: 400;
}

.sidebar-content-content {
font-size: 0.9rem;
}

/* task list */
#write .md-task-list-item > input {
-webkit-appearance: initial;
display: block;
position: absolute;
border: 1px solid #b4b4b4;
border-radius: .25rem;
margin-top: .1rem;
margin-left: -1.8rem;
height: 1.2rem;
width: 1.2rem;
transition: background 0.3s;
}

#write .md-task-list-item > input:focus {
outline: none;
box-shadow: none;
}

#write .md-task-list-item > input:hover {
background: #ddd;
}

#write .md-task-list-item > input[checked]::before {
content: '';
position: absolute;
top: 20%;
left: 50%;
height: 60%;
width: 2px;
transform: rotate(40deg);
background: #333;
}

#write .md-task-list-item > input[checked]::after {
content: '';
position: absolute;
top: 46%;
left: 25%;
height: 30%;
width: 2px;
transform: rotate(-40deg);
background: #333;
}

#write .md-task-list-item > p {
transition: color 0.3s, opacity 0.3s;
}

#write .md-task-list-item.task-list-done > p {
color: #b4b4b4;
text-decoration: line-through;
}

#write .md-task-list-item.task-list-done > p > .md-emoji {
opacity: .5;
}

#write .md-task-list-item.task-list-done > p > .md-link > a {
opacity: .6;
}

 

标签:purple,border,padding,color,--,font,margin,css
From: https://www.cnblogs.com/xinzi7/p/16609263.html

相关文章

  • 1.css?v=2015 网站的css版本号怎样实现
    https://zhidao.baidu.com/question/1895997040023890700.html实际上CSS后面追加参数是没有作用的可以随便写你也可以写成1.css?zhegeshishuxing=zhegeshicanshu但是那......
  • CSS white-space 属性
    https://www.runoob.com/cssref/pr-text-white-space.html属性值值描述normal默认。空白会被浏览器忽略。pre空白会被浏览器保留。其行为方式类似HTML中的<p......
  • CSS3 响应式布局: @media (min/max-width:***) @font-face
    https://www.cnblogs.com/hualiu0/p/5319046.html 响应式布局responsivedesign@media属性bootstrap css分析:@media(min-width:768px){body{***}}use@me......
  • CSS选择器
    css中选择器分为基础选择器和复合选择器两个大类。基础选择器是由单个选择器组成的。包括:标签选择器、类选择器、id选择器和通配符选择器常用的复合选择器包括:后代选择......
  • HTML与CSS(浅学一下)-----6:
    HTML与CSS(浅学一下):JavaScript:Javascript语言诞生主要是完成页面的数据验证。因此它运行在客户端,需要运行浏览器来解析执行JavaScript代码。JS是Netscape网......
  • CSS-盒子四周阴影效果
    CSS-盒子四周阴影效果属性box-shadow,<styletype="text/css">.fei{margin-left:230px;width:100px;height:100px;border:1pxsolid#eee;......
  • HTML与CSS(浅学一下)-----5:
    HTML与CSS(浅学一下):选择器:标签名选择器:格式:在head标签里面使用style标签。<!--需求:在所有div标签上修改文字字体颜色为蓝色,字体大小为30个像素,边框为1像......
  • css属性样式整合
    font-size字体大小常用色值:#000黑色;#fff白色;#ccc、#333、#2f2f2f、#666、#ddd灰色;rgb表示法:color:rgb(255,255,255);rgba表示法:color:rgba(255,255,255,0.5)第四位......
  • css div的水平、垂直同时居中
    创建页面布局的时候,会遇到只是用纯粹的css控制div的垂直和水平居中。有很多种方法可以实现这种效果,这里列出我喜欢的。首先是最基本的,css控制div水平居中创建一个div的水......
  • css的五种定位方式
    CSS中的position属性用来设置元素在页面中的位置,通过该属性您可以把任何属性放置在任何您认为合适的位置。position属性有5个可选值,分别对应5种不同的定位方式,如下......