more cleanup

This commit is contained in:
Jones8683
2026-01-30 08:37:38 +10:30
parent eed8bac45a
commit 8b6bda6dff
+10 -70
View File
@@ -39,7 +39,6 @@ html {
font-family: Rubik, sans-serif !important; font-family: Rubik, sans-serif !important;
} }
/* Ensure native select dropdowns are readable on Windows */
select option { select option {
background-color: #ffffff !important; background-color: #ffffff !important;
color: #111827 !important; color: #111827 !important;
@@ -49,7 +48,6 @@ select option {
color: #ffffff !important; color: #ffffff !important;
} }
/* Consistent rounded corners for selects */
select { select {
border-radius: 8px !important; border-radius: 8px !important;
} }
@@ -158,8 +156,7 @@ select {
#main { #main {
color: var(--text-primary); color: var(--text-primary);
position: relative; position: relative;
}
#main {
> .timetablepage { > .timetablepage {
> .quickbar { > .quickbar {
.gutter { .gutter {
@@ -276,10 +273,8 @@ select {
grid-template-columns: repeat(autofit, minmax(200px, 400px)) !important; grid-template-columns: repeat(autofit, minmax(200px, 400px)) !important;
background: unset; background: unset;
// TODO: Make this only opacity 0 when the animation will be played to stop a flash of the original
> section { > section {
border-radius: 16px !important; border-radius: 16px !important;
//opacity: 0;
button { button {
border-radius: 16px; border-radius: 16px;
@@ -319,7 +314,6 @@ select {
> .dashlet { > .dashlet {
background: var(--background-primary); background: var(--background-primary);
border-radius: 16px; border-radius: 16px;
//opacity: 0;
&[data-ident="timetable"] { &[data-ident="timetable"] {
grid-row: span 2 / auto !important; grid-row: span 2 / auto !important;
@@ -339,9 +333,6 @@ select {
.dashlet-summary-homework > .summary > .subject > .item { .dashlet-summary-homework > .summary > .subject > .item {
color: var(--text-primary) !important; color: var(--text-primary) !important;
} }
.dashlet-summary-homework > .summary > .subject > .item {
color: var(--text-primary) !important;
}
.dashlet-notes > ul { .dashlet-notes > ul {
background: var(--background-primary); background: var(--background-primary);
} }
@@ -406,7 +397,6 @@ ul.magicDelete > li.deleting {
white-space: nowrap; white-space: nowrap;
} }
/* Allow long course/assessment names in the sidebar to wrap and break safely */
#menu li > label, #menu li > label,
#menu section > label { #menu section > label {
white-space: normal; white-space: normal;
@@ -500,7 +490,6 @@ ul.magicDelete > li.deleting {
html { html {
background: var(--better-main) !important; background: var(--better-main) !important;
} }
/* Messages */
.menuShown .content .anyoneSelect .listWrapper .list:has(.item) { .menuShown .content .anyoneSelect .listWrapper .list:has(.item) {
width: 100% !important; width: 100% !important;
} }
@@ -519,7 +508,6 @@ ol:has([class*="MessageList__avatar___"] svg) {
transition-duration: 150ms !important; transition-duration: 150ms !important;
transition-delay: 0ms !important; transition-delay: 0ms !important;
} }
/* Direct Message Menu */
.wrapper .cke_contents iframe { .wrapper .cke_contents iframe {
box-sizing: border-box; box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
@@ -528,7 +516,6 @@ ol:has([class*="MessageList__avatar___"] svg) {
} }
.wrapper .cke_contents::-webkit-scrollbar-thumb { .wrapper .cke_contents::-webkit-scrollbar-thumb {
background-color: #969696 !important; background-color: #969696 !important;
/* color of the scroll thumb */
} }
.content .footer { .content .footer {
margin-top: 5px; margin-top: 5px;
@@ -1364,7 +1351,6 @@ html.transparencyEffects
font-size: 20px !important; font-size: 20px !important;
font-weight: 500; font-weight: 500;
min-height: 46px; min-height: 46px;
/* Let the title expand naturally but clamp to 2 lines to avoid overlap */
height: auto; height: auto;
line-height: 1.2; line-height: 1.2;
display: -webkit-box; display: -webkit-box;
@@ -1438,8 +1424,6 @@ html.transparencyEffects
background: white; background: white;
z-index: 21 !important; z-index: 21 !important;
color: var(--better-sub); color: var(--better-sub);
}
[class*="notifications__notifications___"] > button {
padding: 8px; padding: 8px;
} }
.legacy-root button > svg, .legacy-root button > svg,
@@ -1540,7 +1524,6 @@ html.transparencyEffects
display: none !important; display: none !important;
} }
[class*="MessageList__MessageList___"] ol [class*="Button__Button___"]::before { [class*="MessageList__MessageList___"] ol [class*="Button__Button___"]::before {
// plus icon
content: ""; content: "";
font-size: 12px; font-size: 12px;
margin-right: 4px; margin-right: 4px;
@@ -1831,7 +1814,6 @@ iframe.userHTML {
color: var(--text-primary); color: var(--text-primary);
} }
/* set button(top and bottom of the scrollbar) */
body::-webkit-scrollbar-button { body::-webkit-scrollbar-button {
display: none !important; display: none !important;
} }
@@ -1845,9 +1827,6 @@ ul {
scrollbar-color: #babac0 #fff !important; scrollbar-color: #babac0 #fff !important;
} }
#userActions > .details > .code {
text-transform: initial;
}
div:has(> [class*="AssessmentDetails__AssessmentDetails___"]) { div:has(> [class*="AssessmentDetails__AssessmentDetails___"]) {
padding: 4px; padding: 4px;
} }
@@ -2355,7 +2334,6 @@ ul.buttonChecklist,
ul.buttonMenu, ul.buttonMenu,
ul.colourButtonOptions, ul.colourButtonOptions,
ul.uiSplitButtonList, ul.uiSplitButtonList,
ul.buttonMenu,
.contactFormPanel { .contactFormPanel {
background: var(--background-primary) !important; background: var(--background-primary) !important;
border: solid 4px var(--background-primary); border: solid 4px var(--background-primary);
@@ -2427,9 +2405,6 @@ body {
.days { .days {
width: 100%; width: 100%;
} }
.hidden {
display: none;
}
.modaliser { .modaliser {
display: none; display: none;
background: var(--better-main); background: var(--better-main);
@@ -2775,6 +2750,7 @@ body {
bottom: 20px; bottom: 20px;
} }
#userActions > .details > .code { #userActions > .details > .code {
text-transform: initial;
overflow: visible !important; overflow: visible !important;
} }
.code { .code {
@@ -2896,8 +2872,6 @@ div.day-empty {
height: 6em; height: 6em;
padding: 0px; padding: 0px;
border-radius: 10px; border-radius: 10px;
}
.upcoming-assessment {
display: flex; display: flex;
} }
.upcoming-date-container { .upcoming-date-container {
@@ -2966,7 +2940,6 @@ div.day-empty {
align-items: center; align-items: center;
display: flex; display: flex;
} }
/* Hide the browser's default checkbox */
.upcoming-checkbox-container input { .upcoming-checkbox-container input {
position: absolute; position: absolute;
opacity: 0; opacity: 0;
@@ -2975,7 +2948,6 @@ div.day-empty {
width: 0; width: 0;
padding: 0; padding: 0;
} }
/* Create a custom checkbox */
.upcoming-checkmark { .upcoming-checkmark {
position: absolute; position: absolute;
top: 0; top: 0;
@@ -3001,11 +2973,9 @@ div.day-empty {
display: none; display: none;
} }
/* Show the checkmark when checked */
.upcoming-checkbox-container input:checked ~ .upcoming-checkmark:after { .upcoming-checkbox-container input:checked ~ .upcoming-checkmark:after {
display: block; display: block;
} }
/* Style the checkmark/indicator */
.upcoming-checkbox-container .upcoming-checkmark:after { .upcoming-checkbox-container .upcoming-checkmark:after {
left: 3.5px; left: 3.5px;
top: 0px; top: 0px;
@@ -3077,9 +3047,6 @@ div.day-empty {
inset 0px 6px 0 var(--item-colour, transparent), inset 0px 6px 0 var(--item-colour, transparent),
inset 0px 40px 50px -40px rgba(0, 0, 0, 0.9); inset 0px 40px 50px -40px rgba(0, 0, 0, 0.9);
} }
.clickable {
cursor: pointer;
}
.day:hover { .day:hover {
background: var(--background-secondary); background: var(--background-secondary);
transition: 200ms; transition: 200ms;
@@ -3177,7 +3144,6 @@ div.day-empty {
align-items: center; align-items: center;
display: flex; display: flex;
} }
/* Hide the browser's default checkbox */
.upcoming-checkbox-container input { .upcoming-checkbox-container input {
position: absolute; position: absolute;
opacity: 0; opacity: 0;
@@ -3186,7 +3152,6 @@ div.day-empty {
width: 0; width: 0;
padding: 0; padding: 0;
} }
/* Create a custom checkbox */
.upcoming-checkmark { .upcoming-checkmark {
position: absolute; position: absolute;
top: 0; top: 0;
@@ -3197,25 +3162,20 @@ div.day-empty {
border-radius: 5px; border-radius: 5px;
color: var(--text-color); color: var(--text-color);
} }
/* On mouse-over, add a grey background color */
.upcoming-checkbox-container:hover input ~ .upcoming-checkmark { .upcoming-checkbox-container:hover input ~ .upcoming-checkmark {
filter: brightness(0.8); filter: brightness(0.8);
} }
/* When the checkbox is checked, add a blue background */
.upcoming-checkbox-container input:checked ~ .upcoming-checkmark { .upcoming-checkbox-container input:checked ~ .upcoming-checkmark {
background: var(--item-colour); background: var(--item-colour);
} }
/* Create the checkmark/indicator (hidden when not checked) */
.upcoming-checkmark:after { .upcoming-checkmark:after {
content: ""; content: "";
position: absolute; position: absolute;
display: none; display: none;
} }
/* Show the checkmark when checked */
.upcoming-checkbox-container input:checked ~ .upcoming-checkmark:after { .upcoming-checkbox-container input:checked ~ .upcoming-checkmark:after {
display: block; display: block;
} }
/* Style the checkmark/indicator */
.upcoming-checkbox-container .upcoming-checkmark:after { .upcoming-checkbox-container .upcoming-checkmark:after {
left: 3.5px; left: 3.5px;
top: 0px; top: 0px;
@@ -3523,7 +3483,6 @@ div.day-empty {
overflow: visible; overflow: visible;
} }
// Auto collapsing alignment toolbar
.cke_toolbar:has(.cke_button__seqta-align-left) { .cke_toolbar:has(.cke_button__seqta-align-left) {
overflow: visible !important; overflow: visible !important;
@@ -3564,13 +3523,11 @@ div.day-empty {
} }
} }
// Button icons
.cke_button_icon { .cke_button_icon {
margin: 0 !important; margin: 0 !important;
} }
} }
// menu background
&:before { &:before {
content: ""; content: "";
position: absolute; position: absolute;
@@ -3588,7 +3545,6 @@ div.day-empty {
transition: all 0.2s ease-out; transition: all 0.2s ease-out;
} }
// Dropdown behavior on hover
&:hover { &:hover {
&:hover:before { &:hover:before {
transform: scale(1); transform: scale(1);
@@ -3599,7 +3555,6 @@ div.day-empty {
visibility: visible; visibility: visible;
transition-delay: 0s; transition-delay: 0s;
// Stack buttons in dropdown with spacing
&:first-child { &:first-child {
transform: translateY(0); transform: translateY(0);
border-top-left-radius: 12px !important; border-top-left-radius: 12px !important;
@@ -3627,7 +3582,6 @@ div.day-empty {
} }
} }
// Add subtle animation when closing dropdown
&:not(:hover) &:not(:hover)
.cke_button:not(.cke_button_on):not( .cke_button:not(.cke_button_on):not(
.cke_button__seqta-align-left:first-child .cke_button__seqta-align-left:first-child
@@ -3659,7 +3613,6 @@ div.day-empty {
border: none !important; border: none !important;
} }
// Notice card hover effects for main page cards
.notice-unified-content.notice-card-state:not([data-transitioning]) { .notice-unified-content.notice-card-state:not([data-transitioning]) {
cursor: pointer; cursor: pointer;
@@ -3700,7 +3653,6 @@ div.day-empty {
text-overflow: ellipsis; text-overflow: ellipsis;
} }
// Modal styles
.notice-modal-overlay { .notice-modal-overlay {
position: fixed; position: fixed;
top: 0; top: 0;
@@ -3719,7 +3671,7 @@ div.day-empty {
.notice-modal-transition { .notice-modal-transition {
position: fixed; position: fixed;
z-index: 10001; z-index: 10001;
transition: none; // Controlled by motion animations transition: none;
} }
.notice-modal-content { .notice-modal-content {
@@ -3753,13 +3705,7 @@ div.day-empty {
padding: 16px; padding: 16px;
border: 1px solid rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.dark .notice-unified-content {
color: white;
}
.notice-unified-content {
h1, h1,
h2, h2,
h3, h3,
@@ -3783,7 +3729,7 @@ div.day-empty {
} }
.notice-content-title { .notice-content-title {
font-size: 20px !important; // Nice middle ground - not too big, not too small font-size: 20px !important;
font-weight: 600 !important; font-weight: 600 !important;
color: var(--text-primary) !important; color: var(--text-primary) !important;
margin: 0 0 12px !important; margin: 0 0 12px !important;
@@ -3798,17 +3744,14 @@ div.day-empty {
margin: 0 !important; margin: 0 !important;
flex: 1; flex: 1;
display: block; display: block;
// Force stable layout dimensions - content renders at full size always min-width: 600px;
min-width: 600px; // Ensure tables have consistent width for layout
width: 100%; width: 100%;
} }
// The ONLY difference between states is clipping!
&.notice-card-state { &.notice-card-state {
.notice-content-body { .notice-content-body {
// Clip to show only 2 lines but keep full layout
overflow: hidden; overflow: hidden;
max-height: 3em; // ~2 lines worth of height max-height: 3em;
} }
} }
@@ -3818,10 +3761,8 @@ div.day-empty {
} }
.notice-content-body { .notice-content-body {
// Show full content with scrolling
overflow-y: auto; overflow-y: auto;
// Custom scrollbar for long content
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 6px; width: 6px;
} }
@@ -3839,7 +3780,6 @@ div.day-empty {
background: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.3);
} }
// Style content elements nicely
p { p {
margin-bottom: 12px; margin-bottom: 12px;
@@ -3870,6 +3810,10 @@ div.day-empty {
} }
} }
.dark .notice-unified-content {
color: white;
}
.notice-header { .notice-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@@ -3968,7 +3912,6 @@ button.notice-close-btn {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
// Custom scrollbar
&::-webkit-scrollbar { &::-webkit-scrollbar {
width: 6px; width: 6px;
} }
@@ -3986,7 +3929,6 @@ button.notice-close-btn {
background: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.3);
} }
// Style content elements
p { p {
margin-bottom: 12px; margin-bottom: 12px;
@@ -4015,7 +3957,6 @@ button.notice-close-btn {
} }
} }
// Dark mode adjustments
.dark { .dark {
.notice-card { .notice-card {
border-color: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.05);
@@ -4030,7 +3971,6 @@ button.notice-close-btn {
} }
} }
// Mobile responsiveness
@media (max-width: 768px) { @media (max-width: 768px) {
.notice-modal-overlay { .notice-modal-overlay {
padding: 10px; padding: 10px;