Spaces:
Sleeping
Sleeping
Commit
·
573e988
1
Parent(s):
9999d91
storeUI.css added floating toolbar css, tinkered with print rules without much success, removed the page break rules
Browse files- storeUI.css +35 -14
storeUI.css
CHANGED
|
@@ -51,35 +51,52 @@
|
|
| 51 |
|
| 52 |
}
|
| 53 |
.page-container {
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
@media print {
|
| 63 |
|
| 64 |
.page {
|
| 65 |
page-break-before: auto;
|
| 66 |
-
|
| 67 |
-
page-break-inside: avoid;
|
| 68 |
|
| 69 |
}
|
| 70 |
.columnWrapper {
|
| 71 |
overflow: visible;
|
| 72 |
}
|
| 73 |
-
.block-
|
| 74 |
margin-bottom: 0;
|
| 75 |
}
|
| 76 |
}
|
| 77 |
-
|
| 78 |
|
| 79 |
.page {
|
| 80 |
column-count: 2;
|
| 81 |
column-gap: .9cm;
|
| 82 |
column-width: 8cm;
|
|
|
|
| 83 |
-webkit-column-count: 2;
|
| 84 |
-moz-column-count: 2;
|
| 85 |
-webkit-column-width: 8cm;
|
|
@@ -134,6 +151,9 @@
|
|
| 134 |
margin-left: 0.1cm;
|
| 135 |
}
|
| 136 |
|
|
|
|
|
|
|
|
|
|
| 137 |
/* Ensure the h1 tag is constrained within its column */
|
| 138 |
.block-page h1 {
|
| 139 |
column-span: none;
|
|
@@ -141,6 +161,7 @@
|
|
| 141 |
margin: 0 auto; /* Center the h1 within the column */
|
| 142 |
overflow: hidden; /* Handle overflow content */
|
| 143 |
word-wrap: break-word; /* Break long words to prevent overflow */
|
|
|
|
| 144 |
}
|
| 145 |
.columnWrapper {
|
| 146 |
width: 100%;
|
|
@@ -495,14 +516,14 @@
|
|
| 495 |
display: none; /* Hidden by default when in .page-container */
|
| 496 |
}
|
| 497 |
|
| 498 |
-
.page-container .block-
|
| 499 |
-
display: block; /* Show when hovering over .block-
|
| 500 |
}
|
| 501 |
.page-container .generate-image-button {
|
| 502 |
display: none; /* Hidden by default when in .page-container */
|
| 503 |
}
|
| 504 |
|
| 505 |
-
.page-container .block-
|
| 506 |
display: inline-block; /* Show the button on hover */
|
| 507 |
}
|
| 508 |
|
|
|
|
| 51 |
|
| 52 |
}
|
| 53 |
.page-container {
|
| 54 |
+
margin-left: 450px; /* Offset the page content by the width of block-container plus margin */
|
| 55 |
+
width: 900px;
|
| 56 |
+
padding: 20px;
|
| 57 |
+
padding-top: 100px; /* Adjust based on the toolbar's height + any additional space you want */
|
| 58 |
+
overflow: auto; /* Enable scrolling if needed */
|
| 59 |
+
height: calc(100vh - 80px); /* Adjust the height to consider the toolbar's height */
|
| 60 |
+
box-sizing: border-box; /* Include padding and border in the element's total width and height */
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
#floatingToolbar {
|
| 64 |
+
position: fixed;
|
| 65 |
+
column-count: 2;
|
| 66 |
+
column-width: 425px;
|
| 67 |
+
column-fill: auto;
|
| 68 |
+
width: 900px; /* Set the width of the floating toolbar */
|
| 69 |
+
top: 10px; /* Distance from the top of the page */
|
| 70 |
+
left: 475px; /* Distance from the right side of the page */
|
| 71 |
+
z-index: 1000; /* Ensure it stays on top of other elements */
|
| 72 |
+
background-color: #f9f9f9; /* Optional: Background color */
|
| 73 |
+
padding: 10px;
|
| 74 |
+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional: Shadow for a floating effect */
|
| 75 |
+
border-radius: 8px; /* Optional: Rounded corners */
|
| 76 |
+
height: 135px; /* Set the height of the floating toolbar */
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
|
| 80 |
@media print {
|
| 81 |
|
| 82 |
.page {
|
| 83 |
page-break-before: auto;
|
| 84 |
+
|
|
|
|
| 85 |
|
| 86 |
}
|
| 87 |
.columnWrapper {
|
| 88 |
overflow: visible;
|
| 89 |
}
|
| 90 |
+
.block-page {
|
| 91 |
margin-bottom: 0;
|
| 92 |
}
|
| 93 |
}
|
|
|
|
| 94 |
|
| 95 |
.page {
|
| 96 |
column-count: 2;
|
| 97 |
column-gap: .9cm;
|
| 98 |
column-width: 8cm;
|
| 99 |
+
column-fill: auto;
|
| 100 |
-webkit-column-count: 2;
|
| 101 |
-moz-column-count: 2;
|
| 102 |
-webkit-column-width: 8cm;
|
|
|
|
| 151 |
margin-left: 0.1cm;
|
| 152 |
}
|
| 153 |
|
| 154 |
+
.block-page{
|
| 155 |
+
break-inside: avoid;
|
| 156 |
+
}
|
| 157 |
/* Ensure the h1 tag is constrained within its column */
|
| 158 |
.block-page h1 {
|
| 159 |
column-span: none;
|
|
|
|
| 161 |
margin: 0 auto; /* Center the h1 within the column */
|
| 162 |
overflow: hidden; /* Handle overflow content */
|
| 163 |
word-wrap: break-word; /* Break long words to prevent overflow */
|
| 164 |
+
|
| 165 |
}
|
| 166 |
.columnWrapper {
|
| 167 |
width: 100%;
|
|
|
|
| 516 |
display: none; /* Hidden by default when in .page-container */
|
| 517 |
}
|
| 518 |
|
| 519 |
+
.page-container .block-page:hover .image-textarea {
|
| 520 |
+
display: block; /* Show when hovering over .block-page */
|
| 521 |
}
|
| 522 |
.page-container .generate-image-button {
|
| 523 |
display: none; /* Hidden by default when in .page-container */
|
| 524 |
}
|
| 525 |
|
| 526 |
+
.page-container .block-page:hover .generate-image-button {
|
| 527 |
display: inline-block; /* Show the button on hover */
|
| 528 |
}
|
| 529 |
|