Skip to content

Instantly share code, notes, and snippets.

@leegeunhyeok
Created June 29, 2020 16:30
Show Gist options
  • Save leegeunhyeok/bd80078592b6d553a796de0ca75a2269 to your computer and use it in GitHub Desktop.
Save leegeunhyeok/bd80078592b6d553a796de0ca75a2269 to your computer and use it in GitHub Desktop.
WWDC20 - Safari 14 Web Extension
:root {
color-scheme: light dark;
}
body {
width: 100px;
padding: 10px;
font-family: system-ui;
text-align: center;
}
span {
display: block;
margin: auto;
margin-top: 5px;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: #fff;
box-shadow: 0, 0, 8px rgba(0, 0, 0, .5);
}
span::before {
content: "🍎";
line-height: 30px;
}
@media (prefers-color-scheme: dark) {
span {
background-color: #000;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment