The new Views 3 UI was developed with Seven as the admin theme, which looks great.
There are some obvious issues with Bartik which can be fixed.

However, if we clean it up in Stark first, there will be better defaults for both Seven/Bartik, and other contrib admin themes.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

However, if we clean it up in Stark first, there will be better defaults for both Seven/Bartik, and other contrib admin themes.

+1000

merlinofchaos’s picture

My +1000 got eaten somehow.

3rdLOF’s picture

Views 3 on Rubik is kaput.

dgastudio’s picture

sub.

lelizondo’s picture

Status: Active » Needs work
FileSize
1.83 KB

Here is an initial patch fixing most of the problems when adding a view (before editing).

Still needs a lot of work.

jessebeach’s picture

subscribe

jessebeach’s picture

In the changes to views-admin.ctools.css, I don't see why the !importants are necessary:

.ctools-content ul {
  margin: 0 !important;
  padding: 0 !important;
}

Can you provide an example where there's a style the won't be overridden without them?

lelizondo’s picture

FileSize
1.83 KB

That line affects the new links menu on admin/structure/views. The ones with edit, disable, clone and export.

But you're right, it can be done in another way.

Here is the patch that fixes that.

lelizondo’s picture

Status: Needs work » Needs review
FileSize
3.26 KB

Here is a working patch that fixes all evident issues. This need some testing with other themes and specially test it to check if nothing got broken with Seven.

lelizondo’s picture

FileSize
3.66 KB

use this patch since the previous one broke some things in seven.

3rdLOF’s picture

FileSize
43.19 KB

Ltest update (prior and after these patches) leaves the Views edit UI themeless and empty, even using Seven.

3rdLOF’s picture

Correction: It appears this happens ONLY some custom made views, not default ones.

lelizondo’s picture

That's weird. This is just pure CSS, if it looks like that is because some files are not loading.

3rdLOF’s picture

FileSize
18.32 KB
lelizondo’s picture

I enabled Rubik and Tao from git and I'm getting tons of errors, I can't fix this if Tao/Rubik are not working properly.

3rdLOF’s picture

lelizondo’s picture

Can you please post what versions are you using?

3rdLOF’s picture

lelizondo’s picture

I'm sorry, I'm using those versions and all I get is a WSOD.

3rdLOF’s picture

tim.plunkett’s picture

Any WSOD from Rubik and Tao are almost certainly unrelated to Views, please let's stay on topic here.

3rdLOF’s picture

Should we post any issues with any admin themes at all? Just asking so as not to pollute the thread

tim.plunkett’s picture

Issues relating to improving the CSS of the new Views 3 UI, yes. Once again, working towards Stark here, not every contrib admin theme.

3rdLOF’s picture

I removed all references to Rubik and Tao.

merlinofchaos’s picture

Yes. It needs to look good in Stark first. In theory, if the base CSS looks good in stark, then anything else is going to be adjusting for quirks in the CSS and we can let admin themes handle that.

Now, major problems with major themes we can deal with, *if* it's sensible to do so.

lelizondo’s picture

Can anyone please review #10 with Stark, Bartik and Seven and report issues..

3rdLOF’s picture

Just a quick note for those folks who happen to wonder in here with issues with Rubik. I slapped together a temp CSS file that should solve most of the issues with the latest Views 3 Dev version and Rubik. Not a permanent fix but it should hold them over for the time being until things get cleaned up.

I hope that is ok to post this, my apologies if it is not. I figure it could save everyone some headaches:

http://drupal.org/node/1101086

riyasmtpm’s picture

Title: Clean up Views 3 UI for Stark theme » Clean up Views 3 UI for other admin themes
bojanz’s picture

@riyasmtpm
Don't abduct issues. Nobody will help you here. You need to open a new issue with your question, and wait there.

Shadlington’s picture

Removing irrelevant tag as an excuse to sub :)

lelizondo’s picture

@kannary what's the difference between the patches in this issue and the one in http://drupal.org/node/1101086

3rdLOF’s picture

@lelizondo:

It is not a patch. It is simply a temporary CSS for people using Rubik that do not want / cannot switch to Seven for whatever reason. (my case)

Patches here are for Seven and Stark.

If you have any questions post them in the issue at that link, not here.

joachim’s picture

Subscribe.

On Garland, the main problems are:

- buttons are far too big
- dividing lines are faint to the point of being invisible

Will test the patch when I have time :)

