Last active
December 10, 2015 15:58
-
-
Save tsubik/4457378 to your computer and use it in GitHub Desktop.
Twitter bootstrap asp.net mvc 4 and sass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
padding-top: 40px; | |
padding-bottom: 40px; | |
background-color: #f5f5f5; | |
} | |
.form-signin { | |
max-width: 300px; | |
padding: 19px 29px 29px; | |
margin: 0 auto 20px; | |
background-color: #fff; | |
border: 1px solid #e5e5e5; | |
-webkit-border-radius: 5px; | |
-moz-border-radius: 5px; | |
border-radius: 5px; | |
-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05); | |
-moz-box-shadow: 0 1px 2px rgba(0,0,0,.05); | |
box-shadow: 0 1px 2px rgba(0,0,0,.05); | |
} | |
.form-signin .form-signin-heading, | |
.form-signin .checkbox { | |
margin-bottom: 10px; | |
} | |
.form-signin input[type="text"], | |
.form-signin input[type="password"] { | |
font-size: 16px; | |
height: auto; | |
margin-bottom: 15px; | |
padding: 7px 9px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "compass/reset"; | |
@import "twitter/bootstrap"; | |
@import "twitter/responsive"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import "compass/reset"; | |
@import "twitter/bootstrap"; | |
body | |
{ | |
padding-top: 40px; | |
padding-bottom: 40px; | |
background-color: $white; | |
} | |
.form-signin | |
{ | |
max-width: 300px; | |
padding: 19px 29px 29px; | |
margin: 0 auto 20px; | |
background-color: $formActionsBackground; | |
border: 1px solid $inputBorder; | |
@include border-radius($baseBorderRadius); | |
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.05)); | |
.form-signin-heading, .checkbox | |
{ | |
margin-bottom: 10px; | |
} | |
input[type="text"], input[type="password"] | |
{ | |
font-size: 16px; | |
height: auto; | |
margin-bottom: 15px; | |
padding: 7px 9px; | |
} | |
} | |
@import "twitter/responsive"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compass compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
compass init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "Content" | |
sass_dir = "Content/sass" | |
images_dir = "Content/images" | |
javascripts_dir = "javascripts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass_options = {:debug_info => true} | |
output_style = :expanded |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem install compass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PM> Install-Package twitter.bootstrap.mvc4 | |
PM> Install-Package twitter.bootstrap.mvc4.sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="@Styles.Url("~/content/css")" rel="stylesheet"/> | |
<link href="@Styles.Url("~/Content/css-responsive")" rel="stylesheet" type="text/css" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="@Styles.Url("~/Content/application.css")" rel="stylesheet" type="text/css" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Target Name="AfterCompile" Condition=" '$(Configuration)' == 'Release' "> | |
<Exec Command="compass compile" /> | |
<ItemGroup> | |
<Content Include="Styles\*.css" /> | |
</ItemGroup> | |
</Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment