You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

338 lines
5.2 KiB

body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
}
#tabs {
margin-bottom: 20px;
}
.tab-button {
padding: 10px 20px;
cursor: pointer;
}
.tab-button.active {
background-color: #ddd;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.search-bar {
margin-bottom: 20px;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #f2f2f2;
}
#evolution-chain {
display: flex;
overflow-x: auto;
padding: 20px;
align-items: flex-start;
}
.evolution-stage {
display: flex;
flex-direction: column;
align-items: center;
margin-right: 40px;
}
.pokemon-card {
background-color: #f9f9f9;
border: 1px solid #ddd;
border-radius: 10px;
padding: 10px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
cursor: pointer;
width: 120px; /* Fixed width */
height: 100px; /* Fixed height */
}
.pokemon-card img {
width: 64px;
height: 64px;
object-fit: contain;
}
.pokemon-name {
font-weight: bold;
margin-top: 5px;
}
.pokemon-form {
font-size: 0.8em;
color: #666;
}
.evolution-branch {
position: absolute;
top: 50%;
left: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
.evolution-arrow {
font-size: 24px;
color: #666;
margin: 0 10px;
}
.evolution-method {
font-size: 0.8em;
color: #666;
max-width: 100px;
text-align: center;
}
.pokemon-card .edit-buttons {
display: none;
position: absolute;
top: 5px;
right: 5px;
}
.pokemon-card:hover .edit-buttons {
display: block;
}
.edit-buttons button {
margin-left: 5px;
padding: 2px 5px;
font-size: 0.8em;
}
#evolution-controls {
margin-top: 20px;
}
#evolution-controls button {
margin-right: 10px;
}
/* Add these styles at the end of the file */
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.4);
}
.modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 500px;
}
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
#edit-pokemon-form {
display: flex;
flex-direction: column;
}
#edit-pokemon-form label,
#edit-pokemon-form select,
#edit-pokemon-form input,
#edit-pokemon-form button {
margin-top: 10px;
}
.evolution-container {
display: flex;
height: calc(100vh - 100px); /* Adjust based on your layout */
}
#pokemon-list {
width: 250px;
border-right: 1px solid #ccc;
overflow-y: auto;
padding: 10px;
}
#pokemon-filter {
width: 100%;
margin-bottom: 10px;
}
#pokemon-list-items {
list-style-type: none;
padding: 0;
}
#pokemon-list-items li {
cursor: pointer;
padding: 5px;
}
#pokemon-list-items li:hover {
background-color: #f0f0f0;
}
#evolution-chain-container {
flex-grow: 1;
padding: 20px;
overflow-y: auto;
}
.forms-container {
display: flex;
height: calc(100vh - 100px); /* Adjust based on your layout */
}
#pokemon-forms-list {
width: 250px;
border-right: 1px solid #ccc;
overflow-y: auto;
padding: 10px;
}
#forms-filter {
width: 100%;
margin-bottom: 10px;
}
#forms-list-items {
list-style-type: none;
padding: 0;
}
#forms-list-items li {
cursor: pointer;
padding: 5px;
}
#forms-list-items li:hover {
background-color: #f0f0f0;
}
#pokemon-details {
flex-grow: 1;
padding: 20px;
overflow-y: auto;
}
#details-content {
margin-top: 20px;
}
#pokemon-basic-info {
display: flex;
margin-bottom: 20px;
}
#pokemon-image {
width: 200px;
height: 200px;
object-fit: contain;
margin-right: 20px;
}
#pokemon-info {
flex-grow: 1;
}
#pokemon-evolution-chain {
margin-top: 20px;
}
#details-evolution-chain-content {
overflow-x: auto;
margin-top: 20px;
}
#evolution-table {
width: auto;
border-collapse: collapse;
border-spacing: 0px;
}
#evolution-table td {
vertical-align: middle;
text-align: center;
padding: 0%;
border-color: transparent;
}
#details-evolution-chain-content .evolution-stage {
display: inline-flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
margin-right: 20px;
}
#details-evolution-chain-content .pokemon-card {
text-align: center;
margin: 0 10px;
position: relative;
border: 1px solid #ddd;
padding: 10px;
border-radius: 5px;
display: inline-block;
}
#details-evolution-chain-content .pokemon-card img {
width: 64px;
height: 64px;
object-fit: contain;
}
#details-evolution-chain-content .evolution-branch {
display: inline-flex;
flex-direction: row;
align-items: center;
margin: 0 10px;
}
#details-evolution-chain-content .evolution-arrow,
#details-evolution-chain-content .evolution-method {
margin: 0 5px;
}