Revisions
-
stevenh512 revised this gist
May 19, 2012 . 3 changed files with 37 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,15 @@ <html> <head> <title>Bending shadows backwards</title> <link rel="stylesheet" href="stylesheets/screen.css" type="text/css" /> </head> <body> <div class="shadow-stuff"> <div class="inner"> <div class="content"> Ohai! </div> </div> </div> </body> </html> This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,18 +1,16 @@ @import "compass/css3"; @mixin apple-shadow ($background-color: #f6f6f6, $gradient-start-color: rgba(249, 249, 249, 1), $gradient-stop-color: rgba(240, 240, 240, 1)) { @include border-radius(0% 0% 100% 100% / 0% 0% 8px 8px); @include box-shadow(rgba(0, 0, 0, 0.3) 0 2px 3px); .inner { border: 1px solid #FFF; background: $background-color; @include background( linear-gradient(top, $gradient-start-color 50%, $gradient-stop-color 100%)); @include border-radius(5px); @include box-shadow(inset 0 2px 1px rgba(255, 255, 255, 0.97)); } } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,9 +1,18 @@ @import "apple-shadow"; .shadow-stuff { margin: auto; width: 50%; @include apple-shadow; .inner { margin: 40px 0 0 0; } } .content { margin-top: 50px; margin-bottom: 50px; text-align: center; font-size: 150%; font-weight: bold; } -
stevenh512 revised this gist
May 18, 2012 . 3 changed files with 51 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ # Require any additional compass plugins here. # Set this to the root of your project when deployed: http_path = "/" css_dir = "stylesheets" sass_dir = "sass" images_dir = "images" javascripts_dir = "javascripts" # You can select your preferred output style here (can be overridden via the command line): # output_style = :expanded or :nested or :compact or :compressed # To enable relative paths to assets via compass helper functions. Uncomment: # relative_assets = true # To disable debugging comments that display the original location of your selectors. Uncomment: # line_comments = false # If you prefer the indented syntax, you might want to regenerate this # project again passing --syntax sass, or you can uncomment this: # preferred_syntax = :sass # and then run: # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ @import "compass/css3"; @mixin apple-shadow { @include border-radius(0% 0% 100% 100% / 0% 0% 8px 8px); @include box-shadow(rgba(0, 0, 0, 0.3) 0 2px 3px); } @mixin apple-shadow-content { margin: 40 0 0 0; background-color: white; height: 200px; border: 1px solid #FFF; background: #f6f6f6; @include background( linear-gradient(top, rgba(249, 249, 249, 1) 50%, rgba(240, 240, 240, 1) 100%)); @include border-radius(5px); @include box-shadow(inset 0 2px 1px rgba(255, 255, 255, 0.97)); } This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ @import "apple-shadow"; .shadow-stuff { @include apple-shadow; } .container { @include apple-shadow-content; } -
nrrrdcore revised this gist
May 18, 2012 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ -moz-box-shadow: rgba(0,0,0,.30) 0 2px 3px; -webkit-box-shadow: rgba(0,0,0,.30) 0 2px 3px; box-shadow: rgba(0,0,0,.30) 0 2px 3px; } .container { -
nrrrdcore revised this gist
May 18, 2012 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,4 @@ <div class="shadow-stuff"> <div class="container"> </div> </div> -
nrrrdcore revised this gist
May 18, 2012 . No changes.There are no files selected for viewing
-
nrrrdcore renamed this gist
May 18, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
nrrrdcore created this gist
May 17, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,29 @@ .shadow-stuff { -moz-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; -webkit-border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; border-radius: 0% 0% 100% 100% / 0% 0% 8px 8px; -moz-box-shadow: rgba(0,0,0,.30) 0 2px 3px; -webkit-box-shadow: rgba(0,0,0,.30) 0 2px 3px; box-shadow: rgba(0,0,0,.30) 0 2px 3px; } .container { margin: 40 0 0 0; background-color: white; height: 200px; border: 1px solid #FFF; background: #F6F6F6; background: -webkit-gradient(linear,left top,left bottom,color-stop(50%,rgba(249, 249, 249, 1)),color- stop(100%,rgba(240, 240, 240, 1))); background: -webkit-linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%); background: -moz-linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%); background: -o-linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%); background: -ms-linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%); background: linear-gradient(top,rgba(249, 249, 249, 1) 50%,rgba(240, 240, 240, 1) 100%); -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; -webkit-box-shadow: inset 0 2px 1px rgba(255,255,255,.97); -moz-box-shadow: inset 0 2px 1px rgba(255,255,255,.97); box-shadow: inset 0 2px 1px rgba(255,255,255,.97); }