Created
January 27, 2018 04:41
-
-
Save skd1993/86fc892a5fc21029163f6a609e7e2518 to your computer and use it in GitHub Desktop.
Display DuckDuckGo search results in material design cards.
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
@-moz-document domain("duckduckgo.com") | |
{ | |
.result | |
{ | |
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); | |
transition: 0.3s; | |
} | |
/* On mouse-over, add a deeper shadow */ | |
.result:hover | |
{ | |
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2); | |
} | |
/* Add some padding inside the card container */ | |
.result | |
{ | |
padding: 2px 16px; | |
} | |
.result--sep | |
{ | |
box-shadow: none !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment