Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin theme inconsistency #476

Closed
vytux-com opened this issue Mar 11, 2015 · 5 comments
Closed

Admin theme inconsistency #476

vytux-com opened this issue Mar 11, 2015 · 5 comments

Comments

@vytux-com
Copy link
Contributor

I just noticed that Server Information page has different formatting for the "My page" "Language" "Logout" menu bar.

This seems to be caused by:
ob_start();
phpinfo(INFO_ALL & ~INFO_CREDITS & ~INFO_LICENSE);
preg_match('%<style type="text/css">(.?)</style>.?(.*)%s', ob_get_clean(), $matches);
$style = $matches[1];
$html = $matches[2];

and then echoing $style which includes this line: a:link {color: #9; text-decoration: none; background-color: #fff;}

@fisharebest
Copy link
Owner

The code uses <style scoped></style> so it should only apply the style to that block.

I do not see any difference. Which browser are you using?

@vytux-com
Copy link
Contributor Author

Chrome on windows. I will do some more testing on other browsers later today/tomorrow

@fisharebest
Copy link
Owner

Can you explain exactly

has different formatting

Perhaps I have the same problem, but cannot see it?

@vytux-com
Copy link
Contributor Author

Just checked and indeed it does seem to be a Chrome issue, as in Firefox it seems OK.

Here are the screenshots of the affected area - first one being server info and second all other admin pages.

webtrees admin - server info
webtrees admin - all others

@vytux-com
Copy link
Contributor Author

On further research it seems that scoped CSS is a Firefox only feature: http://caniuse.com/#feat=style-scoped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants