Skip to content

Instantly share code, notes, and snippets.

View entioentio's full-sized avatar

Przemek Maszczynski entioentio

  • MyWheels
  • Breda, Netherlands
View GitHub Profile
// conditions map
$condMap: (
"screen": "only screen",
"print": "only print",
"retina": "(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-device-pixel-ratio: 1.5), (min-resolution: 120dpi)"
);
//set value by key in scss map
@function map-set($map, $key, $value) {
$new: ($key: $value);
@entioentio
entioentio / MultiselectRepositionable.vue
Created July 20, 2021 14:05
Wrapper for vue-multiselect that repositions the tags list on container element's scroll
<template>
<multiselect
ref="originalMultiselect"
v-bind="$attrs"
v-on="listeners"
class="position-relative"/>
</template>
<script>
import Multiselect from 'vue-multiselect'