Support from Acquia helps fund testing for Drupal Acquia logo

Comments

codi’s picture

FileSize
521 bytes
11.81 KB

Cleaned up the media widget for image and videos. Added some nested form-item selectors to remove excess borders and added a border to the form-wrapper class.

pschuelke’s picture

I re-rolled codi's patch #1 with dave's patch (issue 1418412 #2) and added additional styles

pschuelke’s picture

one more little thing added. this replaces #2.

rerooting’s picture

Confirmed that this fixes everything, including issues I had with the media browser in 2.x . Thanks!

a.button is also really handy when using things like panels + rules_link for fancy interfaces, so supporting a snazzy a.button style will be very useful!

CoffeyMachine’s picture

Status: Needs review » Needs work
FileSize
14.19 KB
13.85 KB
11.81 KB

This is looking good, but there are still a few minor issues that I'd like to be fixed before committing this patch. See the attached screenshots.

  1. This created a gray box around the search button in the search form block. That should stay as it was.
  2. The top border seems to be missing from the a.button style.
  3. The a.button:active state needs to be styled, right now, it shows the check icon from the button-yes class. It should only show that if it has the button-yes class, which the button in the screenshot does not.

Thank you for all your work, once we can tighten these things up I will be happy to commit the patch.

Jackinloadup’s picture

This should fix the issues mentioned in #5.

Also used rubik icons for the media buttons.

Jackinloadup’s picture

Status: Needs work » Needs review
CoffeyMachine’s picture

Status: Needs review » Fixed

Hi, everyone. Thank you for all your work on this.

I took Jackinloadup's patch and tweaked several very minor things, some padding, font styles, and the launcher button style, and I'm very happy with how it looks.
I've committed this to the 7.x-4.x branch.

rerooting’s picture

Yeah it looks great! My mistake on confirming too early, I overlooked some details. Also works with epsacrop and other modules that add new buttons and components to the media field widget.

k4v’s picture

works great for me =)

rerooting’s picture

One more thing!

In file_entity 2.x, the background image for the modal media 'edit file' form does not repeat horizontally for whatever reason and looks pretty wonky. I'm just recanting this from memory, should be able to fix it with a very amount of css.

camdarley’s picture

Is the .form-wrapper border useful? It create ugly border on Rules elements.
rules form-wrapper

rerooting’s picture

@camdarley Yeah I saw that. Possibly we would need to be more selective of applying it to form-wrapper, I find that it's useful for what it was applied for.

I'll also see if I can't get around to fixing the edit file modal in #11 for file_entity, has anyone gave that a shot? I know that using media-2.x/file-entity-2.x in this way is new territory for some, and I'd be glad to explain how to reproduce it.

Heres a screenshot of what i'm talkin about:

File Entity issue

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

prinds’s picture

I have opened a seperate issue about the border problems mentioned in #12 here #2155277: Border on .form-wrapper