Initial commit - frontend
This commit is contained in:
146
src/app/globals.css
Normal file
146
src/app/globals.css
Normal file
@@ -0,0 +1,146 @@
|
||||
/* === Modern CSS Reset === */
|
||||
/* Based on Josh Comeau + Andy Bell best practices */
|
||||
|
||||
/* Tailwind utilities */
|
||||
@import "tailwindcss/preflight";
|
||||
@import "tailwindcss/utilities";
|
||||
|
||||
/* Hide blinking caret for non-input areas */
|
||||
body {
|
||||
caret-color: transparent;
|
||||
}
|
||||
|
||||
/* Allow normal caret inside editable fields */
|
||||
input, textarea, [contenteditable="true"] {
|
||||
caret-color: auto;
|
||||
}
|
||||
|
||||
/* Full height layout */
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: system-ui, sans-serif;
|
||||
text-rendering: optimizeLegibility;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
*, *::before, *::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Media elements */
|
||||
img, picture, video, canvas, svg {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* Inputs and buttons */
|
||||
input, textarea, select {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
/* Tables */
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Headings and text */
|
||||
h1, h2, h3, h4, h5, h6, p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Lists */
|
||||
ul, ol {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.emoji {
|
||||
display: inline !important;
|
||||
height: 1em;
|
||||
width: 1em;
|
||||
margin: 0 .05em 0 .1em;
|
||||
vertical-align: -0.1em;
|
||||
}
|
||||
|
||||
/* === Custom Login Styling === */
|
||||
.login-layout-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
background-color: #838383;
|
||||
}
|
||||
|
||||
html.dark .login-layout-wrapper {
|
||||
background-color: #0d1117;
|
||||
}
|
||||
|
||||
.login-wrapper {
|
||||
background-color: #51509c;
|
||||
padding: 2rem;
|
||||
border-radius: 0.5rem;
|
||||
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
html.dark .login-wrapper {
|
||||
background-color: #1e293b;
|
||||
color: #f1f5f9;
|
||||
}
|
||||
/* === Custom Login Form Enhancements === */
|
||||
|
||||
.login-wrapper form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1.5rem; /* Creates consistent spacing between form elements */
|
||||
}
|
||||
|
||||
.login-wrapper input,
|
||||
.login-wrapper button {
|
||||
width: 100%;
|
||||
box-sizing: border-box; /* Ensures padding/borders don't affect width */
|
||||
}
|
||||
|
||||
.login-wrapper input {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 0.375rem;
|
||||
border: 1px solid #d1d5db; /* gray-300 */
|
||||
background-color: #fff;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
|
||||
html.dark .login-wrapper input {
|
||||
background-color: #374151; /* gray-700 */
|
||||
border-color: #4b5563;
|
||||
color: #f1f5f9;
|
||||
}
|
||||
|
||||
.login-wrapper button {
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: 0.375rem;
|
||||
font-weight: 600;
|
||||
background-color: #2563eb; /* blue-600 */
|
||||
color: #fff;
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.login-wrapper button:hover {
|
||||
background-color: #1d4ed8; /* Tailwind blue-700 */
|
||||
}
|
||||
|
||||
.login-wrapper button:disabled {
|
||||
opacity: 0.6;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
Reference in New Issue
Block a user