From a02aa0353a592685bf1bef19bf6885a54053c1c4 Mon Sep 17 00:00:00 2001 From: Toshit <45221816+r58Playz@users.noreply.github.com> Date: Tue, 20 Feb 2024 05:33:21 -0800 Subject: [PATCH] fix(formative): rewrite and theme much more (#507) * fix(formative): rewrite and theme much more * fix(formative): fix lint errors * fix(formative): fix based on comments, fix mobile main header * fix(formative): theme questions scrollbar and messages view, fix bugs --- styles/formative/catppuccin.user.css | 1865 +++++++++++--------------- 1 file changed, 790 insertions(+), 1075 deletions(-) diff --git a/styles/formative/catppuccin.user.css b/styles/formative/catppuccin.user.css index 1862e226..da538af6 100644 --- a/styles/formative/catppuccin.user.css +++ b/styles/formative/catppuccin.user.css @@ -2,7 +2,7 @@ @name Formative Catppuccin @namespace github.com/catppuccin/userstyles/styles/formative @homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/formative -@version 0.1.2 +@version 0.2.0 @updateURL https://github.com/catppuccin/userstyles/raw/main/styles/formative/catppuccin.user.css @supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Aformative @description Soothing pastel theme for Formative @@ -22,10 +22,6 @@ @mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; }; } - :root { - #catppuccin(@flavor, @accentColor); - } - #catppuccin(@lookup, @accent) { @rosewater: @catppuccin[@@lookup][@rosewater]; @flamingo: @catppuccin[@@lookup][@flamingo]; @@ -54,10 +50,10 @@ @mantle: @catppuccin[@@lookup][@mantle]; @crust: @catppuccin[@@lookup][@crust]; @accent-color: @catppuccin[@@lookup][@@accent]; - @contrast-accent-color: @catppuccin[@@lookup][@base]; + @contrast-accent-color: if(@lookup=latte, @text, @base); - /* the formative icon */ - .jKwBMH, + .MainAppSideMenu__LogoLink-sc-11gwnv8-2, + .MainAppHeader__LogoLink-sc-1gw0bt9-2, .SplitColumnLayout__StyledLogo-sc-4mcl10-4 { svg { path:nth-child(1) { @@ -81,1054 +77,713 @@ } } - /* HOMEPAGE */ - div.ClassAvatar__RootDiv-sc-1ihhtbf-0, - .Avatar__RootDiv-sc-r9onsm-0 > div { - background-color: @accent-color; - color: @contrast-accent-color !important; - span { + background: @base; + body {color: @text;} + + .loading-spinner-loading-box { + background: @base; + } + + .MainAppSideMenu__RootNav-sc-11gwnv8-0 { + background: @surface0; + .SideTabItem__RootButton-sc-vtkzgr-0.selected { + background: fade(@accent-color, 50%); + &::after { + background: @accent-color; + } + } + .SideTabItem__RootButton-sc-vtkzgr-0:not(.selected):hover { + .side-tab-item-label-div, .material-icons-outlined { + color: @accent-color; + } + .avatar { + box-shadow: @accent-color 0 0 0 1px; + } + } + .side-tab-item-label-div, .material-icons-outlined { + color: @text; + } + } + .notifications-count { + background: @accent-color; + color: @contrast-accent-color; + } + .NotificationCenterAlert__TriggerDiv-sc-165xmi4-0 { + background-color: @surface0; + .material-icons-outlined { + color: @text; + } + } + .avatar:hover { + box-shadow: @accent-color 0 0 0 1px; + } + .MainAppHeader__RootDiv-sc-1gw0bt9-0 { + background-color: @surface0; + } + + .SecondaryHeader__RootDiv-sc-p36xe7-0 { + background: @surface0; + border-color: @overlay0; + .TabsItem__RootDiv-sc-tj1og8-0 > a { + color: @text; + } + .TabsItem__RootDiv-sc-tj1og8-0:hover > a { + color: @accent-color; + } + .TabsItem__SelectedLineDiv-sc-tj1og8-1 { + background: @accent-color !important; + } + .TabsItem__TabLink-sc-tj1og8-3:focus-visible { + background: transparent !important; + } + } + + main, + .FormativesShelf__HeaderDiv-sc-1pswvpk-2, + .FormativesShelf__StyledSecondaryHeader-sc-1pswvpk-3 { + background: @base; + } + .Home__TitleSpan-sc-q7a345-5, + .ClassesShelf__TitleSpan-sc-1ews12o-2, + .TabsItem__TabDiv-sc-tj1og8-4, + .OverflowEllipsis__RootDiv-sc-1mjk6uz-0, + .Label-sc-rzlz3u-0, + .Text-sc-1mon9hz-0, + .ProfileAccountInfo__BaseDiv-sc-1nbrrm9-0, + .Achievements__StyledHeading-sc-nmy2km-2, + .Achievements__StyledSubHeading-sc-nmy2km-3, + .BadgeCard__BadgeLabelDiv-sc-13976oo-8, + .BadgeCard__BadgeDescriptionDiv-sc-13976oo-9, + .EmptyExplainer__EmptyExplainerMainText-sc-1ixiesy-2, + .EmptyExplainer__EmptyExplainerSubtext-sc-1ixiesy-3, + .LabelledDropdownList__StyledLabel-sc-co7v7a-1, + .BadgeSidebar__BadgeLabelDiv-sc-oi03p1-3, + .BadgeSidebar__BadgeDescriptionDiv-sc-oi03p1-4, + .BadgeSidebar__ChallengeProgressStatusDiv-sc-oi03p1-8, + .BadgeSidebar__ChallengeProgressFractionDiv-sc-oi03p1-9, + .BadgeSidebar__LevelDescriptionDiv-sc-oi03p1-13, + .BadgeSidebar__AchievedOnDiv-sc-oi03p1-14, + .QuestionNotificationRow__NameP-sc-f7ccw5-7, + .QuestionNotificationRow__StyledTimeAgo-sc-f7ccw5-8, + .TextViewable__RootDiv-sc-ohojgu-0, + .ScorePill__ScoreDiv-sc-w63ftw-0, + .QuestionViewable__QuestionTextRichTextWrapperDiv-sc-13jvio2-1, + .QuestionViewable__QuestionNumberDiv-sc-13jvio2-3, + .FormativeStudentFooter__ProgressCountDiv-sc-6tj89c-1, + .FormativeStudentFooter__SubTextDiv-sc-6tj89c-5, + .FormativesShelf__ShowScoresText-sc-1pswvpk-5, + .ModalBody__RootDiv-sc-1lg094f-0, + .Elements__Title-sc-1qtb2ho-9, + .JoinQuickCode__QuickCodeTextParagraph-sc-1uhfett-1, + .CallToActionLink__ActionText-sc-yuiy65-1, + .Checkbox__CheckboxLabel-sc-1oy0ey9-4, + .ModalTitle__TitleH4-sc-18cspoj-1, + .FormativeItemViewable__HintDiv-sc-m0kwch-8, + .NoFormatives__HeadingDiv-sc-1v9g5eg-1, + .NoFormatives__BodyP-sc-1v9g5eg-2, + .DragAndDropViewableContainer__InstructionsDiv-sc-1ke293x-0, + .QuestionViewable__CorrectAnswerLabelDiv-sc-13jvio2-7, + .MatchingTableRow__ArrowIcon-sc-1u9h4tb-1, + .PracticeSet__StyledLastUpdated-sc-1wup6tb-8, + .MaterialIcon-sc-1g5xoi8-0, + .MinimalFormativeStudentHeader__FormativeTitleDiv-sc-14rcnaq-4, + .ErrorExplainer__SubTextHeading-sc-7nq4if-2, + .ErrorExplainer__MainTextHeading-sc-7nq4if-1, + .ErrorExplainer__TechnicalDetailsHeading-sc-7nq4if-3, + .ErrorExplainer__ErrorIdParagraph-sc-7nq4if-4, + .TeacherPacedStart__DetailsDiv-sc-1f4f5sd-4 { + color: @text; + } + .RichText__RootReadOnlyDiv-sc-fjolxt-1 * { + color: @text; + } + .TabsItem__TabDiv-sc-tj1og8-4:hover { + color: @accent-color; + } + .FormativesShelf__StyledSecondaryHeader-sc-1pswvpk-3 { + border-color: @overlay0; + } + .TabsItem__SelectedLineDiv-sc-tj1og8-1 { + background: @accent-color !important; + } + .Pill__RootDiv-sc-4b6mpn-0, + .ItemInfoPill-sc-ecx83e-0, + .FormativeItemViewable__HintsRemainingCountDiv-sc-m0kwch-11, + .IconWarningButton__RootButton-sc-1b683n6-0, + .Ellipse__RootButton-sc-1teidw7-0 { + &.IconWarningButton__RootButton-sc-1b683n6-0:hover { + border-color: @red; + } + &>svg[width="16"] { + path { stroke: @red; } + } + &, .material-icons-outlined { + color: @text !important; + } + background: @surface2 !important; + border-color: @overlay0; + } + .Card__RootDiv-sc-4gt2nj-0 { + background: @surface0; + border-color: @overlay0; + .FormativeCardAttributesRow__AttributeDiv-sc-tx9rpw-1 .material-icons-outlined { + color: @text; + } + &:hover { + .FormativeCard__TitleOverflowEllipsis-sc-tkxjaz-7, + .SectionCard__SectionTitleOverflowEllipsis-sc-ir1v2v-4 { + color: @accent-color; + } + } + + } + .ClassAvatar__RootDiv-sc-1ihhtbf-0, + .avatar > div { + background: @accent-color; + color: @contrast-accent-color; + } + .ReactSelect__control { + background: @surface0; + border-color: @overlay0; + .ReactSelect__placeholder { + color: @subtext0; + } + .ReactSelect__indicator, + .ReactSelect__single-value, + .ReactSelect__input-container { + color: @text; + } + &:focus-within { + border-color: @accent-color !important; + } + } + .react-select-icon { + color: @text; + } + .ReactSelect__menu { + background: @surface2 !important; + color: @text; + .SearchBarOption__RootLink-sc-191bb28-1:hover .SearchBarOption__TitleOverflowEllipsis-sc-191bb28-0 { + color: @accent-color; + } + .ReactSelect__option--is-focused { + background: @overlay0; + } + .ReactSelect__option--is-selected { + background: @accent-color; color: @contrast-accent-color; } - } - div.ckhGGP { - background-color: @base; + .ReactSelect__menu-notice { + color: @subtext0; + } } - span.giYyjb, - span.keXwhS { + .ClassesShelfContainer__StyledButton-sc-zx4vft-0 .material-icons-outlined { color: @text; } - div.cWBWYQ, - div.Card__RootDiv-sc-4gt2nj-0 { - background-color: @mantle; - border-color: @surface0; - - div { - color: @text; - } - - &:hover { - div.FormativeCard__TitleOverflowEllipsis-sc-tkxjaz-7, - div.SectionCard__SectionTitleOverflowEllipsis-sc-ir1v2v-4 { - color: @accent-color; - } - } - - span.iHSLQn { - background-color: @surface0 !important; - color: @text !important; - } - .FormativeCardStatusPill__StyledPill-sc-156d63l-0 { - background-color: @surface0 !important; - } - .kCQMqN { + .Button__StyledButton-sc-aum9f1-1, + .IconButton__RootButton-sc-ebvofk-0, + .SectionDetail__BackLink-sc-1aifgaj-4 { + background: @surface0; + &, .material-icons-outlined { + color: @accent-color !important; border-color: @overlay0; } - .material-icons-outlined { - color: @text; + &:hover, &:enabled:focus { + background: @surface1; + border-color: @accent-color; } - .FormativeCardScore__PercentageSpan-sc-p5mc30-1 { - background-color: fade(@accent-color, 20%) !important; + } + .Switch__RootButton-sc-1ss5zxi-0 { + background: @surface0; + &[aria-checked="true"] { + background: @accent-color; + } + .Switch__BallDiv-sc-1ss5zxi-1 { + background: @overlay0; + } + } + .FormativeCardScore__PercentageSpan-sc-p5mc30-1 { + &[style*="rgba(32, 213, 171, 0.2)"] { + background: fade(@green, 50) !important; + } + &[style*="rgba(255, 222, 51, 0.2)"] { + background: fade(@yellow, 50) !important; + } + &[style*="rgba(0, 165, 251, 0.2)"] { + background: fade(@blue, 50) !important; + } + &[style*="rgba(255, 76, 77, 0.2)"] { + background: fade(@red, 50) !important; } } - .NotificationCenterAlertListContainer__RootDiv-sc-1kyy25p-0 { - background-color: @surface2; - } - - .SectionDetail__RootDiv-sc-1aifgaj-0 { - .hgKaEJ { - background-color: @base; - } - .dyVuUp { - background-color: @surface0; - color: @text; - i { - color: @text; + .Dropdown__PopoverContent-sc-1s7u5eb-2, + .Popover__PopoverContent-sc-1x169li-4 { + background: @surface2; + .DropdownRow__RowButton-sc-1bu6csb-0 { + background: @surface2; + border-color: @overlay2; + &, .dropdown-list-icon, .material-icons-outlined { + color: @text !important; + svg path { + fill: @text !important; + } + } + &:hover { + background: @overlay0 !important; + color: @text !important; } } - span, - .OverflowEllipsis__RootDiv-sc-1mjk6uz-0 { - color: @text; - } - } - - button.Button__StyledButton-sc-aum9f1-1 { - background-color: @surface0; - color: @text; - i { - color: @accent-color; - } - &:hover, - &:focus { - background-color: @surface1; - } - } - button.Switch__RootButton-sc-1ss5zxi-0 { - &[aria-checked="true"] { - background-color: @green; - } - &[aria-checked="false"] { - background-color: @surface0; - } - div { - background-color: @surface2; - } - } - div[role="dialog"] { - background-color: @surface2; - .Popover__PopoverArrow-sc-1x169li-3, - .Dropdown__PopoverArrow-sc-1s7u5eb-1 { + .Dropdown__PopoverArrow-sc-1s7u5eb-1, + .Popover__PopoverArrow-sc-1x169li-3 { fill: @surface2; } - button { - background-color: @surface2; - color: @text; - .material-icons-outlined, - .selected { - color: @accent-color !important; - } - } - button:hover { - background-color: @overlay0 !important; - color: @accent-color !important; - } + } + .DropdownList__TriggerButton-sc-1hvvmg1-0, + .EmptyExplainer__StyledMaterialIcon-sc-1ixiesy-4 { + color: @accent-color; } - div.kdIyDj { - background-color: @base; - border-color: @surface0; - - div.jQSsry { - background-color: @base !important; /* sometimes if i press shift some other color shows up */ - } - - div.jgGUVg { - background-color: @accent-color !important; - } - - div.cvJhDB, - div.dxwGZP { - color: @text; - } - span.ioJPTZ { - background-color: @surface0 !important; - color: @text !important; - } - } - div.lcYltU { - .fvAkfK, - .hqFwtw { - color: @text !important; - } + .ProfileAccountInfo__DashedGroup-sc-1nbrrm9-2 { + border-color: @overlay0; } - div.hBqAyW { - background-color: @base; - div.eFoEtr { - .react-select-icon { + .BadgeCard__RootButton-sc-13976oo-0 { + &:hover, &.selected { + .BadgeCard__BadgeLabelDiv-sc-13976oo-8 { color: @accent-color; } - .ReactSelect__control { - background-color: @surface0; - border-color: @accent-color !important; - } - .ReactSelect__placeholder { - color: @subtext1 !important; + .Card__RootDiv-sc-4gt2nj-0 { + border-color: @accent-color; } } - div.css-qr46ko { - .TWTWN { - background-color: @surface0; - border-radius: 4px; /* needed to fix radius i somehow broke */ - border-color: @overlay0; - - .jYYNAO, - .fHuoBD { - color: @text; - } - - .jEcgFb { - background-color: @accent-color; - color: @contrast-accent-color; - } - } - } - button.Button__StyledButton-sc-aum9f1-1 { - border-color: @accent-color; - color: @text; - i { - color: @text; - } + .BadgeCard__ProgressPercentSpan-sc-13976oo-7 { + color: @text } } - - div.hrkZHu { - .jyqDRL { - color: @text; - } - } - - div.jNcNAJ, - div.kVjvQX { - background-color: @mantle; - .material-icons-outlined { - color: @text; + .BadgeSidebar__RootDiv-sc-oi03p1-0 { + background: @surface0; + .SvgIconWrapper__SvgIconDiv-sc-1u203y2-0 { + svg path { + fill: @text; + } &:hover { - color: @accent-color; - } - } - .DqwDN { - background-color: @mantle; - } - .SideTabItem__RootButton-sc-vtkzgr-0 { - background-color: @mantle; - &:hover { - color: @accent-color; - .material-icons-outlined { - color: @accent-color; - } - } - color: @text; - &.selected { - background-color: @crust; - &::after { - background-color: @accent-color; - } + background: @surface1; } } } - - .Tooltip__Content-sc-1k6bq57-1 { - background-color: @overlay0; + .ProgressBar__Progress-sc-4qm1te-0 { + background: @overlay0; + .ProgressBar__ProgressBarDiv-sc-4qm1te-2 { + background: @accent-color; + } + } + .notification { + &.notification-success { + background: @green !important; + color: @contrast-accent-color !important; + } + } + .Tooltip__Content-sc-1k6bq57-0 { + background: @surface0; color: @text; - .Tooltip__Arrow-sc-1k6bq57-0 { - fill: @overlay0; - } } - - .iYBCHL { - i, - .bGQMJt, - .jKqZHS { - color: @text; - } - } - .ErrorExplainer__BodyDiv-sc-7nq4if-0 { - i[name="error_outline"] { - color: @red; - } - .ErrorExplainer__MainTextHeading-sc-7nq4if-1, - .ErrorExplainer__SubTextHeading-sc-7nq4if-2, - .ErrorExplainer__TechnicalDetailsHeading-sc-7nq4if-3, - .ErrorExplainer__ErrorIdParagraph-sc-7nq4if-4 { - color: @text; - } - } - - .brCeph { - .bVrKs > i, - .jjxnUg { - color: @text; - } - } - - /* - * Tracker - * FIXME: Someone with access to tracker data, please make sure everything is correctly styled. I'll try my best to style everything I can see for now. - */ - .StudentTracker__StudentTrackerRoot-sc-17q49lm-0 { - background-color: @base; - .dHLPyg { - background-color: @base; - border-color: @surface0; - } - .fYAgHV { - color: @text; - } - .esbgcq { - color: @accent-color; - } - - .iYBCHL { - i, - .empty-explainer-main-text, - .jKqZHS { - color: @text; - } - } - } - - /* Practice */ - .PracticeSets__RootDiv-sc-zal4td-0 { - .Button__StyledButton-sc-aum9f1-1 { - border-color: @accent-color; - color: @text; - } - background-color: @base; - .crQhJA { - background-color: @base; - .dMFRNT { - color: @text; - } - .ioJPTZ { - background-color: @surface0 !important; - color: @accent-color !important; - } - .kPxiiI { - .hArMFK { - color: @text; - } - .genDmU { - background-color: @surface0 !important; /* goodbye multicolor pills */ - } - } - } - .iNJonG { - .jZwCGj, - .kbWKmZ { - color: @text; - } - } - } - - /* Modals */ .ReactModal__Overlay { - .ReactModal__Content { - background-color: transparent; - } /* undo div[role="dialog"] */ - background-color: fade(@crust, 80%); /* thanks less! */ + background: fade(@crust, 80); .ReactModal__ActualContent { - background-color: @surface0; - .zyNzk { - background-color: @surface1; - border-color: @surface1; - &:hover { - i { - color: @accent-color; - } - } - i { - color: @text; - } - } - /* non-iframe modals */ - .hfsUGh { - background-color: @surface0; - .ModalTitle { - background-color: @surface0; - .fdvlYb { - color: @text; - } - } - - label { - color: @text; - span { - color: @red; - } - } - input { - background-color: @surface1; - border-color: @overlay0; - color: @text; - &::placeholder { + background: @base; + .ModalBody__RootDiv-sc-1lg094f-0 > * { + color: @text !important; + &.ErrorExplainer__BodyDiv-sc-7nq4if-0 { + .material-icons-outlined {color: @red;} + .ErrorExplainer__TechnicalDetailsHeading-sc-7nq4if-3, + .ErrorExplainer__ErrorIdParagraph-sc-7nq4if-4 { color: @subtext0; } } - - .ModalBody__RootDiv-sc-1lg094f-0 { - color: @text; - h3 { - color: @text; - } - } - .ModalFooter-sc-iv6ab8-0 { - .eGqfJp { - border-color: @accent-color; - } - } + } + .ModalTitle { + background: @base; } } } - .ReactSelect__control { - background-color: @surface1; - border-color: @overlay0; - &.ReactSelect__control--is-focused { - border-color: @accent-color !important; + .NotificationCenterAlertListContainer__RootDiv-sc-1kyy25p-0 { + background: @surface2; + .FormativeNotificationsCard__HeaderDiv-sc-fv5hu9-1, + .QuestionNotificationRow__IndentedBorderDiv-sc-f7ccw5-1, + .QuestionNotificationRow__RootDiv-sc-f7ccw5-0 { + border-color: @overlay2; } - .ReactSelect__single-value { + .FormativeNotificationsCard__RootDiv-sc-fv5hu9-0 { + background: @surface2; + border-color: @overlay2; + &:hover { + background: @overlay0; + } + } + .QuestionNotificationRow__RootDiv-sc-f7ccw5-0:hover { + background: transparent; + } + .material-icons-outlined { color: @text; - } - .ReactSelect__indicator > svg { - stroke: @text; - fill: @text; - } - } - .ReactSelect__menu > .ReactSelect__menu-list { - .ReactSelect__option { - background-color: @surface1; - color: @text; - &.ReactSelect__option--is-focused { - background-color: @surface2; - } - } - } - - /************************************************************* - * PracticeView - *************************************************************/ - .PracticeSet__RootDiv-sc-1wup6tb-0 { - .dyYlFt { - background-color: @mantle; - border-color: @surface1; - } - .vzHqN > .kpSMxi > .gIxFZH > i, - .gIxFZH, - .dMFRNT { - color: @text; - } - .IconButton__RootButton-sc-ebvofk-0, - .fxjbRk { - background-color: @surface0; - border-color: @surface0; - i { - color: @text; - } - } - .hMuqfo { - background-color: @base; - } - /* edit card */ - .Sidebar__ChildrenDiv-sc-1d5hucq-2 { - background-color: @mantle; - .jZwCGj, - label { - color: @text; - } - .gotoQK { - border-color: @surface0; - textarea { - color: @text; - &::placeholder { - color: @text; - } - } - } - } - } - .PracticeSession__RootDiv-sc-1t2vn9a-1 { - .jAtBlo { - background-color: @mantle; - border-color: @surface1; - } - .gWOYlX { - background-color: @surface0; - border-color: @surface0; - i { - color: @text; - } - } - .kbWKmZ, - .gIxFZH { - color: @text; - } - .insToW { - background-color: @base; - .XmvNK { - border-color: @surface2; - background-color: @crust; - span { - color: @text; - } - } - .jGFokz { - &.red { - background-color: @red; - color: @contrast-accent-color; - } - &.green { - background-color: @green; - color: @contrast-accent-color; - } - } - .fjVeZh { - background-color: @overlay1; - .ProgressBar__ProgressBarDiv-sc-4qm1te-2 { - background-color: @accent-color !important; - } - } - } - .feItUf { - .lnYigE, - .fXcREk { - color: @text; - } - } - } - .notifications-wrapper { - .notifications-bc { - .notification-success { - background-color: @green !important; - color: @contrast-accent-color !important; - } - } - } - /************************************************************* - * Student Profile - *************************************************************/ - .StudentProfile__RootDiv-sc-bc305u-0 { - .dHLPyg { - background-color: @base; - border-color: @surface1; - .TabsItem__StyledTitleDiv-sc-tj1og8-2 { - color: @text; - } - .TabsItem__SelectedLineDiv-sc-tj1og8-1 { - background-color: @accent-color !important; - } - } - .eEhCum { - background-color: @base; - .fFnpYA { - .kXDmTg { - background-color: @accent-color; - color: @contrast-accent-color !important; - } - color: @text; - label { - color: @text; - } - } - .eGqfJp { + &:hover { color: @accent-color; - border-color: @accent-color; - } - .hGMdJp { - border-color: @surface1; - } - .fOUzKq { - /* fix shitty styling by formative */ - padding: 1em; - text-decoration: none; - color: @text; - i { - color: @text; - } - } - .iSUyai { - .evnAvd, - .iFWvBX, - .BadgeCard__BadgeLabelDiv-sc-13976oo-8, - .BadgeCard__BadgeDescriptionDiv-sc-13976oo-9 { - color: @text; - } - .Pill__RootDiv-sc-4b6mpn-0 { - background-color: @surface0 !important; - color: @accent-color !important; - } - .BadgeCard__LevelProgressDiv-sc-13976oo-2 { - span { - color: @text; - } - .ProgressBar__Progress-sc-4qm1te-0 { - background-color: @overlay0; - } - .ProgressBar__ProgressBarDiv-sc-4qm1te-2 { - background-color: @accent-color; - } - } } } } - .iCrZor { - &.selectedTab { - background-color: @accent-color; - color: @contrast-accent-color; + .SectionCard__InactiveSectionIcon-sc-ir1v2v-3 { + svg { + path:nth-child(1) { + fill: @overlay0 !important; + } + path:nth-child(2), path:nth-child(3) { + fill: @text !important; + } } - color: @accent-color; } - .fJjhRQ:hover { - background-color: @surface1; - } - /************************************************************* - * Join Code - *************************************************************/ - .App__AppContainerDiv-sc-1x6i86e-0 { - background-color: @base; - .SplitColumnLayout__FullScreenDiv-sc-4mcl10-5 { - background-color: @base; - svg { - path:nth-child(1) { - fill: @peach !important; - stroke: @peach !important; - } - path:nth-child(2) { - fill: @peach !important; - stroke: @peach !important; - } - path:nth-child(3) { - fill: @green !important; - stroke: @green !important; - } - path:nth-child(4) { - fill: @green !important; - stroke: @green !important; - } - path:nth-child(5) { - fill: @green !important; - stroke: @green !important; - } - path:nth-child(6) { - fill: @green !important; - stroke: @green !important; - } - path:nth-child(7) { - fill: @green !important; - stroke: @green !important; - } - path:nth-child(8) { - fill: @green !important; - stroke: @green !important; - } - path:nth-child(9) { - fill: @green !important; - stroke: @green !important; - } - path:nth-child(10) { - fill: @green !important; - stroke: @green !important; - } - path:nth-child(11) { - fill: @text !important; - stroke: @text !important; - } - } - } - .Elements__ColumnDiv-sc-1qtb2ho-2, - .Elements__TwoColumnParentDiv-sc-1qtb2ho-1 { - background-color: @base; - } - .SplitColumnLayout__Card-sc-4mcl10-0 { - background-color: @mantle; - .lmmjCy, - .EaPMD, - .cuNCkB { - color: @text; - } - .JoinQuickCode__ErrorDiv-sc-1uhfett-4 { - color: @red; - } - .PWQOG, - .JoinQuickCode__StyledLink-sc-1uhfett-2 { - color: @blue; - } - .react-code-input { - input { - background-color: @crust; - border-color: @surface1; - color: @text; - &:focus { - border-color: @accent-color; - } - } - } - .CallToActionLink__StyledLink-sc-yuiy65-0 { - color: @text; - span { - color: @text; - } - } - } + .SectionDetail__Header-sc-1aifgaj-2 { + background: transparent; } - /************************************************************* - * Assignment UI - * Note: I don't have access to *every* UI element a teacher can possibly use, this is best-effort and will be updated when I find new UI elements. - *************************************************************/ - .FormativeStudent__FormativeStudentRoot-sc-1nzmkoa-1 { - .FormativeStudentHeader__RootDiv-sc-yw00ql-0 { - .FormativeStudentHeader__UpperDiv-sc-yw00ql-11 { - background-color: @surface1 !important; - color: @text; - border-color: @overlay0; - .FormativeStudentHeader__InfoItem-sc-yw00ql-7 { - border-color: @overlay0; - } - .Button__StyledButton-sc-aum9f1-1 { - border-color: @accent-color; - } - } - } - /********************************************************** */ - #student-main-content { - background-color: @base; - .FormativeDescription__RootDiv-sc-msmcgd-0 { - * { - color: @text; - } - } - .FormativeUnavailableMessage__InnerDiv-sc-14kxg7t-1 { - background-color: @mantle; - border-color: @accent-color; - i[name="warning"] { - color: @accent-color; - } - color: @text; - } - .FormativeStudentFooter__BottomDiv-sc-6tj89c-3 { - * { - color: @text; - } - } + .FormativeStudentHeader__UpperDiv-sc-yw00ql-11 { + background: @crust !important; + color: @text; + &, .FormativeStudentHeader__InfoItem-sc-yw00ql-7 { + border-color: @overlay0; } } - .FormativeStudentHeader__NavStripDiv-sc-yw00ql-10 { + .FormativeStudentHeader__NavStrip-sc-yw00ql-10 { + .FormativeStudentHeader__ScrollableDiv-sc-yw00ql-9 { + &::-webkit-scrollbar-track { + background: @surface0 !important; + border-color: @surface0 !important; + } + &::-webkit-scrollbar-thumb { + background: @overlay0 !important; + border-color: @overlay0 !important; + } + } + background: @mantle; border-color: @overlay0; - background-color: @surface0 !important; + .selectedSection { + border-color: @accent-color; + } .FormativeProgressBarStyles__NavItemGroupDiv-sc-1rm72lt-2 { border-color: @overlay0; - background-color: @surface0; - &:hover { - background-color: @surface1; - .formative-nav-item { + &:hover, &:focus-within { + background: @surface0; + .formative-nav-item, .formative-nav-item-icon { color: @accent-color; - i { - color: @accent-color; - } - &:hover { - background-color: @surface2; - } } } } .formative-nav-item { - color: @text; - i { + &, .formative-nav-item-icon { color: @text; } - &:hover { - background-color: @surface1; + &:hover, &:focus { + background: @surface1; color: @accent-color; - i { - color: @accent-color; - } + border-color: @accent-color; } - .FormativeStudentNavItem__IndicatorDiv-sc-i1u5ts-1 > svg > path { - stroke: @red !important; - } - .fVOfai { + .fxpwVv { background-color: @green; } - .jiaclp { + .hSVaRB { background-color: @text; } - .fqmSk { + .kBznqt { background-color: @yellow; } - .dxDbbP { + .hfnlVy { background-color: @red; } - .dLppQA { + .bDcnFV { background-color: @peach; } + svg { + path { stroke: @red; } + } + } + } + .checkbox-root { + button { + background: @surface0; + border-color: @accent-color !important; + box-shadow: none !important; + } + &.checked button { + background: @accent-color !important; + } + .Checkbox__RadioCircleDiv-sc-1oy0ey9-3 { + background: @contrast-accent-color !important; + } + .Checkbox__IndicatorIcon-sc-1oy0ey9-5 { + color: @contrast-accent-color; } } .FormativeItemViewable__RootDiv-sc-m0kwch-0 { - background-color: @mantle; - border-color: @surface0; - .TextViewable__RootDiv-sc-ohojgu-0 { - * { - color: @text !important; - } - } - .Ellipse__RootButton-sc-684qlw-0 { - background-color: @surface0 !important; - color: @text !important; - } - .QuestionNumber__RootDiv-sc-zm7966-0 { - background-color: @surface0 !important; - border-color: @accent-color !important; - color: @text; + background: @mantle; + .correct { + border-color: @green; } + &, + .withFunctionalizedViewable__LeftColumn-sc-1636o2h-2, .withFunctionalizedViewable__RightColumn-sc-1636o2h-4 { - border-color: @surface0; + border-color: @overlay0; } - .Iframe__IframeContainer-sc-e1n6v2-2 { - border-color: @overlay1; - iframe { - border-color: @overlay1; - border-style: solid; - } - } - .Iframe__Footnote-sc-e1n6v2-1 { - color: @text; - } - &.question { - .FormativeItemViewable__HintsDiv-sc-m0kwch-7 { - label, - .FormativeItemViewable__HintDiv-sc-m0kwch-8 { - color: @text !important; + .ScoreCircle__RootDiv-sc-lj5glq-0 { + &[style*="rgb(32, 213, 171)"] { + background-color: @green !important; + .material-icons-outlined { + color: @contrast-accent-color !important; } } - .QuestionViewable__QuestionNumberDiv-sc-13jvio2-3 { + &[style*="rgb(255, 222, 51)"] { + background-color: @yellow !important; + } + &[style*="rgb(255, 138, 51)"] { + background-color: @peach !important; + } + &[style*="rgb(255, 76, 77)"] { + background-color: @red !important; + .material-icons-outlined { + color: @contrast-accent-color !important; + } + } + border-color: @overlay2 !important; + } + .BlankOutput__FillableEntity-sc-15mzaww-2, + .BlankOutput__FillableNumericDiv-sc-15mzaww-1 { + outline-color: @accent-color; + color: @text; + background: @surface0; + } + .match-table-grid-container table { + th, tr, td { + background: @surface0 !important; + border-color: @overlay0; + .checkbox-root button { + background: @surface1; + } + } + } + .TargetElementViewable__BoxDiv-sc-1cp2mml-1 { + background: @surface0; + border-color: @accent-color; + .TargetChoiceViewable__ContentDiv-sc-6nylj9-1 { + background: @surface1; + border-color: @overlay0; + } + } + .MatchingTable__Table-sc-1rhxmvo-1 { + &, td, tr { + border-color: @overlay0; + } + tr.isOver { + outline-color: @accent-color; + } + } + .ChoiceElementViewable__RootDiv-sc-viwu2x-0 { + background: @surface0; + border-color: @overlay0; + &:hover { + border-color: @accent-color; + } + .ChoiceElementViewable__LabelRichText-sc-viwu2x-4 { + background: transparent; color: @text; } - .ItemInfoPill-sc-ecx83e-0, - .FormativeItemViewable__HintsRemainingCountDiv-sc-m0kwch-11 { - background-color: @surface0; + } + .ChoiceElement__RootDiv-sc-1mbtxfk-1 { + background: transparent; + } + .ChoiceElement__StyledRawButton-sc-1mbtxfk-0 { + .ChoiceElement__LabelRichText-sc-1mbtxfk-3, + .material-icons-outlined { + background: transparent; + } + } + .DrawingCardButton__RootButton-sc-u2qprg-1 { + border-color: @overlay0; + .DrawingCardButton__DrawingPreview-sc-u2qprg-3 { + background: rgb(245, 246, 248); + } + .DrawingCardButton__HoverDarkScrim-sc-u2qprg-2 { + background: fade(@crust, 75%); + border-radius: 0; + } + .DrawingCardButton__ShowYourWorkPseudoButtonDiv-sc-u2qprg-0 { border-color: @overlay0; color: @text; - &.fVzTTr > svg > path { - stroke: @red; - } - .ScorePill__ScoreDiv-sc-w63ftw-0 { - color: @text; - } - .ScoreCircle__RootDiv-sc-lj5glq-0 { - &[style*="rgb(32, 213, 171)"] { - background-color: @green !important; - } - &[style*="rgb(255, 222, 51)"] { - background-color: @yellow !important; - } - &[style*="rgb(255, 138, 51)"] { - background-color: @peach !important; - } - &[style*="rgb(255, 76, 77)"] { - background-color: @red !important; - } + background: @base; + } + .DrawingCardButton__IncompleteIndicatorDiv-sc-u2qprg-4 { + background: @yellow; + svg path { + fill: @contrast-accent-color; } } - .QuestionViewable__ContentDiv-sc-13jvio2-4 { - * { - color: @text !important; - } /* i'm not going to style each text element teachers can put in */ - - .ShortAnswerViewableDetails__InputAutosizeTextarea-sc-1ugk4gk-0 { - background-color: @surface0; - border-color: @overlay0; + &:hover .DrawingCardButton__ShowYourWorkPseudoButtonDiv-sc-u2qprg-0 { + background: @surface2; + border-color: @accent-color; + } + } + .DragAndDropImageDropLocation__DropLocationContainerDiv-sc-oq3fcx-1 { + &:hover { + .DragAndDropImageDropLocationPoint-sc-1v0z50f-0 { + background: @surface1; + border-color: @surface1; } - .DragAndDropDropzoneOutput__RootDiv-sc-1is7exh-0 { - border-color: @overlay0; - background-color: @crust; - .DragAndDropDropzoneOutput__StyledIconButton-sc-1is7exh-6 { - background-color: @surface0; - border-color: @surface0; + .dropzone-tip::before { + background: @surface1; + } + } + .DragAndDropImageDropLocationPoint-sc-1v0z50f-0 { + background: @surface0; + border-color: @surface0; + } + .dropzone-tip::before { + background: @surface0; + } + .dropzone { + &:hover, &.selected { + background: @surface1; + .dropzone-number { + background: @surface2 !important; } } - .InlineChoiceOutput__BaseSelect-sc-1694w84-0 { - background-color: @surface0; - border-color: @overlay0; + border-color: @accent-color; + background: @surface0; + .dropzone-number { + background: @surface1; } - .BlankOutput__FillableEntity-sc-15mzaww-1 { - background-color: @surface0; - outline-color: @overlay0; + } + } + .DragAndDropChoice__RootDiv-sc-1wzeg1h-3 { + background: @surface0; + border-color: @overlay0; + } + .AnswerCorrectnessIndicator__CircleDiv-sc-18hnk99-1 { + &.correct { + background: @green; + } + .material-icons-outlined { + color: @contrast-accent-color; + } + } + .ShortAnswerViewableDetails__InputAutosizeTextarea-sc-1ugk4gk-0 { + background: @surface0; + border-color: @overlay0; + color: @text; + } + } + .MediaSlider__RootSpan-sc-1gz67jn-0 { + .TrimmerMarker__TooltipDiv-sc-1f17hi4-1 { + background: @surface2; + color: @text; + } + .Thumb__RootSpan-sc-yv6w5k-0 { + background: @accent-color; + z-index: 2; + } + .Segment__SegmentSpan-sc-r0cy9o-0 { + background: @surface0 !important; + } + .TrimmerMarker__RootSpan-sc-1f17hi4-0 { + background: @overlay0; + z-index: 1; + } + } + .DrawingToolbar__TooltipBox-sc-2xuxy3-6 { + background: @surface1; + } + .ExpandedDrawing__BodyDiv-sc-cz2rcw-0 { + .DrawingToolbar__RootDiv-sc-2xuxy3-0 { + &, + .DrawingToolbar__ToolDiv-sc-2xuxy3-3 { + background: @surface0; + color: @text; + } + .DrawingToolbar__ToolDiv-sc-2xuxy3-3:hover { + &, + .svg-icons, + .material-icons-outlined { + color: @accent-color; } - .MatchingTable__RootDiv-sc-1rhxmvo-0 { - table { - tr, - td { - border-color: @overlay0; - outline-color: @accent-color; - } - background-color: @surface0; - .MatchingTableRow__ArrowIcon-sc-1u9h4tb-1.highlight { - background-color: @accent-color; - color: @contrast-accent-color !important; - } - .ChoiceElement__RootDiv-sc-1mbtxfk-1 { - &.highlight { - i { - background-color: @accent-color; - color: @contrast-accent-color !important; - } - } - background-color: @surface1; - border-radius: 8px; - & > button { - background-color: @surface1; - i, - .RichText__RootReadOnlyDiv-sc-fjolxt-1 { - background-color: transparent; - color: @text; - } - } - } - } - } - .CategorizeViewableContainer__FlexDiv-sc-1yo1jbo-2 { - .ChoiceElementViewable__RootDiv-sc-viwu2x-0 { - .RichText__RootReadOnlyDiv-sc-fjolxt-1 { - background-color: transparent; - } - border-color: @overlay0; - &:hover { - border-color: @accent-color; - } - &.highlight { - i { - background-color: @accent-color; - color: @contrast-accent-color !important; - } - } - } - .TargetElementViewable__BoxDiv-sc-1cp2mml-1 { - border-color: @overlay0; - background-color: @surface0; - .TargetElementViewable__AddSelectedChoiceButton-sc-1cp2mml-9 > i { - background-color: @accent-color; - color: @contrast-accent-color !important; - } - .TargetElementViewable__ChoiceDiv-sc-1cp2mml-4 { - background-color: @surface1; - border-color: @overlay1; - &.selected { - background-color: @accent-color; - * { - color: @contrast-accent-color !important; - } - } - .TargetElementViewable__StyledIconWarningButton-sc-1cp2mml-6 { - border-color: @overlay1; - &:hover { - background-color: @red; - i { - color: @contrast-accent-color !important; - } - } - } - } - } - } - .MatchTableGrid__RootDiv-sc-1ue3nun-0 { - table { - td, - th, - tr { - border-color: @overlay0; - } - th { - background-color: @surface1 !important; - } - td:first-child { - background-color: @surface1; - } - td { - background-color: @surface0; - } - button[role="checkbox"] { - background-color: @surface1; - border-color: @accent-color; - &[data-state="checked"] { - background-color: @accent-color; - i { - color: @contrast-accent-color !important; - } - } - } - } - } - .MultipleChoiceViewableDetails__RootDiv-sc-d82bbx-0, - .MultipleSelectionViewableDetails__RootDiv-sc-1b13xp6-0 { - .ChoiceOptionViewable__RootDiv-sc-a2vwy6-0 { - .checkbox-root { - button { - background-color: @surface0; - border-color: @accent-color; - .Checkbox__RadioCircleDiv-sc-1oy0ey9-3 { - background-color: @accent-color !important; - } - } - } - .ChoiceOptionViewable__RightSideDiv-sc-a2vwy6-2 { - border-color: @overlay0; - background-color: @surface0; - .ChoiceOptionViewable__StrickenOverlayDiv-sc-a2vwy6-7 { - background-image: repeating-linear-gradient( - 315deg, - transparent, - transparent 16px, - @text 16px, - @text 18px - ); - } - .IconButton__RootButton-sc-ebvofk-0 { - background-color: @surface1; - border-color: @accent-color; - i { - color: @text !important; - } - } - } - } - } - .DrawingContainerStudent__DrawingPreviewDiv-sc-en378l-0, - .QuestionViewableWithDrawing__RootDiv-sc-1kzyk7j-0 { - .DrawingCardButton__DrawingPreview-sc-u2qprg-3 { - background-color: white; - border-radius: 6px; - } - button { - border-color: @overlay0 !important; - } - .DrawingCardButton__HoverDarkScrim-sc-u2qprg-2 { - background-color: @surface0; - } - .DrawingCardButton__ShowYourWorkPseudoButtonDiv-sc-u2qprg-0 { - border-color: @overlay1; - background-color: @surface1; - } - } - .GraphViewableDetails__RootDiv-sc-13yx2r4-0 { - .ExpandableAccordionHeader__RootButton-sc-cu02pz-0 { - background-color: transparent; - } - .GraphViewableDetails__TabRowDiv-sc-13yx2r4-1 { - .Tabs__RootDiv-sc-2v0c2x-0 { - border-color: @surface1; - .TabsItem__TabDiv-sc-tj1og8-4 { - background-color: @mantle !important; - } - .TabsItem__StyledTitleDiv-sc-tj1og8-2 { - color: @text; - } - .TabsItem__SelectedLineDiv-sc-tj1og8-1 { - background-color: @accent-color !important; - } - } - } - .GraphViewableDetails__GraphContainerDiv-sc-13yx2r4-3 > div { - background-color: white; - .sc-fqkvVR { - * { - color: black !important; - } - } - } - .VerticalButton__StyledButton-sc-1h2we7r-2:hover - .VerticalButton__IconDiv-sc-1h2we7r-0 { - background-color: @surface0; - } - } - .BlankOutput__FillableNumericDiv-sc-15mzaww-0 { - background-color: @surface0; - outline-color: @overlay0; - &.filling { - outline-color: @accent-color; - } - } - .ResequenceViewableDetailsContainer__AnswerList-sc-s5awz8-0 { - .ResequenceCard__ListItemContentDiv-sc-30eibj-1, - li { - background-color: @surface0 !important; - border-color: @overlay0; - } + } + .selected { + &::after { + background: @accent-color; } + color: @accent-color; + } + } + .DrawingSidebar__ExpandedAnswerDiv-sc-1hvcy70-0 { + background: @mantle; + } + .DrawingSidebar__SidebarTopExplainer-sc-1hvcy70-1 { + background: @base; + border-color: @overlay0; + color: @text; + .DrawingSidebar__StyledSvgIcon-sc-1hvcy70-5 { + color: @text; } } } + .MathLiveInput__RootDiv-sc-2fx8pp-0 { + .MathLiveInput__KeyboardButtonWrapper-sc-2fx8pp-1 .svg-icons svg path { + fill: @accent-color !important; + } + color: @text; + border-color: @overlay0; + background: @surface0; + &:focus-within, &:hover { + border-color: @accent-color; + } + &.invalid { + color: @red; + } + math-field { + --caret-color: @accent-color; + --selection-background-color: fade(@accent-color, 50); + --selection-color: @text; + --correct-color: @text; + --incorrect-color: @red; + --latex-color: @blue; + } + .ML__keyboard--plate { + --keyboard-text: @text; + --keyboard-text-active: @accent-color; + --keyboard-background: @surface0; + --keycap-background: @surface1; + --keycap-background-active: @surface2; + --keycap-background-border: @overlay0; + --keycap-background-border-bottom: @overlay0; + --keycap-text: @text; + --keycap-secondary-text: @subtext0; + --keycap-text-active: @accent-color; + --keycap-modifier-background: @surface2; + --keycap-modifier-background-active: @overlay0; + --keycap-modifier-border: @overlay1; + --keycap-modifier-border-bottom: @overlay1; + + [data-tooltip]::after { + background-color: @surface2; + color: @text; + } + border-color: @overlay0 !important; + } + } + .ML__keyboard.alternate-keys { + --keyboard-alternate-background: @surface2; + --keyboard-alternate-background-active: @overlay0; + --keyboard-alternate-text: @text; + --keyboard-alternate-text-active: @text; + } + .FullPointsAnimation__AbsoluteContainerDiv-sc-mzm76r-0, .ScoreCircle__LottieWrapperDiv-sc-lj5glq-1 { svg { @@ -1170,142 +825,202 @@ } } } - .css-1vamqze { - background-color: @surface0; - color: @text; - .css-18fumqt-option { - background-color: @surface1; + + .Elements__JoinLayoutDiv-sc-1qtb2ho-0 { + background: @base; + .SplitColumnLayout__Card-sc-4mcl10-0 { + background: @surface0; } - .css-1pfbc1f-option { - background-color: @accent-color; + .JoinQuickCode__StyledLink-sc-1uhfett-2, + .CallToActionLink__StyledLink-sc-yuiy65-0 { + color: @accent-color; + } + .react-code-input { + input { + background: @surface1; + border-color: @overlay0; + &:focus-within { + border-color: @accent-color; + } + } + &:not(:focus-within).empty [data-id="0"] { + border-color: @accent-color + } + } + .JoinQuickCode__StyledPrimaryButton-sc-1uhfett-5 { + background: @surface1; + &:hover { + background: @surface2; + } + } + } + .FormativeStudentFooter__BottomDiv-sc-6tj89c-3 { + border-color: @overlay0; + } + .ModalBody__RootDiv-sc-1lg094f-0:has(.SubmitModal__ContentTitleH3-sc-7oq9dj-1) svg path { + fill: @accent-color; + } + .StudentFormativeStatus__RootDiv-sc-y86tx8-1 { + &.bQdPlK { + background: @green; + } + &, .material-icons-outlined { color: @contrast-accent-color; } } - .fHrrVC > svg > path { - fill: @text !important; + .FloatingToolButton__FloatingButton-sc-1gy4xsl-0 { + background: @overlay0; + &:hover, &:enabled:hover, &:focus, &:enabled:focus { + background: @overlay1; + } + .material-icons-outlined { + color: @accent-color; + } + } + .PracticeSet__StyledHeader-sc-1wup6tb-5 { + background: @surface0; + border-color: @overlay0; + .ReactiveTextInput__StyledInput-sc-g83bxq-2 { + color: @text !important; + &::placeholder { + color: @text; + } + } + .HeaderBackLink__TertiaryButtonLink-sc-1vx1tro-0, + .Button__StyledButton-sc-aum9f1-1 { + background: @surface1; + color: @accent-color; + &:hover { + background: @surface2; + } + } + .PracticeSet__DividerDiv-sc-1wup6tb-3 { + background: @overlay0; + } + } + .PracticeSet__ContentDiv-sc-1wup6tb-1 { + .AutoSizeInput__StyledInput-sc-ops4en-2 { + color: @text; + background: transparent !important; + } + .FlashcardSide__RootDiv-sc-amoro3-1 { + background: @surface0; + color: @text; + } + .PracticeItemEditor__HeaderDiv-sc-1jko4q4-0 { + background: @surface1; + } + .PracticeItemEditor__ContentDiv-sc-1jko4q4-2 { + background: @surface0; + .TextareaCard__RootDiv-sc-qx9s19-0 { + background: @surface1; + border-color: @overlay0; + textarea { + color: @text; + &::placeholder { + color: @subtext0; + } + } + } + .MediaButton__StyledButton-sc-12h2vjb-0 { + background: @surface1; + border-color: @overlay0; + color: @text; + &:hover { + background: @surface2; + color: @accent-color; + } + } + } + } + .Banner__Root-sc-yf4o5r-0 { + &.error { + .material-icons-outlined { + color: @red; + } + border-color: @red; + } + background: @surface2; + color: @text; + } + .FileUploadButton__DropZoneDiv-sc-88u8tg-2 { + background: @surface0; + border-color: @accent-color; + .material-icons-outlined { + color: @accent-color; + } + } + .DividerWord__LineDiv-sc-59xl7-1 { + background: @overlay0; + } + .DividerWord__WordDiv-sc-59xl7-2 { + color: @text; + } + .MinimalFormativeStudentHeader__RootDiv-sc-14rcnaq-0 { + border-color: @overlay0; } .FormativeItemViewable__FeedbackMessagesListDiv-sc-m0kwch-1 { .FeedbackMessagesList__MessagesListDiv-sc-9o5dsw-0 { - background-color: @overlay0; - .jZwCGj { - color: @text; + background: @surface1; + .FeedbackMessagesList__EmptyDiv-sc-9o5dsw-1 svg { + path:nth-child(1) { fill: @yellow; } + path:nth-child(2) { fill: @green; } + path:nth-child(3) { fill: @mauve; } + path:nth-child(4) { stroke: @peach; } + path:nth-child(5) { stroke: @peach; } } } + .FeedbackMessage__FeedbackBoxDiv-sc-q3ku9d-2 { + background: @surface2; + border-color: @overlay2; + } .FeedbackMessageComposer__RootDiv-sc-vs8711-0 { - border-color: @overlay2; - .FeedbackMessageComposer__RichTextContainerDiv-sc-vs8711-3 { - border-color: @overlay2; - .public-DraftEditorPlaceholder-inner { - color: @subtext1; - } - .public-DraftEditor-content { - color: @text !important; - } - } - } - } - .hxNLul > svg > path { - fill: @accent-color !important; - } - .ejr02pv { - .e16zneum { - color: @text; - } - background-color: @surface2; - } - .MathLiveInput__RootDiv-sc-2fx8pp-0 { - background-color: @surface0; - border-color: @overlay0; - &:focus-within, - &:hover { - border-color: @accent-color; - } - .MathLiveInput__KeyboardButtonWrapper-sc-2fx8pp-1 svg > path { - fill: @accent-color !important; - } - .ML__keyboard--plate { - border-color: @overlay0 !important; - background-color: @surface0 !important; - .rows .keycap { - background-color: @surface1; - border-color: @overlay0; - &:hover { - background-color: @surface2; - } - } - .keyboard-toolbar { - .left > div.selected { - border-color: @accent-color; - } - [data-tooltip]::after { - background: @overlay0; - color: @text; - } - } - } - } - .ExpandedDrawing__BodyDiv-sc-cz2rcw-0 { - .DrawingSidebar__RootDiv-sc-1hvcy70-3 { - .DrawingSidebar__ExpandedAnswerDiv-sc-1hvcy70-0 { - background-color: @base; - .FormativeItemViewable__RootDiv-sc-m0kwch-0 { - background-color: @base; - } - } - } - .DrawingSidebar__SidebarTopExplainer-sc-1hvcy70-1 { - background-color: @mantle; - color: @text; border-color: @overlay0; - .DrawingSidebar__StyledIcon-sc-1hvcy70-5 { + .FeedbackMessageComposer__RichTextContainerDiv-sc-vs8711-3 { + border-color: @overlay1; color: @text; - } - } - .DrawingToolbar__RootDiv-sc-2xuxy3-0 { - background-color: @surface0; - .DrawingToolbar__ToolDiv-sc-2xuxy3-3 { - background-color: @surface0; - &::after { - background-color: @accent-color; - } - &:hover { - color: @accent-color; - } - .ToolDropdownTriggerDiv-sc-16usko2-0:hover { - color: @accent-color; + .public-DraftEditorPlaceholder-inner { + color: @subtext0; } } } } - .StrokePicker__InnerDiv-sc-8widgm-4 { - label { + .Toolbar__RootDiv-sc-1e3lohg-0 { + border-color: @overlay0; + box-shadow: @overlay0 0 1px 3px 0; + &::before, &::after { + border-color: @surface2 transparent transparent; + } + &, .buttonWrapper button { + background: @surface2; + } + .buttonWrapper button { + &:hover { + background: @overlay0; + } + &.active { + color: @accent-color; + svg { + fill: @accent-color; + } + } + svg { + fill: @text; + } color: @text; } - .StrokeWidthPickerContent__ListItemDiv-sc-116c7dc-0 { - &:hover { - .StrokeWidthPickerContent__CircleDiv-sc-116c7dc-1 { - background-color: @accent-color; - } - } - .StrokeWidthPickerContent__CircleDiv-sc-116c7dc-1.active { - background-color: @accent-color; - } - } - .slider { - background: linear-gradient(to right, rgba(0, 0, 0, 0), @text); - } - .Button__StyledButton-sc-aum9f1-1 { - background-color: @surface1; - } - .Checkbox__RootDiv-sc-1oy0ey9-0 { - button[role="checkbox"] { - border-color: @accent-color; - &[aria-checked="true"] { - background-color: transparent; - } - } - } } + .TeacherPacedStart__RootDiv-sc-1f4f5sd-0 { + background: @surface0 !important; + } + .FeedbackMessageIcon__UnreadJewelDiv-sc-1x1yblc-1 { + background: @red; + box-shadow: @text 0 0 0 2px; + } + } + + :root { + #catppuccin(@flavor, @accentColor); } } // vim:ft=less