Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logo移动端显示有点纠结... #343

Closed
tiexo opened this issue Oct 27, 2018 · 4 comments
Closed

logo移动端显示有点纠结... #343

tiexo opened this issue Oct 27, 2018 · 4 comments
Labels
bug:extension Issues about widgets, comment, share, search, and plugins.

Comments

@tiexo
Copy link

tiexo commented Oct 27, 2018

刚刚试了下最新的V2版主题,发现logo显示有点纠结。
官网移动端是这样的:

1

但是我设置后是这样的:

default

看起来比较怪,感觉主要原因有两点:

  1. 之前的版本logo是文字+图片,V2版本好像只能设置图片,那么对一些logo不包含名称的网站来说,看起来比较怪。
    (能不能增加一个文字logo?)

  2. 如果导航栏菜单数量少,都会居中显示,不如填充满那样看起来舒服。
    (是不是可以考虑菜单居左,搜索图标居右?)

@ppoffice
Copy link
Owner

ppoffice commented Oct 27, 2018

@tiexo

  1. V2同样支持文字logo.
- logo: /images/logo.svg
+ logo:
+     text: ICARUS
  1. 如果需要更紧凑的导航栏的话,可以手动修改source/css/style.styl.
diff --git a/source/css/style.styl b/source/css/style.styl
index b35b50b..b73b1b2 100644
--- a/source/css/style.styl
+++ b/source/css/style.styl
@@ -76,13 +76,15 @@ img.thumbnail
             color: hsl(217, 71%, 53%)
             background-color: transparent
     @media screen and (max-width: 1087px)
+        & > .container
+            display: flex
         .navbar-menu
-            justify-content: center
             box-shadow: none
-        .navbar-start
-            margin-right: 0
-        .navbar-end
-            margin-left: 0
+    //         justify-content: center
+    //     .navbar-start
+    //         margin-right: 0
+    //     .navbar-end
+    //         margin-left: 0

image

@ppoffice ppoffice added the discussion Any questions about this theme. label Oct 27, 2018
@tiexo
Copy link
Author

tiexo commented Oct 29, 2018

谢谢!

@tiexo tiexo closed this as completed Oct 29, 2018
@tiexo
Copy link
Author

tiexo commented Nov 3, 2018

@ppoffice 按照你说的修改后,发现一个问题。
在移动端点击" X " 标志无法关闭搜索框
default

@tiexo tiexo reopened this Nov 3, 2018
@ppoffice
Copy link
Owner

ppoffice commented Nov 3, 2018

@tiexo 这个是因为关闭按钮正好在搜索按钮的正上方导致点击关闭的时候同时点到了搜索的原因,感谢提醒

@ppoffice ppoffice added bug:extension Issues about widgets, comment, share, search, and plugins. and removed discussion Any questions about this theme. labels Nov 3, 2018
@tiexo tiexo closed this as completed Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:extension Issues about widgets, comment, share, search, and plugins.
Projects
None yet
Development

No branches or pull requests

2 participants