Creare Post-it coi css

Ogni tanto capita che io mi perda nei css. E' una brutta cosa, succede per le più svariate ragioni. Evabbè, bisogna farsene una ragione.

Ho un'idea in testa e pensavo di riprodurla graficamente come una serie di post-it coi css. Non so se abbia senso, ma questo articolo è ciò che è venuto fuori da un minimo di ricerche.

La prima idea è una lista di elementi con nastro adesivo trasparente ⬀ per "reggere" i messaggi.

Mi piace molto l'effetto per una lista ma per l'idea che ho in testa un po' troppo ordinato. Lo sfondo colorato aiuta a far "venire fuori" la trasparenza dell'adesivo.

  • Messaggio #1

  • Messaggio #2

    Doppio paragrafo!

  • Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with...

La seconda idea è avere dei post it piazzati a caso ⬀ per la pagina.

Lo stile è semplice, ma soprattutto mi piace la distribuzione fintamente "casuale" dei post-it; purtroppo posizioni e gradi della rotazione vanno gestiti con classi css ad hoc per ogni oggetto - dunque mi servirebbe javascript.

Con questo secondo esempio mi sono accorto che preferisco che i gradi della transform: rotate non siano più di 5-7deg (positivi o negativi), specialmente per testi lunghi. Inoltre il colore giallino-uovo dei post-it pare in entrambi i casi qualcosa di simile a #fefabb.

La lista della spesa

  • uova
  • farina
  • burro

Questo è un messaggio decisamente testuale.

Vallo a capire.

It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages...

Il terzo esempio ⬀ ha pure più dettagli, fra cui il "pin" e la firma in basso a destra. Vediamo pure questo, ma si vede che già ero rotto che l'ho personalizzato poco.

Ah, e qui si nota pure la mia avversione per i cambi di font che io imperterrito NON faccio. Ma tutti gli esempi hanno i font cambiati e figherrimi, eh? Sia chiaro che sono io la pecora nera degli csstilisti. Comunque il css è troppo complesso, ma mi piaceva l'idea dello spillo e dell'autore a parte.

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source.

Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.

Cicero

2016-01-26