Skip to content
Snippets Groups Projects
Commit 583cd98f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

fixes #3107

Closes #3107

Merge request studip/studip!2093
parent 632b9bb9
No related branches found
No related tags found
No related merge requests found
<ul class="content-items"> <ul class="content-items">
<? foreach ($tiles as $key => $navigation): ?> <? foreach ($tiles as $key => $navigation): ?>
<? if ($navigation->isVisible() && $key !== 'overview'): ?> <? if ($navigation->isVisible() && $key !== 'overview'): ?>
<li class="content-item content-item-courseware"> <li class="content-item content-item-<?= htmlReady($key) ?>">
<a href="<?= URLHelper::getLink($navigation->getURL()) ?>" class="content-item-link"> <a href="<?= URLHelper::getLink($navigation->getURL()) ?>" class="content-item-link">
<div class="content-item-img-wrapper"> <div class="content-item-img-wrapper">
<? if ($navigation->getImage()): ?> <? if ($navigation->getImage()): ?>
......
...@@ -42,18 +42,20 @@ ...@@ -42,18 +42,20 @@
padding: 0; padding: 0;
.content-item { .content-item {
background-color: $dark-gray-color-5; align-items: stretch;
border: solid thin $light-gray-color-40; background-color: var(--dark-gray-color-5);
height: 130px; border: solid thin var(--light-gray-color-40);
padding-bottom: 10px; display: flex;
padding-top: 10px; height: 150px;
justify-content: stretch;
.content-item-link { .content-item-link {
color: unset; color: unset;
display: grid; display: grid;
flex: 1;
grid-template-columns: 74px auto; grid-template-columns: 74px auto;
grid-gap: 5px; grid-gap: 5px;
padding: 15px 10px 0 10px; padding: 25px 10px 10px;
transition: 0.5s; transition: 0.5s;
.content-item-img-wrapper { .content-item-img-wrapper {
...@@ -62,7 +64,7 @@ ...@@ -62,7 +64,7 @@
.content-item-text { .content-item-text {
.content-item-title { .content-item-title {
color: $base-color; color: var(--base-color);
font-size: 1.3em; font-size: 1.3em;
width: 100%; width: 100%;
max-width: 160px; max-width: 160px;
...@@ -75,13 +77,13 @@ ...@@ -75,13 +77,13 @@
} }
&:hover { &:hover {
background-color: $white; background-color: var(--white);
color: unset; color: unset;
.content-item-link { .content-item-link {
.content-item-text { .content-item-text {
.content-item-title { .content-item-title {
color: $red; color: var(--red);
} }
} }
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<ul class="content-items"> <ul class="content-items">
<? foreach ($tiles as $key => $navigation): ?> <? foreach ($tiles as $key => $navigation): ?>
<? if ($navigation->isVisible() && $key !== 'overview'): ?> <? if ($navigation->isVisible() && $key !== 'overview'): ?>
<li class="content-item content-item-courseware"> <li class="content-item content-item-<?= htmlReady($key) ?>">
<a href="<?= URLHelper::getLink($navigation->getURL()) ?>" class="content-item-link"> <a href="<?= URLHelper::getLink($navigation->getURL()) ?>" class="content-item-link">
<div class="content-item-img-wrapper"> <div class="content-item-img-wrapper">
<? if ($navigation->getImage()): ?> <? if ($navigation->getImage()): ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment