Home › Forums › Legacy Support › Support queries › Other issues › CSS in unit_line
- This topic has 10 replies, 3 voices, and was last updated 3 years, 4 months ago by Veronica.
Viewing 11 posts - 1 through 11 (of 11 total)
-
AuthorPosts
-
November 12, 2020 at 12:31 pm #324345riczamSpectatorHi, I am trying to change the colours in the units name lines of the curriculum at the "Course status templates > Default". I have been playing and unsucceed with: .unit_line a:hover{color:#78c8c9 !important;} .unit_line a:focus{color:#78c8c9 !important;} .unit_line a:active{color:#78c8c9 !important;} The problem is a lack of contrast between the blue and the background. I want to change it when it is active, when it is approached and when it has hovered. What is the right code? Regards Ricardo Film showing the case: https://screencast-o-matic.com/watch/cYXllvMEyhNovember 13, 2020 at 11:16 am #324564VeronicaModeratorhi yes the above code is fine but can you please explain what you want to change? the color of the text or the background?November 18, 2020 at 4:59 pm #325316riczamSpectatorHi Veronica, It is the colour of the text when approaching and when immediately over (both). My problem is the contrast between the colour of the text and the background. I managed to change it when the cursor is just over the text. I guess this is the hoover function. Nevertheless, when I approach the cursor, I mean in the area but not exactly the text, I do not know how to change it and still remains dark blue. Thanks RicardoNovember 20, 2020 at 1:38 pm #325691VeronicaModeratoryes i can check it please provide your details i will take a lookNovember 20, 2020 at 2:06 pm #325709riczamSpectatorThis reply has been marked as private.November 21, 2020 at 4:41 am #325788VeronicaModeratorthanks for sharing details checkingNovember 21, 2020 at 4:59 am #325789VeronicaModeratoron hover you can use this: https://prnt.sc/vn7lnh .page-template li a.unit:hover { color:#435; } and remove this one: https://prnt.sc/vn7mivDecember 9, 2020 at 7:07 pm #328788riczamSpectatorHi Veronica, Thanks for the code. I used it in a different colour: .page-template li a.unit:hover {color:#78c8c9;} Nevertheless, it is not enough. While this code is changing the colour when receiving the hoover, it is still dark when is active or when you approach the area. Then I tried with this code and get identical results. .page-template li a.unit:hover {color:#78c8c9;!important;} .page-template li a.unit:active {color:#78c8c9 !important;} .page-template li a.unit:focus{color:#78c8c9 !important;} What I do not know is how to do when you say: "and remove this one: https://prnt.sc/vn7miv" This is probably the key because is the color that is provoking the problem but I do not know which code will remove it. Thanks RicardoDecember 14, 2020 at 6:39 am #329235AdaParticipantPlease append this code to change the color when the list element is active and when you hover on the list
.course_timeline li.active a{ color:#f8e5e5; } .course_timeline li:hover a{ color:#84c6c0; }
December 14, 2020 at 5:13 pm #329361riczamSpectatorHi Ada, This code works fine. Thanks a lot RicardoDecember 15, 2020 at 6:26 am #329402VeronicaModeratorthanks for your confirmation topic closed -
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)
- The topic ‘CSS in unit_line’ is closed to new replies.