Files
anomaly-front-stats/static/style.css
T
2024-09-27 21:50:33 +02:00

389 lines
7.6 KiB
CSS

input[type="text"] {
width: 100%;
padding: 8px;
margin: 10px 0;
box-sizing: border-box;
font-size: 16px;
}
#modifiers-container {
display: flex;
justify-content: space-between; /* Distribute space between the items */
flex-wrap: wrap; /* Allow wrapping to avoid overflow */
}
/* Style for the modifiers section */
#modifiers {
display: flex; /* Use flexbox for alignment */
flex-direction: column; /* Stack items vertically */
width: 50%; /* Adjust this percentage to control the width */
}
#abilities {
width: 42.5%; /* Adjust this value as needed */
}
body {
background-image: url("/static/img/trlbg1.jpg");
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
position: relative; /* This allows the z-index on children elements to work */
z-index: -1; /* Send the background behind the content */
font-family: Arial, sans-serif;
margin: 20px;
}
header nav {
margin-bottom: 20px;
}
header nav a {
color: #4CAF50;
text-decoration: none;
font-weight: bold;
padding: 10px 20px;
}
header nav a:hover {
color: gray;
}
h1 {
color: #333;
margin-bottom: 20px;
}
.background-roster {
background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background for better readability */
padding: 20px;
border-radius: 10px;
z-index: 1;
}
table {
width: 100%;
border-collapse: collapse;
margin-bottom: 20px;
overflow: hidden;
background-color: rgba(255, 255, 255, 0.8);
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 10px;
text-align: left;
}
th {
color: #333;
background-color: rgba(255, 255, 255, 0.9);
}
button {
padding: 5px 10px;
background-color: #4CAF50;
color: white;
border: none;
cursor: pointer;
}
button:hover {
background-color: #45a049;
}
input {
padding: 5px;
margin-bottom: 20px;
}
#result {
margin-top: 20px;
}
#search {
width: 33%;
padding: 6px;
border: 2px black solid;
margin-top: 8px;
margin-right: 16px;
font-size: 17px;
}
main {
position: relative;
z-index: -1;
background-color: rgba(255, 255, 255, 0.9);
margin-top: 10%;
padding: 20px 35px 35px 35px;
border-radius: 10px;
border: 2px solid black;
overflow: auto;
}
nav {
top: 0;
left: 0;
width: 100%
}
.divider {
top: 0;
width: 80%
}
/* Add a black background color to the top navigation */
.topnav {
position: absolute;
right: 50px;
top: 10px;
background-color: #333;
overflow: visible; /* Ensure dropdown content isn't clipped */
z-index: 1000; /* Higher z-index to appear above other content */
}
/* Style the links inside the navigation bar */
.topnav a {
color: #f2f2f2;
text-align: center;
text-decoration: none;
font-size: 17px;
}
/* Style the dropdown button */
.dropdown .dropbtn {
font-size: 17px;
border: none;
outline: none;
color: white;
background-color: inherit;
padding: 14px 16px;
cursor: pointer;
}
/* Dropdown content */
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
right: 0; /* Ensures dropdown aligns with the button */
z-index: 2000; /* Ensures it stays above the rest */
}
/* Style the links inside the dropdown */
.dropdown-content a {
float: none; /* Ensure the links stack properly */
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/* Add a dark background on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
background-color: #555;
color: white;
}
/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
background-color: #ddd;
color: black;
}
/* Show the dropdown when the button is clicked */
.dropdown.show .dropdown-content {
display: block; /* Toggle visibility */
}
/* Media query for smaller screens */
@media screen and (max-width: 600px) {
.topnav {
right: 0;
top: 0;
width: 100%;
position: relative;
}
.dropdown .dropbtn {
width: 100%;
text-align: center;
}
.dropdown-content {
width: 100%;
position: relative;
}
}
/* Hide the icon on larger screens */
.topnav .icon {
display: none;
}
.about_us_text {
font-size: 20px;
width: 50%;
overflow: auto;
}
/* Show the icon only on smaller screens */
@media screen and (max-width: 600px) {
#search {
width: 100%
}
.about_us_text {
font-size: 14px;
width: 100%;
}
.suggestion-title {
font-size: 16px;
}
}
.button1 {
background-color: black;
}
/* Suggestion Form Enhancements */
main h1 {
font-size: 2.5em;
color: black;
text-align: center;
margin-bottom: 20px;
}
.suggestion-title {
font-size: 1.5em;
color: black;
text-align: center;
margin-bottom: 30px;
}
article label {
font-weight: bold;
font-size: 1.1em;
color: #333;
margin-bottom: 10px;
display: block;
}
input[type="text"], input[type="number"], textarea {
width: 95%;
padding: 12px;
font-size: 1em;
border: 1px solid #ccc;
border-radius: 8px;
margin-bottom: 20px;
background-color: #f9f9f9;
transition: border-color 0.3s, box-shadow 0.3s;
}
/* Focus effect to highlight the active input field */
input[type="text"]:focus, input[type="number"]:focus, textarea:focus {
border-color: black;
box-shadow: 0 0 5px darkred;
background-color: #fff;
outline: none;
}
textarea {
resize: none;
height: 150px;
}
/* Submit button improvements */
.button1 {
background-color: darkred;
color: white;
font-size: 1.2em;
padding: 12px 24px;
border: none;
border-radius: 8px;
cursor: pointer;
display: block;
margin: 0 auto;
transition: background-color 0.3s ease, transform 0.3s ease;
}
/* Button hover effect */
.button1:hover {
background-color: #45a049;
transform: scale(1.05);
}
/* Success message styling */
#successMessage {
font-size: 1.1em;
color: green;
text-align: center;
margin-top: 20px;
}
/* Adjustments for mobile responsiveness */
@media screen and (max-width: 600px) {
input[type="text"], input[type="number"], textarea {
width: 80%;
font-size: 0.95em;
}
.suggestion-title {
font-size: 1.2em;
}
#modifiers {
width: 100%; /* Adjust this percentage to control the width */
}
#abilities {
width: 100%;
}
/* Adjust spacing between different ability modifiers */
#abilities label {
display: block; /* Ensures each label takes up its own line */
margin-bottom: 10px; /* Adds space between each ability checkbox */
line-height: 1.2; /* Keeps the spacing between wrapped lines consistent */
white-space: nowrap; /* Allows text to wrap normally */
}
/* Optional: Adjust margin between checkbox and text */
#abilities input[type="checkbox"] {
margin-right: 5px; /* Adjust the spacing between the checkbox and the label */
}
}
/* Styling for horizontal table */
.weapon-stats-table {
width: 100%;
border-collapse: collapse;
margin: 10px 0;
}
.weapon-stats-table th, .weapon-stats-table td {
border: 1px solid #ddd;
padding: 8px;
text-align: center; /* Center the text */
}
.weapon-stats-table th {
background-color: #f2f2f2;
color: black;
}
/* Horizontal styling specifically for the table */
.horizontal-table tr:first-child th {
text-align: center;
font-weight: bold;
}