*{ box-sizing: border-box; } html { font-family: josefin sans,-apple-system,BlinkMacSystemFont,helvetica neue,pingfang sc,hiragino sans gb,STHeiti,microsoft yahei,wenquanyi micro hei,Arial,Verdana,sans-serif; } html::-webkit-scrollbar { width: 8px; height: 8px } html::-webkit-scrollbar-thumb { height: 40px; background-color: #eee; border-radius: 0 } html::-webkit-scrollbar-thumb:hover { background-color: #ddd } pre{ padding: 1em; margin: .5em 0; overflow: auto; background: #f5f2f0; } body{ padding: 0; margin: 0; display: flex; flex-direction: column; min-height: 100vh; } a{ color: #161209; text-decoration: none; transition: color .2s ease,border-color .46s ease,background .46s ease,opacity .46s ease; } a:hover{ color: var(--primary,#673ab7); } p{ line-height: 2em; } blockquote{ text-indent: 2em; position: relative; margin: 20px 0; } blockquote::before{ position: absolute; left: -32px; top: -10px; content: '“'; font-family: fantasy; font-size: 40px; color: var(--primary,#673ab7); } @media screen and (max-width: 860px){ body{ padding: 6px; } } @font-face { font-family: josefin sans; font-style: normal; font-weight: 400; src: url(//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.eot); src: local("Josefin Sans"),local("JosefinSans-Normal"),url(//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.eot?#iefix) format("embedded-opentype"),url(//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.woff2) format("woff2"),url(//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.woff) format("woff"),url(//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.ttf) format("truetype"),url(//lib.baomitu.com/fonts/josefin-sans/josefin-sans-regular.svg#JosefinSans) format("svg") } .sub-title { position: relative; width: 100%; text-align: right; font-size: 32px; margin-bottom: 82px; } @media screen and (max-width: 860px){ .sub-title { display: none; } } .post-warp{ position: relative; width: 100%; overflow: hidden; max-width: 780px; margin: 0 auto; min-height: calc(100vh - 120px); padding: 46px 0; } @media screen and (max-width: 860px){ .post-warp{ min-height: calc(100vh - 132px); } } .markdow img{ width: 100%; border-radius: 4px; } .footer{ color: #999; display: flex; height: 54px; line-height: 1; align-items: center; justify-content: center; } .footer-divider{ margin: 0 10px; } @media screen and (max-width: 860px){ .footer{ flex-direction: column; } .footer span{ text-align: center; padding: 4px 0; } .footer-divider{ display: none; } } .footer a{ color: #999; margin: 0 8px; } pre{ border-radius: 3px; font-size: 14px; line-height: 1.6; overflow: auto; } hr{ border: none; overflow: hidden; } hr:after{ content: ''; display: block; margin: 30px auto; width: 10%; height: 1px; background: #ccc; text-align: center; } /*Categories*/ .categories{ display: flex; width: 100%; justify-content: space-between; flex-wrap:wrap; } .categories-card{ width: 50%; margin-bottom: 46px; min-height: 250px; padding: 0 16px; } @media screen and (max-width: 860px){ .categories-card{ width: 100%; } } .icon{ width: 16px; height: 16px; } .categories-article{ text-indent: 2em; } .categories-article a{ display: block; margin-bottom: 10px; width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } /*Pagination*/ .pagination{ display: flex; margin: 60px 0; width: 100%; justify-content: center; padding: 0; } .pagination li{ list-style-type: none; margin: 0 10px; width: 20px; } .pagination li a { text-align: center; display: block; width: 100%; color: #bfbfbf; padding-bottom: 6px; } .pagination li a:hover,.pagination .active a{ border-bottom: 3px solid var(--primary,#673ab7); } /*Index*/ .articles{ margin: 0; padding: 0; min-height: 400px; } .articles li{ padding-bottom: 8px; list-style-type: none; margin: 40px 0; text-align: center; } .articles li:after{ content: ''; display: block; margin: 60px auto; width: 10%; height: 1px; background: #ccc; text-align: center; } .articles li:last-child:after{ display: none; } .read-all{ display: inline-block; padding: 4px 20px; font-size: 14px; color: #fff; background: var(--primary,#673ab7); border: 2px solid var(--primary,#673ab7); text-decoration: none; border-radius: 2px; transition-property: background-color; transition-duration: 0.2s; transition-timing-function: ease-in-out; transition-delay: 0s; } .read-all:hover{ background: #fff; } .articles li .title{ color: #555; font-size: 20px; font-weight: normal; } .articles li .title:hover{ color: var(--primary,#673ab7); } .article-info{ margin:20px 0 60px; color: #999; font-size: 14px; height: 40px; display: flex; justify-content: center; align-items: center; flex-flow: wrap; } .article-info img{ position: relative; top: 2px; width: 16px; height: 16px; } .article-img img{ position: relative; width: 300px; height: 200px; border-radius:3%; object-fit:cover; } .article-info .divider-line{ width: 2px; height: 16px; background: #999; margin: 0 14px; } .article{ padding: 10px 0; margin: 10px 0; } .articles .description{ color: #555; font-size: 16px; text-align: left; line-height: 2; text-indent: 2em; margin-bottom: 40px; } @media screen and (max-width: 860px){ .articles .description{ padding: 0 10px; } } .sub{ font-size: 14px; } /*dashboard*/ .item-content{ width: 100%; height: 120px; display: flex; justify-content: center; align-items: center; } .search-box{ height: 36px; display: flex; border-radius: 16px; align-items: center; justify-content: space-between; border: 2px solid var(--primary,#673ab7); width: 320px; } .search-input{ text-align: center; flex: 1; border: none; border-radius: 16px; height: 30px; padding: 0 10px; } .search-input:focus,.search-input:active{ border: none; outline:none; } .search-icon{ cursor: pointer; margin: 0 10px; width: 20px; height: 20px; } .colors{ display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; } .colors li{ width: 40px; height: 40px; margin: 10px 20px; border-radius: 2px; cursor: pointer; position: relative; } .colors li.active:before{ content: ''; width: 10px; height: 10px; background-color: #fff; display: block; position: absolute; top: 15px; left: 15px; border-radius: 2px; } .action{ display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; } .action a{ padding: 8px 16px; border-radius: 2px; opacity: .8; color: #fff; background-color: var(--primary,#673ab7); font-size: 14px; } .action a:hover{ opacity: 1; box-shadow: 0 0 4px rgba(0,0,0,.2); } .action-tip{ font-size: 14px; color: var(--primary,#673ab7); } .action-msg{ z-index: 1400; position: fixed; top: 24px; left: auto; right: 24px; color: #fff; display: flex; flex-direction: column; padding: 12px 16px; flex-wrap: wrap; align-items: flex-start; justify-content: center; opacity: 1; min-width: 288px; border-radius: 4px; background-color: var(--primary,#673ab7); box-shadow: 0 3px 5px -1px rgba(0,0,0,0.2), 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12); } .action-msg .close{ color: #fff; cursor: pointer; position: absolute; top: auto; font-size: 16px; right: 24px; } .btn-outline-success { border: 2px solid var(--primary, #673ab7); filter: invert(100%); } .btn-outline-success img{ width:26px; height: 24px; }