| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323 |
- /* Image Converter Section Styles */
- .image-converter-content {
- overflow-y: auto;
- display: flex;
- flex-direction: column;
- gap: 20px;
- flex-grow: 1;
- }
- .image-converter-steps .tab-container {
- display: flex;
- width: 100%;
- }
- .image-converter-steps .tab-button.active {
- background: rgba(255, 255, 255, 0.75);
- color: var(--theme-primary);
- }
- .image-converter-steps canvas {
- background-color: white;
- }
- .image-converter-steps .tab-content.active {
- flex: auto;
- }
- #generate-button.loading {
- position: relative;
- pointer-events: none;
- opacity: 0.7;
- }
- #generate-button.loading i {
- display: none;
- }
- #generate-button.loading::before {
- content: "";
- width: 16px;
- height: 16px;
- border: 3px solid white;
- border-top-color: transparent;
- border-radius: 50%;
- animation: spin 1s linear infinite;
- }
- @keyframes spin {
- from { transform: rotate(0deg); }
- to { transform: rotate(360deg); }
- }
- .image-converter-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20px;
- border-bottom: 1px solid var(--border-primary);
- padding-bottom: 10px;
- }
- .image-converter-header h2 {
- margin: 0;
- color: var(--theme-secondary-hover);
- }
- .preview-controls-container {
- display: grid;
- grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
- gap: 20px;
- margin-bottom: 20px;
- }
- .image-converter-settings {
- display: flex;
- flex-direction: column;
- gap: 15px;
- padding: 15px;
- }
- .image-converter-preview,
- .dune-weaver-preview {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-bottom: 15px;
- flex-grow: 1;
- }
- .image-converter-preview canvas,
- .dune-weaver-preview canvas {
- max-width: 100%;
- border: 1px solid var(--border-primary);
- background-color: #FFFFFF;
- margin-bottom: 10px;
- width: 100%;
- height: auto;
- aspect-ratio: 1 / 1;
- object-fit: contain;
- min-height: 250px;
- }
- /* Ensure all canvases have the same size */
- #original-image, #edge-image, #dot-image, #connect-image {
- width: 100%;
- height: auto;
- aspect-ratio: 1 / 1;
- min-height: 250px;
- }
- #connect-image {
- /*border: 1px solid var(--border-primary);*/
- /*background: var(--theme-secondary);*/
- padding: 15px;
- }
- .dune-weaver-preview canvas {
- min-height: 250px;
- }
- .image-converter-preview h3,
- .dune-weaver-preview h3 {
- margin-top: 0;
- margin-bottom: 8px;
- font-size: 1rem;
- color: var(--theme-secondary-hover);
- }
- .image-converter-actions {
- display: flex;
- justify-content: flex-end;
- gap: 15px;
- margin-top: 20px;
- padding-top: 15px;
- border-top: 1px solid var(--border-primary);
- }
- .image-converter-actions button {
- padding: 10px 20px;
- border-radius: 4px;
- cursor: pointer;
- font-weight: 500;
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .image-converter-actions button i {
- font-size: 1.1rem;
- }
- .image-converter-actions .cancel {
- background-color: var(--color-error);
- color: var(--text-secondary);
- border: none;
- }
- .image-converter-actions .cta {
- background-color: var(--theme-primary);
- color: var(--text-secondary);
- border: none;
- }
- .slider-container {
- display: flex;
- flex-direction: column;
- width: 100%;
- }
- .slider-labels {
- display: flex;
- justify-content: space-between;
- font-size: 0.8rem;
- color: var(--text-primary);
- }
- .setting-item {
- display: flex;
- flex-direction: column;
- }
- .setting-item label {
- margin-bottom: 5px;
- font-weight: 500;
- color: var(--text-primary);
- }
- .setting-item select,
- .setting-item input {
- padding: 8px;
- border-radius: 4px;
- border: 1px solid var(--border-primary);
- background-color: var(--input-background);
- color: var(--input-text);
- }
- .checkbox-group {
- display: flex;
- flex-wrap: wrap;
- gap: 20px;
- margin: 10px 0;
- }
- .checkbox-container {
- display: flex;
- align-items: center;
- gap: 8px;
- white-space: nowrap;
- }
- .checkbox-container label {
- margin-bottom: 0;
- color: var(--text-primary);
- }
- .generate-button-container {
- display: flex;
- justify-content: center;
- margin-top: 15px;
- }
- .generate-button-container button {
- padding: 10px 20px;
- font-size: 1rem;
- background-color: var(--theme-primary);
- color: var(--text-secondary);
- border: none;
- border-radius: 4px;
- cursor: pointer;
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .generate-button-container button:hover {
- background-color: var(--theme-primary-hover);
- }
- .processing-indicator {
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: var(--background-translucent);
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- z-index: 10;
- color: var(--text-secondary);
- font-size: 1.2rem;
- visibility: hidden;
- opacity: 0;
- transition: opacity 0.3s, visibility 0.3s;
- }
- .processing-indicator.visible {
- visibility: visible;
- opacity: 1;
- }
- .spinner {
- border: 4px solid rgba(255, 255, 255, 0.3);
- border-radius: 50%;
- border-top: 4px solid var(--theme-primary);
- width: 40px;
- height: 40px;
- animation: spin 1s linear infinite;
- margin-bottom: 15px;
- }
- @keyframes spin {
- 0% {
- transform: rotate(0deg);
- }
- 100% {
- transform: rotate(360deg);
- }
- }
- #total-points {
- margin-top: 10px;
- font-size: 0.9rem;
- color: var(--text-primary);
- }
- /* Ensure inputs and checkboxes match the theme */
- input[type="checkbox"] {
- accent-color: var(--theme-primary);
- }
- input[type="range"] {
- accent-color: var(--theme-primary);
- background-color: var(--input-background);
- }
- /* Ensure the dialog transitions smoothly with theme changes */
- .image-converter-dialog * {
- transition: background-color var(--transition-fast),
- color var(--transition-fast),
- border-color var(--transition-fast);
- }
- .gen-button {
- margin-left: 10px;
- }
- canvas#connect-image {
- clip-path: ellipse();
- }
- @media (min-width: 769px) {
- .image-converter-content {
- flex-direction: row;
- }
- .image-converter-content > div {
- width: calc(100% / 3);
- }
- }
|