update tailwind

This commit is contained in:
Romulus21 committed 2025-03-14 23:30:10 +01:00
1 parent b806fbab96
commit 88b7f72e81
7 files changed
+2442 -50

No files matched your search

+1
View File
@@ -1,4 +1,5 @@
Todos.db Todos.db
node_modules/
target/ target/
site/ site/
style/output.css style/output.css
+2 -2
View File
@@ -13,6 +13,6 @@ deploy:
install: install:
cargo leptos build --release cargo leptos build --release
sudo systemctl stop rust_leptos.service sudo systemctl stop rust_leptos.service
scp target/release/rust_leptos /var/www/rust_leptos/rust_leptos cp target/release/rust_leptos /var/www/rust_leptos/rust_leptos
#scp -r target/site /var/www/rust_leptos/ cp -r target/site /var/www/rust_leptos/
sudo systemctl start rust_leptos.service sudo systemctl start rust_leptos.service
+15 -19
View File
@@ -1,27 +1,23 @@
@import 'tailwindcss'; @import "tailwindcss";
@config './tailwind.config.js'; @theme {
/*--font-display: "Satoshi", "sans-serif";*/
/*--breakpoint-3xl: 120rem;*/
--color-prim: oklch(27.95% 0.0085 255.57);
--color-prim-light: oklch(30.28% 0.0092 248.13);
--color-second: oklch(99.11% 0 0);
--color-second-dark: oklch(66.55% 0.0038 247.88);
--color-third: oklch(61.47% 0.2541 24.53);
--color-third-light: oklch(64.41% 0.2245 24.53);
--color-fourth: oklch(83.29% 0.161 80.36);
--color-green: oklch(76.97% 0.261916 142.4953);
/* --text-4xl: 4rem;
The default border color has changed to `currentColor` in Tailwind CSS v4, --text-4xl--line-height: calc(2.5 / 2.25);
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
} }
body { body {
@apply dark:bg-prim dark:text-second @apply dark:bg-prim dark:text-second;
} }
.active-link { .active-link {
+1881
View File
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
{
"dependencies": {
"@tailwindcss/cli": "^4.0.14",
"@tailwindcss/vite": "^4.0.14"
},
"devDependencies": {
"tailwindcss": "^4.0.14"
}
}
+529 -1
View File
@@ -1 +1,529 @@
/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.static{position:static}.m-2{margin:.5rem}.m-5{margin:1.25rem}.-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.mx-5{margin-left:1.25rem;margin-right:1.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0{margin-top:0;margin-bottom:0}.my-5{margin-top:1.25rem;margin-bottom:1.25rem}.mb-1{margin-bottom:.25rem}.ml-5{margin-left:1.25rem}.mt-3{margin-top:.75rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-screen{height:100vh}.w-12{width:3rem}.w-60{width:15rem}.w-72{width:18rem}.min-w-60{min-width:15rem}.flex-1{flex:1 1 0%}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-3{gap:.75rem}.gap-5{gap:1.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-b-lg{border-bottom-left-radius:.5rem}.rounded-b-lg,.rounded-br-lg{border-bottom-right-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-third{--tw-border-opacity:1;border-color:rgb(252 68 61/var(--tw-border-opacity))}.border-transparent{border-color:#0000}.bg-prim{--tw-bg-opacity:1;background-color:rgb(38 41 45/var(--tw-bg-opacity))}.bg-prim-light{--tw-bg-opacity:1;background-color:rgb(43 47 51/var(--tw-bg-opacity))}.bg-third{--tw-bg-opacity:1;background-color:rgb(252 68 61/var(--tw-bg-opacity))}.p-3{padding:.75rem}.p-6{padding:1.5rLine truncated /*! tailwindcss v4.0.14 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
:root, :host {
--font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
--spacing: 0.25rem;
--text-sm: 0.875rem;
--text-sm--line-height: calc(1.25 / 0.875);
--text-lg: 1.125rem;
--text-lg--line-height: calc(1.75 / 1.125);
--text-xl: 1.25rem;
--text-xl--line-height: calc(1.75 / 1.25);
--text-2xl: 1.5rem;
--text-2xl--line-height: calc(2 / 1.5);
--text-4xl: 4rem;
--text-4xl--line-height: calc(2.5 / 2.25);
--font-weight-bold: 700;
--radius-sm: 0.25rem;
--radius-lg: 0.5rem;
--default-transition-duration: 150ms;
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
--default-font-family: var(--font-sans);
--default-font-feature-settings: var(--font-sans--font-feature-settings);
--default-font-variation-settings: var(
--font-sans--font-variation-settings
);
--default-mono-font-family: var(--font-mono);
--default-mono-font-feature-settings: var(
--font-mono--font-feature-settings
);
--default-mono-font-variation-settings: var(
--font-mono--font-variation-settings
);
--color-prim: oklch(27.95% 0.0085 255.57);
--color-prim-light: oklch(30.28% 0.0092 248.13);
--color-second: oklch(99.11% 0 0);
--color-second-dark: oklch(66.55% 0.0038 247.88);
--color-third: oklch(61.47% 0.2541 24.53);
--color-third-light: oklch(64.41% 0.2245 24.53);
--color-fourth: oklch(83.29% 0.161 80.36);
--color-green: oklch(76.97% 0.261916 142.4953);
}
}
@layer base {
*, ::after, ::before, ::backdrop, ::file-selector-button {
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0 solid;
}
html, :host {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
tab-size: 4;
font-family: var( --default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" );
font-feature-settings: var(--default-font-feature-settings, normal);
font-variation-settings: var( --default-font-variation-settings, normal );
-webkit-tap-highlight-color: transparent;
}
body {
line-height: inherit;
}
hr {
height: 0;
color: inherit;
border-top-width: 1px;
}
abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
h1, h2, h3, h4, h5, h6 {
font-size: inherit;
font-weight: inherit;
}
a {
color: inherit;
-webkit-text-decoration: inherit;
text-decoration: inherit;
}
b, strong {
font-weight: bolder;
}
code, kbd, samp, pre {
font-family: var( --default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace );
font-feature-settings: var( --default-mono-font-feature-settings, normal );
font-variation-settings: var( --default-mono-font-variation-settings, normal );
font-size: 1em;
}
small {
font-size: 80%;
}
sub, sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
table {
text-indent: 0;
border-color: inherit;
border-collapse: collapse;
}
:-moz-focusring {
outline: auto;
}
progress {
vertical-align: baseline;
}
summary {
display: list-item;
}
ol, ul, menu {
list-style: none;
}
img, svg, video, canvas, audio, iframe, embed, object {
display: block;
vertical-align: middle;
}
img, video {
max-width: 100%;
height: auto;
}
button, input, select, optgroup, textarea, ::file-selector-button {
font: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
letter-spacing: inherit;
color: inherit;
border-radius: 0;
background-color: transparent;
opacity: 1;
}
:where(select:is([multiple], [size])) optgroup {
font-weight: bolder;
}
:where(select:is([multiple], [size])) optgroup option {
padding-inline-start: 20px;
}
::file-selector-button {
margin-inline-end: 4px;
}
::placeholder {
opacity: 1;
color: color-mix(in oklab, currentColor 50%, transparent);
}
textarea {
resize: vertical;
}
::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-date-and-time-value {
min-height: 1lh;
text-align: inherit;
}
::-webkit-datetime-edit {
display: inline-flex;
}
::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}
::-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-block: 0;
}
:-moz-ui-invalid {
box-shadow: none;
}
button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
appearance: button;
}
::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
height: auto;
}
[hidden]:where(:not([hidden="until-found"])) {
display: none !important;
}
}
@layer utilities {
.relative {
position: relative;
}
.static {
position: static;
}
.m-2 {
margin: calc(var(--spacing) * 2);
}
.m-5 {
margin: calc(var(--spacing) * 5);
}
.mx-5 {
margin-inline: calc(var(--spacing) * 5);
}
.mx-auto {
margin-inline: auto;
}
.-my-2 {
margin-block: calc(var(--spacing) * -2);
}
.my-0 {
margin-block: calc(var(--spacing) * 0);
}
.my-5 {
margin-block: calc(var(--spacing) * 5);
}
.mt-3 {
margin-top: calc(var(--spacing) * 3);
}
.mt-5 {
margin-top: calc(var(--spacing) * 5);
}
.mb-1 {
margin-bottom: calc(var(--spacing) * 1);
}
.ml-5 {
margin-left: calc(var(--spacing) * 5);
}
.block {
display: block;
}
.flex {
display: flex;
}
.grid {
display: grid;
}
.hidden {
display: none;
}
.inline {
display: inline;
}
.inline-block {
display: inline-block;
}
.table {
display: table;
}
.size-12 {
width: calc(var(--spacing) * 12);
height: calc(var(--spacing) * 12);
}
.h-screen {
height: 100vh;
}
.w-12 {
width: calc(var(--spacing) * 12);
}
.w-48 {
width: calc(var(--spacing) * 48);
}
.w-60 {
width: calc(var(--spacing) * 60);
}
.w-72 {
width: calc(var(--spacing) * 72);
}
.min-w-60 {
min-width: calc(var(--spacing) * 60);
}
.flex-1 {
flex: 1;
}
.border-collapse {
border-collapse: collapse;
}
.-rotate-90 {
rotate: calc(90deg * -1);
}
.rotate-90 {
rotate: 90deg;
}
.resize {
resize: both;
}
.grid-cols-1 {
grid-template-columns: repeat(1, minmax(0, 1fr));
}
.flex-col {
flex-direction: column;
}
.flex-wrap {
flex-wrap: wrap;
}
.justify-between {
justify-content: space-between;
}
.justify-center {
justify-content: center;
}
.justify-end {
justify-content: flex-end;
}
.gap-2 {
gap: calc(var(--spacing) * 2);
}
.gap-3 {
gap: calc(var(--spacing) * 3);
}
.gap-5 {
gap: calc(var(--spacing) * 5);
}
.rounded-full {
border-radius: calc(infinity * 1px);
}
.rounded-lg {
border-radius: var(--radius-lg);
}
.rounded-sm {
border-radius: var(--radius-sm);
}
.rounded-b-lg {
border-bottom-right-radius: var(--radius-lg);
border-bottom-left-radius: var(--radius-lg);
}
.rounded-br-lg {
border-bottom-right-radius: var(--radius-lg);
}
.border {
border-style: var(--tw-border-style);
border-width: 1px;
}
.border-b {
border-bottom-style: var(--tw-border-style);
border-bottom-width: 1px;
}
.border-third {
border-color: var(--color-third);
}
.border-transparent {
border-color: transparent;
}
.bg-prim {
background-color: var(--color-prim);
}
.bg-prim-light {
background-color: var(--color-prim-light);
}
.bg-second-dark {
background-color: var(--color-second-dark);
}
.bg-third {
background-color: var(--color-third);
}
.p-3 {
padding: calc(var(--spacing) * 3);
}
.p-6 {
padding: calc(var(--spacing) * 6);
}
.px-2 {
padding-inline: calc(var(--spacing) * 2);
}
.px-3 {
padding-inline: calc(var(--spacing) * 3);
}
.px-5 {
padding-inline: calc(var(--spacing) * 5);
}
.py-1 {
padding-block: calc(var(--spacing) * 1);
}
.py-2 {
padding-block: calc(var(--spacing) * 2);
}
.py-3 {
padding-block: calc(var(--spacing) * 3);
}
.py-4 {
padding-block: calc(var(--spacing) * 4);
}
.pb-6 {
padding-bottom: calc(var(--spacing) * 6);
}
.text-center {
text-align: center;
}
.text-2xl {
font-size: var(--text-2xl);
line-height: var(--tw-leading, var(--text-2xl--line-height));
}
.text-4xl {
font-size: var(--text-4xl);
line-height: var(--tw-leading, var(--text-4xl--line-height));
}
.text-lg {
font-size: var(--text-lg);
line-height: var(--tw-leading, var(--text-lg--line-height));
}
.text-sm {
font-size: var(--text-sm);
line-height: var(--tw-leading, var(--text-sm--line-height));
}
.text-xl {
font-size: var(--text-xl);
line-height: var(--tw-leading, var(--text-xl--line-height));
}
.font-bold {
--tw-font-weight: var(--font-weight-bold);
font-weight: var(--font-weight-bold);
}
.text-fourth {
color: var(--color-fourth);
}
.text-green {
color: var(--color-green);
}
.text-second-dark {
color: var(--color-second-dark);
}
.text-third {
color: var(--color-third);
}
.underline {
text-decoration-line: underline;
}
.outline {
outline-style: var(--tw-outline-style);
outline-width: 1px;
}
.transition-colors {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.\*\:flex-1 {
:is(& > *) {
flex: 1;
}
}
.\*\:transition {
:is(& > *) {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
}
.hover\:border-b {
&:hover {
@media (hover: hover) {
border-bottom-style: var(--tw-border-style);
border-bottom-width: 1px;
}
}
}
.hover\:border-third {
&:hover {
@media (hover: hover) {
border-color: var(--color-third);
}
}
}
.hover\:bg-third-light {
&:hover {
@media (hover: hover) {
background-color: var(--color-third-light);
}
}
}
.hover\:text-third {
&:hover {
@media (hover: hover) {
color: var(--color-third);
}
}
}
.focus\:border-third {
&:focus {
border-color: var(--color-third);
}
}
.focus\:text-third-light {
&:focus {
color: var(--color-third-light);
}
}
.md\:grid-cols-2 {
@media (width >= 48rem) {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.xl\:grid-cols-3 {
@media (width >= 80rem) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
.\32 xl\:grid-cols-4 {
@media (width >= 96rem) {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}
}
body {
@media (prefers-color-scheme: dark) {
background-color: var(--color-prim);
}
@media (prefers-color-scheme: dark) {
color: var(--color-second);
}
}
.active-link {
border-bottom-style: var(--tw-border-style);
border-bottom-width: 1px;
color: var(--color-third);
}
@property --tw-border-style {
syntax: "*";
inherits: false;
initial-value: solid;
}
@property --tw-font-weight {
syntax: "*";
inherits: false;
}
@property --tw-outline-style {
syntax: "*";
inherits: false;
initial-value: solid;
}
+5 -28
View File
@@ -1,35 +1,12 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
module.exports = { module.exports = {
content: { content: {
relative: true,
files: ["*.html", "./src/**/*.rs"], files: ["*.html", "./src/**/*.rs"],
}, },
safelist: ['rotate-90', '-rotate-90'],
theme: { theme: {
extend: { extend: {},
colors: {
prim: {
lightest: "#2E3235",
light: "#2B2F33",
DEFAULT: "#26292D",
},
second: {
DEFAULT: "#FEFEFE",
dark: "#929496",
},
third: {
light: "#F96662",
DEFAULT: "#FC443D",
},
fourth: {
light: "#FFD885",
DEFAULT: "#FEBB2E",
},
green: "#00DA00",
},
fontSize: {
"4xl": ["4rem", "1.3"],
},
},
}, },
plugins: [], plugins: [],
}; }