czerkies / romanczerkies.31

GitHub repository of the romanczerkies.fr project Version 31
https://romanczerki.es
0 stars 1 forks source link

Custom CSS Functions & Mixins #164

Open czerkies opened 8 months ago

czerkies commented 8 months ago
/* custom functions */
@function <name> [(<parameter-list>)]? {
  <function-logic-and-output>
}

/* custom mixins */
@mixin <name> [(<parameter-list>)]? {
  <mixin-logic-and-output>
}
@function --example (--named-parameter; --name-with: default-value) { 
  /* if further description of a parameter is necessary */
  @parameter --named-parameter {
    default: 2em;
    syntax: "<length>";
  }
}