Files
classroomio/src/components/Navigation/app.svelte
T

74 lines
1.2 KiB
Svelte
Raw Normal View History

<script>
import NotificationIcon from 'carbon-icons-svelte/lib/Notification20';
export let navClass = '';
</script>
<nav class="{navClass} flex w-full p-2 md:px-6 bg-blue-600">
<ul class="flex w-full items-center">
<div class="">
<a href="/" title="Go to ClassroomIO Home" id="logo" class="text-lg">
ClassroomIO
</a>
</div>
<span class="flex-grow" />
<li>
<NotificationIcon class="text-white mr-2" />
</li>
2023-05-02 23:55:26 +00:00
<li />
</ul>
</nav>
<style>
ul {
padding: 0;
}
/* clearfix */
ul::after {
content: '';
display: block;
clear: both;
}
/* li.new-question {
margin-top: 10px;
} */
a {
text-decoration: none;
color: #fff;
font-weight: 700;
}
/* [aria-current] {
color: var(--main-primary-color);
position: relative;
display: inline-block;
}
[aria-current]::after {
position: absolute;
content: '';
width: calc(100% - 3em);
height: 2px;
background-color: var(--main-primary-color);
display: block;
bottom: -17px;
} */
@media only screen and (max-width: 1002px) {
nav.hide {
display: none;
}
ul {
align-items: center;
}
a {
padding: 0 0.5em;
}
}
</style>