Comments (2)
yeah that's a know shortcoming of the current implementation. You are right, it is because Übersicht scopes all css rules to the widget id, so that css styles don't leak across widgets. This doesn't work for keyframe animations tho. A workaround I have used in the past is to just include a style tag in your render method and put the keyframe definition in there, like:
render: -> """
<div>
<style>
@-webkit-keyframes spin {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
</style>
<div> content goes in here </div>
</div>
"""
You can then use the update method to insert your content and/or apply css classes to trigger the animation. The CircleCi widget has an example of that actually.
from uebersicht.
Oh, perfect. Hadn't thought of that. Thanks!
-Brett
On 20 Aug 2014, at 2:58, Felix wrote:
yeah that's a know shortcoming of the current implementation. You are
right, it is because Übersicht scopes all css rules to the widget id,
so that css styles don't leak across widgets. This doesn't work for
keyframe animations tho. A workaround I have used in the past is to
just include a style tag in your render method and put the keyframe
definition in there, like:render: -> """ <div> <style> @-webkit-keyframes spin { from { -webkit-transform: rotate(0deg); } to { -webkit-transform: rotate(360deg); } } </style> <div> content goes in here </div> </div> """You can then use the update method to insert your content and/or apply
css classes to trigger the animation. The CircleCi
widget has an
example of that actually.
Reply to this email directly or view it on GitHub:
#35 (comment)
from uebersicht.
Related Issues (20)
- Homebrew version error
- Any way to detect when a widget goes from visible to hidden?
- MS Edge losing focus on toolbar menus when Ubersicht is running
- How to find the widget id for specific widget? HOT 2
- Add `eventListener` after render in JSX? HOT 1
- Your GetWidgets page need to be organized by Arch Type
- HELP shell script formatting ignored? HOT 1
- I want to click on the widget with ⌘ + left-click HOT 2
- Sonoma: Uebersicht App does not not show widget list any more (although all widgets were launched properly) HOT 45
- Uebersicht no longer takes full screen height on latest Sonoma beta HOT 50
- Übersicht doesn't prompt for calendar permission in Sonoma HOT 7
- Native Mac OS widgets
- übersicht not starting up on sonoma, the little u icon isn't in the menu bar HOT 1
- Widgets not showing in alphabetical order on Sonoma
- Widget screen selection is lost on macOS Sonoma after sleep HOT 2
- Cannot hide scrollbars in widget when overflow css is *not* set to hidden HOT 1
- THANKS HOT 1
- how does one read a file in a jsx widget? HOT 1
- Feature request: support running commands without a shell HOT 1
- Support streaming inputs ? HOT 1
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 uebersicht.