Comments (8)
If I'm not wrong, this is the original's grayscale behavior:
http://ironsummitmedia.github.io/startbootstrap-grayscale/
When you scroll through the sections, the navbar highlights the section you are currently viewing.
from personal-jekyll-theme.
It does that as expected but you can end up in a situation where 2 are highlighted at the same time by clicking on one and then scrolling to a different one. The only you clicked will stay lighter and the one you scroll to will activate and highlight as well. If you just grabbed this from somewhere else it may not be your mistake.
from personal-jekyll-theme.
Yes, the repo that I forked was a mashup of grayscale and agency theme's.
I see what you mean now, I think grayscale theme has a fix for this. I will give it a try to integrate it :)
Thanks!
from personal-jekyll-theme.
I was able to repro it on http://panossakkos.github.io/personal-jekyll-theme/ and not in http://ironsummitmedia.github.io/startbootstrap-grayscale.
I will have a look at the grayscale css and fix it. Thanks for reporting it! 👍
from personal-jekyll-theme.
This occur because in the line grayscale.scss:115 the background highlight including to :focus pseudo-class. It is when the object is selected, if you unselect this item this remove the background.
An possible solution is replace this sentence for:
&:hover,
&.active {
outline: none;
background-color: rgba($light, 0.3);
}
&:focus {
outline: none;
background-color: inherit;
}
from personal-jekyll-theme.
Other option (Perhaps the best, since it is due to this behavior) is add the line:
$anchor.blur();
in the file grayscale.js after to line 19.
from personal-jekyll-theme.
In grayscale theme have removed the :focus style. The problem is that this method not indicate the selected item with tab navigation, because :focus selection not have style.
I applied a fix using javascript for focus out after the transition scrolling is ended.
from personal-jekyll-theme.
Awesome. Thanks @PanosSakkos and @joariasl
from personal-jekyll-theme.
Related Issues (20)
- Add static text to prefix typed text. HOT 1
- Highlight codeblocks
- Public Docker image for use Personal-jekyll-theme HOT 9
- Link in Repo Header doesn't work any more HOT 6
- Demo site not online. HOT 1
- Minimize output html
- Combine output css files into one
- Combine output javascript files into one
- Added designed.html HOT 1
- How to use this theme in Hosting sites ? HOT 2
- Generate intermediate blog collection pages for year, month and date HOT 3
- Disqus comment block not showing up on production HOT 10
- How to use Particle.js for landing wallpaper image
- Baseurl issue HOT 1
- I need help adding a portfolio page HOT 8
- resizing should be avoided when using dynamic-typing with multiple lines
- Links to cross-origin destinations are unsafe
- Example Github Pages site is served not from the master branch HOT 2
- GitHub Pages failed to build your site. HOT 1
- Empty archives and blogs list page HOT 2
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 personal-jekyll-theme.