Top "Mixins" questions

A mixin is a way to enhance an object with properties or methods from another object without inheriting from that object.

SASS mixin with boolean variable: If-Statement not working

I'm creating a mixin which styles an $element's $property to generate page-specific CSS. (Background: There are four pages with different …

scope sass mixins
Django Rest Framework - "detail": "Not found."

Hi when doing this request: groups/25010a31-fc5b-47c8-9c5c-d740e5743f52/members/4/ - I get "detail": "…

json django django-views django-rest-framework mixins
Mixins with C# 4.0

I've seen various questions regarding if mixins can be created in C# and they are often directed to the re-mix …

c#-4.0 mixins
Can a sass @mixin accept an undefined number of arguments?

I'm trying to create a sass mixin for transitions. This is what I have so far. @mixin transition($var) -webkit-transition: $…

undefined sass arguments mixins
Sass mixin for background transparency back to IE8

I'm new to Sass and struggling with this. I can't get the color to render in both hex (for IE) …

css cross-browser sass ruby-on-rails-3.1 mixins
Using variables for CSS properties in Sass

I am writing a @mixin with some math in it that calculates the percentage width of an element, but since …

sass mixins
Sass variable default scope

I have a problem with using variable defaults in Sass across scopes. My test example is: @mixin foo { $val: 'red' !…

variables scope sass mixins defaults
Django: a class based view with mixins and dispatch method

Normally, I use a dispatch method of a class based view to set some initial variables or add some logic …

django django-views mixins
How can I use mixins or modules in my controllers in Rails 3?

I have some behavior in my controller that I pulled out into a module in order to test better and …

ruby-on-rails-3 mixins
Can I define a LESS mixin to generate a transition-property with a variable number of parameters?

I'm introducing LESS to a large web app project to simplify my CSS. I've got a few CSS rules which …

css less mixins less-mixins