Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bem to tailwind convert #1023

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 5 additions & 53 deletions src/components/navbar/Navbar.vue
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<template>
<va-navbar class="app-layout-navbar">
<template #left>
<div class="left">
<div class="flex items-center">
<va-icon-menu-collapsed
:class="{ 'x-flip': isSidebarMinimized }"
class="va-navbar__item"
class="cursor-pointer"
:color="colors.primary"
@click="isSidebarMinimized = !isSidebarMinimized"
/>
<router-link to="/">
<vuestic-logo class="logo" />
<vuestic-logo class="ml-4" />
</router-link>
</div>
</template>
<div class="app-navbar-center">
<div class="flex items-center">
<span class="hidden md:block mr-2">{{ t('navbar.messageUs') }}</span>
<a class="hidden md:block mr-2" href="mailto:[email protected]" target="_blank" :style="{ color: colors.primary }">
[email protected]
Expand All @@ -29,7 +29,7 @@
</va-button>
</div>
<template #right>
<app-navbar-actions class="app-navbar__actions" :user-name="userName" />
<app-navbar-actions class="flex justify-between" :user-name="userName" />
</template>
</va-navbar>
</template>
Expand All @@ -54,55 +54,7 @@
</script>

<style lang="scss" scoped>
.va-navbar {
box-shadow: var(--va-box-shadow);
z-index: 2;

@media screen and (max-width: 950px) {
.left {
width: 100%;
}

.app-navbar__actions {
width: 100%;
display: flex;
justify-content: space-between;
}
}
}

.left {
display: flex;
align-items: center;

& > * {
margin-right: 1.5rem;
}

& > *:last-child {
margin-right: 0;
}
}

.x-flip {
transform: scaleX(-100%);
}

.app-navbar-center {
display: flex;
align-items: center;
height: 1rem;

@media screen and (max-width: 1200px) {
&__github-button {
display: none;
}
}

@media screen and (max-width: 950px) {
&__text {
display: none;
}
}
}
</style>