mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-19 16:38:23 +00:00
* Better emails! * Fix tests? * bit o' cleanup * add rant * pt2 * pt3 * Update tests * oop * man what on earth * ffs!!!!! * Revert "ffs!!!!!" This reverts commit b58bfed0f4c6288e95d0a111aeb3d7d7900ac9e7. * Revert "man what on earth" This reverts commit 8752cc2200eb3b852ea545d10ccbd555ab09d2b4. * Revert "Fix tests?" This reverts commit 810ebde73376ff7da0595e6b927f1b464d62b4a4. * Ignore external Google Fonts link in premailer
266 lines
4.2 KiB
CSS
266 lines
4.2 KiB
CSS
/*
|
|
* Tailwind-named utility classes with static values for email client compatibility.
|
|
*
|
|
* "Wait, this is stupid. Can I not just use Tailwind directly?" AHAHAHAHAHA no. Believe me I tried.
|
|
* (Well, technically you can, you just get super patchy support in email clients).
|
|
*
|
|
* The two big ones are:
|
|
* - Tailwind 4 requires `oklch`, not supported in most email clients: https://www.caniemail.com/features/css-modern-color/
|
|
* - Tailwind 4 requires CSS variables, which has less thatn 50% coverage: https://www.caniemail.com/features/css-variables/
|
|
*/
|
|
|
|
.wrapper {
|
|
padding: 1.25rem;
|
|
margin: 0 auto;
|
|
max-width: 600px;
|
|
}
|
|
.container {
|
|
padding: 0;
|
|
margin: 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
.section {
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
|
|
.max-w-\[600px\] {
|
|
max-width: 600px;
|
|
}
|
|
|
|
.block {
|
|
display: block;
|
|
}
|
|
.inline-block {
|
|
display: inline-block;
|
|
}
|
|
.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.w-full {
|
|
width: 100%;
|
|
}
|
|
.max-w-full {
|
|
max-width: 100%;
|
|
}
|
|
.h-auto {
|
|
height: auto;
|
|
}
|
|
|
|
.m-0 {
|
|
margin: 0;
|
|
}
|
|
.mx-auto {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
.my-1 {
|
|
margin-top: 0.25rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
.my-4 {
|
|
margin-top: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
.mt-0 {
|
|
margin-top: 0;
|
|
}
|
|
.mt-1 {
|
|
margin-top: 0.25rem;
|
|
}
|
|
.mt-2 {
|
|
margin-top: 0.5rem;
|
|
}
|
|
.mt-4 {
|
|
margin-top: 1rem;
|
|
}
|
|
.mt-6 {
|
|
margin-top: 1.5rem;
|
|
}
|
|
.mt-8 {
|
|
margin-top: 2rem;
|
|
}
|
|
.mb-0 {
|
|
margin-bottom: 0;
|
|
}
|
|
.mb-2 {
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
.mb-4 {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
/* ── Padding ── */
|
|
.p-0 { padding: 0; }
|
|
.p-4 { padding: 1rem; }
|
|
.p-5 { padding: 1.25rem; }
|
|
.p-6 { padding: 1.5rem; }
|
|
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
|
|
.px-4 { padding-left: 1rem; padding-right: 1rem; }
|
|
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
|
|
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
|
|
.pt-2 { padding-top: 0.5rem; }
|
|
.pt-6 { padding-top: 1.5rem; }
|
|
.pb-6 { padding-bottom: 1.5rem; }
|
|
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
|
|
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
|
|
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
|
|
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
|
|
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
|
|
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
|
|
|
|
.text-xs {
|
|
font-size: 0.75rem;
|
|
line-height: 1rem;
|
|
}
|
|
.text-sm {
|
|
font-size: 0.875rem;
|
|
line-height: 1.25rem;
|
|
}
|
|
.text-base {
|
|
font-size: 1rem;
|
|
line-height: 1.5rem;
|
|
}
|
|
.text-lg {
|
|
font-size: 1.125rem;
|
|
line-height: 1.75rem;
|
|
}
|
|
.text-xl {
|
|
font-size: 1.25rem;
|
|
line-height: 1.75rem;
|
|
}
|
|
.text-2xl {
|
|
font-size: 1.5rem;
|
|
line-height: 2rem;
|
|
}
|
|
.text-3xl {
|
|
font-size: 1.875rem;
|
|
line-height: 2.25rem;
|
|
}
|
|
|
|
.font-normal {
|
|
font-weight: 400;
|
|
}
|
|
.font-medium {
|
|
font-weight: 500;
|
|
}
|
|
.font-semibold {
|
|
font-weight: 600;
|
|
}
|
|
.font-bold {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.leading-5 {
|
|
line-height: 1.25rem;
|
|
}
|
|
.leading-6 {
|
|
line-height: 1.5rem;
|
|
}
|
|
.leading-relaxed {
|
|
line-height: 1.625;
|
|
}
|
|
.leading-tight {
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.tracking-tight {
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
.text-left {
|
|
text-align: left;
|
|
}
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.no-underline {
|
|
text-decoration: none;
|
|
}
|
|
.underline {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.align-top {
|
|
vertical-align: top;
|
|
}
|
|
|
|
.text-white {
|
|
color: #ffffff;
|
|
}
|
|
.text-black {
|
|
color: #000000;
|
|
}
|
|
.text-gray-400 {
|
|
color: #9ca3af;
|
|
}
|
|
.text-gray-500 {
|
|
color: #6b7280;
|
|
}
|
|
.text-gray-600 {
|
|
color: #4b5563;
|
|
}
|
|
.text-gray-700 {
|
|
color: #374151;
|
|
}
|
|
.text-gray-900 {
|
|
color: #111827;
|
|
}
|
|
.text-indigo-600 {
|
|
color: #4f46e5;
|
|
}
|
|
|
|
.bg-white {
|
|
background-color: #ffffff;
|
|
}
|
|
.bg-gray-50 {
|
|
background-color: #f9fafb;
|
|
}
|
|
.bg-gray-100 {
|
|
background-color: #f3f4f6;
|
|
}
|
|
.bg-indigo-600 {
|
|
background-color: #4f46e5;
|
|
}
|
|
|
|
.border {
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: #e5e7eb;
|
|
}
|
|
.border-t {
|
|
border-top-width: 1px;
|
|
border-top-style: solid;
|
|
border-top-color: #e5e7eb;
|
|
}
|
|
.border-b {
|
|
border-bottom-width: 1px;
|
|
border-bottom-style: solid;
|
|
border-bottom-color: #e5e7eb;
|
|
}
|
|
.border-gray-200 {
|
|
border-color: #e5e7eb;
|
|
}
|
|
|
|
/* ── Border Radius ── */
|
|
.rounded {
|
|
border-radius: 0.25rem;
|
|
}
|
|
.rounded-md {
|
|
border-radius: 0.375rem;
|
|
}
|
|
.rounded-lg {
|
|
border-radius: 0.5rem;
|
|
}
|
|
.rounded-xl {
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
.overflow-hidden {
|
|
overflow: hidden;
|
|
}
|