mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
style: visual tweaks to courses page
This commit is contained in:
+132
-18
@@ -664,14 +664,12 @@ td.colourBar {
|
|||||||
}
|
}
|
||||||
#toolbar span:has(.search) {
|
#toolbar span:has(.search) {
|
||||||
position: relative;
|
position: relative;
|
||||||
/* Makes sure the pseudo-element is positioned relative to this element */
|
|
||||||
}
|
}
|
||||||
#toolbar .search {
|
#toolbar .search {
|
||||||
padding-left: 30px;
|
padding-left: 30px;
|
||||||
}
|
}
|
||||||
#toolbar span:has(.search)::before {
|
#toolbar span:has(.search)::before {
|
||||||
content: "\eca5";
|
content: "\eca5";
|
||||||
/* Unicode for the search icon */
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
@@ -684,7 +682,7 @@ td.colourBar {
|
|||||||
}
|
}
|
||||||
#container #content .search {
|
#container #content .search {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-radius: 16px;
|
border-radius: 8px;
|
||||||
background: var(--background-primary);
|
background: var(--background-primary);
|
||||||
}
|
}
|
||||||
#container #content .uiButton {
|
#container #content .uiButton {
|
||||||
@@ -946,6 +944,17 @@ div > ol:has(.uiFileHandlerWrapper) {
|
|||||||
opacity: 0.8;
|
opacity: 0.8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#content:has(#main > .course) #toolbar {
|
||||||
|
position: absolute;
|
||||||
|
top: 72px;
|
||||||
|
left: 0px;
|
||||||
|
z-index: 10;
|
||||||
|
|
||||||
|
@media (min-width: 1400px) {
|
||||||
|
left: 402px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#main > .notices > .notice > .contents {
|
#main > .notices > .notice > .contents {
|
||||||
background: var(--background-primary);
|
background: var(--background-primary);
|
||||||
}
|
}
|
||||||
@@ -1517,9 +1526,9 @@ div > ol:has(.uiFileHandlerWrapper) {
|
|||||||
background: var(--background-primary);
|
background: var(--background-primary);
|
||||||
}
|
}
|
||||||
[class*="Input__Input___"]::before,
|
[class*="Input__Input___"]::before,
|
||||||
|
.navigator::before,
|
||||||
.ais-btnSearch::before {
|
.ais-btnSearch::before {
|
||||||
content: "";
|
content: "";
|
||||||
/* Unicode for the search icon */
|
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
color: currentColor;
|
color: currentColor;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
@@ -1629,9 +1638,6 @@ iframe.userHTML {
|
|||||||
.dailycal > .times > .time {
|
.dailycal > .times > .time {
|
||||||
padding: 0 !important;
|
padding: 0 !important;
|
||||||
}
|
}
|
||||||
.navigator {
|
|
||||||
border-top-right-radius: 16px;
|
|
||||||
}
|
|
||||||
.programmeNavigator > .navigator,
|
.programmeNavigator > .navigator,
|
||||||
.programmeNavigator > .navigator > li > ul {
|
.programmeNavigator > .navigator > li > ul {
|
||||||
background: var(--background-primary);
|
background: var(--background-primary);
|
||||||
@@ -1640,10 +1646,126 @@ iframe.userHTML {
|
|||||||
.programmeNavigator > .navigator > .week > .lessons > .lesson:hover {
|
.programmeNavigator > .navigator > .week > .lessons > .lesson:hover {
|
||||||
background: var(--auto-background);
|
background: var(--auto-background);
|
||||||
}
|
}
|
||||||
.programmeNavigator > .navigator > .week > .lessons > .lesson.selected,
|
|
||||||
.programmeNavigator > .navigator > .cover.selected {
|
.programmeNavigator {
|
||||||
background: transparent;
|
box-shadow: 0 0 40px 0px rgba(0,0,0,0.05);
|
||||||
|
|
||||||
|
.navigator {
|
||||||
|
padding: 6px !important;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 10;
|
||||||
|
top: 95px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::after {
|
||||||
|
content: "";
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1;
|
||||||
|
top: 70px;
|
||||||
|
width: 390px;
|
||||||
|
height: 60px;
|
||||||
|
background: linear-gradient(to bottom, var(--background-primary) 50%, rgba(0, 0, 0, 0));
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search {
|
||||||
|
padding: 10px;
|
||||||
|
padding-left: 30px;
|
||||||
|
top: 8px;
|
||||||
|
margin-top: -50px;
|
||||||
|
z-index: 2;
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bar {
|
||||||
|
top: 13px;
|
||||||
|
padding-right: 4px;
|
||||||
|
position: sticky;
|
||||||
|
pointer-events: none;
|
||||||
|
|
||||||
|
button {
|
||||||
|
position: unset;
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.meta {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cover {
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cover,
|
||||||
|
.lesson {
|
||||||
|
border-radius: 8px;
|
||||||
|
transition: background 0.1s ease-out;
|
||||||
|
position: relative;
|
||||||
color: var(--text-primary) !important;
|
color: var(--text-primary) !important;
|
||||||
|
z-index: 1;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.selected {
|
||||||
|
background: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: var(--auto-background);
|
||||||
|
opacity: 0;
|
||||||
|
scale: 0.95;
|
||||||
|
transition: opacity 0.2s ease-out, scale 0.1s ease-out;
|
||||||
|
z-index: -1;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover::before {
|
||||||
|
opacity: 0.5;
|
||||||
|
scale: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.selected::before {
|
||||||
|
opacity: 1;
|
||||||
|
scale: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.pane {
|
||||||
|
.content:has(.programmeNavigator) {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.programmeNavigator .navigator {
|
||||||
|
.search {
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
top: 83px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark .programmeNavigator .navigator {
|
||||||
|
.search {
|
||||||
|
background: var(--background-secondary) !important;
|
||||||
|
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1), inset 0px 0px 15px 0px rgba(0, 0, 0, 0.1) !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.dark #main > .course > .content > h1 {
|
.dark #main > .course > .content > h1 {
|
||||||
text-shadow: 0 0 10px black;
|
text-shadow: 0 0 10px black;
|
||||||
@@ -1693,7 +1815,6 @@ ul {
|
|||||||
.programmeNavigator {
|
.programmeNavigator {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
background: var(--background-primary);
|
background: var(--background-primary);
|
||||||
border-top-right-radius: 16px;
|
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
#userActions > .details > .code {
|
#userActions > .details > .code {
|
||||||
@@ -2471,21 +2592,17 @@ body {
|
|||||||
}
|
}
|
||||||
[data-label="inbox"] > [class*="LabelList__name___"]::before {
|
[data-label="inbox"] > [class*="LabelList__name___"]::before {
|
||||||
content: "\eb70";
|
content: "\eb70";
|
||||||
/* Unicode for the search icon */
|
|
||||||
color: currentColor;
|
color: currentColor;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
/* Adjusted to margin-right for the icon to be on the left */
|
|
||||||
font-family: "IconFamily";
|
font-family: "IconFamily";
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
[data-label="outbox"] > [class*="LabelList__name___"]::before {
|
[data-label="outbox"] > [class*="LabelList__name___"]::before {
|
||||||
content: "\eca6";
|
content: "\eca6";
|
||||||
/* Unicode for the search icon */
|
|
||||||
color: currentColor;
|
color: currentColor;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
/* Adjusted to margin-right for the icon to be on the left */
|
|
||||||
font-family: "IconFamily";
|
font-family: "IconFamily";
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
@@ -2494,17 +2611,14 @@ body {
|
|||||||
color: currentColor;
|
color: currentColor;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
/* Adjusted to margin-right for the icon to be on the left */
|
|
||||||
font-family: "IconFamily";
|
font-family: "IconFamily";
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
[data-label="trash"] > [class*="LabelList__name___"]::before {
|
[data-label="trash"] > [class*="LabelList__name___"]::before {
|
||||||
content: "\ed2c";
|
content: "\ed2c";
|
||||||
/* Unicode for the search icon */
|
|
||||||
color: currentColor;
|
color: currentColor;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
margin-right: 8px;
|
margin-right: 8px;
|
||||||
/* Adjusted to margin-right for the icon to be on the left */
|
|
||||||
font-family: "IconFamily";
|
font-family: "IconFamily";
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user