1 Star 0 Fork 235

xzx/blog

forked from openGauss/blog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
blog.css 15.53 KB
一键复制 编辑 原始数据 按行查看 历史
xzx 提交于 2020-12-22 11:13 +08:00 . version update
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791
html,body {
/* font-family: FZLTHJW-GB1-0; */
background: #ffffff;
font-size: 14px;
}
.hero-body {
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
.mysocial { color: hsl(0, 0%, 100%);}
.mysocial:hover { color: hsl(0, 0%, 71%) }
.blog_bg {
width: 100%;
height: 612px;
background: url(../img/banner01.png);
background-size: 100% 100%;
}
.container {
max-width: 1140px;
width: 1140px;
margin: 0 auto;
padding: 0 !important;
}
.container .columns {
margin: 0;
display: flex;
justify-content: space-between;
}
.is-9 {
width: 60%;
}
.is-3 {
width: 35%;
}
.prepare {
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
}
.prepare_warp {
width: 60%;
background-color: rgba(255, 255, 255, 0.85)
}
.prepare_content {
padding: 20px 50px;
}
.prepare_content>h2 {
font-size: 40px;
color: #080808;
display: inline-block;
font-weight: 500;
}
.prepare_content>h2::after {
content: '';
display: block;
width: 100%;
height: 7px;
background: #467FBF;
}
.prepare_content>ol {
margin: 20px 0;
padding-left: 0.3rem;
}
.prepare_content>ol li {
font-size: 18px;
line-height: 27px;
color: #080808;
list-style-type: decimal;
}
.prepare_content>ol li a {
color: #467FBF;
text-decoration: none;
}
.btn {
text-decoration: none;
padding: 6px 30px;
background: #467FBF;
color: #ffffff;
outline: none;
border: none;
border-radius: 2px;
}
ul{
margin-left: 20px;
}
li{
list-style-type: disc!important;
}
.pagination__item{
list-style-type: none!important;
}
/* ------------------------blog 主页------------------------- */
.article {
display: flex;
justify-content: space-between;
margin-top: 0.75rem;
}
.article:first-child {
margin-top: 0;
}
.article_left {
width: 25%;
height: 100%;
}
.article_right {
height: 100%;
}
.article_left img {
width: 100%;
height: 100%;
}
.article_right h3 {
font-size: 0.44rem;
margin: 0;
max-height: 1.6rem;
font-weight: bold;
}
.article_right h3,
.article_right>a>p {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
word-wrap: break-word;
}
.article_right a {
text-decoration: none;
}
.article_right>div span {
font-size: 16px;
}
.article_right>div svg,
.article_right>div span {
color: #666666;
}
.article_right>div svg {
transform: translateY(2px);
}
.article_right_author {
margin-right: 0.6rem;
}
.article_right_date {
margin-right: 0.4rem;
}
.article_right>a>p {
font-size: 16px;
color: #666666;
margin-bottom: 0;
line-height: 0.42rem;
max-height: 0.8rem;
}
/* --------------tags--------------- */
.title.is-5 {
font-size: 0.32rem;
color: #080808;
}
.tags .tag {
margin-bottom: 8px;
display: inline-block;
}
.tags .tag a {
text-decoration: none;
padding: 5px 16px;
background: #f7f8f9;
margin-right: 5px !important;
}
.card-content {
padding: 0;
}
.block:not(:last-child), .box:not(:last-child), .breadcrumb:not(:last-child), .content:not(:last-child), .highlight:not(:last-child), .level:not(:last-child), .message:not(:last-child), .notification:not(:last-child), .progress:not(:last-child), .subtitle:not(:last-child), .table-container:not(:last-child), .table:not(:last-child), .tabs:not(:last-child), .title:not(:last-child) {
margin-bottom: 0.2rem;
}
.card {
box-shadow: none;
}
.tag>a,
.card-content>a {
color: #666666;
}
.card-content>div svg {
transform: translateY(2px);
}
.card-content>div {
margin-bottom: 10px;
}
.card-content>p {
margin-bottom: 4px;
font-size: 14px;
line-height: 32px;
color: #4d4d4d;
}
.card-content>p>a {
font-size: 14px;
color: #4d4d4d;
text-decoration: none;
}
/* ---------------------pagination----------------------- */
.pagination {
font-size: 0.32rem;
position: relative;
margin-top: 0.4rem;
}
.pagination, .pagination-list {
align-items: center;
display: flex;
justify-content: center;
text-align: center;
}
.pagination-link, .pagination-next, .pagination-previous {
text-decoration: none;
border: 1px solid #dbdbdb;
color: #363636;
display: inline-block;
padding: 5px 10px;
}
.pagination-link {
border-radius: 50%;
}
.pagination-next, .pagination-previous {
border-radius: 290486px;
}
.pagination-next {
position: absolute;
right: 0;
}
.pagination-previous {
position: absolute;
left: 0;
}
.pagination__item {
margin-right: 0.1rem;
}
.is-current {
background: #467FBF;
color: #ffffff;
}
.pagination-link:hover, .pagination-next:hover, .pagination-previous:hover {
border-color: #b5b5b5;
}
/* -------------------------blog detail--------------------------- */
.hero-warp {
width: 100%;
height: 120px;
background: url("/img/banner_new.png");
}
.has-text-centered {
height: 100%;
color: #ffffff;
max-width: 1140px;
width: 1140px;
margin: 0 auto;
display: flex;
flex-direction: column;
justify-content: center;
}
.has-text-centered h1 {
text-transform: none;
font-size: 30px;
font-weight: 700;
letter-spacing: 0.08em;
}
.has-text-centered>div svg {
transform: translateY(2px);
}
.post_detail {
font-size: 14px;
word-break: break-all;
}
.tile h1,.tile h2,.tile h3,.tile h4,.tile h5,.tile pre,.tile table {
margin-bottom: 0.2rem;
}
.tile table {
width: 100%;
max-width: 100%;
}
.tile table th,
.tile table td {
border: 1px solid #ddd;
padding: 8px;
line-height: 1.42857143;
white-space: normal;
word-break: break-all;
}
.tile p,.tile ul {
margin-bottom: 0.2rem;
line-height: 0.52rem;
}
.post-comment {
margin-top: 0.6rem;
}
.leancloud-visitors-count {
font-weight: 500;
}
.tile pre {
padding: 30px 12px;;
}
/* -------------------------guidance------------------------ */
.guidance pre {
-webkit-overflow-scrolling: touch;
overflow-x: auto;
padding: 1.25em 1.5em;
white-space: pre;
word-wrap: normal;
background-color: #f5f5f5;
color: #4a4a4a;
font-size: .875em;
margin: 0.4rem 0;
}
.guidance {
margin-bottom: 100px;
}
.guidance p {
word-break: break-all;
}
.guidance > h2:nth-child(1) {
margin-top: 0;
}
/* ---------------------------404--------------------------- */
#error-page {
text-align: center;
margin-top: 20%;
margin-bottom: 100px;
}
.boxs {
background: #fff;
margin: 0 0 30px;
border: solid 1px #ccc;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 20px 0;
border-left: none;
border-right: none;
}
.boxs h1,
.boxs h2 {
font-family: "Roboto", Helvetica, Arial, sans-serif;
font-weight: 900;
line-height: 1.1;
}
.boxs h1 {
color: #333333;
}
.boxs h2 {
color: #777;
}
#error-page p.buttons {
margin-top: 40px;
}
.btn {
font-weight: 700;
font-family: "Roboto", Helvetica, Arial, sans-serif;
text-transform: uppercase;
letter-spacing: 0.08em;
padding: 6px 12px;
font-size: 13px;
line-height: 1.42857143;
border-radius: 0;
border: 1px solid transparent;
}
.btn-template-main {
color: #467fbf;
background-color: #ffffff;
border-color: #467fbf;
}
.btn-template-main:hover, .btn-template-main:focus, .btn-template-main:active, .btn-template-main.active {
background: #467fbf;
color: #ffffff;
border-color: #467fbf;
}
.blog-banner {
position: relative;
width: 1140px;
margin: 0 auto;
margin-bottom: 60px;
}
.blog-banner .h5-banner {
display: none;
}
.blog-banner img {
width: 100%;
height: 200px;
}
.blog-banner h1 {
position: absolute;
left: 260px;
top: 80px;
font-size: 40px;
color: #000000;
font-family: FZLTHJW;
}
.container .blog-h3 {
font-size: 24px;
font-weight: normal;
color: #000000;
font-family: FZLTHJW;
margin-bottom: 20px;
max-width: 620px;
line-height: 32px;
}
.container .prop-content {
margin-bottom: 10px;
}
.container .prop-content img {
vertical-align: text-bottom;
margin-right: 10px;
}
.container .prop-content span {
margin-right: 40px;
color: #4d4d4d;
line-height: 32px;
font-size: 14px;
font-family: FZLTHJW;
}
.container .tags {
margin-bottom: 20px;
}
.container .tags img {
vertical-align: text-bottom;
margin-right: 10px;
}
.container .tags a {
text-decoration: none;
margin-right: 40px;
color: #4d4d4d;
line-height: 32px;
font-size: 14px;
font-family: FZLTHJW;
padding: 5px 10px;
border-radius: 5px;
background-color: #f9fafa;
}
.blog-img {
width: 620px;
height: 260px;
margin-bottom: 20px;
}
.more {
display: flex;
justify-content: space-between;
}
.more p {
margin-bottom: 0;
font-size: 14px;
line-height: 32px;
color: #4d4d4d;
font-family: FZLTHJW;
}
.more a {
font-size: 14px;
line-height: 32px;
color: #7d32ea;
font-family: FZLTHJW;
}
.container .card-tags {
margin-bottom: 20px;
font-size: 18px;
line-height: 24px;
color: #000000;
font-family: FZLTHJW;
}
.top-dom a {
text-decoration: none;
color: #4d4d4d;
font-size: 14px;
line-height: 32px;
font-family: FZLTHJW;
}
.top-dom .top-info img {
margin-right: 10px;
}
.top-dom .top-info .name {
display: inline-block;
margin-right: 20px;
width: 65px;
}
.tags .active {
background-color: #7d32ea !important;
color: #fff !important;
}
.blog-detail {
color: #4d4d4d;
}
.blog-detail-tags a {
text-decoration: none;
margin-right: 40px;
color: #4d4d4d;
line-height: 32px;
font-size: 14px;
font-family: FZLTHJW;
padding: 5px 10px;
border-radius: 5px;
background-color: #f9fafa;
}
.post_detail .breadCrumb {
margin: 40px 0 20px;
}
.post_detail .breadCrumb a {
font-size: 24px;
color: #7d32ea;
line-height: 32px;
}
.post_detail .blog-detail-header h1 {
font-size: 32px;
line-height: 40px;
color: #000000;
font-weight: normal;
}
.blog-detail-prop {
color: #4d4d4d;
font-size: 14px;
line-height: 32px;
margin: 20px 0 10px;
}
.blog-detail-prop img {
margin-right: 10px;
}
.blog-detail-prop span {
margin-right: 40px;
}
.blog-detail-tags {
margin-bottom: 40px;
}
.blog-content a {
color: #7d32ea;
text-decoration: none;
word-break: break-all;
}
.blog-content h1 {
display: none;
}
.blog-content h2 {
color: #000000;
font-size: 24px;
line-height: 32px;
font-weight: normal;
margin: 40px 0 20px;
}
.blog-content h3 {
color: #000000;
font-size: 18px;
line-height: 24px;
font-weight: normal;
margin: 30px 0 20px;
}
.blog-content h4 {
color: #000000;
font-size: 16px;
line-height: 24px;
font-weight: normal;
margin: 20px 0 20px;
}
.blog-content p {
font-size: 14px;
line-height: 32px;
color: #4d4d4d;
word-break: break-all;
white-space: pre-wrap;
}
.blog-content pre, .blog-content code {
word-break: break-all;
}
.blog-content img {
max-width: 100%;
}
.post-blog {
height: 30px;
line-height: 30px;
display: inline-block;
padding: 0 20px;
border: 1px solid #7d32ea;
color: #7d32ea;
background-color: #fff;
text-align: center;
border-radius: 4px;
margin-bottom: 40px;
text-decoration: none;
}
.post-blog:hover {
text-decoration: none;
}
.post-blog img {
margin-right: 10px;
}
.empty-desc {
font-size: 24px;
color: #000000;
height: 100px;
}
.post-center {
text-align: center;
display: none;
}
.h5-tag {
display: none;
}
.blog-detail-tags img {
margin-right: 10px;
}
@media screen and (max-width: 768px) {
.guidance {
margin-bottom: 60px;
}
.blog-content h2 {
color: #000000;
font-size: 18px;
line-height: 24px;
font-weight: normal;
margin: 40px 0 20px;
}
.blog-content h3 {
color: #000000;
font-size: 16px;
line-height: 24px;
font-weight: normal;
margin: 30px 0 20px;
}
.blog-content h4 {
color: #000000;
font-size: 16px;
line-height: 24px;
font-weight: normal;
margin: 20px 0 20px;
}
.blog-content p {
font-size: 14px;
line-height: 32px;
color: #4d4d4d;
}
.post_detail .blog-detail-header h1 {
font-size: 24px;
}
._pages {
margin-left: 0;
}
._page_container ._jumper {
margin-left: 0 !important;
}
.article_right {
margin-left: 0 !important;
}
.blog-detail-prop span {
margin-right: 20px;
}
.container .prop-content span {
margin-right: 15px;
}
.container .tags img {
margin-right: 2px;
}
.container .prop-content img {
margin-right: 2px;
}
.post-center {
display: block;
}
.blog-banner {
position: unset;
width: 100%;
}
.blog-banner img {
width: 100%;
height: unset;
}
.blog-banner .pc-banner {
display: none;
}
.blog-banner .h5-banner {
display: block;
}
.blog-banner h1 {
font-size: 32px;
position: unset;
margin: 50px auto 40px;
text-align: center;
}
.article_right {
margin: 0 auto;
}
.container .blog-h3 {
font-size: 18px;
line-height: 24px;
max-width: unset;
}
.container .prop-content span {
font-size: 14px;
line-height: 32px;
}
.blog-img {
width: 100%;
height: auto;
}
.more {
flex-direction: column;
}
.more p {
margin-bottom: 20px;
}
#pagination {
margin-bottom: 50px;
}
.h5-tag {
position: relative;
display: block;
width: 100%;
z-index: 2;
background-color: #fff;
}
.h5-tag .h5-tag-header {
height: 48px;
border: 1px solid #EAEAEA;
display: flex;
align-items: center;
font-size: 12px;
color: #4d4d4d;
}
.h5-tag .h5-tag-header .add-blog a {
color: #4d4d4d;
}
.h5-tag .h5-tag-header span {
text-align: center;
flex: 1;
height: 100%;
line-height: 46px;
}
.h5-tag .h5-tag-header span img {
margin-right: 10px;
}
.h5-tag .h5-tag-header .filter {
border-right: 1px solid #EAEAEA;
}
.h5-tag .h5-tag-content {
margin: 20px 30px;
max-height: 430px;
overflow-y: scroll;
padding-bottom: 20px;
overflow-x: hidden;
}
.h5-tag .h5-tag-content .h5-tags {
font-size: 18px;
line-height: 24px;
margin-bottom: 20px;
color: #000;
}
.h5-tag .h5-tag-content .tags .tag {
margin-right: 10px;
margin-bottom: 0px;
display: inline-block;
white-space: nowrap;
max-width: 100%;
overflow: hidden;
text-overflow:ellipsis;
height: 32px;
line-height: 32px;
}
.h5-tag .h5-tag-content .tags .tag a {
font-size: 13px;
color: #4d4d4d;
}
.mask {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-color: #000;
opacity: .19;
}
.blue {
color: #7d32ea;
}
.gray {
color: #dfdfdf;
}
}
@media screen and (min-width: 768px) and (max-width: 1280px) {
.article_right {
margin: 0 auto;
}
.is-9 .tile, .guidance {
margin-top: 40px;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xzx666/blog.git
git@gitee.com:xzx666/blog.git
xzx666
blog
blog
b54551e4f9a313f1a9433ad2f6ba253b2fe4219f

搜索帮助