macbook-pro-de-oscar-1.home 2025-8-27:18:3:37
This commit is contained in:
2560
.obsidian/plugins/obsidian-spaced-repetition/main.js
vendored
2560
.obsidian/plugins/obsidian-spaced-repetition/main.js
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"id": "obsidian-spaced-repetition",
|
||||
"name": "Spaced Repetition",
|
||||
"version": "1.13.2",
|
||||
"version": "1.13.3",
|
||||
"minAppVersion": "1.2.8",
|
||||
"description": "Fight the forgetting curve by reviewing flashcards & entire notes.",
|
||||
"author": "Stephen Mwangi",
|
||||
|
@@ -1,151 +1,4 @@
|
||||
@media only screen and (orientation: landscape) {
|
||||
.is-mobile .sr-flashcard {
|
||||
flex-direction: row;
|
||||
}
|
||||
|
||||
.is-mobile .sr-header {
|
||||
flex-direction: column;
|
||||
flex: 0 1 0;
|
||||
}
|
||||
|
||||
.is-mobile .sr-content {
|
||||
flex: 1 0 0;
|
||||
}
|
||||
|
||||
.is-mobile .sr-response {
|
||||
flex-direction: column;
|
||||
flex: 0 1 0;
|
||||
}
|
||||
|
||||
.is-mobile .sr-controls {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.is-mobile .sr-title {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.is-mobile .sr-response-button {
|
||||
writing-mode: vertical-lr;
|
||||
}
|
||||
}
|
||||
|
||||
#sr-modal {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
#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-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;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
/* MARK: utils */
|
||||
|
||||
.sr-bg-blue,
|
||||
.sr-bg-green,
|
||||
@@ -180,18 +33,313 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
|
||||
background-color: hsl(14, 100%, 58%) !important;
|
||||
}
|
||||
|
||||
/* -> DeckListView */
|
||||
.sr-is-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.sr-centered {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.is-tablet .sr-button {
|
||||
padding: var(--size-4-1) var(--size-4-3) !important;
|
||||
}
|
||||
|
||||
.sr-button {
|
||||
box-shadow: none !important;
|
||||
cursor: pointer;
|
||||
width: var(--side-button-size);
|
||||
height: var(--side-button-size);
|
||||
}
|
||||
|
||||
.sr-back-button:hover,
|
||||
.sr-button:hover {
|
||||
background-color: var(--background-modifier-hover);
|
||||
}
|
||||
|
||||
/* MARK: Mobile landscape mode */
|
||||
|
||||
@media only screen and (orientation: landscape) {
|
||||
.is-mobile:not(.is-tablet) .sr-tab-view {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) #sr-modal .sr-modal-content {
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) #sr-modal,
|
||||
.is-mobile:not(.is-tablet) .sr-tab-view {
|
||||
--side-button-clearance: calc(calc(var(--side-button-size)) + 8px);
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-deck-list,
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard {
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-deck-list hr {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard .sr-controls {
|
||||
width: unset !important;
|
||||
flex-direction: column;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard .sr-chosen-deck-info > *,
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard .sr-current-deck-info > * {
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-tab-view .sr-flashcard .sr-info-section {
|
||||
margin: 0 0 0 calc(var(--side-button-clearance));
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) #sr-modal .sr-flashcard .sr-info-section {
|
||||
margin: 0 calc(var(--side-button-clearance));
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard .sr-content {
|
||||
margin: 0 0 0 calc(var(--side-button-clearance));
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard .sr-content hr {
|
||||
margin: 2px 0;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-response-button {
|
||||
height: 48px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (orientation: landscape) and (max-height: 460px) {
|
||||
#sr-modal,
|
||||
.sr-tab-view {
|
||||
--side-button-size: 35px !important;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-response {
|
||||
margin: 0 0 0 calc(var(--side-button-clearance));
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-response-button {
|
||||
height: 32px !important;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard .sr-content p {
|
||||
margin-block-start: 0.5rem;
|
||||
margin-block-end: 0.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (orientation: landscape) and (max-height: 400px) {
|
||||
.is-mobile:not(.is-tablet) .sr-tab-view .sr-flashcard .sr-info-section {
|
||||
--side-button-clearance: calc(var(--side-button-size) * 3) !important;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-tab-view .sr-back-button {
|
||||
left: calc(var(--side-button-size) * 2) !important;
|
||||
top: 0px !important;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard {
|
||||
gap: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
/* MARK: Mobile portrait mode */
|
||||
|
||||
@media only screen and (orientation: portrait) {
|
||||
.is-mobile:not(.is-tablet) .sr-flashcard,
|
||||
.is-mobile:not(.is-tablet) .sr-deck-list {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-tab-view {
|
||||
padding: 0 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (orientation: portrait) and (max-width: 650px) {
|
||||
.is-mobile:not(.is-tablet) .sr-chosen-deck-name,
|
||||
.is-mobile:not(.is-tablet) .sr-current-deck-name {
|
||||
max-width: 15ch;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (orientation: portrait) and (max-width: 550px) {
|
||||
.is-mobile .sr-tab-view {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
.is-mobile:not(.is-tablet) .sr-chosen-deck-name,
|
||||
.is-mobile:not(.is-tablet) .sr-current-deck-name {
|
||||
max-width: 10ch;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (orientation: portrait) and (max-width: 500px) {
|
||||
.is-mobile .sr-tab-view {
|
||||
padding: 0 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (orientation: portrait) and (max-width: 440px) {
|
||||
.is-mobile:not(.is-tablet) .sr-chosen-deck-name,
|
||||
.is-mobile:not(.is-tablet) .sr-current-deck-name {
|
||||
max-width: 8ch;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (orientation: portrait) and (max-width: 410px) {
|
||||
.is-mobile:not(.is-tablet) .sr-chosen-deck-name,
|
||||
.is-mobile:not(.is-tablet) .sr-current-deck-name {
|
||||
max-width: 6ch;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (orientation: portrait) and (max-width: 340px) {
|
||||
.is-mobile .sr-response-button {
|
||||
height: 32px !important;
|
||||
}
|
||||
|
||||
#sr-modal,
|
||||
.sr-tab-view {
|
||||
--side-button-size: 35px !important;
|
||||
}
|
||||
|
||||
.is-mobile .sr-tab-view {
|
||||
padding: 0 4px;
|
||||
}
|
||||
}
|
||||
|
||||
/* MARK: Modal */
|
||||
|
||||
#sr-modal {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
#sr-modal,
|
||||
.sr-tab-view {
|
||||
--side-button-size: 44px;
|
||||
--side-button-clearance: calc(var(--side-button-size));
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
#sr-modal .modal-header {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#sr-modal .modal-close-button {
|
||||
z-index: 21;
|
||||
}
|
||||
|
||||
body:not(.native-scrollbars) #sr-modal .modal-close-button {
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* MARK: Tab view */
|
||||
|
||||
.sr-tab-view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.sr-tab-view-content {
|
||||
flex-grow: 1;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.sr-modal-content,
|
||||
.sr-tab-view {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* MARK: Views*/
|
||||
|
||||
.sr-deck-list,
|
||||
.sr-flashcard {
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.sr-tab-view .sr-deck-list .sr-header {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
/* MARK: DeckListView */
|
||||
|
||||
.sr-deck-list > hr {
|
||||
margin: 2px 0 14px 0;
|
||||
}
|
||||
|
||||
.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;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sr-deck-list .sr-header-stats-count {
|
||||
@@ -229,21 +377,7 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
/* -> FlashcardReviewView */
|
||||
|
||||
.sr-flashcard .sr-header {
|
||||
position: relative;
|
||||
gap: 8px;
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-title-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
/* MARK: FlashcardReviewView */
|
||||
|
||||
.sr-flashcard .sr-button:disabled {
|
||||
cursor: not-allowed;
|
||||
@@ -251,17 +385,85 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
|
||||
|
||||
.sr-flashcard .sr-controls {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
gap: var(--size-4-4);
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-info-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-deck-progress-info {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 4px 24px;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-chosen-deck-info,
|
||||
.sr-flashcard .sr-current-deck-info {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
color: var(--text-muted);
|
||||
text-wrap: nowrap;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-chosen-deck-name,
|
||||
.sr-flashcard .sr-current-deck-name {
|
||||
max-width: 20ch;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-chosen-deck-counter-wrapper,
|
||||
.sr-flashcard .sr-current-deck-counter-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-chosen-deck-counter-divider,
|
||||
.sr-flashcard .sr-current-deck-counter-divider {
|
||||
display: flex;
|
||||
border: 1px solid var(--text-faint);
|
||||
padding: 1ch 0;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-chosen-deck-card-counter-wrapper,
|
||||
.sr-flashcard .sr-current-deck-card-counter-wrapper,
|
||||
.sr-flashcard .sr-chosen-deck-subdeck-counter-wrapper {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.5ch;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-chosen-deck-card-counter-icon,
|
||||
.sr-flashcard .sr-chosen-deck-subdeck-counter-icon,
|
||||
.sr-flashcard .sr-current-deck-card-counter-icon {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-chosen-deck-card-counter-icon svg,
|
||||
.sr-flashcard .sr-chosen-deck-subdeck-counter-icon svg,
|
||||
.sr-flashcard .sr-current-deck-card-counter-icon svg {
|
||||
--icon-size: 16px;
|
||||
--icon-stroke: 2.5px;
|
||||
}
|
||||
|
||||
.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 {
|
||||
@@ -269,16 +471,37 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
|
||||
overflow-y: auto;
|
||||
user-select: text;
|
||||
padding-inline: 8px;
|
||||
width: 100%;
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-card-divide {
|
||||
.sr-flashcard .sr-content,
|
||||
.sr-flashcard .sr-context {
|
||||
text-wrap: wrap;
|
||||
word-break: break-word;
|
||||
}
|
||||
|
||||
.sr-flashcard .sr-content hr {
|
||||
backdrop-filter: invert(40%);
|
||||
border-top-style: dashed;
|
||||
}
|
||||
|
||||
/* -> EditModal */
|
||||
.sr-response {
|
||||
display: flex;
|
||||
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;
|
||||
}
|
||||
|
||||
/* MARK: EditModal */
|
||||
|
||||
.sr-edit-modal {
|
||||
height: 80%;
|
||||
@@ -316,13 +539,15 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/* -> Statistics */
|
||||
/* MARK: Statistics */
|
||||
|
||||
#sr-chart-period {
|
||||
appearance: menulist;
|
||||
border-right: 8px solid transparent;
|
||||
}
|
||||
|
||||
/* MARK: Tab elements */
|
||||
|
||||
/*
|
||||
* Tab elements
|
||||
* This CSS is copied from https://github.com/Taitava/obsidian-shellcommands
|
||||
@@ -349,12 +574,15 @@ body:not(.native-scrollbars) #sr-modal .modal-close-button {
|
||||
button.sr-tab-header-button {
|
||||
background-color: unset;
|
||||
border: none;
|
||||
box-shadow: none; /* Remove a "border" that came via Obsidian 0.16.0. */
|
||||
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 */
|
||||
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 */
|
||||
@@ -364,7 +592,8 @@ button.sr-tab-header-button:hover {
|
||||
}
|
||||
|
||||
.sr-tab-header-button svg {
|
||||
vertical-align: middle; /* Not middle but close enough. */
|
||||
vertical-align: middle;
|
||||
/* Not middle but close enough. */
|
||||
}
|
||||
|
||||
/* Style the tab content */
|
||||
@@ -377,6 +606,8 @@ button.sr-tab-header-button:hover {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* MARK: gridjs */
|
||||
|
||||
/*
|
||||
* gridjs
|
||||
* put everything SR plugin specific above this block
|
||||
@@ -391,23 +622,28 @@ button.sr-tab-header-button:hover {
|
||||
outline: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.gridjs-temp {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.gridjs-head {
|
||||
margin-bottom: 5px;
|
||||
padding: 5px 1px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.gridjs-head:after {
|
||||
clear: both;
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
|
||||
.gridjs-head:empty {
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.gridjs-container {
|
||||
color: #000;
|
||||
display: inline-block;
|
||||
@@ -416,6 +652,7 @@ button.sr-tab-header-button:hover {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.gridjs-footer {
|
||||
background-color: #fff;
|
||||
border-bottom-width: 1px;
|
||||
@@ -431,10 +668,12 @@ button.sr-tab-header-button:hover {
|
||||
width: 100%;
|
||||
z-index: 5;
|
||||
}
|
||||
|
||||
.gridjs-footer:empty {
|
||||
border: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input.gridjs-input {
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
@@ -447,25 +686,31 @@ input.gridjs-input {
|
||||
outline: none;
|
||||
padding: 10px 13px;
|
||||
}
|
||||
|
||||
input.gridjs-input:focus {
|
||||
border-color: #9bc2f7;
|
||||
box-shadow: 0 0 0 3px rgba(149, 189, 243, 0.5);
|
||||
}
|
||||
|
||||
.gridjs-pagination {
|
||||
color: #3d4044;
|
||||
}
|
||||
|
||||
.gridjs-pagination:after {
|
||||
clear: both;
|
||||
content: "";
|
||||
display: block;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-summary {
|
||||
float: left;
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button {
|
||||
background-color: #fff;
|
||||
border: 1px solid #d2d6dc;
|
||||
@@ -476,17 +721,20 @@ input.gridjs-input:focus {
|
||||
-moz-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button:focus {
|
||||
border-right: 1px solid #d2d6dc;
|
||||
box-shadow: 0 0 0 2px rgba(149, 189, 243, 0.5);
|
||||
margin-right: -1px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button:hover {
|
||||
background-color: #f7f7f7;
|
||||
color: #3c4257;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button:disabled,
|
||||
.gridjs-pagination .gridjs-pages button:hover:disabled,
|
||||
.gridjs-pagination .gridjs-pages button[disabled] {
|
||||
@@ -494,27 +742,33 @@ input.gridjs-input:focus {
|
||||
color: #6b7280;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button.gridjs-spread {
|
||||
background-color: #fff;
|
||||
box-shadow: none;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button.gridjs-currentPage {
|
||||
background-color: #f7f7f7;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button:last-child {
|
||||
border-bottom-right-radius: 6px;
|
||||
border-right: 1px solid #d2d6dc;
|
||||
border-top-right-radius: 6px;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button:first-child {
|
||||
border-bottom-left-radius: 6px;
|
||||
border-top-left-radius: 6px;
|
||||
}
|
||||
|
||||
.gridjs-pagination .gridjs-pages button:last-child:focus {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
button.gridjs-sort {
|
||||
background-color: transparent;
|
||||
background-position-x: center;
|
||||
@@ -529,24 +783,29 @@ button.gridjs-sort {
|
||||
padding: 0;
|
||||
width: 13px;
|
||||
}
|
||||
|
||||
button.gridjs-sort-neutral {
|
||||
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MDEuOTk4IiBoZWlnaHQ9IjQwMS45OTgiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMS45OTggNDAxLjk5OCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTczLjA5MiAxNjQuNDUyaDI1NS44MTNjNC45NDkgMCA5LjIzMy0xLjgwNyAxMi44NDgtNS40MjQgMy42MTMtMy42MTYgNS40MjctNy44OTggNS40MjctMTIuODQ3cy0xLjgxMy05LjIyOS01LjQyNy0xMi44NUwyMTMuODQ2IDUuNDI0QzIxMC4yMzIgMS44MTIgMjA1Ljk1MSAwIDIwMC45OTkgMHMtOS4yMzMgMS44MTItMTIuODUgNS40MjRMNjAuMjQyIDEzMy4zMzFjLTMuNjE3IDMuNjE3LTUuNDI0IDcuOTAxLTUuNDI0IDEyLjg1IDAgNC45NDggMS44MDcgOS4yMzEgNS40MjQgMTIuODQ3IDMuNjIxIDMuNjE3IDcuOTAyIDUuNDI0IDEyLjg1IDUuNDI0ek0zMjguOTA1IDIzNy41NDlINzMuMDkyYy00Ljk1MiAwLTkuMjMzIDEuODA4LTEyLjg1IDUuNDIxLTMuNjE3IDMuNjE3LTUuNDI0IDcuODk4LTUuNDI0IDEyLjg0N3MxLjgwNyA5LjIzMyA1LjQyNCAxMi44NDhMMTg4LjE0OSAzOTYuNTdjMy42MjEgMy42MTcgNy45MDIgNS40MjggMTIuODUgNS40MjhzOS4yMzMtMS44MTEgMTIuODQ3LTUuNDI4bDEyNy45MDctMTI3LjkwNmMzLjYxMy0zLjYxNCA1LjQyNy03Ljg5OCA1LjQyNy0xMi44NDggMC00Ljk0OC0xLjgxMy05LjIyOS01LjQyNy0xMi44NDctMy42MTQtMy42MTYtNy44OTktNS40Mi0xMi44NDgtNS40MnoiLz48L3N2Zz4=");
|
||||
background-position-y: center;
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
button.gridjs-sort-asc {
|
||||
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOTIuMzYyIiBoZWlnaHQ9IjI5Mi4zNjEiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDI5Mi4zNjIgMjkyLjM2MSIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTI4Ni45MzUgMTk3LjI4NyAxNTkuMDI4IDY5LjM4MWMtMy42MTMtMy42MTctNy44OTUtNS40MjQtMTIuODQ3LTUuNDI0cy05LjIzMyAxLjgwNy0xMi44NSA1LjQyNEw1LjQyNCAxOTcuMjg3QzEuODA3IDIwMC45MDQgMCAyMDUuMTg2IDAgMjEwLjEzNHMxLjgwNyA5LjIzMyA1LjQyNCAxMi44NDdjMy42MjEgMy42MTcgNy45MDIgNS40MjUgMTIuODUgNS40MjVoMjU1LjgxM2M0Ljk0OSAwIDkuMjMzLTEuODA4IDEyLjg0OC01LjQyNSAzLjYxMy0zLjYxMyA1LjQyNy03Ljg5OCA1LjQyNy0xMi44NDdzLTEuODE0LTkuMjMtNS40MjctMTIuODQ3eiIvPjwvc3ZnPg==");
|
||||
background-position-y: 35%;
|
||||
background-size: 10px;
|
||||
}
|
||||
|
||||
button.gridjs-sort-desc {
|
||||
background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyOTIuMzYyIiBoZWlnaHQ9IjI5Mi4zNjIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDI5Mi4zNjIgMjkyLjM2MiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTI4Ni45MzUgNjkuMzc3Yy0zLjYxNC0zLjYxNy03Ljg5OC01LjQyNC0xMi44NDgtNS40MjRIMTguMjc0Yy00Ljk1MiAwLTkuMjMzIDEuODA3LTEyLjg1IDUuNDI0QzEuODA3IDcyLjk5OCAwIDc3LjI3OSAwIDgyLjIyOGMwIDQuOTQ4IDEuODA3IDkuMjI5IDUuNDI0IDEyLjg0N2wxMjcuOTA3IDEyNy45MDdjMy42MjEgMy42MTcgNy45MDIgNS40MjggMTIuODUgNS40MjhzOS4yMzMtMS44MTEgMTIuODQ3LTUuNDI4TDI4Ni45MzUgOTUuMDc0YzMuNjEzLTMuNjE3IDUuNDI3LTcuODk4IDUuNDI3LTEyLjg0NyAwLTQuOTQ4LTEuODE0LTkuMjI5LTUuNDI3LTEyLjg1eiIvPjwvc3ZnPg==");
|
||||
background-position-y: 65%;
|
||||
background-size: 10px;
|
||||
}
|
||||
|
||||
button.gridjs-sort:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
table.gridjs-table {
|
||||
border-collapse: collapse;
|
||||
display: table;
|
||||
@@ -558,24 +817,30 @@ table.gridjs-table {
|
||||
text-align: left;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.gridjs-tbody,
|
||||
td.gridjs-td {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
td.gridjs-td {
|
||||
border: 1px solid #e5e7eb;
|
||||
box-sizing: content-box;
|
||||
padding: 12px 24px;
|
||||
}
|
||||
|
||||
td.gridjs-td:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
td.gridjs-td:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
td.gridjs-message {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
th.gridjs-th {
|
||||
background-color: #f9fafb;
|
||||
border: 1px solid #e5e7eb;
|
||||
@@ -591,51 +856,64 @@ th.gridjs-th {
|
||||
vertical-align: middle;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
th.gridjs-th .gridjs-th-content {
|
||||
float: left;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
th.gridjs-th-sort {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
th.gridjs-th-sort .gridjs-th-content {
|
||||
width: calc(100% - 15px);
|
||||
}
|
||||
|
||||
th.gridjs-th-sort:focus,
|
||||
th.gridjs-th-sort:hover {
|
||||
background-color: #e5e7eb;
|
||||
}
|
||||
|
||||
th.gridjs-th-fixed {
|
||||
box-shadow: 0 1px 0 0 #e5e7eb;
|
||||
position: sticky;
|
||||
}
|
||||
|
||||
@supports (-moz-appearance: none) {
|
||||
th.gridjs-th-fixed {
|
||||
box-shadow: 0 0 0 1px #e5e7eb;
|
||||
}
|
||||
}
|
||||
|
||||
th.gridjs-th:first-child {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
th.gridjs-th:last-child {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.gridjs-tr {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.gridjs-tr-selected td {
|
||||
background-color: #ebf5ff;
|
||||
}
|
||||
|
||||
.gridjs-tr:last-child td {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.gridjs *,
|
||||
.gridjs :after,
|
||||
.gridjs :before {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.gridjs-wrapper {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
@@ -651,21 +929,26 @@ th.gridjs-th:last-child {
|
||||
width: 100%;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.gridjs-wrapper:nth-last-of-type(2) {
|
||||
border-bottom-width: 1px;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.gridjs-search {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.gridjs-search-input {
|
||||
width: 250px;
|
||||
}
|
||||
|
||||
.gridjs-loading-bar {
|
||||
background-color: #fff;
|
||||
opacity: 0.5;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.gridjs-loading-bar,
|
||||
.gridjs-loading-bar:after {
|
||||
bottom: 0;
|
||||
@@ -674,6 +957,7 @@ th.gridjs-th:last-child {
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.gridjs-loading-bar:after {
|
||||
animation: shimmer 2s infinite;
|
||||
background-image: linear-gradient(
|
||||
@@ -686,16 +970,19 @@ th.gridjs-th:last-child {
|
||||
content: "";
|
||||
transform: translateX(-100%);
|
||||
}
|
||||
|
||||
@keyframes shimmer {
|
||||
to {
|
||||
transform: translateX(100%);
|
||||
}
|
||||
}
|
||||
|
||||
.gridjs-td .gridjs-checkbox {
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.gridjs-resizable {
|
||||
bottom: 0;
|
||||
position: absolute;
|
||||
@@ -703,6 +990,7 @@ th.gridjs-th:last-child {
|
||||
top: 0;
|
||||
width: 5px;
|
||||
}
|
||||
|
||||
.gridjs-resizable:hover {
|
||||
background-color: #9bc2f7;
|
||||
cursor: ew-resize;
|
||||
|
Reference in New Issue
Block a user