Closed (outdated)
Project:
Chaos Tool Suite (ctools)
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
2 May 2012 at 10:46 UTC
Updated:
20 Jul 2026 at 20:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
bojanz commentedHere's a patch. I've opened a matching Views issue: #1557722: Remove dropbutton css after it gets committed to CTools.
Notes:
1) Modified ctools_add_css() to support theme specific CSS. Do we want to allow overriding styles for core themes via the theme directory, like Views does? See views_ui_get_admin_css() for context.
2) Why do we have the button.css / dropbutton.css separation in the first place?
3) Didn't add the *.theme.css files (Views separates structure into the main file and borders and elementary colors into *.theme.css). Not sure if we need / want it in this context.
4) Right now due to the way dropbuttons are styled (position: absolute in two places), they escape the views tablerow unless it has vertical-align: top specified.
Not sure if I can fix this generically this without modifying the CSS (and I didn't want to do that in first pass).
Comments?
Comment #2
merlinofchaos commentedI believe the styling was left in Views because, at the time, we considered the styling Views-specific. This may not actually be true, however. I will see if I can get jbeach to comment on this.
Comment #3
panchoThis would be really awesome.
It would lead to a quite some more projects starting to implement dropbuttons.
Even more we should consider backporting Dropbutton from D8, in the sense of taking over as much as possible without breaking the basic dropbutton API in CTools 7.x-1.x.
See the D8 core issue plus followups:
But starting with the CSS might be fine.
Comment #5
panchoEDIT: Sorry, something got wrong with this one.
Comment #6
panchoNow, let's start with a plain reroll of #1.
Comment #7
panchoFine.
And now there's one rule that in the meantime has been removed from Views UI and should be removed here, too:
Enclosed patch is a 1:1 replacement for the Dropbutton CSS in current Views UI.
Hopefully RTBC.
Comment #8
mgifford#7: ctools-dropbutton-views-css-1557662-7.patch queued for re-testing.
Comment #9
joachim commentedPatch works great. Please commit!
(I'd be inclined to say this is a bug, because without it, the dropbuttons look awful:
Comment #10
japerryReview looks okay, but when I test it on the ember theme, it looks somewhat broken :-(
Comment #11
japerryDrupal 7 is no longer supported, closing.