tilde.club/html/public/css/style.css

175 lines
3.2 KiB
CSS
Raw Normal View History

2024-03-09 23:29:25 -05:00
/* Basic Reset */
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: #2a2a2a; /* Dark background */
color: #f4c2c2; /* Soft pink text, typical of a girly 90s vibe */
font-family: "Comic Sans MS", "Chalkboard SE", sans-serif; /* Retro, playful font */
padding: 20px;
}
a {
color: #ff47da; /* Bright pink for links */
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
button,
input[type="submit"],
input[type="button"] {
background-color: #ff69b4; /* Bright pink for buttons */
border: none;
color: white;
padding: 10px 20px;
text-transform: uppercase;
font-family: "Comic Sans MS", "Chalkboard SE", sans-serif;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
background-color: #ff1493; /* Darker pink on hover */
}
input[type="text"],
input[type="password"],
textarea {
background-color: #333; /* Darker elements for inputs */
border: 1px solid #f4c2c2; /* Soft pink border */
color: #f4c2c2; /* Soft pink text */
padding: 10px;
}
/* Example of styling a specific component differently */
.special-button {
background-color: #ff47da; /* A different shade of pink */
border-radius: 20px; /* Rounded edges for a more playful look */
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: #ff69b4;
margin-bottom: 20px;
}
p {
margin-bottom: 20px;
}
li {
margin-left: 20px;
}
2024-03-10 18:45:26 -04:00
.fruitvote {
display: flex;
flex-direction: row;
margin-top: 20px;
gap: 2rem;
max-width: 800px;
}
.contestant {
display: flex;
flex: 1;
flex-direction: column;
align-items: stretch;
border: 2px solid #ff69b4;
border-radius: 10px;
padding: 0.5rem;
}
.contestant div {
display: flex;
flex-direction: column;
justify-content: space-between;
border-radius: 10px;
height: 100%;
transition: background-color 0.3s ease;
padding: 1rem;
}
.contestant > input {
visibility: hidden;
position: absolute;
}
.contestant div:hover {
background-color: #ff69b4;
color: #2a2a2a;
cursor: pointer;
}
.contestant > input:checked + div {
background-color: #ff69b4;
color: #2a2a2a;
cursor: pointer;
}
.contestant div img {
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
border-radius: 10px;
}
.versus {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
}
table {
width: auto; /* Adjust based on content, not full width */
border-collapse: collapse;
background-color: #383838; /* Darker background for contrast */
}
th,
td {
padding: 12px 20px; /* Good padding for readability */
border: 1px solid #f4c2c2; /* Soft pink borders */
color: #f4c2c2; /* Soft pink text */
text-align: left;
}
thead th {
background-color: #ff69b4; /* Brighter pink for header */
color: white; /* White text for contrast */
font-family: "Comic Sans MS", "Chalkboard SE", sans-serif;
}
tbody tr:nth-child(odd) {
background-color: #2f2f2f; /* Slightly lighter background for every other row for readability */
}
tbody tr {
transition: background-color 0.3s ease;
}
tbody tr:hover {
background-color: #ff47da; /* Change to a lighter pink on hover for interactivity */
color: #2a2a2a; /* Dark text for contrast */
}