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

Hide gradual minutes (1,2,3,4) and show by click on empty space or hover #4

Open
yaitskov opened this issue Jun 19, 2019 · 1 comment

Comments

@yaitskov
Copy link

In my case showing buttons for minutes 1, 2, 3 is overkill.

This UI items should be less obvious.
let's add flag to hide them by default and show if user clicks in empty space between 0 and 5 minutes or hover mouse cursor there.

@luncheon
Copy link
Owner

luncheon commented Nov 19, 2020

Minutes that do not end with 0 or 5 can be hidden with following CSS.

.clocklet-tick--minute:not([data-clocklet-tick-value$="0"]):not([data-clocklet-tick-value$="5"]) {
  display: none;
}

If you do not want to hide the selected minute, use following CSS.

.clocklet-tick--minute:not([data-clocklet-tick-value$="0"]):not([data-clocklet-tick-value$="5"]):not(.clocklet-tick--selected) {
  display: none;
}

https://codepen.io/luncheon/pen/ExyzxBZ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants