Giter VIP home page Giter VIP logo

Comments (5)

davorpa avatar davorpa commented on May 27, 2024 2

Hey @olifre

Nice enhacement.

Since document is HTML5 doctyped, close meta tags are not needed. To maintain same code guidelines on entire template I recommend remove the trailing slash.

The color #151515 matches with defined for body background...

$cod-grey: #151515;

$body-background: $cod-grey !default;

... but according to Safari guidelines, an extra meta tag is needed to make the color effective apple-mobile-web-app-capable (What implies enable it?). Moreover, the color can only take three values: default, black and black-translucent. With this last, body background color is used to compute status bar color but with texts in white and page content overlaps it (20px). For this theme, it could serve black value, it isn't?

Then the snippet looks as some like this:

<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#151515">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#151515">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">

What do you think about?

from hacker.

davorpa avatar davorpa commented on May 27, 2024 2

Did you already test this with a Safari mobile browser?

Sorry, me neither, no iPhone 😣

I've been taking a look at some webs, also the other themes and in Cayman was approved with black-translucent and not -capable
pages-themes/cayman@fa96379
Screenshot_20210629-215258

There are enough top gap how to allow overlap mode, so black-translucent it's fine. With black it would also look good due to this theme has a quite dark background color.
Screenshot_20210629-215216

So... both are valid for me.

<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#151515">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#151515">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#151515">
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#151515">
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="black">

Fix it as you wish 😉. I review your PR if I can 🤗.

from hacker.

olifre avatar olifre commented on May 27, 2024 2

I think I'd also expect black-translucent to work fine, and not specifying -capable seems more safe to me. While this does not match the Safari documentation, the screenshot you found seems to show it works nevertheless, and it seems more safe since it does not change other behaviour 😉.
I can also only suggest here, we'll have to wait for someone with commit privileges to review and merge.

from hacker.

olifre avatar olifre commented on May 27, 2024 1

What do you think about?

That looks like several great improvements, thanks for this research 👍 !
Did you already test this with a Safari mobile browser? I don't have access to one, but a test might be worthwhile to check if there are also unintended side-effects from the "capable" meta tag.

from hacker.

davorpa avatar davorpa commented on May 27, 2024

Yep.

The screenshots are captured using a Samsung S5 on Chrome.

I hope that any admin approve and release. It seems that theme projects are a bit abandoned.

Meanwhile there will be to wait for Travis CI build

from hacker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.