Skip to content

Commit

Permalink
add missing component files for tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
aivuk committed May 31, 2023
1 parent c2fe91d commit c370ee3
Show file tree
Hide file tree
Showing 16 changed files with 1,190 additions and 0 deletions.
73 changes: 73 additions & 0 deletions templates/styles/base/_basic.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
html,
body {
@apply font-sans;
}

html {
scroll-behavior: smooth;
}

body {
overscroll-behavior-y: none;
}

img {
@apply block max-w-full;
}

.true-w-full {
width: 100vw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50vw;
margin-right: -50vw;
}

.root {
@apply relative z-0 overflow-hidden min-h-screen;
}

.master {
@apply relative px-8 mx-auto;

max-width: 84rem;
}

.container {
@apply relative grid grid-cols-12 gap-2.5 mx-auto;

max-width: 84rem;
}

.sm-no-break {
content: '';

&:after {
content: ' ';
}

@screen md {
content: initial;

&:after {
content: initial;
}
}
}

.md-no-break {
content: '';

&:after {
content: ' ';
}

@screen lg {
content: initial;

&:after {
content: initial;
}
}
}
61 changes: 61 additions & 0 deletions templates/styles/base/_bg-circles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
.-has-bg-circle {
@apply relative;

&::before {
content: '';
@apply absolute w-[31.25rem] h-[31.25rem] bg-okfn-blue/70 rounded-full blur-[8.4375rem] mix-blend-darken;
}

/* 700px */
&.-bg-circle-lg {
&::before {
@apply w-[43.75rem] h-[43.75rem];
}
}

/* 500px more blur */
&.-bg-circle-sm {
&::before {
@apply blur-[34rem];
}
}

/* 500px more blur */
&.-bg-circle-xs {
&::before {
@apply w-[5.875rem] h-[5.875rem] blur-[1.25rem];
}
}

&.-bg-circle-okfn-green {
&::before {
@apply bg-okfn-green/80;
}
}

&.-bg-circle-okfn-purple {
&::before {
@apply bg-okfn-purple/80;
}
}

&.-bg-circle-okfn-yellow {
&::before {
@apply bg-okfn-yellow/80;
}
}
}

.-has-bg-circles {
@apply relative;

&::before {
content: '';
@apply absolute top-1/2 right-1/2 w-[8.75rem] h-[8.75rem] bg-okfn-blue rounded-full blur-[2rem] translate-x-4 -translate-y-1/2;
}

&::after {
content: '';
@apply absolute top-1/2 left-1/2 w-[9.375rem] h-[9.375rem] bg-okfn-green rounded-full blur-[2.25rem] mix-blend-multiply -translate-x-4 -translate-y-1/2;
}
}
3 changes: 3 additions & 0 deletions templates/styles/base/_buttons.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.btn {
@apply inline-block px-12 py-[1.1875rem] bg-black text-white text-2xl font-bold rounded-[1.25rem];
}
19 changes: 19 additions & 0 deletions templates/styles/base/_forms.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.form {
.input {
&-fake {
@apply p-2 pl-5 border-2 border-black bg-white rounded-[1.25rem] text-xl text-black;

.btn {
@apply px-6 py-[0.6875rem] text-xl rounded-2xl;
}

.form-control {
@apply outline-none bg-transparent;

&::placeholder {
@apply text-black;
}
}
}
}
}
11 changes: 11 additions & 0 deletions templates/styles/base/_links.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.link {
&-arrow-curved {
@apply inline-flex items-center font-mono whitespace-nowrap;

&::before {
content: '';
mask: url(/images/icons/arrow-curved.svg) no-repeat center;
@apply w-4 h-4 mr-3 bg-current;
}
}
}
41 changes: 41 additions & 0 deletions templates/styles/base/_main-footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.main-footer {
@apply py-12 bg-okfn-blue;

&__head {
@apply col-span-12 mb-12 md:mb-0;

.lg {
img {
@apply mx-auto md:mx-0;
}
}
}

&__nav {
@apply col-span-6 md:col-span-2 md:flex md:items-end gap-16 mb-12 md:mb-0 font-bold;

&.-main {
@apply md:col-span-4;
}

ul {
@apply flex-1;

& + ul {
@apply mt-4 md:mt-0;
}
}

li {
@apply mb-4;

&:last-child {
@apply mb-0;
}
}
}

&__disclaimers {
@apply col-span-12 md:col-start-10 md:col-span-4;
}
}
Loading

0 comments on commit c370ee3

Please sign in to comment.