Spaces:
Sleeping
Sleeping
Commit
·
cd77173
1
Parent(s):
4805bda
prepping for merge to main. Added storeUI.css with @media and some cleanup in store_helper
Browse files- __pycache__/store_helper.cpython-310.pyc +0 -0
- __pycache__/utilities.cpython-310.pyc +0 -0
- scripts.js +0 -16
- storeUI.css +18 -2
- store_helper.py +0 -2
__pycache__/store_helper.cpython-310.pyc
DELETED
|
Binary file (7.4 kB)
|
|
|
__pycache__/utilities.cpython-310.pyc
DELETED
|
Binary file (3.18 kB)
|
|
|
scripts.js
CHANGED
|
@@ -92,22 +92,6 @@ document.addEventListener("DOMContentLoaded", function() {
|
|
| 92 |
});
|
| 93 |
});
|
| 94 |
|
| 95 |
-
const headHTMLString = `<!DOCTYPE html>
|
| 96 |
-
<html lang="en">
|
| 97 |
-
<head>
|
| 98 |
-
<meta charset="UTF-8">
|
| 99 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 100 |
-
<link href="./dependencies/all.css" rel="stylesheet" />
|
| 101 |
-
<link href="./dependencies/css.css?family=Open+Sans:400,300,600,700" rel="stylesheet" type="text/css" />
|
| 102 |
-
<link href='./dependencies/bundle.css' rel='stylesheet' />
|
| 103 |
-
<link href="./dependencies/style.css" rel='stylesheet' />
|
| 104 |
-
<link href="./dependencies/5ePHBstyle.css" rel='stylesheet' />
|
| 105 |
-
<link href="./storeUI.css" rel='stylesheet' />
|
| 106 |
-
<title>DnD Stat Block</title>
|
| 107 |
-
<link rel="stylesheet" href="styles.css">
|
| 108 |
-
<script src="https://unpkg.com/[email protected]/dist/htmx.min.js"></script>
|
| 109 |
-
</head>
|
| 110 |
-
<body>`;
|
| 111 |
window.printPageContainer = function() {
|
| 112 |
var pageContainer = document.getElementById('brewRenderer');
|
| 113 |
if (pageContainer) {
|
|
|
|
| 92 |
});
|
| 93 |
});
|
| 94 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
window.printPageContainer = function() {
|
| 96 |
var pageContainer = document.getElementById('brewRenderer');
|
| 97 |
if (pageContainer) {
|
storeUI.css
CHANGED
|
@@ -59,6 +59,22 @@
|
|
| 59 |
box-sizing: border-box; /* Include padding and border in the element's total width and height */
|
| 60 |
}
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
.page {
|
| 64 |
column-count: 2;
|
|
@@ -145,8 +161,8 @@
|
|
| 145 |
transition: transform 0.3s;
|
| 146 |
}
|
| 147 |
.block-item:hover {
|
| 148 |
-
|
| 149 |
-
|
| 150 |
}
|
| 151 |
|
| 152 |
.block-item img {
|
|
|
|
| 59 |
box-sizing: border-box; /* Include padding and border in the element's total width and height */
|
| 60 |
}
|
| 61 |
|
| 62 |
+
@media print {
|
| 63 |
+
|
| 64 |
+
.page {
|
| 65 |
+
page-break-before: auto;
|
| 66 |
+
page-break-after: avoid;
|
| 67 |
+
page-break-inside: avoid;
|
| 68 |
+
|
| 69 |
+
}
|
| 70 |
+
.columnWrapper {
|
| 71 |
+
overflow: visible;
|
| 72 |
+
}
|
| 73 |
+
.block-content {
|
| 74 |
+
margin-bottom: 0;
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
|
| 79 |
.page {
|
| 80 |
column-count: 2;
|
|
|
|
| 161 |
transition: transform 0.3s;
|
| 162 |
}
|
| 163 |
.block-item:hover {
|
| 164 |
+
transform: translateY(-5px);
|
| 165 |
+
background-color: rgba(255, 255, 255, 0.5); /* Slightly visible background on hover */
|
| 166 |
}
|
| 167 |
|
| 168 |
.block-item img {
|
store_helper.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
from flask import Flask, request, jsonify
|
| 2 |
-
from flask_cors import CORS
|
| 3 |
import ast
|
| 4 |
import gc
|
| 5 |
from openai import OpenAI
|
|
|
|
|
|
|
|
|
|
| 1 |
import ast
|
| 2 |
import gc
|
| 3 |
from openai import OpenAI
|