mirror of
https://github.com/cfultz/mtgcsv.git
synced 2024-11-22 09:10:04 +01:00
161 lines
3.1 KiB
CSS
161 lines
3.1 KiB
CSS
:root {
|
|
--background-color: #f0f0f0;
|
|
--text-color: #333;
|
|
--card-background: #ffffff;
|
|
--button-background: #007acc;
|
|
--button-hover: #005fa3;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--background-color: #1e1e1e;
|
|
--text-color: #ffffff;
|
|
--card-background: #2e2e2e;
|
|
--button-background: #1f6fb2;
|
|
--button-hover: #145b8c;
|
|
}
|
|
}
|
|
|
|
body {
|
|
font-family: Arial, sans-serif;
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
margin: 0;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
background-color: var(--card-background);
|
|
padding: 20px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
font-family: 'Sorts Mill Goudy', serif;
|
|
}
|
|
|
|
form div {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
input, select, textarea {
|
|
width: 100%;
|
|
padding: 8px;
|
|
box-sizing: border-box;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
background-color: var(--card-background);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
button {
|
|
display: block;
|
|
width: 100%;
|
|
padding: 10px;
|
|
background-color: var(--button-background);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: var(--button-hover);
|
|
}
|
|
|
|
#csv-output {
|
|
margin-top: 20px;
|
|
height: 200px;
|
|
background-color: var(--card-background);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.card-popup {
|
|
position: fixed;
|
|
bottom: 20px;
|
|
right: 20px;
|
|
max-width: 20%;
|
|
z-index: 1000;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
padding: 10px;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease-in-out;
|
|
display: none;
|
|
}
|
|
|
|
.card-popup img {
|
|
width: 100%;
|
|
height: auto;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.card-popup {
|
|
max-width: 40%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
.card-popup {
|
|
max-width: 60%;
|
|
}
|
|
}
|
|
.menu {
|
|
position: relative;
|
|
display: inline-block;
|
|
}
|
|
|
|
.hamburger-menu {
|
|
cursor: pointer;
|
|
font-size: 30px;
|
|
color: var(--text-color, black); /* Ensure the color follows the theme */
|
|
}
|
|
|
|
.menu-content {
|
|
display: none;
|
|
position: absolute;
|
|
top: 40px;
|
|
left: 0; /* Change to left for opposite direction */
|
|
background-color: var(--background-color, white); /* Background color follows the theme */
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
|
|
padding: 10px;
|
|
z-index: 1;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.menu-content label,
|
|
.menu-content input {
|
|
color: var(--text-color, black); /* Text color follows the theme */
|
|
font-family: 'Sorts Mill Goudy', serif;
|
|
}
|
|
|
|
.menu-content.show {
|
|
display: block;
|
|
}
|
|
|
|
/* Dark mode styles */
|
|
body.dark-mode .menu-content {
|
|
background-color: #333; /* Dark background for dark mode */
|
|
}
|
|
|
|
body.dark-mode .hamburger-menu,
|
|
body.dark-mode .menu-content label,
|
|
body.dark-mode .menu-content input {
|
|
color: white; /* White text for dark mode */
|
|
}
|
|
|
|
|