This commit is contained in:
Oscar Plaisant
2024-10-01 11:38:50 +02:00
parent 695358527b
commit 5b65eb2b2a
178 changed files with 186337 additions and 103731 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1,8 +1,8 @@
{
"id": "obsidian-spaced-repetition",
"name": "Spaced Repetition",
"version": "1.12.5",
"minAppVersion": "0.15.4",
"version": "1.12.8",
"minAppVersion": "1.2.8",
"description": "Fight the forgetting curve by reviewing flashcards & entire notes.",
"author": "Stephen Mwangi",
"authorUrl": "https://github.com/st3v3nmw",

View File

@@ -90,6 +90,13 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
line-height: var(--line-height-tight);
}
.sr-sub-title {
font-size: var(--font-ui-medium);
text-align: center;
line-height: var(--line-height-tight);
color: var(--text-muted);
}
.sr-content {
overflow-y: auto;
}
@@ -230,15 +237,16 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
padding-bottom: 8px;
}
.sr-flashcard .sr-button:disabled {
cursor: not-allowed;
.sr-flashcard .sr-title-wrapper {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 4px;
}
.sr-flashcard .sr-back-button {
position: absolute;
left: 0;
top: 0;
z-index: 21;
.sr-flashcard .sr-button:disabled {
cursor: not-allowed;
}
.sr-flashcard .sr-controls {
@@ -314,3 +322,57 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
appearance: menulist;
border-right: 8px solid transparent;
}
/*
* Tab elements
* This CSS is copied from https://github.com/Taitava/obsidian-shellcommands
* Jarkko Linnanvirta https://github.com/Taitava comments below...
* - Renamed classes
*
* This CSS is copied 2021-10-21 from https://www.w3schools.com/howto/howto_js_tabs.asp
* Modifications:
* - Renamed classes
* - Added tab icons.
* - Changed colors.
* - Changed/removed borders.
* - Removed button transition.
* - Changed button border-radiuses
* - Added margin-right rule to .sr-tab-header-button .
*/
/* Style the tab */
.sr-tab-header {
border-bottom: 6px solid var(--background-modifier-border);
}
/* Style the buttons that are used to open the tab content */
button.sr-tab-header-button {
background-color: unset;
border: none;
box-shadow: none; /* Remove a "border" that came via Obsidian 0.16.0. */
outline: none;
cursor: pointer;
padding: 14px 16px;
margin-right: 6px; /* Reduced margin. Obsidian's default margin-right for button is 12px (0 for other margins). */
border-radius: 10px 10px 0 0; /* 0 0 = No border-radius at bottom */
}
/* Create an active/current tablink class */
button.sr-tab-header-button.sr-tab-active,
button.sr-tab-header-button:hover {
background-color: var(--background-modifier-border);
}
.sr-tab-header-button svg {
vertical-align: middle; /* Not middle but close enough. */
}
/* Style the tab content */
.sr-tab-content {
display: none;
padding: 6px 12px;
}
.sr-tab-content.sr-tab-active {
display: block;
}