jessebeach’s picture

@lelizondo I'm verifying #10

jessebeach’s picture

@lelizondo I'm having trouble applying your patches. I need to go through them and remove the a/ and b/ characters in the paths e.g.

diff --git a/css/views-admin.css b/css/views-admin.css

Are you creating the patches from the root of your views module?

To apply, I cd to the root of my views module, then run

patch -p0 < path-to-patch/file.patch
bojanz’s picture

@jesse
When the patch has a/ and b/ (which is the new default patch format), you apply the patch with "patch -p1 < file.patch" (from the root directory)

lelizondo’s picture

@jessebeach there are multiple files affected in the patch, that's way you should apply the patch from the views root directory

jessebeach’s picture

@bojanz and @lelizondo, got it, thanks for clarifying. @lelizondo, sorry to imply you were doing something incorrectly. I should have added the caveat that it was most likely something I was doing, which ended up being the case.

lelizondo’s picture

no problem @jessebeach

please report back with issues you find with the patch.

joachim’s picture

Patch fixes the button size for me, but it doesn't change the faintness of the lines.

Also, display name hover is funny on Garland.

jessebeach’s picture

FileSize
13.81 KB

This patch incorporates @lelizondo's changes and extends them. I moved as much presentation code from views-admin.theme.css to views-admin.seven.css as I felt I could without completely gutting .theme.css. Views should have a basic look and feel. For example, the rounded corners on buttons and font colors were moved to .seven.css, but the colors for borders were not, since these are sufficiently agnostic to a particular admin theme. The borders also chunk the ui up visually and make it easier to use.

jessebeach’s picture

Title: Clean up Views 3 UI for other admin themes » Clean up Views 3 UI for Stark theme

changing the title of the issue to reflect that these changes affect Stark only.

merlinofchaos’s picture

Title: Clean up Views 3 UI for Stark theme » Clean up Views 3 UI for other admin themes
FileSize
7.12 KB
37.35 KB

List page

  • The reset button is poorly positioned.
  • The dropdown buttons are still oddly large.

Edit page

  • Bucket headers are all-capsed, which seems out of place. That's a seveny thing.
  • The UI is oddly wide; I have nothing apparently pushing it open, and this same view isn't > 1000px in Seven.
  • All of the text in the modal seems really big.
  • Like on the edit page, dropdown buttons oddly large.

All in all that's not many complaints.

merlinofchaos’s picture

Hmm. Scratch that.

I applied then unapplied the patch and things changed.

Despite that I cleared caches and shift reloaded multiple times., (*&)(*&)(*ing Chrome.

merlinofchaos’s picture

Ok, the buttons are normal.

Modal text still oddly large, UI still oddly wide, bucket titles still all-capsed.

merlinofchaos’s picture

The UI seems to be getting pushed wide by the query in pre.

merlinofchaos’s picture

Title: Clean up Views 3 UI for other admin themes » Clean up Views 3 UI for Stark theme

Crosspost killed title.

jessebeach’s picture

Title: Clean up Views 3 UI for other admin themes » Clean up Views 3 UI for Stark theme

@merlinofchaos, I think that when you say the Ui is oddly wide, you mean that the content (tables, right?) are busting out of the viewport width, not that that the page fills the viewport 100%.

jessebeach’s picture

Assigned: Unassigned » jessebeach
FileSize
16.75 KB

This patch incorporates changes for these issues:

  • The reset button is poorly positioned.
  • Bucket headers are all-capsed, which seems out of place. That's a seveny thing.
  • The UI is oddly wide; I have nothing apparently pushing it open, and this same view isn't > 1000px in Seven.
    • The UI seems to be getting pushed wide by the query in pre.
  • All of the text in the modal seems really big.
merlinofchaos’s picture

Status: Needs review » Fixed

Seriously rockin' work on this! The UI is usable on Stark. And yes, it was busting out of the viewport because of the long query. A little wrapping helps, though I think there's still a bigger problem that I want to see if we can deal with.

jessebeach’s picture

@merlinofchaos, I added white-space:pre-wrap to the <pre> elements. They shouldn't be busting the page wide any more. A wide table though, would still bust the page width.

merlinofchaos’s picture

Yeah. I would like to separate the preview and the main UI so that can't happen. I'm going to create a separate issue for that.

That's here: http://drupal.org/node/1104204

Status: Fixed » Closed (fixed)

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