Initial commit
This commit is contained in:
22762
.obsidian/plugins/obsidian-spaced-repetition/main.js
vendored
Normal file
22762
.obsidian/plugins/obsidian-spaced-repetition/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
12
.obsidian/plugins/obsidian-spaced-repetition/manifest.json
vendored
Normal file
12
.obsidian/plugins/obsidian-spaced-repetition/manifest.json
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"id": "obsidian-spaced-repetition",
|
||||
"name": "Spaced Repetition",
|
||||
"version": "1.12.2",
|
||||
"minAppVersion": "0.15.4",
|
||||
"description": "Fight the forgetting curve by reviewing flashcards & entire notes.",
|
||||
"author": "Stephen Mwangi",
|
||||
"authorUrl": "https://github.com/st3v3nmw",
|
||||
"helpUrl": "https://www.stephenmwangi.com/obsidian-spaced-repetition/",
|
||||
"isDesktopOnly": false,
|
||||
"fundingUrl": "https://ko-fi.com/M4M44DEN6"
|
||||
}
|
284
.obsidian/plugins/obsidian-spaced-repetition/styles.css
vendored
Normal file
284
.obsidian/plugins/obsidian-spaced-repetition/styles.css
vendored
Normal file
@@ -0,0 +1,284 @@
|
||||
.is-mobile #sr-modal {
|
||||
--top-space: calc(var(--safe-area-inset-top) + var(--header-height) + var(--size-4-2));
|
||||
width: 100vw !important;
|
||||
height: calc(100vh - var(--top-space)) !important;
|
||||
margin-top: var(--top-space);
|
||||
}
|
||||
|
||||
#sr-modal .modal-title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#sr-modal .modal-close-button {
|
||||
z-index: 21;
|
||||
}
|
||||
|
||||
body:not(.native-scrollbars) #sr-modal .modal-close-button {
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
.sr-modal-content {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sr-is-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.sr-centered {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sr-deck-list,
|
||||
.sr-flashcard,
|
||||
.sr-edit-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.sr-header {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
border-bottom: 1px solid var(--hr-color);
|
||||
}
|
||||
|
||||
.sr-title {
|
||||
font-size: var(--font-ui-large);
|
||||
font-weight: var(--font-semibold);
|
||||
text-align: center;
|
||||
line-height: var(--line-height-tight);
|
||||
}
|
||||
|
||||
.sr-content {
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.sr-button {
|
||||
box-shadow: none !important;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.sr-back-button {
|
||||
z-index: 21;
|
||||
cursor: var(--cursor);
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
left: 12px;
|
||||
font-size: 26px;
|
||||
line-height: 22px;
|
||||
height: 26px;
|
||||
width: 26px;
|
||||
padding: 0 var(--size-2-2);
|
||||
border-radius: var(--radius-s);
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sr-back-button:hover,
|
||||
.sr-button:hover {
|
||||
background-color: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
.sr-response {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
margin-top: var(--size-4-4);
|
||||
gap: var(--size-4-4);
|
||||
}
|
||||
|
||||
.sr-response-button {
|
||||
height: 48px;
|
||||
flex-grow: 1;
|
||||
margin: auto;
|
||||
line-height: 48px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
border-radius: 4px;
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
.sr-bg-blue,
|
||||
.sr-bg-green,
|
||||
.sr-bg-red {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
.sr-bg-green {
|
||||
background-color: #4caf50 !important;
|
||||
}
|
||||
|
||||
.sr-bg-blue {
|
||||
background-color: #2094f3 !important;
|
||||
}
|
||||
|
||||
.sr-bg-red {
|
||||
background-color: #ff7043 !important;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-tree-item-row:hover .sr-bg-green,
|
||||
.sr-response-button.sr-bg-green:hover {
|
||||
background-color: hsl(122, 39%, 44%) !important;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-tree-item-row:hover .sr-bg-blue,
|
||||
.sr-response-button.sr-bg-blue:hover {
|
||||
background-color: hsl(207, 90%, 49%) !important;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-tree-item-row:hover .sr-bg-red,
|
||||
.sr-response-button.sr-bg-red:hover {
|
||||
background-color: hsl(14, 100%, 58%) !important;
|
||||
}
|
||||
|
||||
/* -> DeckListView */
|
||||
|
||||
.sr-deck-list .sr-header {
|
||||
gap: 8px;
|
||||
padding-bottom: 14px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-header-stats-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-header-stats-count {
|
||||
display: flex;
|
||||
color: #ffffff;
|
||||
padding: 4px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-header-stats-count > *:first-child {
|
||||
min-width: 10ch;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-header-stats-count > *:last-child {
|
||||
min-width: 3ch;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-tree-item-row {
|
||||
padding-top: 2px;
|
||||
padding-bottom: 2px;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-tree-stats-container {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-tree-stats-count {
|
||||
min-width: 3ch;
|
||||
padding: 4px;
|
||||
box-sizing: content-box;
|
||||
text-align: center;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* -> FlashcardReviewView */
|
||||
|
||||
.sr-flashcard .sr-header {
|
||||
position: relative;
|
||||
gap: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-button:disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-back-button {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 21;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-controls {
|
||||
display: flex;
|
||||
gap: var(--size-4-4);
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-context {
|
||||
font-style: italic;
|
||||
color: var(--text-faint);
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin-top: 12px;
|
||||
margin-bottom: 4px;
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-content {
|
||||
font-size: var(--font-text-size);
|
||||
overflow-y: auto;
|
||||
user-select: text;
|
||||
padding-inline: 8px;
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-card-divide {
|
||||
backdrop-filter: invert(40%);
|
||||
border-top-style: dashed;
|
||||
}
|
||||
|
||||
/* -> EditModal */
|
||||
|
||||
.sr-edit-modal {
|
||||
height: 80%;
|
||||
}
|
||||
|
||||
.sr-edit-view {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: var(--size-4-4);
|
||||
}
|
||||
|
||||
.sr-edit-view .sr-input {
|
||||
flex-grow: 1;
|
||||
width: 100%;
|
||||
resize: none;
|
||||
}
|
||||
|
||||
.sr-edit-view .sr-response {
|
||||
display: grid;
|
||||
grid-template-columns: auto auto auto;
|
||||
width: 100%;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.sr-edit-view .sr-response-button {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sr-edit-view .sr-response-button.sr-spacer {
|
||||
opacity: 0;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* -> Statistics */
|
||||
|
||||
#sr-chart-period {
|
||||
appearance: menulist;
|
||||
border-right: 8px solid transparent;
|
||||
}
|
Reference in New Issue
Block a user