Comments (5)
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...
hacker/_sass/_default_colors.scss
Line 5 in 7b7303a
hacker/_sass/jekyll-theme-hacker.scss
Line 4 in 7b7303a
... 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.
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
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.
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.
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.
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.
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)
- apt upgrade HOT 1
- cd
- How to remove header on github pages. HOT 2
- Hello HOT 2
- collapsed section failing HOT 3
- Hey, I just discovered this cool repository thanks to the GitNews app (https://gitnews.learn.uno) 🚀
- fonts are not working
- 786
- Bugado
- Great theme - some suggestions
- navigation docs
- provide a index file with layout
- Hack
- Hi
- Hacker HOT 2
- Option to remove horizontal line on header HOT 1
- Support Google Analytics 4 (GA4)
- Hacker theme does not print well
- Madara HOT 1
- CODEOWNERS errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hacker.