Search Results

Search found 2 results on 1 pages for 'monokai'.

Page 1/1 | 1 

  • How can I read out the CSS text via Javascript as defined in the stylesheet?

    - by Monokai
    I was thinking of using Javascript to automatically transform CSS3 attributes like border-radius, transform, box-shadow, etc. to their browser specific counterparts. I did some research and found that you can iterate over the stylesheets defined via document.styleSheets. You can find the CSS rules via document.styleSheets[0].cssRules[0].cssText. I want to modify the CSS rules that contain CSS3 attributes by injecting the browser specific attributes with the appropriate vendor-prefix, like -webkit-border-radius, moz-border-radius, etc. However, it seems that the cssText property is preprocessed in each browser, to filter out CSS attributes that it doesn't understand. That practically breaks this idea. Question: is there any way to retrieve the CSS text exactly as defined in the stylesheet? Or: is there another way to accomplish this via Javascript? I'd like to maintain clean CSS files without the need for defining each attribute multiple times for each specific browser.

    Read the article

  • Cant apply color theme to one frame in Emacs?

    - by prtksxna
    This is my emacs file http://pastie.org/1003551. I want the theme to change when I am in shell-mode. But what happens is that the theme gets applied on all the frames. I set the variable color-theme-is-global to nil, but still the same problem is persisting. (add-hook 'shell-mode-hook 'color-theme-monokai-terminal) (set-variable 'color-theme-is-global nil) These are lines 81 and 83 in my .emacs file. What should I do to make it work?

    Read the article

1