Skip to content

Instantly share code, notes, and snippets.

@wlinds
Created July 3, 2024 13:52
Show Gist options
  • Save wlinds/ac04f6ee513104fdd1249f9485e1475b to your computer and use it in GitHub Desktop.
Save wlinds/ac04f6ee513104fdd1249f9485e1475b to your computer and use it in GitHub Desktop.
Boilerplate CSS - Light Mode
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Helvetica', sans-serif;
}
html, body {
height: 100%;
background-color: #f0f0f0;
display: flex;
justify-content: center;
align-items: center;
}
a {
text-decoration: none;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
border-radius: 5px;
}
button {
background-color: #298af0;
color: #fff;
border: none;
border-radius: 5px;
padding: 10px 20px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #1f7cdf;
}
@media (max-width: 768px) {
.container {
padding: 10px;
}
button {
padding: 8px 16px;
}
}
.important {
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment