Skip to content

Instantly share code, notes, and snippets.

@donaldsteele
Forked from gjhilton/glass.css
Last active August 10, 2019 20:56
Show Gist options
  • Save donaldsteele/af07660fa54cf976e01c77a270d9af91 to your computer and use it in GitHub Desktop.
Save donaldsteele/af07660fa54cf976e01c77a270d9af91 to your computer and use it in GitHub Desktop.
Glass CSS
.glass{
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0)));
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
background: linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,0) 100%);
border: 2px solid #DDDBD7;
-webkit-box-shadow: 3px 3px 10px rgba(0,0,0,0.4), inset 0 0 10px rgba(255,255,255, 0.8);
-moz-box-shadow: 3px 3px 10px rgba(0,0,0,0.4), inset 0 0 10px rgba(255,255,255, 0.8);
box-shadow: 3px 3px 10px rgba(0,0,0,0.4), inset 0 0 10px rgba(255,255,255, 0.8);
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-bottom-radius: 10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment