Files
ECSESS/src/app.css
Mel 984e7895e8 Event Page (#36)
* created event block component, tabs wip

* adding icons and changing type to EventPost

* refactor event block to tailwind (antoine help)

* revert nav bar to black

* using tabs from skeleton

* Fix Event tabs CSS classses and create Tab Control component

* adding space between the tabs

* created EventTabPanel component

* small styling fix

* sorting events by date

---------

Co-authored-by: Antoine Phan <antoine.phan@mail.mcgill.ca>
2025-08-28 20:30:31 -04:00

191 lines
2.4 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Saira:ital,wght@0,100..900;1,100..900&display=swap');
@import 'tailwindcss';
@theme {
--color-ecsess-200: #a9b7a0;
--color-ecsess-400: #5c8a5c;
--color-ecsess-600: #3b6a3a;
--color-ecsess-800: #0a3d2a;
--color-ecsess-black: #1F1F1F;
--color-ecsess-black-hover: #168059;
}
* {
font-family: 'Saira', sans-serif;
font-optical-sizing: auto;
font-weight: 500;
scroll-behavior: smooth;
}
h1 {
@apply py-4 text-2xl font-bold md:text-3xl;
}
h2 {
@apply py-3 text-xl font-bold md:text-2xl;
}
.page-title {
@apply my-6 text-3xl font-bold md:text-4xl lg:text-6xl;
}
.typography {
@apply text-sm md:text-base lg:text-lg;
p {
@apply my-2 leading-relaxed;
}
strong, b {
@apply font-bold;
}
i {
@apply italic;
}
blockquote {
@apply bg-ecsess-200 text-ecsess-600 border-l-ecsess-800 my-4 rounded-sm border-l-4 py-[0.01rem] ps-4 italic;
}
h1 {
@apply my-4 text-4xl leading-10 font-extrabold;
}
h2 {
@apply mt-4 mb-3 text-2xl leading-8 font-black;
}
h3 {
@apply mt-4 mb-1 text-xl leading-relaxed font-bold;
}
h4 {
@apply mt-6 mb-2 leading-6;
}
img,
picture,
video {
@apply my-8;
}
picture > img {
@apply mt-0 mb-0;
}
code,
kbd {
@apply rounded-md font-mono text-sm;
}
h2 code {
@apply text-[1.3125rem]; /* 21px */
}
h3 code {
@apply text-[1.125rem]; /* 18px */
}
pre {
@apply my-3 rounded-md px-4 pt-3 pb-3 font-mono text-sm leading-6;
}
ol,
ul {
@apply my-2 list-outside list-disc ps-[1.625rem];
}
li {
@apply my-1 leading-relaxed;
}
ol > li,
ul > li {
@apply ps-1;
}
> ul > li p {
@apply my-2 leading-relaxed;
}
ul ul,
ul ol,
ol ul,
ol ol {
@apply my-1;
}
dl {
@apply my-5;
}
dt {
@apply mt-5;
}
dd {
@apply mt-2 ps-[1.625rem];
}
hr {
@apply my-12;
}
hr + *,
h2 + *,
h3 + *,
h4 + * {
@apply mt-0;
}
table {
@apply w-full;
}
thead {
@apply border-ecsess-400 border-b-2;
}
thead th {
@apply text-ecsess-400 p-2 text-left text-base font-bold;
}
tbody td,
tfoot td {
@apply p-2.5;
}
td > a {
@apply underline transition-colors;
}
tbody tr:nth-child(odd) {
@apply bg-ecsess-200/24;
}
td + td {
@apply border-l;
}
tfoot {
@apply border-t;
}
figure {
@apply my-8;
}
figure > * {
@apply my-0;
}
figcaption {
@apply mt-3 text-sm leading-5;
}
}
.event{
@apply grid gap-6;
}