
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
npm i stylmixs -D
@import 'stylmixs'
// stylus
fface('Inter', 'fonts/inter-300-light', 300, normal)
/* css */
@font-face {
font-family: 'Inter';
src: url("fonts/inter-300-light.woff2") format('woff2'), url("fonts/inter-300-light.woff") format('woff'), url("fonts/inter-300-light.ttf") format('truetype');
font-weight: 300;
font-style: normal;
font-display: swap;
}
integer values from 1 to 12
// stylus
.element
column(2)
/* css */
.element {
width: 16.66%;
}
// stylus
.input
+placeholder()
font-weight 300
/* css */
.input::-webkit-input-placeholder {
font-weight: 300;
}
.input:-moz-placeholder {
font-weight: 300;
}
.input::-moz-placeholder {
font-weight: 300;
}
.input:-ms-input-placeholder {
font-weight: 300;
}
// stylus
.box
gap(30px)
/* css */
.box {
padding-left: 30px;
padding-right: 30px;
}
// stylus
.box
pad(30px)
/* css */
.box {
padding-top: 30px;
padding-bottom: 30px;
}
integer values from 1 to 12
// stylus
.message
fs(20, 28)
/* css */
.message {
font-size: 1.25em;
line-height: 1.4em;
}
// stylus
.overlay
position relative
&:after
+overlay()
background-color rgba(#000, .5)
/* css */
.overlay {
position: relative;
}
.overlay:after {
content: '';
display: block;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
background-color: rgba(0,0,0,0.5);
}
// stylus
.file
&__input
hidebox()
/* css */
.file__input {
position: absolute;
z-index: -1000;
overflow: hidden;
clip: rect(0 0 0 0);
height: 1px;
width: 1px;
margin: -1px;
padding: 0;
border: 0;
}
// stylus
+mq(960px)
.query
display none
/* css */
@media screen and (max-width: 960px) {
.query {
display: none;
}
}
// stylus
.button
ts(color, background-color)
/* css */
.button {
transition: color .25s ease-in-out, background-color .25s ease-in-out;
}
// stylus
.aspect-ratio
ratio(16, 9)
/* css */
.aspect-ratio {
padding-bottom: 56.25%;
height: 0;
}
// stylus
// percentage of the number
.percent
width percent(320, 960)
/* css */
.percent {
width: 33.33%;
}
FAQs
Stylus mixins
The npm package stylmixs receives a total of 0 weekly downloads. As such, stylmixs popularity was classified as not popular.
We found that stylmixs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.