Skip to content

Instantly share code, notes, and snippets.

View Guiqft's full-sized avatar

Guilherme Oliveira Guiqft

View GitHub Profile
@Guiqft
Guiqft / ellipses-multine.css
Created February 19, 2021 01:10
Css to text multiline truncate
/* styles for '...' */
.block-with-text {
/* hide text if it more than N lines */
overflow: hidden;
/* for set '...' in absolute position */
position: relative;
/* use this value to count block height */
line-height: 1.2em;
/* max-height = line-height (1.2) * lines max number (3) */
max-height: 3.6em;
@Guiqft
Guiqft / vue.json
Created February 15, 2021 22:50
Snippet for create Vue.js component with Typescript and Sass
{
"Vue Component": {
"prefix": "vc",
"body": [
"<template>",
"\t<div class=\"${name}-container\">",
"\t\t${name}",
"\t</div>",
"</template>",
"",