mirror of
https://github.com/scotttomaszewski/obsidian-disciples-journal.git
synced 2026-07-22 12:20:30 +00:00
- Implement comprehensive error handling in ESV API service - Add informative error messages for missing or invalid API tokens - Create styled error and warning components for API-related issues - Enhance settings tab with clear ESV API token setup instructions - Add notice for users when API token is not configured - Improve user experience with descriptive error messaging
202 lines
4 KiB
CSS
202 lines
4 KiB
CSS
/*
|
|
|
|
This CSS file will be included with your plugin, and
|
|
available in the app when your plugin is enabled.
|
|
|
|
If your plugin does not need CSS, delete this file.
|
|
|
|
*/
|
|
|
|
/* Disciples Journal Plugin Styles */
|
|
|
|
/* Bible Navigation Styles */
|
|
.bible-navigation {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 0 0 20px;
|
|
padding: 10px;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 4px;
|
|
position: relative;
|
|
font-family: var(--default-font);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.bible-passage-container .bible-navigation {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.nav-prev, .nav-next, .nav-book-selector {
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-button {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
color: var(--text-accent);
|
|
padding: 6px 10px;
|
|
border-radius: 4px;
|
|
font-weight: 500;
|
|
text-align: center;
|
|
transition: background-color 0.2s ease;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.nav-button:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--text-accent-hover);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.nav-disabled {
|
|
color: var(--text-muted);
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.nav-book-selector {
|
|
cursor: pointer;
|
|
color: var(--text-normal);
|
|
background-color: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
font-weight: bold;
|
|
padding: 6px 14px;
|
|
user-select: none;
|
|
}
|
|
|
|
.nav-book-selector:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.nav-book-data {
|
|
position: absolute;
|
|
top: 110%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background-color: var(--background-primary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
padding: 15px;
|
|
border-radius: 4px;
|
|
z-index: 100;
|
|
width: 300px;
|
|
}
|
|
|
|
.nav-book-data .dropdown {
|
|
width: 100%;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.nav-book-data .dropdown select {
|
|
width: 100%;
|
|
padding: 6px;
|
|
background-color: var(--background-primary);
|
|
color: var(--text-normal);
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.nav-chapter-container {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.nav-go-button {
|
|
width: 100% !important;
|
|
padding: 6px 12px;
|
|
background-color: var(--interactive-accent) !important;
|
|
color: var(--text-on-accent) !important;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
display: block;
|
|
text-align: center;
|
|
}
|
|
|
|
/* About Section Styles */
|
|
.disciples-journal-about {
|
|
max-width: 450px;
|
|
margin: 0 auto;
|
|
padding: 12px;
|
|
text-align: center;
|
|
}
|
|
|
|
.disciples-journal-about p {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.disciples-journal-about small {
|
|
font-size: 0.8em;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* API Info Styles */
|
|
.disciples-journal-api-info {
|
|
background-color: var(--background-secondary);
|
|
border-left: 4px solid var(--text-accent);
|
|
padding: 12px 15px;
|
|
margin-bottom: 15px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.disciples-journal-api-info p {
|
|
margin: 0 0 10px 0;
|
|
}
|
|
|
|
.disciples-journal-api-info ol {
|
|
margin: 0 0 10px 20px;
|
|
}
|
|
|
|
.disciples-journal-api-info li {
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.disciples-journal-api-info a {
|
|
color: var(--text-accent);
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.disciples-journal-api-info a:hover {
|
|
text-decoration: none;
|
|
}
|
|
|
|
/* Bible Copyright Container Styles */
|
|
.bible-copyright-container {
|
|
margin-top: 20px;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.bible-copyright {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.bible-copyright summary {
|
|
cursor: pointer;
|
|
opacity: 0.8;
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.bible-copyright summary:hover {
|
|
opacity: 1;
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.bible-copyright-content {
|
|
background-color: var(--background-secondary);
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
margin-top: 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.bible-copyright-content p {
|
|
margin: 6px 0;
|
|
}
|