mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
change color and scss in branding
This commit is contained in:
parent
bfcfb8462e
commit
52070b8c57
@ -4,11 +4,17 @@
|
|||||||
.main-navigation .ds-menu-item-link {
|
.main-navigation .ds-menu-item-link {
|
||||||
color: #a6ff00;
|
color: #a6ff00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-navigation .ds-menu-item-link:hover {
|
.main-navigation .ds-menu-item-link:hover {
|
||||||
color: #f2f2f1;
|
color: #f2f2f1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-navigation a {
|
||||||
|
color: #a6ff00;
|
||||||
|
}
|
||||||
|
.main-navigation a:hover {
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
|
||||||
.main-navigation .locale-menu {
|
.main-navigation .locale-menu {
|
||||||
color: #a6ff00;
|
color: #a6ff00;
|
||||||
}
|
}
|
||||||
@ -17,14 +23,11 @@
|
|||||||
color: #a6ff00;
|
color: #a6ff00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header-menu {
|
|
||||||
// background-color: #748885;
|
|
||||||
}
|
|
||||||
.ds-menu-item-link {
|
.ds-menu-item-link {
|
||||||
color: antiquewhite;
|
color: antiquewhite;
|
||||||
}
|
}
|
||||||
.ds-menu-item-link.router-link-exact-active {
|
.ds-menu-item-link.router-link-exact-active {
|
||||||
color: #a6ff00;
|
color: #6a8ee1;
|
||||||
background-color: #faf9fa;
|
background-color: #faf9fa;
|
||||||
border-left: 2px solid #a6ff00;
|
border-left: 2px solid #a6ff00;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<dropdown ref="category-menu" placement="top-start" :offset="8" class="category-menu">
|
<dropdown ref="category-menu" placement="top-start" :offset="8" class="category-menu">
|
||||||
<base-button
|
<a
|
||||||
|
href="#"
|
||||||
slot="default"
|
slot="default"
|
||||||
:filled="filterActive"
|
:filled="filterActive"
|
||||||
:ghost="!filterActive"
|
:ghost="!filterActive"
|
||||||
slot-scope="{ toggleMenu }"
|
slot-scope="{ toggleMenu }"
|
||||||
@click.prevent="toggleMenu()"
|
@click.prevent="toggleMenu()"
|
||||||
>
|
>
|
||||||
<ds-text uppercase>{{ $t('admin.categories.name') }}</ds-text>
|
<ds-text bold size="large">{{ $t('admin.categories.name') }}</ds-text>
|
||||||
</base-button>
|
</a>
|
||||||
<template slot="popover">
|
<template slot="popover">
|
||||||
<div class="category-menu-options">
|
<div class="category-menu-options">
|
||||||
<h2 class="title">{{ $t('filter-menu.filter-by') }}</h2>
|
<h2 class="title">{{ $t('filter-menu.filter-by') }}</h2>
|
||||||
|
|||||||
@ -1,6 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="header-menu">
|
<div class="display-flex">
|
||||||
<ds-menu v-if="show" :routes="menu" navbar style="margin-right: 20px"></ds-menu>
|
<!-- <ds-flex v-if="show"> -->
|
||||||
|
|
||||||
|
<ds-flex-item v-for="item in menu" :key="item.name">
|
||||||
|
<a v-if="item.url" :href="item.url" target="_blank" class="margin-x">
|
||||||
|
<ds-text size="large" bold>
|
||||||
|
{{ item.name }}
|
||||||
|
</ds-text>
|
||||||
|
</a>
|
||||||
|
<nuxt-link v-else :to="item.path" class="margin-x">
|
||||||
|
<ds-text size="large" bold>
|
||||||
|
{{ item.name }}
|
||||||
|
</ds-text>
|
||||||
|
</nuxt-link>
|
||||||
|
</ds-flex-item>
|
||||||
|
|
||||||
|
<!-- </ds-flex> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@ -16,3 +31,13 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.display-flex {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
.margin-x {
|
||||||
|
margin-left: $space-small;
|
||||||
|
margin-right: $space-small;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
@ -79,6 +79,7 @@ export default {
|
|||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import '~/assets/_new/styles/mixins/buttonStates.scss';
|
@import '~/assets/_new/styles/mixins/buttonStates.scss';
|
||||||
|
|
||||||
|
|
||||||
.base-button {
|
.base-button {
|
||||||
@include buttonStates;
|
@include buttonStates;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@ -141,4 +142,5 @@ export default {
|
|||||||
color: $color-neutral-100;
|
color: $color-neutral-100;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@import '~/assets/styles/imports/_branding.scss';
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -5,27 +5,32 @@ export default {
|
|||||||
name: 'Beiträge',
|
name: 'Beiträge',
|
||||||
path: '/#',
|
path: '/#',
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: 'Themen',
|
// name: 'Themen',
|
||||||
path: '/#',
|
// path: '/#',
|
||||||
},
|
// },
|
||||||
{
|
// {
|
||||||
name: 'Gruppen',
|
// name: 'Gruppen',
|
||||||
path: '/#',
|
// path: '/#',
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
name: 'Über Yunite',
|
name: 'Über Yunite',
|
||||||
path: '/#',
|
path: '/#',
|
||||||
children: [
|
url: 'https://yunite.org',
|
||||||
{
|
// children: [
|
||||||
name: 'Impressum',
|
// {
|
||||||
path: '/#',
|
// name: 'Impressum',
|
||||||
},
|
// path: '/#',
|
||||||
{
|
// },
|
||||||
name: 'Yunite Team',
|
// {
|
||||||
path: '/#',
|
// name: 'Yunite Team',
|
||||||
},
|
// path: '/#',
|
||||||
],
|
// },
|
||||||
|
// ],
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// name: 'Topic',
|
||||||
|
// path: '/#',
|
||||||
|
// },
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,12 +4,33 @@
|
|||||||
<ds-container class="main-navigation-container" style="padding: 10px 10px">
|
<ds-container class="main-navigation-container" style="padding: 10px 10px">
|
||||||
<div>
|
<div>
|
||||||
<ds-flex class="main-navigation-flex">
|
<ds-flex class="main-navigation-flex">
|
||||||
<ds-flex-item :width="{ base: '47px' }">
|
<ds-flex-item :width="{ base: '47px' }" style="margin-right:20px">
|
||||||
<nuxt-link :to="{ name: 'index' }" v-scroll-to="'.main-navigation'">
|
<nuxt-link :to="{ name: 'index' }" v-scroll-to="'.main-navigation'" >
|
||||||
<logo logoType="header" />
|
<logo logoType="header"/>
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
<header-menu />
|
|
||||||
|
<ds-flex-item v-for="item in menu" :key="item.name" :class="{ 'hide-mobile-menu': !toggleMobileMenu }" :width="{ base: 'auto' }" style="margin-right:20px">
|
||||||
|
<a v-if="item.url" :href="item.url" target="_blank" >
|
||||||
|
<ds-text size="large" bold>
|
||||||
|
{{ item.name }}
|
||||||
|
</ds-text>
|
||||||
|
</a>
|
||||||
|
<nuxt-link v-else :to="item.path" >
|
||||||
|
<ds-text size="large" bold>
|
||||||
|
{{ item.name }}
|
||||||
|
</ds-text>
|
||||||
|
</nuxt-link>
|
||||||
|
</ds-flex-item>
|
||||||
|
<ds-flex-item
|
||||||
|
v-if="categoriesActive && isLoggedIn"
|
||||||
|
:class="{ 'hide-mobile-menu': !toggleMobileMenu }"
|
||||||
|
style="flex-grow: 0; flex-basis: auto; margin-right: 20px;"
|
||||||
|
>
|
||||||
|
<client-only>
|
||||||
|
<categories-menu></categories-menu>
|
||||||
|
</client-only>
|
||||||
|
</ds-flex-item>
|
||||||
<ds-flex-item
|
<ds-flex-item
|
||||||
:width="{ base: '40%', sm: '40%', md: '40%', lg: '0%' }"
|
:width="{ base: '40%', sm: '40%', md: '40%', lg: '0%' }"
|
||||||
class="mobile-hamburger-menu"
|
class="mobile-hamburger-menu"
|
||||||
@ -17,16 +38,7 @@
|
|||||||
<base-button icon="bars" @click="toggleMobileMenuView" circle />
|
<base-button icon="bars" @click="toggleMobileMenuView" circle />
|
||||||
</ds-flex-item>
|
</ds-flex-item>
|
||||||
<ds-flex-item
|
<ds-flex-item
|
||||||
v-if="categoriesActive && isLoggedIn"
|
:width="{
|
||||||
:class="{ 'hide-mobile-menu': !toggleMobileMenu }"
|
|
||||||
style="flex-grow: 0; flex-basis: auto"
|
|
||||||
>
|
|
||||||
<client-only>
|
|
||||||
<categories-menu></categories-menu>
|
|
||||||
</client-only>
|
|
||||||
</ds-flex-item>
|
|
||||||
<ds-flex-item
|
|
||||||
:width="{
|
|
||||||
base: '45%',
|
base: '45%',
|
||||||
sm: '45%',
|
sm: '45%',
|
||||||
md: show ? 'auto' : '45%',
|
md: show ? 'auto' : '45%',
|
||||||
@ -95,7 +107,6 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Logo from '~/components/Logo/Logo'
|
import Logo from '~/components/Logo/Logo'
|
||||||
import HeaderMenu from '~/components/HeaderMenu/HeaderMenu.vue'
|
|
||||||
import headerMenu from '../constants/headerMenu.js'
|
import headerMenu from '../constants/headerMenu.js'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
|
import LocaleSwitch from '~/components/LocaleSwitch/LocaleSwitch'
|
||||||
@ -112,7 +123,6 @@ import CategoriesMenu from '~/components/FilterMenu/CategoriesMenu.vue'
|
|||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
Logo,
|
Logo,
|
||||||
HeaderMenu,
|
|
||||||
LocaleSwitch,
|
LocaleSwitch,
|
||||||
SearchField,
|
SearchField,
|
||||||
Modal,
|
Modal,
|
||||||
@ -127,6 +137,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
show: headerMenu.SHOW_HEADER_MENU,
|
show: headerMenu.SHOW_HEADER_MENU,
|
||||||
|
menu: headerMenu.MENU,
|
||||||
mobileSearchVisible: false,
|
mobileSearchVisible: false,
|
||||||
toggleMobileMenu: false,
|
toggleMobileMenu: false,
|
||||||
inviteRegistration: this.$env.INVITE_REGISTRATION === true, // for 'false' in .env INVITE_REGISTRATION is of type undefined and not(!) boolean false, because of internal handling,
|
inviteRegistration: this.$env.INVITE_REGISTRATION === true, // for 'false' in .env INVITE_REGISTRATION is of type undefined and not(!) boolean false, because of internal handling,
|
||||||
@ -151,6 +162,14 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.margin-right-20 {
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
.margin-x {
|
||||||
|
margin-left: 20px;
|
||||||
|
margin-right: 20px;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
.topbar-locale-switch {
|
.topbar-locale-switch {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-right: $space-xx-small;
|
margin-right: $space-xx-small;
|
||||||
@ -166,11 +185,6 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-navigation {
|
|
||||||
a {
|
|
||||||
color: $text-color-soft;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.main-navigation-right {
|
.main-navigation-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
|||||||
@ -48,6 +48,7 @@ import { queryLocations } from '~/graphql/location'
|
|||||||
let timeout
|
let timeout
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'NewsFeed',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
cities: [],
|
cities: [],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user