generated from hjess/PythonTemplateProject
Better CSS
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 34s
All checks were successful
Build, Push, and Deploy to Nomad / docker-nomad (push) Successful in 34s
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
@charset "UTF-8";
|
||||
@import 'fontawesome-all.min.css';
|
||||
@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,400italic,600italic|Roboto+Slab:400,700");
|
||||
/*
|
||||
@@ -2472,6 +2473,32 @@ button:disabled,
|
||||
}
|
||||
}
|
||||
|
||||
.open,
|
||||
.open_inv {
|
||||
all: unset;
|
||||
display: inline-block;
|
||||
padding: 10px 15px;
|
||||
margin: 10px;
|
||||
font-size: 16px;
|
||||
color: #000;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease, color 0.3s ease;
|
||||
}
|
||||
.open:hover,
|
||||
.open_inv:hover {
|
||||
transform: scale(1.05);
|
||||
color: black;
|
||||
}
|
||||
|
||||
.open {
|
||||
transform: rotate(10deg);
|
||||
}
|
||||
|
||||
.open_inv {
|
||||
transform: rotate(-10deg);
|
||||
}
|
||||
|
||||
.modal {
|
||||
display: none;
|
||||
position: fixed;
|
||||
@@ -2479,69 +2506,75 @@ button:disabled,
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
backdrop-filter: blur(8px);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: 999999;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
background-color: #fff;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
width: 90%; /* Use 90% width for small screens */
|
||||
max-width: 600px; /* Prevent it from getting too large */
|
||||
height: auto; /* Automatic height */
|
||||
max-height: 90%; /* Prevent it from overflowing the screen */
|
||||
text-align: center;
|
||||
z-index: 50000;
|
||||
margin: 0; /* Remove hardcoded margin */
|
||||
overflow-y: auto; /* Scroll if content exceeds max-height */
|
||||
width: 90%;
|
||||
max-width: 900px;
|
||||
max-height: 90vh;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.open, .open_inv {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
margin: 10px auto;
|
||||
border: none;
|
||||
background-color: #007BFF;
|
||||
color: #fff;
|
||||
.modal-content img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.modal-content .modal-buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
margin-top: 20px;
|
||||
}
|
||||
.modal-content .modal-buttons button {
|
||||
margin: -10px; /* Gør overlap muligt */
|
||||
padding: 12px 18px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
.open.open, .open_inv.open {
|
||||
transform: rotate(15deg);
|
||||
.modal-content .modal-buttons button:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
.open.open_inv, .open_inv.open_inv {
|
||||
transform: rotate(-15deg);
|
||||
.modal-content .modal-buttons button:nth-child(odd) {
|
||||
transform: rotate(10deg); /* Med uret */
|
||||
}
|
||||
.modal-content .modal-buttons button:nth-child(even) {
|
||||
transform: rotate(-10deg); /* Mod uret */
|
||||
}
|
||||
.modal-content .close-btn {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
padding: 10px 15px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.modal-content {
|
||||
width: 95%; /* Use nearly full width for small devices */
|
||||
height: auto;
|
||||
padding: 15px; /* Reduce padding for smaller screens */
|
||||
}
|
||||
.open, .open_inv {
|
||||
font-size: 14px; /* Smaller buttons for smaller screens */
|
||||
padding: 8px 15px;
|
||||
}
|
||||
.thumbnail {
|
||||
width: 150px;
|
||||
height: 100px;
|
||||
object-fit: cover;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
@media (max-width: 480px) {
|
||||
.modal-content {
|
||||
border-radius: 5px; /* Smaller radius for small devices */
|
||||
}
|
||||
.open, .open_inv {
|
||||
font-size: 12px;
|
||||
padding: 6px 12px;
|
||||
}
|
||||
.thumbnail:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
/* Wrapper */
|
||||
#wrapper {
|
||||
display: -moz-flex;
|
||||
|
||||
File diff suppressed because one or more lines are too long
2
static/js/jquery.poptrox.min.js
vendored
Normal file
2
static/js/jquery.poptrox.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -1,87 +1,123 @@
|
||||
// Variables
|
||||
$modal-bg: rgba(0, 0, 0, 0.3);
|
||||
$modal-bg: rgba(0, 0, 0, 0.7); // Modal baggrund
|
||||
$modal-blur: 8px;
|
||||
$modal-z-index: 999999;
|
||||
$modal-content-z-index: 50000;
|
||||
$modal-content-bg: #fff;
|
||||
$modal-content-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
||||
$button-color: #000;
|
||||
|
||||
// Modal background with blur effect
|
||||
// Global reset for button styles (kun på forsiden)
|
||||
.open,
|
||||
.open_inv {
|
||||
all: unset; // Fjerner globale værdier som border og baggrund
|
||||
display: inline-block;
|
||||
padding: 10px 15px;
|
||||
margin: 10px;
|
||||
font-size: 16px;
|
||||
color: $button-color;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease, color 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.05); // Let zoom-effekt
|
||||
color: darken($button-color, 20%);
|
||||
}
|
||||
}
|
||||
|
||||
// Rotation på forsiden
|
||||
.open {
|
||||
transform: rotate(10deg);
|
||||
}
|
||||
|
||||
.open_inv {
|
||||
transform: rotate(-10deg);
|
||||
}
|
||||
|
||||
// Modal background
|
||||
.modal {
|
||||
display: none; // Hidden by default
|
||||
display: none;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: $modal-bg; // Semi-transparent dark background
|
||||
backdrop-filter: blur($modal-blur); // Blurs everything behind the modal
|
||||
background: $modal-bg;
|
||||
backdrop-filter: blur($modal-blur);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
z-index: $modal-z-index; // Ensure it stays on top
|
||||
overflow-y: auto; // Enable vertical scrolling on mobile if needed
|
||||
z-index: $modal-z-index;
|
||||
}
|
||||
|
||||
// Modal content
|
||||
.modal-content {
|
||||
background-color: $modal-content-bg;
|
||||
padding: 20px;
|
||||
border-radius: 10px;
|
||||
border-radius: 8px;
|
||||
box-shadow: $modal-content-shadow;
|
||||
width: 90%; /* Use 90% width for small screens */
|
||||
max-width: 600px; /* Prevent it from getting too large */
|
||||
height: auto; /* Automatic height */
|
||||
max-height: 90%; /* Prevent it from overflowing the screen */
|
||||
text-align: center;
|
||||
z-index: $modal-content-z-index;
|
||||
margin: 0; /* Remove hardcoded margin */
|
||||
overflow-y: auto; /* Scroll if content exceeds max-height */
|
||||
}
|
||||
width: 90%;
|
||||
max-width: 900px;
|
||||
max-height: 90vh;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
// Rotating buttons
|
||||
.open, .open_inv {
|
||||
display: inline-block;
|
||||
padding: 10px 20px;
|
||||
margin: 10px auto;
|
||||
border: none;
|
||||
background-color: #007BFF;
|
||||
color: #fff;
|
||||
border-radius: 5px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease;
|
||||
|
||||
&.open {
|
||||
transform: rotate(15deg); // Rotates button 15 degrees clockwise
|
||||
}
|
||||
|
||||
&.open_inv {
|
||||
transform: rotate(-15deg); // Rotates button 15 degrees counterclockwise
|
||||
}
|
||||
}
|
||||
|
||||
// Responsive adjustments for smaller screens
|
||||
@media (max-width: 768px) {
|
||||
.modal-content {
|
||||
width: 95%; /* Use nearly full width for small devices */
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
padding: 15px; /* Reduce padding for smaller screens */
|
||||
object-fit: contain;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.open, .open_inv {
|
||||
font-size: 14px; /* Smaller buttons for smaller screens */
|
||||
padding: 8px 15px;
|
||||
// Modal knapper (bevarer globale værdier)
|
||||
.modal-buttons {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
margin-top: 20px;
|
||||
|
||||
button {
|
||||
margin: -10px; /* Gør overlap muligt */
|
||||
padding: 12px 18px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
|
||||
&:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
}
|
||||
|
||||
button:nth-child(odd) {
|
||||
transform: rotate(10deg); /* Med uret */
|
||||
}
|
||||
|
||||
button:nth-child(even) {
|
||||
transform: rotate(-10deg); /* Mod uret */
|
||||
}
|
||||
}
|
||||
|
||||
.close-btn {
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
padding: 10px 15px;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.modal-content {
|
||||
border-radius: 5px; /* Smaller radius for small devices */
|
||||
}
|
||||
// Thumbnail styling (forsiden)
|
||||
.thumbnail {
|
||||
width: 150px;
|
||||
height: 100px;
|
||||
object-fit: cover;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
|
||||
.open, .open_inv {
|
||||
font-size: 12px;
|
||||
padding: 6px 12px;
|
||||
&:hover {
|
||||
transform: scale(1.05);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user