Skip to content

Instantly share code, notes, and snippets.

@thinkphp
Created October 3, 2026 08:08
Show Gist options
  • Select an option

  • Save thinkphp/a39951bf2ab32ca4b36aaccae787fbb8 to your computer and use it in GitHub Desktop.

Select an option

Save thinkphp/a39951bf2ab32ca4b36aaccae787fbb8 to your computer and use it in GitHub Desktop.
body {
margin: 0;
padding: 0;
background-color: #e4ecfa;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
/** Header **/
header {
width: 100%;
margin: 0 auto;
justify-content: center;
align-content: center;
text-align: center;
}
h1 {
font-size: 3rem;
}
/** Container **/
.container {
text-align: center;
}
#value {
font-size: 3rem;
padding: 10px;
}
.button-container {
width: 50%;
display: flex;
flex-direction: row;
gap: 5%;
margin: 0 auto;
justify-content: center;
align-content: center;
margin-top: 5%;
}
.button-container .btn {
width: 100%;
font-size: 1rem;
padding: 2rem;
border: none;
text-transform: capitalize;
letter-spacing: 3px;
box-shadow: 1px 3px 14px -2px rgba(0, 0, 0, 0.2);
cursor: pointer;
text-transform: uppercase;
font-weight: bold;
}
/** Buttons Styling **/
.decrease,
.increase,
.reset {
border-radius: 30px;
padding: 10px;
}
.decrease {
background-color: #275efe;
color: white;
}
.increase {
background-color: #2f3545;
color: white;
}
.reset {
background-color: white;
color: #275efe;
}
/** Footer **/
footer {
display: inline-flex;
justify-content: center;
position: absolute;
margin-bottom: 0;
width: 100%;
min-height: 10rem;
align-items: flex-end;
}
/** Media Queries **/
@media screen and (max-width: 480px) {
h1 {
margin-top: 5%;
}
.button-container {
flex-direction: column;
gap: 50px;
margin: 0 auto;
margin-top: 5%;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment