adding tailwind css

This commit is contained in:
2026-02-04 12:04:08 +00:00
parent 6469cb4ad7
commit 9167946ecc
41 changed files with 796 additions and 368 deletions

View File

@@ -0,0 +1,253 @@
@import "tailwindcss";
/* PRINTING */
@media print {
.no-print,
.no-print * {
display: none !important;
margin: 0px;
padding: 0px;
width: 0x;
height: 0px;
}
}
/* END OF PRINTING */
/* FONTS */
@font-face {
font-family: "big_noodle_titling";
src: url("/fonts/big_noodle_titling.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "CreatoDisplay";
src: url("/fonts/CreatoDisplay-Bold.otf") format("opentype");
font-weight: normal;
font-style: normal;
}
/* END OF FONTS */
/* VARIABLES */
:root {
/* RED, WHITE, BLACK are standard*/
--portal_grey: #dddddd;
--portal_orange: #ff9a00;
--portal_light_orange: #ff5d00;
--portal_blue: #0065ff;
--portal_light_blue: #00a2ff;
/* MAIN COLORS */
--primary: #5fb;
--secondary: #5ea;
--tertiary: #2ea;
--quaternary: #400;
/* BACKGROUND COLORS */
--bg_primary: #011;
--bg_secondary: #000;
--margin: 3px;
--spacing: 3px;
/* FONTS USED */
--font_heading: big_noodle_titling;
--font_text: CreatoDisplay;
}
@theme {
--color-primary: var(--primary);
--color-secondary: var(--secondary);
--color-tertiary: var(--tertiary);
--color-quaternary: var(--quaternary);
--color-bg_primary: var(--bg_primary);
--color-bg_secondary: var(--bg_secondary);
}
/* END OF VARIABLES */
/* ELEMENTS */
body {
margin: 0 auto;
width: 100vw;
height: 100vh;
font-family: var(--font_text);
}
a > * {
color: var(--tertiary);
}
a {
color: var(--tertiary);
text-align: center;
text-decoration: none;
padding: 0px;
margin: 0px;
}
small {
color: var(--tertiary);
}
h1,
h2,
h3,
h4 {
border-bottom: 1px solid var(--primary);
color: var(--primary);
font-family: var(--font_heading);
margin: var(--margin);
}
p {
color: var(--secondary);
margin: var(--margin);
}
button {
color: var(--secondary);
background-color: var(--bg_secondary);
margin: var(--margin);
}
table {
border: 1px solid var(--primary);
border-collapse: collapse;
color: var(--secondary);
margin: var(--margin);
}
tr {
border-bottom: 1px solid var(--primary);
}
/* END OF ELEMENTS */
/* CLASSES */
.img-stamp {
width: 99px;
height: 55px;
}
/* BORDERS */
.bdr-1 {
border: 30px solid;
border-image: url("/img/borders/border1.gif") 30 round;
}
.bdr-1-inv {
border: 30px solid;
border-image: url("/img/borders/border1inv.gif") 30 round;
}
.bdr-2 {
border: 7px solid;
border-image: url("/img/borders/border4.gif") 7 round;
}
.bdr-cv {
border: 30px solid;
border-image: url("/img/borders/bordercv.png") 30 round;
}
/* A5 Page */
.a5page-landscape {
font-family: var(--font_text);
height: 148mm;
width: 210mm;
margin: 0px;
}
.a5page-portrait {
font-family: var(--font_text);
width: 148mm;
height: 210mm;
margin: 0px;
}
/* A4 Page */
.a4page-portrait {
width: 210mm;
height: 297mm;
margin: 0px;
}
.a4page-landscape {
height: 210mm;
width: 297mm;
margin: 0 auto;
}
/* END OF CLASSES */
/* PHONE */
@media (max-width: 850px) {
.a4page-portrait {
width: 100%; /* fill mobile width */
height: auto; /* adjust height automatically */
margin: 0 auto; /* center horizontally */
box-sizing: border-box;
}
.a4page-landscape {
width: 100%; /* fill mobile width */
height: auto; /* adjust height automatically */
margin: 0 auto; /* center horizontally */
box-sizing: border-box;
}
}
@media (max-width: 600px) {
.a5page-portrait {
width: 100%; /* fill mobile width */
height: auto; /* adjust height automatically */
margin: 0 auto; /* center horizontally */
box-sizing: border-box;
}
.a5page-landscape {
width: 100%; /* fill mobile width */
height: auto; /* adjust height automatically */
margin: 0 auto; /* center horizontally */
box-sizing: border-box;
}
}
.tl {
@apply absolute top-0 left-0;
}
.tr {
@apply absolute top-0 right-0;
}
.bl {
@apply absolute bottom-0 left-0;
}
.br {
@apply absolute bottom-0 right-0;
}
.background {
@apply fixed inset-0 -z-10 pointer-events-none;
}
.halftone {
--dot_size: 1px;
--bg_size: 3px;
--bg_pos: calc(var(--bg_size) / 2);
--blur: 0%;
background-color: var(--bg_secondary);
background-image: radial-gradient(
circle at center,
var(--bg_primary) var(--dot_size),
transparent var(--blur)
);
background-size: var(--bg_size) var(--bg_size);
background-position: 0 0;
mask-image: linear-gradient(
30deg,
rgba(1, 1, 1, 1) 0%,
rgba(1, 1, 1, 0.9) 100%
);
}