Merge branch 'bugfix/downloads-themenuebersicht' into 'dev'

bugfix/downloads-themenuebersicht

See merge request eb2342s/swe-b1-a!9
This commit was merged in pull request #69.
This commit is contained in:
Safak Hazinedar
2024-11-17 23:03:11 +01:00
2 changed files with 14 additions and 8 deletions

View File

@@ -526,6 +526,11 @@ $topics = $subjectData->topics;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
} }
.related-topics a {
color: inherit;
text-decoration: none;
}
/* Add dark mode support for related topics */ /* Add dark mode support for related topics */
:root[data-theme="dark"] .related-topics { :root[data-theme="dark"] .related-topics {
background: rgba(124, 58, 237, 0.1); background: rgba(124, 58, 237, 0.1);
@@ -592,7 +597,7 @@ $topics = $subjectData->topics;
<i class="fas fa-home"></i> Homepage <i class="fas fa-home"></i> Homepage
</a> </a>
<a href="#" class="nav-link"> <a href="#" class="nav-link">
<i class="fas fa-book"></i> Kurse <i class="fas fa-book"></i> <?php echo($subjectData->displayName); ?> Übersicht
</a> </a>
</nav> </nav>
@@ -629,7 +634,11 @@ $topics = $subjectData->topics;
?> ?>
<li><?php echo($relatedTopic->displayName); ?></li> <li onclick="event.stopPropagation();">
<a href='<?php echo("topic.php?subject=$subjectData->id&topic=$relatedTopic->id") ?>'>
<?php echo($relatedTopic->displayName); ?>
</a>
</li>
<?php <?php
} }
@@ -644,8 +653,7 @@ $topics = $subjectData->topics;
foreach ($topicData->files as $fileName) { foreach ($topicData->files as $fileName) {
?> ?>
<a onclick="event.stopPropagation();" href="<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName")?>" target="_blank" download class="download-btn">
<a href="<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName")?>" target="_blank" download class="download-btn">
<i class="fas fa-file-pdf"></i> <i class="fas fa-file-pdf"></i>
<?php echo($fileName); ?> <?php echo($fileName); ?>
</a> </a>
@@ -655,9 +663,11 @@ $topics = $subjectData->topics;
?> ?>
</div> </div>
</div> </div>
<!--
<div class="progress-bar" data-progress="100"> <div class="progress-bar" data-progress="100">
<div class="progress"></div> <div class="progress"></div>
</div> </div>
-->
</div> </div>
<?php <?php

View File

@@ -297,8 +297,6 @@ if(!isset($topicData)) {
} }
/* Add this CSS to your existing styles */ /* Add this CSS to your existing styles */
document.head.insertAdjacentHTML('beforeend', `
<style>
mark { mark {
background-color: rgba(124, 58, 237, 0.2); background-color: rgba(124, 58, 237, 0.2);
color: inherit; color: inherit;
@@ -311,8 +309,6 @@ if(!isset($topicData)) {
background-color: rgba(124, 58, 237, 0.4); background-color: rgba(124, 58, 237, 0.4);
} }
</style> </style>
`);
</style>
</head> </head>
<body> <body>
<!-- Left Sidebar --> <!-- Left Sidebar -->