A Pen by SolutionMonk on CodePen.
Languages
81 gist results
81 gist results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="flex h-screen"> | |
<div class="m-auto"> | |
<h3>title</h3> | |
<button>button</button> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Twitter Card</title> | |
<!-- Include Tailwind CSS --> | |
<!-- <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet"> --> | |
</head> | |
<body class="bg-gray-100"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en" xmlns:v="urn:schemas-microsoft-com:vml"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="x-apple-disable-message-reformatting" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta | |
name="format-detection" | |
content="telephone=no, date=no, address=no, email=no, url=no" | |
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body class="bg-all font-sans"> | |
<!-- header --> | |
<header class="topbar bg-white py-3 shadow flex z-20 sticky pin-t"> | |
<div class="topbar-menu flex items-center w-1/5"> | |
<div class="flex items-center pl-8"> | |
<a id="hb-menu" href="#"> | |
<i class="fas fa-bars fa-lg mr-8 text-grey text-lg hidden md:block"></i> | |
</a> | |
<a href="#" class="w-20"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
.field { | |
@apply .rounded .border .py-2 .px-3 .text-gray-800; | |
} | |
.field-label { | |
@apply .mb-2 .uppercase .font-bold .text-lg .text-gray-900; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
/* Thanks https://github.com/iandinwoodie/github-markdown-tailwindcss */ | |
/* Additional vertical padding used by kbd tag. */ | |
.py-05 { | |
padding-top: 0.125rem; | |
padding-bottom: 0.125rem; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body class="bg-gray-100" x-data="texts()"> | |
<template x-for="(text, index) in texts"> | |
<div class="container max-w-prose bg-white rounded shadow mx-auto my-6 p-6"> | |
<p class="text-lg text-gray-700 line-clamp-4" x-text="text" x-init="$nextTick(() => { setTruncate(index, $el) })"> | |
</p> | |
<!-- dont show read more / read less if the text is not truncated --> | |
<template x-if="truncatable[index]"> | |
<div> | |
<button class="my-4 underline text-green-500" @click="event.target.parentNode.parentNode.querySelector('p').classList.remove('line-clamp-4'); truncated[index] = false;" x-show="truncated[index]">Read more...</button> |