updated to laravel 11

This commit is contained in:
2024-04-22 18:16:33 +10:00
parent 5fbca80a3c
commit 5b7da699bd
503 changed files with 9672 additions and 73262 deletions

293
resources/css/app.css Normal file
View File

@@ -0,0 +1,293 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
html, body {
@apply bg-gray-100;
min-height: 100vh;
}
body {
font-family: Poppins, Roboto, Open Sans, ui-sans-serif, system-ui, sans-serif;
}
a.link {
@apply text-primary-color hover:underline hover:text-primary-color-light;
}
input[type="text"]:read-only {
@apply bg-gray-100 focus:border-gray-300 focus:border-gray-300;
}
.list-circle {
list-style: circle;
}
.image-background {
@apply bg-no-repeat bg-center bg-cover;
background-image: url('/resources/assets/background.webp');
}
body.swal2-height-auto {
height: 100vh !important;
}
.swal2-container {
&.swal2-top {
padding-top: 5rem;
}
.swal2-title {
@apply text-xl;
}
.swal2-html-container {
@apply text-base;
}
.swal2-actions button {
@apply rounded-md text-white px-8 py-1.5 text-sm font-semibold leading-6 shadow-sm;
}
.swal2-popup.swal2-toast {
.swal2-title {
@apply text-sm;
}
.swal2-html-container {
@apply text-sm;
}
}
&.success .swal2-popup {
@apply bg-green-100 text-green-900;
.swal2-close {
@apply text-green-900 hover:text-red-600;
}
}
&.danger .swal2-popup {
@apply bg-red-100 text-red-900;
.swal2-close {
@apply text-red-900 hover:text-red-600;
}
}
&.warning .swal2-popup {
@apply bg-yellow-100 text-yellow-900;
.swal2-close {
@apply text-yellow-900 hover:text-red-600;
}
}
&.info .swal2-popup {
@apply bg-blue-100 text-blue-900;
.swal2-close {
@apply text-blue-900 hover:text-red-600;
}
}
}
.editor {
@apply bg-white rounded-lg border border-gray-300;
.menu {
@apply border-b border-gray-300 flex px-2 py-1 gap-[1px] flex-wrap;
button {
@apply text-xs p-1 min-w-5;
&:hover:not(.selected) {
@apply bg-gray-200;
}
&.is-active {
@apply bg-primary-color text-white;
}
}
}
.tiptap {
@apply p-2 min-h-96;
}
}
.content {
h1 {
@apply text-3xl font-semibold;
}
h2 {
@apply text-2xl font-semibold;
}
h3 {
@apply text-xl font-semibold;
}
p {
@apply mb-4;
}
a {
@apply text-primary-color hover:underline hover:text-primary-color-light;
}
blockquote {
@apply mx-4 bg-gray-100 rounded py-2 px-4 mb-4;
p:last-of-type {
@apply mb-0;
}
}
pre {
@apply text-sm bg-gray-100 rounded py-2 px-4 mb-4;
}
/* Color swatches */
.color {
white-space: nowrap;
&::before {
background-color: var(--color);
border: 1px solid rgba(128, 128, 128, 0.3);
border-radius: 2px;
content: " ";
display: inline-block;
height: 1em;
margin-bottom: 0.15em;
margin-right: 0.1em;
vertical-align: middle;
width: 1em;
}
}
/* Box */
.box {
@apply border text-sm px-3 py-2 rounded-lg my-4 mx-auto max-w-2xl relative pl-8;
&.success {
@apply bg-green-100 text-green-900 border-green-600;
&:after {
content: '\f058';
position: absolute;
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
top: 0.5rem;
left: 0.75rem;
}
}
&.info {
@apply bg-blue-100 text-blue-900 border-blue-600;
&:after {
content: '\f05a';
position: absolute;
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
top: 0.5rem;
left: 0.75rem;
}
}
&.warning {
@apply bg-yellow-100 text-yellow-900 border-yellow-600;
&:after {
content: '\f071';
position: absolute;
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
top: 0.5rem;
left: 0.75rem;
}
}
&.danger {
@apply bg-red-100 text-red-900 border-red-600;
&:after {
content: '\f057';
position: absolute;
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
top: 0.5rem;
left: 0.75rem;
}
}
&.bug {
@apply bg-purple-100 text-purple-900 border-purple-600;
&:after {
content: '\f188';
position: absolute;
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
top: 0.5rem;
left: 0.75rem;
}
}
}
}
.sm-media-picker-container {
grid-template-rows: minmax(min-content, auto) 1fr minmax(min-content, auto);
}
.sm-media-picker {
width: 100%;
height: 100%;
max-width: 70rem;
max-height: 50rem;
grid-template-rows: minmax(min-content, auto) 1fr minmax(min-content, auto);
.swal2-actions {
z-index: 0;
}
}
.sm-banner-open {
@apply bg-green-800;
}
.sm-banner-closed {
@apply bg-red-600;
}
.sm-banner-full {
@apply bg-purple-600;
}
.sm-banner-draft {
@apply bg-yellow-600;
}
.sm-banner-cancelled {
@apply bg-purple-600 text-xs;
}
.sm-registration-none, .sm-registration-email, .sm-registration-message, .sm-registration-scheduled, .sm-registration-draft {
@apply text-xs rounded py-2 px-2.5 text-center mb-4 border border-yellow-400 text-yellow-800 bg-yellow-100;
}
.sm-registration-closed {
@apply text-xs rounded py-2 px-2.5 text-center mb-4 border border-red-400 text-red-800 bg-red-100;
}
.sm-registration-full {
@apply text-xs rounded py-2 px-2.5 text-center mb-4 border border-purple-400 text-purple-800 bg-purple-100;
}

View File

