Added files for tailwind configuration and generation

php
Aadhavan Srinivasan 1 year ago
parent 3107bd73fe
commit 2556d95692

@ -0,0 +1,66 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@tailwind forms;
@font-face {
font-family: "Rubik";
src: url('./fonts/Rubik-Medium.ttf');
}
@font-face {
font-family: "GrenzeGotisch";
src: url('./fonts/GrenzeGotisch-Regular.ttf');
}
@font-face {
font-family: "FingerPaint";
src: url("./fonts/FingerPaint-Regular.ttf");
}
@font-face {
font-family: "PTSansNarrow";
src: url("./fonts/PTSansNarrow-Bold.ttf");
}
ul {
display: flex;
list-style: none;
}
li {
padding-left: 10px;
}
h1 {
color: black;
}
#root {
color: black;
}
#button {
width: 100px;
height: 30px;
font-size: large;
}
.glink {
}
#error {
display: none;
color: red;
}
#error.visible {
display: block;
}
input.invalid {
border-color: red;
border-style: solid;
border-width: medium;
}
input.valid {
border-color: green;
border-style: solid;
border-width: medium
}
.mandatory {
color: red;
}

@ -422,172 +422,6 @@ video {
display: none;
}
[type='text'],[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #fff;
border-color: #6b7280;
border-width: 1px;
border-radius: 0px;
padding-top: 0.5rem;
padding-right: 0.75rem;
padding-bottom: 0.5rem;
padding-left: 0.75rem;
font-size: 1rem;
line-height: 1.5rem;
--tw-shadow: 0 0 #0000;
}
[type='text']:focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
outline: 2px solid transparent;
outline-offset: 2px;
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: #2563eb;
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
border-color: #2563eb;
}
input::-moz-placeholder, textarea::-moz-placeholder {
color: #6b7280;
opacity: 1;
}
input::placeholder,textarea::placeholder {
color: #6b7280;
opacity: 1;
}
::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}
::-webkit-date-and-time-value {
min-height: 1.5em;
}
::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
padding-top: 0;
padding-bottom: 0;
}
select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
[multiple] {
background-image: initial;
background-position: initial;
background-repeat: unset;
background-size: initial;
padding-right: 0.75rem;
-webkit-print-color-adjust: unset;
print-color-adjust: unset;
}
[type='checkbox'],[type='radio'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 0;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
display: inline-block;
vertical-align: middle;
background-origin: border-box;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
flex-shrink: 0;
height: 1rem;
width: 1rem;
color: #2563eb;
background-color: #fff;
border-color: #6b7280;
border-width: 1px;
--tw-shadow: 0 0 #0000;
}
[type='checkbox'] {
border-radius: 0px;
}
[type='radio'] {
border-radius: 100%;
}
[type='checkbox']:focus,[type='radio']:focus {
outline: 2px solid transparent;
outline-offset: 2px;
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 2px;
--tw-ring-offset-color: #fff;
--tw-ring-color: #2563eb;
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
[type='checkbox']:checked,[type='radio']:checked {
border-color: transparent;
background-color: currentColor;
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
[type='checkbox']:checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}
[type='radio']:checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}
[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
border-color: transparent;
background-color: currentColor;
}
[type='checkbox']:indeterminate {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
border-color: transparent;
background-color: currentColor;
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
border-color: transparent;
background-color: currentColor;
}
[type='file'] {
background: unset;
border-color: inherit;
border-width: 0;
border-radius: 0;
padding: 0;
font-size: unset;
line-height: inherit;
}
[type='file']:focus {
outline: 1px solid ButtonText;
outline: 1px auto -webkit-focus-ring-color;
}
*, ::before, ::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
@ -688,6 +522,40 @@ select {
--tw-backdrop-sepia: ;
}
.container {
width: 100%;
}
@media (min-width: 640px) {
.container {
max-width: 640px;
}
}
@media (min-width: 768px) {
.container {
max-width: 768px;
}
}
@media (min-width: 1024px) {
.container {
max-width: 1024px;
}
}
@media (min-width: 1280px) {
.container {
max-width: 1280px;
}
}
@media (min-width: 1536px) {
.container {
max-width: 1536px;
}
}
.pointer-events-none {
pointer-events: none;
}
@ -700,6 +568,10 @@ select {
visibility: hidden;
}
.static {
position: static;
}
.absolute {
position: absolute;
}
@ -725,30 +597,14 @@ select {
right: 0px;
}
.top-0 {
top: 0px;
}
.top-1\/2 {
top: 50%;
}
.top-14 {
top: 3.5rem;
}
.top-4 {
top: 1rem;
}
.top-8 {
top: 2rem;
}
.top-6 {
top: 1.5rem;
}
.z-10 {
z-index: 10;
}
@ -773,17 +629,22 @@ select {
margin: 1rem;
}
.m-5 {
margin: 1.25rem;
}
.m-auto {
margin: auto;
}
.m-5 {
margin: 1.25rem;
.mx-5 {
margin-left: 1.25rem;
margin-right: 1.25rem;
}
.mx-8 {
margin-left: 2rem;
margin-right: 2rem;
.mx-\[10\%\] {
margin-left: 10%;
margin-right: 10%;
}
.mx-auto {
@ -796,21 +657,6 @@ select {
margin-bottom: 1rem;
}
.my-8 {
margin-top: 2rem;
margin-bottom: 2rem;
}
.mx-4 {
margin-left: 1rem;
margin-right: 1rem;
}
.mx-5 {
margin-left: 1.25rem;
margin-right: 1.25rem;
}
.-mr-4 {
margin-right: -1rem;
}
@ -819,12 +665,20 @@ select {
margin-bottom: 0.25rem;
}
.mb-3 {
margin-bottom: 0.75rem;
.mb-24 {
margin-bottom: 6rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.mb-8 {
margin-bottom: 2rem;
.mb-5 {
margin-bottom: 1.25rem;
}
.mb-6 {
margin-bottom: 1.5rem;
}
.ml-2 {
@ -867,34 +721,10 @@ select {
margin-top: 1rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.mb-20 {
margin-bottom: 5rem;
}
.mb-24 {
margin-bottom: 6rem;
}
.mb-6 {
margin-bottom: 1.5rem;
}
.mb-10 {
margin-bottom: 2.5rem;
}
.mt-8 {
margin-top: 2rem;
}
.mb-5 {
margin-bottom: 1.25rem;
}
.block {
display: block;
}
@ -903,10 +733,18 @@ select {
display: inline-block;
}
.inline {
display: inline;
}
.flex {
display: flex;
}
.contents {
display: contents;
}
.hidden {
display: none;
}
@ -923,14 +761,14 @@ select {
height: 2.5rem;
}
.h-3 {
height: 0.75rem;
}
.h-6 {
height: 1.5rem;
}
.h-72 {
height: 18rem;
}
.h-8 {
height: 2rem;
}
@ -939,54 +777,26 @@ select {
height: 2.25rem;
}
.h-full {
height: 100%;
}
.h-96 {
height: 24rem;
}
.h-24 {
height: 6rem;
}
.h-72 {
height: 18rem;
}
.h-auto {
height: auto;
}
.h-20 {
height: 5rem;
}
.h-48 {
height: 12rem;
}
.h-64 {
height: 16rem;
.h-full {
height: 100%;
}
.min-h-full {
min-height: 100%;
}
.w-10 {
width: 2.5rem;
}
.w-11\/12 {
width: 91.666667%;
}
.w-3 {
width: 0.75rem;
}
.w-5 {
width: 1.25rem;
}
@ -1011,38 +821,14 @@ select {
width: 100%;
}
.w-1\/2 {
width: 50%;
}
.w-12 {
width: 3rem;
}
.w-44 {
width: 11rem;
}
.w-1\/3 {
width: 33.333333%;
}
.w-9\/12 {
width: 75%;
}
.w-96 {
width: 24rem;
.max-w-md {
max-width: 28rem;
}
.max-w-sm {
max-width: 24rem;
}
.max-w-md {
max-width: 28rem;
}
.flex-1 {
flex: 1 1 0%;
}
@ -1055,8 +841,8 @@ select {
flex-grow: 1;
}
.flex-grow-0 {
flex-grow: 0;
.grow {
flex-grow: 1;
}
.origin-center {
@ -1094,20 +880,20 @@ select {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.cursor-pointer {
cursor: pointer;
.\!transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
}
.list-decimal {
list-style-type: decimal;
.transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.list-none {
list-style-type: none;
.cursor-pointer {
cursor: pointer;
}
.flex-row {
flex-direction: row;
.list-none {
list-style-type: none;
}
.flex-col {
@ -1146,6 +932,12 @@ select {
align-self: center;
}
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.whitespace-nowrap {
white-space: nowrap;
}
@ -1179,22 +971,23 @@ select {
border-width: 0px;
}
.border-2 {
border-width: 2px;
.border-4 {
border-width: 4px;
}
.border-8 {
border-width: 8px;
}
.border-4 {
border-width: 4px;
}
.border-solid {
border-style: solid;
}
.border-black {
--tw-border-opacity: 1;
border-color: rgb(0 0 0 / var(--tw-border-opacity));
}
.border-blue-500 {
--tw-border-opacity: 1;
border-color: rgb(59 130 246 / var(--tw-border-opacity));
@ -1214,9 +1007,9 @@ select {
border-color: rgb(255 255 255 / var(--tw-border-opacity));
}
.border-black {
--tw-border-opacity: 1;
border-color: rgb(0 0 0 / var(--tw-border-opacity));
.bg-black {
--tw-bg-opacity: 1;
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}
.bg-blue-600 {
@ -1239,11 +1032,6 @@ select {
background-color: rgb(107 114 128 / var(--tw-bg-opacity));
}
.bg-green-600 {
--tw-bg-opacity: 1;
background-color: rgb(22 163 74 / var(--tw-bg-opacity));
}
.bg-indigo-600 {
--tw-bg-opacity: 1;
background-color: rgb(79 70 229 / var(--tw-bg-opacity));
@ -1263,21 +1051,6 @@ select {
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.bg-yellow-50 {
--tw-bg-opacity: 1;
background-color: rgb(254 252 232 / var(--tw-bg-opacity));
}
.bg-yellow-500 {
--tw-bg-opacity: 1;
background-color: rgb(234 179 8 / var(--tw-bg-opacity));
}
.bg-black {
--tw-bg-opacity: 1;
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}
.bg-gradient-to-r {
background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
@ -1428,6 +1201,11 @@ select {
line-height: 2rem;
}
.text-4xl {
font-size: 2.25rem;
line-height: 2.5rem;
}
.text-5xl {
font-size: 3rem;
line-height: 1;
@ -1453,11 +1231,6 @@ select {
line-height: 1rem;
}
.text-4xl {
font-size: 2.25rem;
line-height: 2.5rem;
}
.font-bold {
font-weight: 700;
}
@ -1566,10 +1339,6 @@ select {
outline-width: 4px;
}
.outline-8 {
outline-width: 8px;
}
.outline-offset-2 {
outline-offset: 2px;
}
@ -1578,10 +1347,6 @@ select {
outline-color: #fff;
}
.outline-black {
outline-color: #000;
}
.ring-1 {
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@ -1612,6 +1377,10 @@ select {
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.transition {
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
@ -1630,6 +1399,8 @@ select {
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@tailwind forms;
@font-face {
font-family: "Rubik";
@ -1818,11 +1589,6 @@ input.valid {
border-color: transparent;
}
.hover\:border-white:hover {
--tw-border-opacity: 1;
border-color: rgb(255 255 255 / var(--tw-border-opacity));
}
.hover\:bg-emerald-700:hover {
--tw-bg-opacity: 1;
background-color: rgb(4 120 87 / var(--tw-bg-opacity));
@ -1873,11 +1639,6 @@ input.valid {
color: rgb(20 184 166 / var(--tw-text-opacity));
}
.hover\:text-white:hover {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.hover\:shadow-lg:hover {
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
@ -1980,22 +1741,10 @@ input.valid {
max-width: 24rem;
}
.sm\:flex-shrink-0 {
flex-shrink: 0;
}
.sm\:flex-grow-0 {
flex-grow: 0;
}
.sm\:flex-col {
flex-direction: column;
}
.sm\:items-center {
align-items: center;
}
.sm\:justify-center {
justify-content: center;
}
@ -2011,24 +1760,11 @@ input.valid {
}
@media (min-width: 768px) {
.md\:flex-grow-0 {
flex-grow: 0;
}
.md\:flex-row {
flex-direction: row;
}
.md\:text-5xl {
font-size: 3rem;
line-height: 1;
}
.md\:text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
}
.md\:text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
@ -2036,12 +1772,8 @@ input.valid {
}
@media (min-width: 1024px) {
.lg\:m-0 {
margin: 0px;
}
.lg\:m-5 {
margin: 1.25rem;
.lg\:invisible {
visibility: hidden;
}
.lg\:mx-8 {
@ -2053,10 +1785,6 @@ input.valid {
margin-top: 0px;
}
.lg\:mb-0 {
margin-bottom: 0px;
}
.lg\:block {
display: block;
}
@ -2073,24 +1801,12 @@ input.valid {
display: none;
}
.lg\:h-full {
height: 100%;
}
.lg\:w-1\/2 {
width: 50%;
}
.lg\:w-auto {
width: auto;
}
.lg\:w-1\/3 {
width: 33.333333%;
}
.lg\:w-full {
width: 100%;
.lg\:w-auto {
width: auto;
}
.lg\:flex-none {
@ -2101,10 +1817,6 @@ input.valid {
flex-grow: 1;
}
.lg\:flex-grow-0 {
flex-grow: 0;
}
.lg\:flex-row {
flex-direction: row;
}
@ -2126,21 +1838,16 @@ input.valid {
padding-right: 2rem;
}
.lg\:text-6xl {
font-size: 3.75rem;
line-height: 1;
}
.lg\:text-4xl {
font-size: 2.25rem;
line-height: 2.5rem;
}
.lg\:text-2xl {
font-size: 1.5rem;
line-height: 2rem;
}
.lg\:text-6xl {
font-size: 3.75rem;
line-height: 1;
}
.lg\:transition-colors {
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);

@ -0,0 +1,20 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./**/*.{html,js,php}"],
theme: {
extend: {
fontFamily: {
rubik: ['Rubik', 'sans-serif'],
grenzeGotisch: ['GrenzeGotisch', 'serif'],
fingerpaint: ['FingerPaint', 'sans-serif'],
narrow: ['PTSansNarrow', 'sans-serif'],
},
},
},
variants: {
extend: {
width: ["responsive", "hover", "focus"],
},
},
plugins: [],
}
Loading…
Cancel
Save