mirror of
https://github.com/rodolfo-terriquez/images-to-notes.git
synced 2026-07-22 05:48:18 +00:00
206 lines
5.3 KiB
CSS
206 lines
5.3 KiB
CSS
/* Ensure text areas fill the entire width */
|
|
.imgtono-setting-item-control textarea,
|
|
.imgtono-setting-item-control .imgtono-full-width-input,
|
|
.imgtono-setting-item-control .imgtono-full-width-select {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Vertical layout container */
|
|
.imgtono-vertical-layout-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 1em 0; /* Match Obsidian's standard setting-item padding */
|
|
border-bottom: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/* Setting item info styles */
|
|
.imgtono-vertical-layout-container .imgtono-setting-item-info {
|
|
width: 100%;
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.imgtono-vertical-layout-container .imgtono-setting-item-name {
|
|
font-weight: var(--font-bold);
|
|
font-size: var(--font-ui-medium);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.imgtono-vertical-layout-container .imgtono-setting-item-description {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-ui-small);
|
|
}
|
|
|
|
/* Setting item control styles with specific selectors */
|
|
.imgtono-vertical-layout-container .imgtono-setting-item-control {
|
|
width: 100%;
|
|
margin-top: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Style for standard setting controls */
|
|
.setting-item .imgtono-setting-item-control {
|
|
margin-top: 12px;
|
|
}
|
|
|
|
/* Make text areas take full width */
|
|
.imgtono-vertical-layout-container textarea {
|
|
width: 100%;
|
|
resize: vertical;
|
|
min-height: 100px;
|
|
font-family: var(--font-text);
|
|
font-size: 14px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
padding: 8px;
|
|
background-color: var(--background-primary);
|
|
}
|
|
|
|
/* Style dropdowns in vertical layout */
|
|
.imgtono-vertical-layout-container .dropdown {
|
|
width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Button row styling */
|
|
.imgtono-setting-button-row {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
margin-top: 12px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.imgtono-setting-button-row button {
|
|
background-color: var(--interactive-normal);
|
|
color: var(--text-normal);
|
|
border-radius: 4px;
|
|
padding: 6px 12px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.imgtono-setting-button-row button:hover {
|
|
background-color: var(--interactive-hover);
|
|
}
|
|
|
|
/* Mobile-specific styling */
|
|
@media (max-width: 768px) {
|
|
.imgtono-vertical-layout-container textarea {
|
|
min-height: 120px; /* Slightly taller on mobile for better usability */
|
|
}
|
|
|
|
.imgtono-setting-button-row {
|
|
width: 100%;
|
|
}
|
|
|
|
.imgtono-setting-button-row button {
|
|
width: 100%;
|
|
justify-content: center;
|
|
padding: 10px 16px; /* Larger touch target on mobile */
|
|
}
|
|
|
|
/* Increase spacing for better touch targets */
|
|
.imgtono-vertical-layout-container {
|
|
padding: 16px 0;
|
|
}
|
|
|
|
/* Make dropdown more touch-friendly */
|
|
.imgtono-vertical-layout-container .dropdown {
|
|
height: 40px;
|
|
font-size: 16px;
|
|
}
|
|
}
|
|
|
|
/* Add some spacing between settings */
|
|
.imgtono-vertical-layout-container + .imgtono-vertical-layout-container {
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* Mobile optimizations for all settings */
|
|
@media (max-width: 768px) {
|
|
/* Force all setting controls to take full width on mobile */
|
|
.imgtono-setting-item-control {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
/* Force text areas to take full width on mobile */
|
|
.imgtono-setting-item-control textarea,
|
|
.imgtono-setting-item-control .imgtono-full-width-input,
|
|
.imgtono-setting-item-control .imgtono-full-width-select {
|
|
width: 100%;
|
|
max-width: none;
|
|
margin-right: 0;
|
|
}
|
|
|
|
/* Increase touch target size for mobile */
|
|
.setting-item button,
|
|
.dropdown,
|
|
.imgtono-setting-item-control input[type="text"],
|
|
.imgtono-setting-item-control input[type="password"] {
|
|
min-height: 36px;
|
|
min-width: 36px;
|
|
padding: 6px;
|
|
}
|
|
|
|
/* Add more space between settings for easier touch interaction */
|
|
.setting-item {
|
|
padding-top: 12px;
|
|
padding-bottom: 12px;
|
|
}
|
|
|
|
/* Make dropdown menus more touch-friendly */
|
|
.dropdown {
|
|
font-size: 16px; /* Larger text for better readability */
|
|
}
|
|
|
|
/* Increase spacing for toggle switches */
|
|
.imgtono-setting-item-control .checkbox-container {
|
|
padding: 6px;
|
|
}
|
|
}
|
|
|
|
/* Style for warning text in settings */
|
|
.imgtono-setting-warning {
|
|
color: var(--text-warning); /* Use Obsidian's warning text color variable */
|
|
font-size: var(--font-ui-small); /* Use Obsidian's small UI font size variable */
|
|
margin-top: 5px; /* Add some space above the warning */
|
|
}
|
|
|
|
/* Model loading spinner (inline in description) */
|
|
.imgtono-model-loading-inline {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.imgtono-confirmation-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.imgtono-spinner {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 2px solid var(--background-modifier-border);
|
|
border-top-color: var(--text-accent);
|
|
border-radius: 50%;
|
|
animation: imgtono-spin 0.8s linear infinite;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
@keyframes imgtono-spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|