From 062a5f3f9269d1ca508f83004ff1a36e62c5e991 Mon Sep 17 00:00:00 2001 From: zoujinda <826835384@qq.com> Date: Sat, 27 Mar 2021 17:11:19 +0800 Subject: [PATCH] fix style --- layouts/docs/baseof.html | 1 + layouts/index.html | 2 +- layouts/partials/head.html | 3 --- layouts/search/list.html | 2 +- static/css/common.css | 23 +--------------------- static/css/docdetail.css | 39 ++++++++++++++++++++++++++++++-------- 6 files changed, 35 insertions(+), 35 deletions(-) diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html index 733ae989d..b00338668 100644 --- a/layouts/docs/baseof.html +++ b/layouts/docs/baseof.html @@ -1,6 +1,7 @@ {{ partial "head.html" . }} +
diff --git a/layouts/index.html b/layouts/index.html index 653b34a9f..973cb0c69 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -2,7 +2,7 @@ {{ partial "head.html" . }} - +
diff --git a/layouts/partials/head.html b/layouts/partials/head.html index a87091f3e..108b6be81 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -7,9 +7,6 @@ {{ .Title }} - - - diff --git a/layouts/search/list.html b/layouts/search/list.html index 46130fdcb..533b0636d 100644 --- a/layouts/search/list.html +++ b/layouts/search/list.html @@ -2,7 +2,7 @@ {{ partial "head.html" . }} - +
diff --git a/static/css/common.css b/static/css/common.css index e28977380..b296e902b 100644 --- a/static/css/common.css +++ b/static/css/common.css @@ -326,31 +326,10 @@ i { display: none; } -@media screen and (max-width: 1900px) { - .container { - width: 960px; - margin: 0 auto; - } -} - -@media screen and (max-width: 1660px) { - .container { - width: 800px; - margin: 0 auto; - } -} - -@media screen and (max-width: 1490px) { - .container { - width: 640px; - margin: 0 auto; - } -} - @media screen and (max-width: 1000px) { .container { - width: 315px; + width: 315px !important; margin: 0 auto; } .not-found { diff --git a/static/css/docdetail.css b/static/css/docdetail.css index 1212f0e9a..0549a9b65 100644 --- a/static/css/docdetail.css +++ b/static/css/docdetail.css @@ -27,23 +27,22 @@ #version-select .option { position: absolute; - width: 100%; + width: 138px; background: #FFFFFF; box-shadow: 0px 6px 20px 0px rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 47, 167, 0.5); - left: 0; + left: 60px; top: 57px; display: none; } #version-select .option a { - font-size: 18px; - padding: 0 40px; + font-size: 14px; + padding-left: 13px; display: block; cursor: pointer; color: rgba(0, 0, 0, 0.7); - line-height: 30px; - height: 30px; + line-height: 24px; box-sizing: border-box; position: relative; z-index: 3; @@ -307,7 +306,7 @@ color: #36383D; line-height: 24px; margin-top: 40px; - padding-bottom: 400px; + padding: 150px 0 400px 0; } #page h1,#page h2,#page h3, @@ -593,6 +592,27 @@ } } +@media screen and (max-width: 1900px) { + .container { + width: 960px; + margin: 0 auto; + } +} + +@media screen and (max-width: 1660px) { + .container { + width: 800px; + margin: 0 auto; + } +} + +@media screen and (max-width: 1490px) { + .container { + width: 640px; + margin: 0 auto; + } +} + @media screen and (max-width: 1000px) { #menu-box,.top-link,#title-evaluate { display: none; @@ -612,6 +632,7 @@ font-size: 14px; color: #002FA7; line-height: 24px; + margin-top: 70px; } #h5-menu a span { @@ -630,7 +651,9 @@ #h5-menu a .icon-prev { background-image: url('../img/detail/blue-left.svg'); } - + #page { + padding: 0 0 80px 0; + } #markdown { width: 100%; } -- Gitee