Skip to content

Instantly share code, notes, and snippets.

@MilllerTime
Created November 21, 2018 22:26
Show Gist options
  • Save MilllerTime/68a0dd5e1b9e4926c3b31a766e560592 to your computer and use it in GitHub Desktop.
Save MilllerTime/68a0dd5e1b9e4926c3b31a766e560592 to your computer and use it in GitHub Desktop.
Some ideas to apply as base CSS rules for new projects.
html {
box-sizing: border-box;
cursor: default;
font-family: system-ui, sans-serif;
text-size-adjust: none;
-webkit-tap-highlight-color: transparent;
}
*,
*::before,
*::after {
box-sizing: inherit;
position: relative;
}
/* Themed highlight color */
::selection {
background-color: #0366d6;
color: white;
}
code {
cursor: text;
}
/*
textarea and input[type="text"] already receive
"cursor: text" via browsers' base stylesheets
*/
a {
cursor: pointer;
}
button[disabled],
input[disabled] {
cursor: default;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment