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

css solution #1

Open
john-hu opened this issue Jul 8, 2015 · 2 comments
Open

css solution #1

john-hu opened this issue Jul 8, 2015 · 2 comments

Comments

@john-hu
Copy link
Owner

john-hu commented Jul 8, 2015

we should put real battery percentage at dataset.

.sb-icon-battery[data-level]:after {
content: attr(data-level);
text-align: center;
position: absolute;
width: 2.5rem;
height: 1.6rem;
line-height: 1.6rem;
color: black;
}

@john-hu
Copy link
Owner Author

john-hu commented Jul 8, 2015

read real level value:
window.core.batteryOverlay._battery.level * 100

@john-hu
Copy link
Owner Author

john-hu commented Jul 8, 2015

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

1 participant