@@ -1,230 +0,0 @@
*,
:after,
:before {
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border: 0 solid #e5e7eb;
}
html {
overflow: -moz-scrollbars-vertical;
overflow-y: auto;
background-color: #f3f4f6;
}
html,
body {
font-family: Poppins, Roboto, "Open Sans", ui-sans-serif, system-ui,
sans-serif;
font-size: 1rem;
color: #000;
width: 100%;
min-height: 100vh;
min-width: 100%;
overflow-x: hidden;
line-height: 1.5;
margin: 0;
}
h1,
h2,
h3,
p {
margin: 0;
}
p + p,
p + ul,
ul + p {
margin-top: 1rem;
}
ol,
ul {
list-style: none;
margin: 0;
padding: 0;
}
small {
display: inline-block;
}
.small {
font-size: smaller;
}
.x-small {
font-size: x-small;
}
.list-decimal,
.list-disc,
.list-circle {
margin-left: 2.5rem;
}
.list-decimal li,
.list-disc li,
.list-circle li {
margin-top: 0.5rem;
}
a:not([role="button"]) {
color: #0284c7;
}
a:not([role="button"]):hover {
color: #0ea5e9;
}
a[role="button"] {
text-decoration: inherit;
}
a {
text-decoration: none;
}
input:disabled {
background-color: rgba(243, 244, 246);
}
input[type="submit"]:disabled {
background-color: rgba(209, 213, 219);
}
input {
font-family: Poppins, Roboto, "Open Sans", ui-sans-serif, system-ui,
sans-serif;
}
.scrollbar-width-none {
scrollbar-width: none;
}
.scrollbar-width-none::-webkit-scrollbar {
display: none;
}
.bg-center {
background-position: center;
}
.whitespace-nowrap {
white-space: nowrap;
}
.spin {
animation: rotate 1s infinite linear;
}
.text-xxs {
font-size: 0.6rem;
line-height: 0.75rem;
}
.text-bold {
font-weight: bold;
}
.sm-html .ProseMirror {
outline: none;
}
.sm-html hr {
border-top: 1px solid #aaa;
margin: 1.5rem 0;
}
.sm-html pre {
padding: 0 1rem;
line-height: 1rem;
}
.sm-html blockquote {
border-left: 4px solid #ddd;
margin-left: 1rem;
padding-left: 1rem;
}
.sm-html p.info,
.sm-html p.success,
.sm-html p.warning,
.sm-html p.danger {
display: flex;
border-radius: 0.5rem;
padding: 0.5rem 1rem 0.5rem 0.75rem;
margin: 0.5rem;
font-size: 80%;
}
.sm-html p.info::before,
.sm-html p.success::before,
.sm-html p.warning::before,
.sm-html p.danger::before {
display: inline-block;
width: 1.5rem;
height: 1.5rem;
margin-right: 0.5rem;
margin-top: 0.1rem;
flex-shrink: 0;
}
.sm-html p.info {
border: 1px solid rgba(14, 165, 233, 1);
background-color: rgba(14, 165, 233, 0.25);
}
.sm-html p.info::before {
color: rgba(14, 165, 233, 1);
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z' fill='rgba(14,165,233,1)' /%3E%3C/svg%3E");
}
.sm-html p.success {
border: 1px solid rgba(22, 163, 74, 1);
background-color: rgba(22, 163, 74, 0.25);
}
.sm-html p.success::before {
color: rgba(22, 163, 74, 1);
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z' fill='rgba(22,163,74,1)' /%3E%3C/svg%3E");
}
.sm-html p.warning,
div.warning {
border: 1px solid rgba(202, 138, 4, 1);
background-color: rgba(250, 204, 21, 0.25);
}
.sm-html p.warning::before {
color: rgba(202, 138, 4, 1);
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M12,2L1,21H23M12,6L19.53,19H4.47M11,10V14H13V10M11,16V18H13V16' fill='rgba(202,138,4,1)' /%3E%3C/svg%3E");
}
.sm-html p.danger {
border: 1px solid rgba(220, 38, 38, 1);
background-color: rgba(220, 38, 38, 0.25);
}
.sm-html p.danger::before {
color: rgba(220, 38, 38, 1);
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' %3E%3Cpath d='M8.27,3L3,8.27V15.73L8.27,21H15.73L21,15.73V8.27L15.73,3M8.41,7L12,10.59L15.59,7L17,8.41L13.41,12L17,15.59L15.59,17L12,13.41L8.41,17L7,15.59L10.59,12L7,8.41' fill='rgba(220,38,38,1)' /%3E%3C/svg%3E");
}
.sm-html img {
display: block;
margin: 1rem auto;
max-height: 100%;
max-width: 100%;
}
.sm-html ul {
list-style: disc;
margin: 1rem 2rem;
}
.sm-html ol {
list-style: decimal;
margin: 1rem 2rem;
}
.sm-html ul li,
.sm-html ol li {
margin-bottom: 0.25rem;
}
.sm-editor::-webkit-scrollbar {
background-color: transparent;
width: 16px;
}
.sm-editor::-webkit-scrollbar-thumb {
background-color: #aaa;
border: 4px solid transparent;
border-radius: 8px;
background-clip: padding-box;
}
.selected-checked {
border: 3px solid rgba(2, 132, 199, 1);
position: relative;
}
.selected-checked::after {
display: block;
position: absolute;
border: 1px solid white;
height: 1.5rem;
width: 1.5rem;
background-color: rgba(2, 132, 199, 1);
top: -0.4rem;
right: -0.4rem;
content: "";
background-position: center;
background-repeat: no-repeat;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21,7L9,19L2.712,12.712L5.556,9.892L9.029,13.358L18.186,4.189L21,7Z' fill='rgba(255,255,255,1)' /%3E%3C/svg%3E");
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}