Skip to content

Instantly share code, notes, and snippets.

@TonyDotDev
Created March 10, 2020 15:51
Show Gist options
  • Save TonyDotDev/a74999d84e200696e1e8aff7823dbbe6 to your computer and use it in GitHub Desktop.
Save TonyDotDev/a74999d84e200696e1e8aff7823dbbe6 to your computer and use it in GitHub Desktop.
SCSS Utility Mixins
// Remove arrows from number input
@mixin remove-arrows-number-input {
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
&[type="number"] {
-moz-appearance: textfield;
}
}
// Reset ul styles
@mixin ul-reset {
list-style-type: none;
padding: 0;
margin: 0;
}
// Reset button styles
@mixin button-reset {
background: transparent;
border: none;
padding: 0;
}
// Basic box shadow
@mixin box-shadow {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}
// Psuedo element
@mixin psuedo($display: block, $position: absolute, $content: "") {
content: $content;
position: $position;
display: $display;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment