Skip to content

Instantly share code, notes, and snippets.

View cseelus's full-sized avatar
💭
I may be slow to respond.

Chrıs Seelus cseelus

💭
I may be slow to respond.
  • IMEOS
  • Switzerland
View GitHub Profile
@mixin shadows($x_offset: 0px, $y_offset: 1px, $size: 8px, $color: rgba(0, 0, 0, 0.5)) {
-webkit-box-shadow: $x_offset $y_offset $size $color;
-moz-box-shadow: $x_offset $y_offset $size $color;
-ms-box-shadow: $x_offset $y_offset $size $color;
-o-box-shadow: $x_offset $y_offset $size $color;
box-shadow: $x_offset $y_offset $size $color;
}
@mixin inset_shadows($x_offset: 0px, $y_offset: 1px, $size: 8px, $color: rgba(0, 0, 0, 0.5)) {
-webkit-box-shadow: $x_offset $y_offset $size $color inset;
let RecurringSelectDialog;
window.RecurringSelectDialog =
(RecurringSelectDialog = class RecurringSelectDialog {
constructor(recurring_selector) {
this.positionDialogVert = this.positionDialogVert.bind(this);
this.cancel = this.cancel.bind(this);
this.outerCancel = this.outerCancel.bind(this);
this.save = this.save.bind(this);
this.summaryUpdate = this.summaryUpdate.bind(this);
this.summaryFetchSuccess = this.summaryFetchSuccess.bind(this);
@cseelus
cseelus / custom_uploader.js
Last active May 1, 2019 16:12
Uploading files automatically with ActiveStorage
import { DirectUpload } from 'activestorage'
// See DirectUploadController from Rails Active Storage source
export class CustomUploader {
constructor(input, file) {
this.input = input
this.file = file
this.directUpload = new DirectUpload(this.file, this.url, this)
this.dispatch("initialize")
}
@cseelus
cseelus / Custom.css
Last active December 20, 2015 14:59 — forked from star-szr/Custom.css
/**********************************************/
/*
/* Sleepwalker Skin
/*
/* Based on Todd Werth's IR_Black but with some
/* different colors (no pink numbers …)
/*
/**********************************************/
/**********************************************/