Skip to content

Instantly share code, notes, and snippets.

View lucadegasperi's full-sized avatar

Luca Degasperi lucadegasperi

View GitHub Profile
@lucadegasperi
lucadegasperi / SassMeister-input.scss
Created April 26, 2015 17:24
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// per ogni tema dichiaro la palette
$themes: (
theme1: (
base-color: red
),
@lucadegasperi
lucadegasperi / SassMeister-input.scss
Created April 26, 2015 17:33
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
// per ogni tema dichiaro la palette
$themes: (
theme1: (
base-color: red
),
@lucadegasperi
lucadegasperi / MetaCollection
Last active August 29, 2015 14:28
Meta collection in laravel
class MetaCollection extends Collection
{
public function __get($name)
{
return $this->getValue($name);
}
public function getValue($name, $default = null)
{
$m = $this->filter(function ($meta) use ($name) {

Keybase proof

I hereby claim:

  • I am lucadegasperi on github.
  • I am lucadegasperi (https://keybase.io/lucadegasperi) on keybase.
  • I have a public key whose fingerprint is 8432 7B35 DAEE 8A36 E8FC 3D57 675C F4C7 C1F9 B664

To claim this, I am signing this object:

@lucadegasperi
lucadegasperi / thoughts.md
Last active September 22, 2020 09:56
Some ui design thoughts

My Design Thoughts as of 30/01/2020

Tooltips Modals and Alerts

  • tooltips should exist outside the context of the element they are attached to. This is to prevent style leaks or hidden overflows on the element they are attached to
  • Same principle applies to modals / alerts and so forth they should live inside a portal

Spacing

  • Spacing between components should be given by a parent component.
  • A component should not have any knowledge about its sorroundings.
  • A Text node should never be left alone with other non text nodes (it should always be wrapped in a )