Skip to content

Commit

Permalink
changed active button color
Browse files Browse the repository at this point in the history
  • Loading branch information
FeSuert committed Sep 19, 2023
1 parent b7ad851 commit e575a74
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 22 deletions.
Binary file added src/assets/favicon.ico
Binary file not shown.
19 changes: 0 additions & 19 deletions src/course-home/outline-tab/LmsHtmlFragment.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,6 @@ import PropTypes from 'prop-types';

import { getConfig } from '@edx/frontend-platform';

window.onload = function() {
// Select the iframe
var iframe = document.querySelector('iframe');

// Access the content of the iframe
var iframeContent = iframe.contentDocument || iframe.contentWindow.document;

// Select all the <a> elements inside .small in the iframe's body
var links = iframeContent.querySelectorAll('body .small a');

// Check if the elements exist
if (links.length > 0) {
// Apply the desired styles
links.forEach(function(link) {
link.style.color = '#25a78e';
});
}
};


const LmsHtmlFragment = ({
className,
Expand Down
5 changes: 2 additions & 3 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,8 @@ a.btn-inverse-outline-primary:active {
color: #454545 !important;
}

a[href$="demoPDF.pdf"] {
color: #25a78e; /* Change 'red' to whatever style you want */
/* Add more styles if needed */
a {
color: #25a78e;
}

// Import component-specific sass files
Expand Down

0 comments on commit e575a74

Please sign in to comment.