Skip to content

Commit 193aa48

Browse files
committed
Update sidebar
close #18
1 parent c1e8d7c commit 193aa48

2 files changed

Lines changed: 19 additions & 12 deletions

File tree

assets/css/styles.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,16 +1163,16 @@ video {
11631163
vertical-align: middle;
11641164
}
11651165

1166-
.text-lg {
1167-
font-size: 1.125rem;
1168-
line-height: 1.75rem;
1169-
}
1170-
11711166
.text-xs {
11721167
font-size: 0.75rem;
11731168
line-height: 1rem;
11741169
}
11751170

1171+
.text-lg {
1172+
font-size: 1.125rem;
1173+
line-height: 1.75rem;
1174+
}
1175+
11761176
.text-base {
11771177
font-size: 1rem;
11781178
line-height: 1.5rem;
@@ -1843,6 +1843,10 @@ video {
18431843
padding-left: 1.25rem;
18441844
padding-right: 1.25rem;
18451845
}
1846+
1847+
.md\:pb-5 {
1848+
padding-bottom: 1.25rem;
1849+
}
18461850
}
18471851

18481852
@media (min-width: 1024px) {

templates/layout.twig

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@
1010
<body class="bg-gray-50 text-gray-900 md:ml-64" data-dashboard="{{ current }}">
1111
<aside id="sidebar" class="hidden md:block">
1212
<nav class="bg-{{ color }}-500 fixed top-0 left-0 bottom-0 block w-64 overflow-hidden overflow-y-auto py-4 pt-6 px-6 shadow-xl shadow-gray-500">
13-
<div class="mx-auto min-h-full w-full px-0">
14-
<a class="hidden pb-2 text-white md:block" href="index.php">{{ svg('logo', null) }}</a>
15-
{% for link, item in nav %}
16-
<a class="flex items-center py-2 {{ current == link ? ' font-bold' : '' }} text-white hover:text-gray-200" href="?type={{ link }}">
17-
{{ svg(item.icon, 16, 'mr-1' ~ (current == link ? '' : ' opacity-75')) }} {{~ item.title ~}}
18-
</a>
19-
{% endfor %}
13+
<div class="mx-auto min-h-full w-full px-0 flex flex-col justify-between">
14+
<div>
15+
<a class="hidden pb-2 text-white md:block md:pb-5" href="index.php">{{ svg('logo', null) }}</a>
16+
{% for link, item in nav %}
17+
<a class="flex items-center py-2 {{ current == link ? ' font-bold' : '' }} text-white hover:text-gray-200" href="?type={{ link }}">
18+
{{ svg(item.icon, 16, 'mr-1' ~ (current == link ? '' : ' opacity-75')) }} {{~ item.title ~}}
19+
</a>
20+
{% endfor %}
21+
</div>
22+
2023
<footer class="my-4 text-center text-white">
2124
{% if logout_url %}
2225
<a class="block py-2 text-white hover:text-gray-200" href="{{ logout_url }}">Logout</a>

0 commit comments

Comments
 (0)