Skip to content

Instantly share code, notes, and snippets.

@pauloreis7
Last active February 16, 2022 15:11
Show Gist options
  • Save pauloreis7/839cb89e166e673c2b2bdd145803789f to your computer and use it in GitHub Desktop.
Save pauloreis7/839cb89e166e673c2b2bdd145803789f to your computer and use it in GitHub Desktop.
Global responsive css styles
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
//variables
}
@media (max-width: 1080px) {
html {
font-size: 93.75%;
}
}
@media (max-width: 720px) {
html {
font-size: 87.5%;
}
}
body {
background: //color;
color: //color;
text-rendering: optimizeLegibility !important;
-webkit-font-smoothing: antialiased !important;
-moz-osx-font-smoothing: grayscale;
}
body, input, textarea, select, button {
font: 400 1rem 'YourFont', sans-serif;
}
h1, h2, h3, h4, h5, h6, strong {
font-weight: 500;
}
button {
cursor: pointer;
}
[disabled] {
opacity: 0.6;
cursor: not-allowed;
}
a {
color: inherit;
text-decoration: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment