initial commit
This commit is contained in:
122
src/static/style.css
Normal file
122
src/static/style.css
Normal file
@@ -0,0 +1,122 @@
|
||||
/* ========== GRID LAYOUT ========== */
|
||||
.results {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
gap: 20px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
/* Responsive: show 1 per row on small screens */
|
||||
@media screen and (max-width: 768px) {
|
||||
.results {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* ========== CARD STYLING ========== */
|
||||
.card {
|
||||
position: relative;
|
||||
padding: 10px;
|
||||
border: 1px solid #ccc;
|
||||
background: #fafafa;
|
||||
text-align: center;
|
||||
transition: box-shadow 0.2s;
|
||||
}
|
||||
|
||||
.card:hover {
|
||||
box-shadow: 0 0 10px #aaa;
|
||||
}
|
||||
|
||||
.card img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* ========== ACTION BUTTONS ========== */
|
||||
.actions {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
}
|
||||
|
||||
/* ========== MODAL ========== */
|
||||
.modal {
|
||||
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: 5% auto;
|
||||
padding: 20px;
|
||||
border: 1px solid #888;
|
||||
width: 50%;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.close {
|
||||
float: right;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* ========== IMAGE CONTAINER ========== */
|
||||
.image-container {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.image-container img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
transition: filter 0.3s ease;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ========== BLUR CONTROL VIA BODY CLASS ========== */
|
||||
body.nsfw-disabled .image-container.nsfw img {
|
||||
filter: blur(8px);
|
||||
}
|
||||
|
||||
body.nsfw-disabled .image-container.nsfw:hover img {
|
||||
filter: none;
|
||||
/* Remove blur on hover, set as important */
|
||||
}
|
||||
|
||||
|
||||
/* ========== BADGE ========== */
|
||||
.adult-badge {
|
||||
position: absolute;
|
||||
top: 8px;
|
||||
left: 8px;
|
||||
background-color: rgba(255, 0, 0, 0.8);
|
||||
color: white;
|
||||
padding: 4px 8px;
|
||||
font-size: 12px;
|
||||
font-weight: bold;
|
||||
border-radius: 4px;
|
||||
z-index: 1;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.search-bar select {
|
||||
padding: 5px;
|
||||
border: 1px solid #ccc;
|
||||
border-radius: 4px;
|
||||
}
|
||||
Reference in New Issue
Block a user