Skip to content

Instantly share code, notes, and snippets.

@gustavonovaes
Last active June 3, 2020 00:42
Show Gist options
  • Save gustavonovaes/f66af0367cd0afe9b9026dd6f1178be0 to your computer and use it in GitHub Desktop.
Save gustavonovaes/f66af0367cd0afe9b9026dd6f1178be0 to your computer and use it in GitHub Desktop.
:root {
font-size: 16px;
--font-smaller: 12px;
--font-small: 14px;
--font-normal: 16px;
--font-big: 18px;
--font-bigger: 24px;
--font-bigest: 33px;
--border-radius: 4px;
--border-color: #e7eaf0;
--icon-size-small: 12px;
--icon-size-normal: 16px;
--icon-size-big: 24px;
--gap-tiny: 4px;
--gap: 15px;
--gap-negative: -15px;
--gap-half: 7.5px;
--gap-half-negative: -7.5px;
--gap-double: 30px;
--gap-double-negative: -30px;
--transition-speed-fast: 200ms;
--transition-speed-normal: 300ms;
--transition-speed-slow: 400ms;
--transition-speed-very-slow: 500ms;
--color-red: #F31431;
--color-green: #4BB543;
--box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
--box-shadow-light: 0px 1px 4px rgba(0, 0, 0, 0.05);
}
html {
scroll-behavior: smooth;
box-sizing: border-box;
}
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: inherit;
}
/* Remove default padding */
*{
padding: 0;
margin: 0;
}
/* Set core body defaults */
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
font-size: var(--font-normal);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
padding: var(--gap);
}
/* Remove list styles on ul, ol elements with a class attribute */
ul, ol {
list-style: none;
}
/* Make images easier to work with */
img {
max-width: 100%;
margin: 0 auto;
display: block;
}
/* Make video fluid. The aspect ratio of the video is maintained */
video {
width: 100% !important;
height: auto !important;
}
/* Natural flow and rhythm in articles by default */
article > * + * {
margin-top: 1rem;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select,
table {
font: inherit;
color: inherit;
}
a > *,
button > * {
pointer-events: none;
}
/* Remove _all_ animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
* {
animation-play-state: paused !important;
transition: none !important;
scroll-behavior: auto !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment