iridescentX commited on
Commit
7fc830e
·
verified ·
1 Parent(s): a5c730b

Update artifacts.py

Browse files
Files changed (1) hide show
  1. artifacts.py +4 -4
artifacts.py CHANGED
@@ -38,7 +38,7 @@ class MiddlewareHTMLGenerator:
38
  .content-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; background-color: transparent; }
39
  .resize-handle { position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; cursor: se-resize; }
40
  .responsive-controls { display: flex; justify-content: center; margin-bottom: 10px; margin-top: 15px; }
41
- .device-button { margin: 0 5px; padding: 5px 10px; background-color: transparent; color: #ffffff; border: 1px solid #ffffff; cursor: pointer; border-radius: 4px; transition: background-color 0.3s, color 0.3s; }
42
  .device-button:hover { background-color: rgba(255, 255, 255, 0.1); }
43
  .device-button.active { background-color: rgba(255, 255, 255, 0.2); font-weight: bold; }
44
  .switch { position: relative; display: inline-block; width: 60px; height: 24px; }
@@ -408,14 +408,14 @@ class MiddlewareHTMLGenerator:
408
  <div class='content-item render-view' data-artifact="{i+1}">
409
  <h2>HTML Content {i+1}</h2>
410
  <div class="responsive-controls">
411
- <button class="device-button" data-width="320px">Mobile</button>
412
  <button class="device-button" data-width="768px">Tablet</button>
413
  <button class="device-button active" data-width="100%">Desktop</button>
414
  <!-- CodePen Button -->
415
- <div class="codepen-button-container" style="float: right; margin-left: 30px;">
416
  <form action="https://codepen.io/pen/define" method="POST" target="_blank">
417
  <input type="hidden" name="data" value='{JSONstring}'>
418
- <input type="submit" value="Edit on CodePen" class="codepen-button" style="background-color: #2196F3; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer;">
419
  </form>
420
  </div>
421
  </div>
 
38
  .content-frame { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; background-color: transparent; }
39
  .resize-handle { position: absolute; bottom: 0; right: 0; width: 20px; height: 20px; cursor: se-resize; }
40
  .responsive-controls { display: flex; justify-content: center; margin-bottom: 10px; margin-top: 15px; }
41
+ .device-button { margin: 0 4px; padding: 5px 7px; background-color: transparent; color: #ffffff; border: 1px solid #ffffff; cursor: pointer; border-radius: 4px; transition: background-color 0.3s, color 0.3s; }
42
  .device-button:hover { background-color: rgba(255, 255, 255, 0.1); }
43
  .device-button.active { background-color: rgba(255, 255, 255, 0.2); font-weight: bold; }
44
  .switch { position: relative; display: inline-block; width: 60px; height: 24px; }
 
408
  <div class='content-item render-view' data-artifact="{i+1}">
409
  <h2>HTML Content {i+1}</h2>
410
  <div class="responsive-controls">
411
+ <button class="device-button" data-width="300px">Mobile</button>
412
  <button class="device-button" data-width="768px">Tablet</button>
413
  <button class="device-button active" data-width="100%">Desktop</button>
414
  <!-- CodePen Button -->
415
+ <div class="codepen-button-container" style="float: right; margin-left: 17px;">
416
  <form action="https://codepen.io/pen/define" method="POST" target="_blank">
417
  <input type="hidden" name="data" value='{JSONstring}'>
418
+ <input type="submit" value="Edit on CodePen" class="codepen-button" style="background-color: #2196F3; color: white; border: none; padding: 8px 14px; border-radius: 4px; cursor: pointer;">
419
  </form>
420
  </div>
421
  </div>