MVC 3, CSS, Razor, and Visual Studio 2010

How do you guys manage all the css styles in MVC 3 projects? Even after I installed SP1 for Visual Studio 2010, I found that the CSS style manager cannot recognize style links from layout view files.

I think Expression Web does not yet have support for this stuff. Is there anything you can use to help yourself and manage this whole mess, rather than doing it manually?

+5
source share
1 answer

I created some pretty complex styles and always used the same approach. Good clean syntax and good comment in css files. Like this:

/***** /Products/Edit ******/
#productsContainer { background-color: #99bbff; }
#productsContainer fieldset.edit { margin: 1em 0 .2em 0; background-color: #dadada; }
#productsContainer fieldset.edit label { display: block; }
/***************************/

, , , - CleverCSS: https://github.com/dziegler/clevercss, , . CleverCSS :

/***** /Products/Edit ******/
#productsContainer
    background-color: #99bbff
    fieldset.edit:
        margin: 1em 0 .2em 0
        background-color: #dadada
        label:
            display: block;
/***************************/

, - WebStorm (http://www.jetbrains.com/webstorm/) javascript, html, css .. , Expression Web ( , MVC).

+1

All Articles