From a074985549aa39cf8816d827bcd386f0f688344c Mon Sep 17 00:00:00 2001 From: Greg Newman Date: Thu, 15 Dec 2022 15:11:23 -0500 Subject: [PATCH 01/10] :art: set fonts in tailwind --- frontend/styles.css | 9 +++++---- static/css/styles.css | 39 +++++++++++++++++++++++++++++++-------- templates/base.html | 1 - 3 files changed, 36 insertions(+), 13 deletions(-) diff --git a/frontend/styles.css b/frontend/styles.css index a6129677..2c511081 100644 --- a/frontend/styles.css +++ b/frontend/styles.css @@ -1,12 +1,13 @@ @tailwind base; @tailwind components; @tailwind utilities; - -body { - color: white; -} +@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap"); @layer base { + body { + color: white; + @apply font-cairo; + } h1 { @apply text-6xl; @apply mb-3; diff --git a/static/css/styles.css b/static/css/styles.css index 8f5cd843..34e5958b 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -582,6 +582,11 @@ select { outline: 1px auto -webkit-focus-ring-color; } +body { + color: white; + font-family: 'Cairo', sans-serif; +} + h1 { font-size: 3.75rem; line-height: 1; @@ -1109,6 +1114,10 @@ textarea { height: 1rem; } +.h-5 { + height: 1.25rem; +} + .h-\[15px\] { height: 15px; } @@ -1157,6 +1166,10 @@ textarea { width: 33.333333%; } +.w-5 { + width: 1.25rem; +} + .w-1\/5 { width: 20%; } @@ -1177,6 +1190,10 @@ textarea { flex: 1 1 auto; } +.flex-shrink-0 { + flex-shrink: 0; +} + .table-auto { table-layout: auto; } @@ -1315,6 +1332,12 @@ textarea { margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse))); } +.space-x-2 > :not([hidden]) ~ :not([hidden]) { + --tw-space-x-reverse: 0; + margin-right: calc(0.5rem * var(--tw-space-x-reverse)); + margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse))); +} + .space-y-6 > :not([hidden]) ~ :not([hidden]) { --tw-space-y-reverse: 0; margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse))); @@ -1553,6 +1576,14 @@ textarea { padding-right: 40px; } +.pl-11 { + padding-left: 2.75rem; +} + +.pr-11 { + padding-right: 2.75rem; +} + .pr-2 { padding-right: 0.5rem; } @@ -1641,10 +1672,6 @@ textarea { padding-left: 1.25rem; } -.pr-11 { - padding-right: 2.75rem; -} - .pt-5 { padding-top: 1.25rem; } @@ -1793,10 +1820,6 @@ textarea { transition-duration: 150ms; } -body { - color: white; -} - .last\:border-0:last-child { border-width: 0px; } diff --git a/templates/base.html b/templates/base.html index 41e5e64c..a2f7adf3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -15,7 +15,6 @@ - {% block extra_head %}{% endblock %}