Skip to content

Instantly share code, notes, and snippets.

@aniketjs
Last active December 4, 2022 21:55
Show Gist options
  • Save aniketjs/cab23b2cad627dcbe9b18002d7013e81 to your computer and use it in GitHub Desktop.
Save aniketjs/cab23b2cad627dcbe9b18002d7013e81 to your computer and use it in GitHub Desktop.
Minimal CSS reset

Minimal CSS Reset

*, *::after, *::before{
	box-sizing: border-box;
}
*::selection {
	background: var(--od-blue);
	color: var(--od-6);
	border-radius: 1em;
}

*{
	margin: 0; padding: 0;
	color: var(--od-txt);
}

body{
	background-color: var(--od-6);
	margin: 0; padding: 0;
	overflow-x: hidden;
	scrollbar-width: none;
}

body::-webkit-scrollbar{
	display: none;
}
main {
	margin: 0; padding: 0;
}
header {
	margin: 0; padding: 0;
}
section {
	margin: 0; padding: 0;
}
footer {
	margin: 0; padding: 0;
}

a {
	text-decoration: none;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	font-family: inherit;
}

.link-indicator:hover{
	text-decoration: underline;
}

ul{
	display:list-item;
}

li{
	list-style-type: disc;
	list-style-position: inside;
}

img:-moz-broken{
	display: none;
}
img[src=""],
img:not([src]) {
	visibility: hidden;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment