Einrückungen und Zeilenumbrüche vereinheitlicht

This commit is contained in:
Matthias Grief
2024-11-19 22:24:37 +01:00
parent 62d1e820a6
commit cc389eb179
7 changed files with 61 additions and 52 deletions

View File

@@ -240,6 +240,7 @@ body {
.search-container { .search-container {
width: 100%; width: 100%;
} }
.menu-toggle { .menu-toggle {
display: flex !important; display: flex !important;
} }
@@ -298,8 +299,12 @@ body {
/* Add floating animation for icons */ /* Add floating animation for icons */
@keyframes float { @keyframes float {
0%, 100% { transform: translateY(0); } 0%, 100% {
50% { transform: translateY(-10px); } transform: translateY(0);
}
50% {
transform: translateY(-10px);
}
} }
.theme-toggle:hover { .theme-toggle:hover {

View File

@@ -1,4 +1,3 @@
/* Corporate Design Colors */ /* Corporate Design Colors */
:root { :root {
--primary-color: #5265A0; /* HSGG Blau */ --primary-color: #5265A0; /* HSGG Blau */

View File

@@ -51,7 +51,8 @@ $topics = $subjectData->topics;
<button class="menu-toggle h-12 w-12 border-2 p-1 hover:border-[<?php echo($subjectData->color); ?>]"> <button class="menu-toggle h-12 w-12 border-2 p-1 hover:border-[<?php echo($subjectData->color); ?>]">
<i class="fas fa-bars"></i> <i class="fas fa-bars"></i>
</button> </button>
<input type="text" class="search-box p-3 border-2 w-full focus:border-[<?php echo($subjectData->color); ?>]" id="searchInput" placeholder="Suche nach Themen, Übungen oder Hilfe..." <input type="text" class="search-box p-3 border-2 w-full focus:border-[<?php echo($subjectData->color); ?>]"
id="searchInput" placeholder="Suche nach Themen, Übungen oder Hilfe..."
oninput="handleSearch()"> oninput="handleSearch()">
</div> </div>
@@ -108,7 +109,8 @@ $topics = $subjectData->topics;
<a onclick="event.stopPropagation();" <a onclick="event.stopPropagation();"
href="<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>" href="<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>"
target="_blank" download class="download-btn border-2 border-[<?php echo($subjectData->color); ?>]"> target="_blank" download
class="download-btn border-2 border-[<?php echo($subjectData->color); ?>]">
<i class="fas fa-file-pdf"></i> <i class="fas fa-file-pdf"></i>
<?php echo($fileName); ?> <?php echo($fileName); ?>
</a> </a>

View File

@@ -73,8 +73,10 @@ if (!isset($topicData)) {
continue; continue;
} }
?> ?>
<li onclick="event.stopPropagation();" class="border-[<?php echo($subjectData->color); ?>] border-2"> <li onclick="event.stopPropagation();"
<a href='<?php echo("topic.php?subject=$subjectData->id&topic=$relatedTopic->id") ?>' class="block"> class="border-[<?php echo($subjectData->color); ?>] border-2">
<a href='<?php echo("topic.php?subject=$subjectData->id&topic=$relatedTopic->id") ?>'
class="block">
<?php echo($relatedTopic->displayName); ?> <?php echo($relatedTopic->displayName); ?>
</a> </a>
</li> </li>
@@ -101,7 +103,8 @@ if (!isset($topicData)) {
?> ?>
<a href='<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>' <a href='<?php echo("config/subjects/$subjectData->id/topics/$topicData->id/$fileName") ?>'
target="_blank" download class="download-btn border-[<?php echo($subjectData->color); ?>] border-2"> target="_blank" download
class="download-btn border-[<?php echo($subjectData->color); ?>] border-2">
<i class="fas fa-file-pdf"></i> <i class="fas fa-file-pdf"></i>
<?php echo($fileName); ?> <?php echo($fileName); ?>
</a> </a>