zend-developer-tools icon indicating copy to clipboard operation
zend-developer-tools copied to clipboard

Feature: CSS Markup

Open diemuzi opened this issue 12 years ago • 5 comments

Would it be possible to add all the CSS Markup into a CSS File so that when you view the source in a browser you don't have to scroll to find your code?

Right now I have to scroll past all the ZDT CSS Markup in the source to look at my own source and it can be quite annoying at times.

diemuzi avatar Jul 26 '13 15:07 diemuzi

@diemuzi the idea is to make everything in a single HTTP request. That's the good/bad part of the toolbar.

Ocramius avatar Jul 26 '13 15:07 Ocramius

Hrmm... Perhaps a flag that we can set to either make it a single request or file based?

OR

Perhaps the CSS can be loaded at the end of the page? That would be fine too actually =)

diemuzi avatar Jul 26 '13 15:07 diemuzi

@diemuzi using a custom CSS placeholder that collects all of the CSS from the various toolbar components would be fine.

Ocramius avatar Jul 26 '13 15:07 Ocramius

move style to body: (http://stackoverflow.com/questions/2830296/using-style-tags-in-the-body-with-other-html)

view/zend-developer-tools/toolbar/style.phtml, Line 2: < style type="text/css" media="screen" scoped>

src/ZendDeveloperTools/Listener/ToolbarListener.php, Lines 161-162: $injected = preg_replace('/</body>/i', $style . $toolbar . "\n< / body>", $response->getBody(), 1); //$injected = preg_replace('/</head>/i', $style . "\n", $injected, 1);

oliverkoenig avatar Feb 06 '14 17:02 oliverkoenig

This repository has been closed and moved to laminas/laminas-developer-tools; a new issue has been opened at https://github.com/laminas/laminas-developer-tools/issues/19.

weierophinney avatar Dec 31 '19 22:12 weierophinney