自定义的CSS样式

2022年 1月 27日 59点热度 0人点赞

先留格备份, 不然不知道为什么我自定义的 css 又没了.

body {
    background-color: #F6F6F6;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, Helvetica;
    color: #121212;
}

#primary {
    margin-right: 0%;
}

#content p>code,
table>code,
td>code,
th>code,
tr>code,
li>code,
ol>code {
    font-size: 12px;
    margin-left: 0px;
    margin-right: 0px;
    border: 0 solid #ddd;
    color: #c7254e;
    background-color: #f9f2f4;
    padding: 2px 4px;
    border-radius: 2px;
       font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 14px;
}

#content pre {
    padding: 12px;
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 14px;
}

#content pre code span {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 14px;
}

#content h2 {
    /*     background-color: #28B463; */
    /*     color: #F0F3F4; */
    border-radius: 3px;
    /*     padding: 4px 0px 4px 8px; */
    font-weight: bolder;
    margin: 2px 0px 10px 0px;
}

#content code span {
    font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
    font-size: 16px;
}

.widget_tag_cloud {
    background-color: #FFFFFF;
    border-radius: 0px;
}

.widget_recent_entries {
    background-color: #FFFFFF;
    border-radius: 0px;
}

.widget_categories {
    background-color: #FFFFFF;
    border-radius: 0px;
}

.widget_archive {
    background-color: #FFFFFF;
    border-radius: 0px;
}

.widget_media_image figure {
    text-align: center;
}

.widget_search label {
    display: none;
}

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, body,
input,
textarea,
.page-title span,
.pingback a.url {
    font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
}

a {
    text-decoration: none;
}

#content p,
#site-description,
#primary,
#site-generator,
#content a,
.page-title span,
h1, h2, h3, h4, h5, ul, li, ol, a {
    font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif ! important;
    font-size: 16px;
}

blockquote {
    display: block;
    padding: 16px;
    margin: 0 0 24px 0;
    border-left: 8px solid #dddfe4;
    background: #eef0f4;
    overflow: auto;
    overflow-scrolling: touch;
    word-wrap: normal;
    word-break: normal;
}

#content h2, #content h2 * {
    margin-bottom: 12px;

    left: 0px;
    position: relative;
        font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
}

#content h3, #content h3 *   {
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 1.2em;
      font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    position: relative;
    left: 0px;
}

.wp-block-tag-cloud {
    padding: 5px;
}

#primary ul li {
    list-style-type: disc;
      line-height: 1.8;
}

#content ul, #content ol {
    margin-left: 28px;
             line-height: 1.8;
}

#primary ul code {
    margin: 0px;
}

#primary ol li {
    list-style: decimal;
             line-height: 1.8;
}

#page, #footerwidgets, #headersection {
    max-width: 1300px;
    margin: 0.2em auto;
}

#secondary {
    width: 24%;
    float: left;
}

.wp-block-image:not(.is-style-rounded)>a, .wp-block-image:not(.is-style-rounded) img {
    border-radius: 0px;

}

/* 表格样式 */

#primary table thead tr, #primary table thead tr {
    background-color: #f8f8f8
}

#primary table, #primary thead, #primary tr {
    width: 100% ! important
}

#primary td {
    font-size: 16px;
}

#primary table {
    display: block;
    width: 100%;
    overflow: auto;
    border-collapse: collapse;
}

#primary table th {
    font-weight: 600;
    padding: 6px 13px;
    border: 1px solid #dfe2e5
}

#primary table td {
    padding: 6px 13px;
    border: 1px solid #dfe2e5;
            vertical-align: middle;
}

#primary table tr {
    background-color: #fff;
    border-top: 1px solid #c6cbd1
}

#primary table tr:nth-child(2n) {
    background-color: #f6f8fa
}

/* footer {
    display: none;
}
 */
#comment {
    resize: none;
}

.wp-block-categories-list.wp-block-categories {
    overflow: auto;
}

.wp-block-categories-list.wp-block-categories li {
    /*  float: left; */
    /*  border: none; */
    display: block;
    /*  width: 50%; */
    background-color: none;
}

#content .widget ul li a {
    text-decoration: none;
    /* flex-grow: 2; */
    width: 65%;
    /* font-size: 90%; */
    font-size: 16px;
}

.wp-block-latest-posts.wp-block-latest-posts__list li {
    clear: both;
    /* text-align: justify; */
    display: flex;
    justify-content: space-between;
    /* flex: 2 1 auto; */
    /* flex-direction: row; */
}

