OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
NLEditor
/
assets
/
css
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
04/30/2025 06:15:43 AM
rwxr-xr-x
📄
addText.css
958 bytes
04/30/2025 06:15:43 AM
rw-r--r--
📄
styles.css
13.31 KB
04/30/2025 06:15:43 AM
rw-r--r--
📄
textEdit.css
2.2 KB
04/30/2025 06:15:43 AM
rw-r--r--
Editing: styles.css
Close
/* Base styles */ :root { --primary-color: #db5919; --secondary-color: #f4d03f; --text-color: #333; --background-color: #f5f5f5; --border-color: #ddd; --hover-bg: #f0f0f0; --shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } * { box-sizing: border-box; margin: 0; padding: 0; } .body { margin: 0; padding: 0; font-family: Arial, sans-serif; display: flex; height: 90vh; background-color: white; flex-direction: row; overflow-x: hidden; } /* Navbar styles */ .navbar-nav { display: flex; flex-direction: row; padding-left: 0; margin-bottom: 0; list-style: none; } .navbar { background-color: #fafafa !important; padding: 0.5rem 1rem; width: 100%; } /* Sidebar styles */ .sidebar { width: 250px; background-color: white; padding: 20px; border-right: 1px solid var(--border-color); overflow-y: auto; flex-shrink: 0; height: 90vh; position: sticky; top: 0; transition: all 0.3s ease; } .sidebar h2 { margin-bottom: 1rem; font-size: 1.5rem; } .template-list, .elements-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; } .template, .element { padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; transition: all 0.3s ease; } .template:hover, .element:hover { background-color: var(--hover-bg); border-color: var(--primary-color); } .template img { width: 100%; height: 240px; object-fit: cover; margin-bottom: 5px; } .sidebar button { width: 100%; padding: 10px; margin-top: 15px; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; } .sidebar button:hover { background-color: #c24c15; } /* New div container styles */ #new-div-container { margin-top: 0; height: 90vh; overflow-y: auto; transition: all 0.3s ease; background-color: #f9f9f9; border-right: 1px solid var(--border-color); } .new-div { width: 100%; max-width: 250px; height: auto; padding: 10px; margin: 10px; border: 1px solid #000; background-color: #f0f0f0; border-radius: 4px; overflow-y: auto; } .new-div img { width: 100%; /* height: auto; */ object-fit: contain; } /* Main content styles */ .main-content { flex: 1; display: flex; flex-direction: column; overflow-y: auto; height:90vh; padding: 0; background-color: white; } .toolbar { background-color: white; padding: 10px; border-radius: 4px; margin-bottom: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 10; } .text-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .canvas-area { flex: 1; background-color: white; border-radius: 4px; padding: 20px; overflow-y: auto; height:90vh; position: relative; } /* Element styles */ .draggable { position: absolute; padding: 10px; border: 1px solid transparent; cursor: move; user-select: none; } .draggable:hover { border-color: var(--primary-color); } .draggable.selected { border: 2px solid var(--primary-color); } /* Button styles */ button { padding: 8px 16px; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; } button:hover { background-color: #c24c15; } /* Form controls */ select, input[type="color"] { padding: 5px; border: 1px solid var(--border-color); border-radius: 4px; } /* Modal styles */ .modal { display: none; position: fixed; z-index: 450; right: 0; top: 0; width: 30%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.4); } .modal-content { background-color: #fefefe; padding: 20px; border: 1px solid #888; width: 100%; height: 100%; overflow-y: auto; } .close { color: #aaa; font-size: 28px; font-weight: bold; position: absolute; left: 25px; top: 0; cursor: pointer; } .close:hover, .close:focus { color: black; text-decoration: none; } #modalContent a { color: black; } /* Text element styles */ .text-element { position: absolute; min-width: 50px; min-height: 20px; padding: 5px; cursor: move; border: 1px solid transparent; transition: border 0.3s ease; } .text-element:hover { border: 1px dashed var(--primary-color); } .text-element.selected { border: 1px solid var(--primary-color); } .text-element[contenteditable="true"] { outline: none; border: 1px solid var(--primary-color); } .text-controls button.active { background-color: var(--primary-color); color: white; } .text-controls select, .text-controls input { padding: 5px; border: 1px solid var(--border-color); border-radius: 4px; } .add-text-btn { margin-bottom: 20px; width: 100%; padding: 10px; background-color: var(--primary-color); color: white; border: none; border-radius: 4px; cursor: pointer; transition: background-color 0.3s ease; } .add-text-btn:hover { background-color: #c24c15; } /* Editable elements styling */ .editable-element { position: relative; } .edit-actions { position: absolute; top: -30px; right: 0; background-color: #f8f9fa; border: 1px solid var(--border-color); border-radius: 4px; padding: 5px 8px; box-shadow: var(--shadow); z-index: 1000; display: flex; gap: 10px; } .edit-action { cursor: pointer; color: #007bff; padding: 2px; } /* Collection item styles */ .collection-item { margin: 10px 0; padding: 10px; border: 1px solid var(--border-color); border-radius: 4px; cursor: pointer; transition: background-color 0.2s; } .collection-item:hover { background-color: #f0f8ff; } .item-preview { overflow: hidden; } /* Image upload button */ .image-upload-btn { position: absolute; background: #007bff; color: white; border: none; padding: 5px 10px; cursor: pointer; z-index: 400; border-radius: 4px; } /* Table styles */ table { width: 100%; max-width: 800px !important; margin: 0 0 !important; background-color: transparent !important; border-collapse: collapse; } /* Responsive design */ @media (max-width: 1200px) { .body { flex-wrap: wrap; } .sidebar { width: 200px; } .modal { width: 40%; } } @media (max-width: 992px) { .body { flex-direction: column; } .sidebar { width: 100%; height: auto; max-height: 200px; border-right: none; border-bottom: 1px solid var(--border-color); margin-bottom: 10px; padding: 15px; } #new-div-container { width: 100%; height: auto; max-height: 200px; display: flex; flex-wrap: wrap; justify-content: center; } .new-div { width: 150px; margin: 5px; display: flex; flex-direction: row; width: 100%; } .modal { width: 50%; } } @media (max-width: 768px) { .body { flex-direction: column; } .sidebar { width: 100%; height: auto; max-height: 180px; padding: 10px; overflow-x: auto; } .template-list { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 10px; padding-bottom: 10px; } .template { min-width: 150px; flex-shrink: 0; } .main-content { padding: 10px; } .canvas-area { min-height: calc(100vh - 250px); padding: 10px; } .modal { width: 70%; left: 0; right: 0; margin: 0 auto; } .modal-content { padding: 15px; } .text-controls { flex-wrap: wrap; } .edit-actions { top: -25px; padding: 3px 6px; } .template img { width: 100%; height: 120px; /* object-fit: cover; */ margin-bottom: 5px; } } @media (max-width: 576px) { .sidebar { max-height: 180px; padding: 8px; } .sidebar h2 { font-size: 1.2rem; margin-bottom: 0.5rem; } .template { min-width: 120px; padding: 8px; } .main-content { padding: 5px; } .canvas-area { min-height: calc(100vh - 200px); padding: 0px !important; } .modal { width: 90%; } .close { left: 15px; } .image-upload-btn { padding: 4px 8px; font-size: 0.9rem; } .edit-actions { top: -22px; padding: 2px 4px; gap: 5px; } } @media (max-width: 480px) { .sidebar { max-height: 180px; } .template { min-width: 100px; padding: 5px; } .new-div { min-width: 350px; margin: 3px; padding: 0; display: flex; flex-direction: row; width: 100%; } .canvas-area { min-height: calc(100vh - 180px); } .text-controls { gap: 5px; } button { padding: 6px 12px; font-size: 0.9rem; } .modal-content { padding: 10px; } .collection-item { padding: 8px; margin: 5px 0; } } /* Touch-friendly adjustments */ @media (hover: none) { .template:hover, .element:hover { background-color: transparent; border-color: var(--border-color); } .template:active, .element:active { background-color: var(--hover-bg); border-color: var(--primary-color); } .draggable { cursor: default; } .text-element { cursor: default; } .edit-actions { padding: 8px 10px; } .edit-action { padding: 5px; } } /* Fix for iOS scrolling issues */ @supports (-webkit-overflow-scrolling: touch) { .sidebar, #new-div-container, .canvas-area, .modal-content { -webkit-overflow-scrolling: touch; } } /* Fix for the save button position */ #saveTemplate { position: fixed; top: 100px; right: 20px; z-index: 400; } @media (max-width: 768px) { #saveTemplate { top: auto; bottom: 20px; right: 20px; } }