css fixes
This commit is contained in:
parent
5187b7c143
commit
1d864acfcc
@ -6,6 +6,7 @@ $login-form-background: rgba(255, 255, 255, 0.9);
|
|||||||
$login-form-shadow-color: rgba(0, 0, 0, 0.2);
|
$login-form-shadow-color: rgba(0, 0, 0, 0.2);
|
||||||
$login-form-title-color: #5f5f5f;
|
$login-form-title-color: #5f5f5f;
|
||||||
$login-form-input-background: rgba(255, 255, 255, 0.95);
|
$login-form-input-background: rgba(255, 255, 255, 0.95);
|
||||||
|
$login-form-input-focused-background: #fff;
|
||||||
$login-form-input-border-color: rgba(232, 232, 232, 0.7);
|
$login-form-input-border-color: rgba(232, 232, 232, 0.7);
|
||||||
$login-form-input-hover-border-color: #005f73;
|
$login-form-input-hover-border-color: #005f73;
|
||||||
$login-form-input-focus-border-color: #005f73;
|
$login-form-input-focus-border-color: #005f73;
|
||||||
@ -13,3 +14,4 @@ $login-button-color: #003f5c;
|
|||||||
$login-button-hover-color: #2f798a;
|
$login-button-hover-color: #2f798a;
|
||||||
$login-button-shadow: rgba(0, 95, 115, 0.3);
|
$login-button-shadow: rgba(0, 95, 115, 0.3);
|
||||||
$login-button-active-shadow: rgba(70, 70, 70, 0.2);
|
$login-button-active-shadow: rgba(70, 70, 70, 0.2);
|
||||||
|
$login-button-text-color: #fff;
|
||||||
|
@ -1,20 +1,21 @@
|
|||||||
@use "common";
|
@use "common"; // Reset styles
|
||||||
@use "colors" as *; // Import the color scheme
|
@use "colors" as *; // Color scheme
|
||||||
|
|
||||||
// Hide the title
|
// Hide the title
|
||||||
title {
|
title {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Basic body styling with a new color theme
|
|
||||||
body {
|
body {
|
||||||
|
// Page background
|
||||||
font-family: 'Arial', sans-serif;
|
font-family: 'Arial', sans-serif;
|
||||||
background: $login-page-background-color; // Use login background gradient
|
background: $login-page-background-color;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
padding-right: 50px; // Space between the form and the right edge
|
padding-right: 50px;
|
||||||
|
|
||||||
|
// The left side, with the logo
|
||||||
.left-container {
|
.left-container {
|
||||||
flex: 1; // Take available space on the left
|
flex: 1; // Take available space on the left
|
||||||
padding-left: 50px; // Space from the left edge
|
padding-left: 50px; // Space from the left edge
|
||||||
@ -23,38 +24,43 @@ body {
|
|||||||
flex-direction: column; // Stack elements vertically
|
flex-direction: column; // Stack elements vertically
|
||||||
justify-content: center; // Center elements vertically
|
justify-content: center; // Center elements vertically
|
||||||
|
|
||||||
|
// App or organization logo
|
||||||
.logo {
|
.logo {
|
||||||
height: 190px; // Set logo height to 250px
|
height: 190px; // Set logo height
|
||||||
max-width: 100%; // Ensure the logo doesn't exceed the container's width
|
max-width: 100%; // Ensure the logo doesn't exceed the container's width
|
||||||
width: auto; // Maintain aspect ratio
|
width: auto; // Maintain aspect ratio
|
||||||
margin-bottom: 20px; // Space below the logo
|
margin-bottom: 20px; // Space below the logo, above the title
|
||||||
align-self: flex-start; // Align logo to the start (left) of the container
|
align-self: flex-start; // Align logo to the start (left) of the container
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Application name
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 36px; // Adjust font size for application name
|
font-size: 36px;
|
||||||
color: $login-page-appname-color; // Use login main text color
|
color: $login-page-appname-color;
|
||||||
margin-bottom: 10px; // Space below the heading
|
margin-bottom: 10px; // Space below the heading
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// App description
|
||||||
p {
|
p {
|
||||||
font-size: 18px; // Adjust font size for the description
|
font-size: 18px;
|
||||||
color: $login-page-description-color; // Use login description color
|
color: $login-page-description-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The login form container
|
||||||
.login-container {
|
.login-container {
|
||||||
background-color: $login-form-background;
|
background-color: $login-form-background;
|
||||||
padding: 40px;
|
padding: 40px; // Spaces
|
||||||
border-radius: 12px;
|
border-radius: 12px; // Round corners
|
||||||
box-shadow: 0 8px 15px $login-form-shadow-color;
|
box-shadow: 0 8px 15px $login-form-shadow-color;
|
||||||
width: 350px;
|
width: 350px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
|
// The heading ("Login")
|
||||||
h2 {
|
h2 {
|
||||||
display: block;
|
display: block;
|
||||||
margin-bottom: 20px; // Add more space below the heading
|
margin-bottom: 20px; // Add space below the heading
|
||||||
color: $login-form-title-color; // Use login main text color
|
color: $login-form-title-color;
|
||||||
font-size: 26px;
|
font-size: 26px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,42 +69,43 @@ body {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center; // Center the form elements
|
align-items: center; // Center the form elements
|
||||||
|
|
||||||
|
// The input fields
|
||||||
input[type="text"],
|
input[type="text"],
|
||||||
input[type="password"] {
|
input[type="password"] {
|
||||||
width: 100%; // Make the inputs full width of the form
|
width: 100%; // Make the inputs full width of the form
|
||||||
padding: 12px;
|
padding: 12px; // Spaces
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
border: 1px solid $login-form-input-border-color; // Use login input border color
|
border: 1px solid $login-form-input-border-color;
|
||||||
border-radius: 6px;
|
border-radius: 6px; // Round corners
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
background-color: $login-form-input-background; // Use login input background color
|
background-color: $login-form-input-background;
|
||||||
transition: border-color 0.3s, background-color 0.3s;
|
transition: border-color 0.3s, background-color 0.3s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-color: $login-form-input-hover-border-color;
|
border-color: $login-form-input-hover-border-color;
|
||||||
}
|
}
|
||||||
&:focus {
|
&:focus {
|
||||||
border-color: $login-form-input-focus-border-color; // Use focus border color
|
border-color: $login-form-input-focus-border-color;
|
||||||
background-color: #fff;
|
background-color: $login-form-input-focused-background;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
width: 100%; // Make the button full width of the form
|
width: 100%; // Full width of the form
|
||||||
padding: 12px;
|
padding: 12px; // Spaces
|
||||||
background-color: $login-button-color; // Use login button color
|
background-color: $login-button-color;
|
||||||
color: #fff;
|
color: $login-button-text-color;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 6px;
|
border-radius: 6px; // Round corners
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.3s, transform 0.3s;
|
transition: background-color 0.3s, transform 0.3s;
|
||||||
box-shadow: 0 4px 10px $login-button-shadow; // Use button shadow color
|
box-shadow: 0 4px 10px $login-button-shadow;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: $login-button-hover-color; // Use login button hover
|
background-color: $login-button-hover-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:active {
|
&:active {
|
||||||
|
Loading…
Reference in New Issue
Block a user