From 2900da086cad35a264c4f4a5af08f82119063547 Mon Sep 17 00:00:00 2001 From: krircc Date: Sat, 23 Jun 2018 22:31:17 +0800 Subject: [PATCH] fix mobile style in cn home --- layouts/index.html | 16 ++++++++-------- static/css/actix.css | 22 ++++++++++++++-------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index 4391657..62a2de2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -214,12 +214,7 @@
- +

灵活的请求响应

@@ -293,10 +288,15 @@ }` "rust" "" }}
+ +
- - diff --git a/static/css/actix.css b/static/css/actix.css index 3c0537d..f02d0e7 100644 --- a/static/css/actix.css +++ b/static/css/actix.css @@ -603,16 +603,10 @@ h5:hover a { #act-cn-tabs { - padding: 2rem 1.5rem 0.5rem 2rem; + padding: 2rem 2rem 1rem 2rem; margin: 2rem auto; background:#dceaea; } - -.act-menu{ - width: 24%; - float: right; - border-right:#cccccc solid 1px; -} .act-menu li{ text-align:center; line-height:44px; @@ -620,7 +614,19 @@ h5:hover a { overflow:hidden; } .act-menu li.off{ + padding: 0 1.5rem; background:#FFFFFF; - color:#000000; + color:#589c9e; font-weight:bold; +} + +@media (min-width: 768px) { + #act-cn-tabs { + display: flex; + flex-flow: row; + padding: 2rem 1rem 1rem 2rem; + } + #act-cn-tabs #content { + width: 77%; + } } \ No newline at end of file