#content h1.entry-title a, h1.entry-title {
    font-size: 30px;
       font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
        font-weight: bold;
    margin-bottom: 1.2em;
}

#content h2, #content h2 * {
    font-size: 28px;
       font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
        font-weight: bold;
    margin-bottom: 1.2em;
}

#content h3, #content h3 * {
    font-size: 24px;
       font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
        font-weight: bold;
    margin-bottom: 1.2em;
}

#content h4, #content h4 * {
    font-size: 20px;
       font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
        font-weight: bold;
    margin-bottom: 1.2em;
}

#primary #main article {
    border: none;
    border-radius: 0px;
    box-shadow: 0 0 22px 0 rgb(0 7 24 / 8%);
    margin-bottom: 25px;
}

#content .page-title {
    font-size: 24px;
    margin: 15px 0px;
}

#content .page-title span {
    font-size: 24px;
    color: red;
}

#primary {
    width: 69%;
    margin: 0;
    /* float: left; */
    /* margin-right: 2%; */
}

#content {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.wp-block-categories-list.wp-block-categories li {
    display: flex;
    justify-content: space-between;
}

.wp-block-archives-list.wp-block-archives li {
    display: flex;
    justify-content: space-between;
}

#content .entry-title {
    margin-bottom: 20px;
}

.entry-content img {
    border-radius: 0em;
    border: none;
}

body {
    min-width: 1300px;
}

.wp-video {
    max-width: 100%;
    height: auto;
    margin: 20px 0px;
}

#page, #footerwidgets, #headersection {
    width: 1300px;
    margin: 0em auto;
}

.main-navigation {
    position: relative;
    z-index: 201;
    font-family: 'PingFang SC','Microsoft YaHei', "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
    height: 70px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: #fff;
       background-image: none ! important;
       background: #FFF;
    box-shadow: 0 0 22px 0 rgb(0 7 24 / 8%);
    display: flex;
justify-content: center;
    align-items: center;

    margin-bottom: 20px;

}

#navigation {
   width: 1300px;
    display: block;
    max-width: 1300px;
}

.main-navigation a:hover {
        cursor: pointer;
    color: #22ab82;
}

.main-navigation a {

    display: inline-block;
    vertical-align: middle;
    margin-right: 32px;
    font-size: 16px;
    color: #333;
}

footer {
    display: none;
}

/* #content .widget.widget_block.widget_search
 {
    position: absolute;
    top: 17px;
    z-index: 10000;
       width: 300px;
} */

@media screen and (max-width: 600px)
#page, #footerwidgets, #headersection {
    max-width: 1300px;
    width: 1300px;
}

@media screen and (max-width: 600px)
.menu-toggle, .main-navigation.toggled .nav-menu {
    display: none ! important;
}

@media screen and (max-width: 600px)
.menu-toggle {
    width: 0%! important;
}

.meta-nav {
    display: none;
}

#content pre {
    margin-top: 10px;
    margin-bottom: 10px;
}

/* #content span.mjx-chtml * {
    font-size: 14px;
} */

.lwptoc {
    position: fixed;
    top: 100px;
    right: 1%;
    z-index: 100000;
}

#content p {
    line-height: 1.8;
}

#content code[class*=language-], #content pre[class*=language-] {
    font-size: 16px;
}

#content code, #content pre {
    font-size: 14px ! important;
}

li p {
    margin-bottom: 0px;
}

.entry-content > pre {
    margin-bottom: 1.5em ! important;
}

.entry-content figure figcaption {
    text-align: center;
}

img[src$="#w100"] {
width: 100%;
}

img[src$="#w80"] {
width: 80%;
}

img[src$="#w70"] {
width: 70%;
}

img[src$="#w60"] {
width: 60%;
}

img[src$="#w50"] {
width: 50%;
}

img[src$="#w30"] {
width: 30%;
}

img[src$="#w20"] {
width: 20%;
}

img[src$="#w10"] {
width: 10%;
}

img[src$="#w5"] {
width: 5%;
}

img[src$="#w2"] {
width: 2%;
}

img[src$="#w1"] {
width: 1%;
}

img[src$="#w0.1"] {
width: 0.1%;
}

.entry-content img {
    display:block;
    margin: 0 auto;
}

.entry-summary p {
    word-break: break-all
}

rainbow

这个人很懒,什么都没留下

文章评论