mirror of
https://github.com/GuySandler/CanvasRefined.git
synced 2026-06-21 01:49:54 +02:00
working on grades page
This commit is contained in:
parent
45db7ad020
commit
b78353eb86
@ -95,6 +95,7 @@ Actually Better Canvas adds more with more to come!
|
||||
- quick modules button on cards
|
||||
- module sorting (newest, oldest) (maybe grid view)
|
||||
- grade leaderboard per class (opt in)
|
||||
- GPA preset by school name maybe
|
||||
|
||||
## Dev Installation
|
||||
|
||||
|
||||
@ -574,6 +574,11 @@ table.summary thead th,
|
||||
border-color:var(--bcborders)!important
|
||||
}
|
||||
|
||||
tr.student_assignment.assignment_graded.editable {
|
||||
border-top:1px solid var(--bctext-1)!important;
|
||||
border-bottom:1px solid var(--bctext-1)!important
|
||||
}
|
||||
|
||||
.discussion-section.message_wrapper table {
|
||||
border:4px solid var(--bcborders)!important
|
||||
}
|
||||
@ -632,6 +637,10 @@ ul.outcome-level {
|
||||
border-top:1px solid var(--bcborders)!important
|
||||
}
|
||||
|
||||
td.details {
|
||||
border-bottom:none!important
|
||||
}
|
||||
|
||||
.discussions-v2__container-image {
|
||||
border:.125rem dashed var(--bcborders)!important
|
||||
}
|
||||
|
||||
@ -12,6 +12,10 @@ function getSidebarLayoutMode() {
|
||||
return "general";
|
||||
}
|
||||
|
||||
function isGradesPage() {
|
||||
return /^\/courses\/\d+\/grades(?:\/|$)/.test(current_page);
|
||||
}
|
||||
|
||||
function getSidebarStateMode(mode = getSidebarLayoutMode()) {
|
||||
return mode === "course" ? "course" : "dashboard";
|
||||
}
|
||||
@ -543,6 +547,9 @@ function applyCustomBackground() {
|
||||
border: none !important;
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
#assignments.ui-tabs-panel {
|
||||
background: transparent !important;
|
||||
}
|
||||
.item-group-condensed .ig-row.ig-published.no-estimated-duration {
|
||||
color: var(--bctext-1) !important;
|
||||
border: 1px solid color-mix(in srgb, var(--bcborders) 60%, transparent) !important;
|
||||
@ -1512,7 +1519,7 @@ function createTodoViewMore(location, type) {
|
||||
|
||||
// better todo init
|
||||
function setupBetterTodo() {
|
||||
if (options.better_todo !== true) return;
|
||||
if (options.better_todo !== true || isGradesPage()) return;
|
||||
if (document.querySelector('#bettercanvas-todo-list')) return;
|
||||
let list = document.querySelector("#right-side");
|
||||
if (!list) return;
|
||||
@ -1833,7 +1840,7 @@ let moreAssignmentCount = 0;
|
||||
let moreAnnouncementCount = 0;
|
||||
let filter = "todo";
|
||||
async function loadBetterTodo() {
|
||||
if (options.better_todo !== true) return;
|
||||
if (options.better_todo !== true || isGradesPage()) return;
|
||||
try {
|
||||
await getColors();
|
||||
const discussion_svg = '<svg class="bettercanvas-todo-svg" name="IconDiscussion" viewBox="0 0 1920 1920" rotate="0" aria-hidden="true" role="presentation" focusable="false" ><g role="presentation"><path d="M677.647059,16 L677.647059,354.936471 L790.588235,354.936471 L790.588235,129.054118 L1807.05882,129.054118 L1807.05882,919.529412 L1581.06353,919.529412 L1581.06353,1179.29412 L1321.41176,919.529412 L1242.24,919.529412 L1242.24,467.877647 L677.647059,467.877647 L0,467.877647 L0,1484.34824 L338.710588,1484.34824 L338.710588,1903.24706 L756.705882,1484.34824 L1242.24,1484.34824 L1242.24,1032.47059 L1274.99294,1032.47059 L1694.11765,1451.59529 L1694.11765,1032.47059 L1920,1032.47059 L1920,16 L677.647059,16 Z M338.789647,919.563294 L903.495529,919.563294 L903.495529,806.622118 L338.789647,806.622118 L338.789647,919.563294 Z M338.789647,1145.44565 L677.726118,1145.44565 L677.726118,1032.39153 L338.789647,1032.39153 L338.789647,1145.44565 Z M112.941176,580.705882 L1129.41176,580.705882 L1129.41176,1371.40706 L710.4,1371.40706 L451.651765,1631.05882 L451.651765,1371.40706 L112.941176,1371.40706 L112.941176,580.705882 Z" fill-rule="evenodd" stroke="none" stroke-width="1"></path></g></svg>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user