Closed cncoleman closed 9 years ago
I would rather not have styles inline. I did add a "bordered" class to the component display div (since we may want other components bordered at times-- not graph-specific) but There was a big margin around the graph inside the border. Somehow I missed the margin 40px added in the standalone.css
Happens to me as well. Our CSS rules are a bit scattered around.
On Sun, Nov 1, 2015 at 8:27 AM -0800, "Nicole Coleman" notifications@github.com wrote:
I would rather not have styles inline. I did add a "bordered" class to the component display div (since we may want other components bordered at times-- not graph-specific) but There was a big margin around the graph inside the border. Somehow I missed the margin 40px added in the standalone.css
— Reply to this email directly or view it on GitHub.
It should work to style the containing element instead. e.g.
Or it's possible to style all graph views with CSS (make sure to load the CSS file after the palladio.css file) using:
There is a difference in where the border is located between the 2 examples and therefore in the total size of the containing element, but they are otherwise similar.
Generally speaking, this CSS-based approach is what should be used to over-ride styles for the visualization components. It should be possible to use selectors based on container elements to style the same component differently at different places on a single page.