nav beautify

This commit is contained in:
ed barz 2022-06-01 08:54:21 +02:00
parent 11df411b51
commit 7a9c848acb
4 changed files with 74 additions and 11 deletions

View File

@ -87,7 +87,7 @@ div#list::-webkit-scrollbar {
span.listname { span.listname {
margin-top: 10px; margin-top: 10px;
margin-bottom: 10px; margin-bottom: 0px;
display: inline-block; display: inline-block;
} }
@ -98,14 +98,16 @@ span.listname h3 {
span.listname span.listicon { span.listname span.listicon {
margin: 5px; margin: 5px;
margin-left: 10px;
float: left; float: left;
font-size: 0.8rem;
transform: rotate(0deg); transform: rotate(0deg);
transition: transform 0.3s; transition: transform 0.3s;
} }
span.listname.active span.listicon { span.listname.active span.listicon {
float: left; float: left;
transform: rotate(-180deg); transform: rotate(-45deg);
transition: transform 0.3s; transition: transform 0.3s;
} }
@ -167,8 +169,8 @@ section.lastlistitem aside span.info {
div.sep { div.sep {
background-color: var(--b9h-color-fg); background-color: var(--b9h-color-fg);
height:5px; height:0px;
width: 100vw; width: 110vw;
margin-left: -8px; margin-left: -8px;
overflow-x: hidden; overflow-x: hidden;
@ -323,7 +325,7 @@ section.restomenu h2 {
section#resto nav span.resto-tag { section#resto nav span.resto-tag {
margin-top: 0px; margin-top: 0px;
margin-bottom: 20px; margin-bottom: 0px;
width: auto; width: auto;
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
@ -332,12 +334,17 @@ section#resto nav span.resto-tag {
section#resto nav span.resto-tag h3 { section#resto nav span.resto-tag h3 {
border: 3px; border: 3px;
border-style: solid; border-style: solid;
border-width: 5px; border-width: 4px;
width: auto; width: auto;
padding: 10px; padding: 6px;
margin: 10px; margin: 5px;
font-size: 0.9rem;
} }
section#resto nav span.resto-tag.active h3 { section#resto nav span.resto-tag.active h3 {
border-color: var(--b9h-color-accent); border-color: var(--b9h-color-accent);
} }
nav.restotagcloud {
margin-bottom: 10px;
}

View File

@ -27,6 +27,10 @@ var jdb = {
card: { card: {
tabs: { tabs: {
info: { info: {
tabtype: "info",
site: "https://www.cannes.com/fr/mairie/annuaire-pratique/equipements-municipaux/p10-parking-lamy.html",
addres: "121 rue d'Antibes - 06400 Cannes",
} }
} }

View File

@ -1,3 +1,52 @@
Vue.component('Info',{
template : `
<div class="tabinfocontent">
<section>
<a href="">
<span class="byl-icon-link"></span>
<span></span>
</a>
</section>
</div>
`,
props : {
obj : Object
},
data () {
return {
message : "hello from menu",
et : {
fr : " et ",
en : " and ",
it : " e ",
},
fourchette : {
fr : "Fourchette de prix par personne:",
en : "Price range per person:",
it : "Fascia di prezzo per persona:",
},
horsboissons : {
fr : "(hors boissons)",
en : "(excluding drinks)",
it : "(bevande escluse)",
},
}
},
methods : {
capitalize(s){
return s.charAt(0).toUpperCase() + s.slice(1)
},
}
//byl-icon-link
//byl-icon-wifi
//byl-icon-call
//byl-icon-location_on
//byl-icon-mail_outline
//byl-icon-accessible
})
Vue.component('Menu',{ Vue.component('Menu',{
template: ` template: `
<section class="restomenu"> <section class="restomenu">
@ -186,12 +235,12 @@ Vue.component('Accordeon', {
<h3 class="b9h-lang-fr">{{ this.list.nameFR }}</h3> <h3 class="b9h-lang-fr">{{ this.list.nameFR }}</h3>
<h3 class="b9h-lang-en">{{ this.list.nameEN }}</h3> <h3 class="b9h-lang-en">{{ this.list.nameEN }}</h3>
<h3 class="b9h-lang-it">{{ this.list.nameIT }}</h3> <h3 class="b9h-lang-it">{{ this.list.nameIT }}</h3>
<span class="byl-icon-chevron-down listicon"> <span class="byl-icon-plus listicon"></span>
</span> </span>
</a> </a>
<section class="listchild" :class="{ active: this.list.isActive }"> <section class="listchild" :class="{ active: this.list.isActive }">
<nav v-if="this.list.id == 'resto'"> <nav class="restotagcloud" v-if="this.list.id == 'resto'">
<span <span
v-for="t in this.tl" v-for="t in this.tl"
class="resto-tag" class="resto-tag"
@ -254,6 +303,7 @@ Vue.component('Accordeon', {
v-for="i in this.list.card.tabs"> v-for="i in this.list.card.tabs">
<Time v-if="i.tabtype === 'time'" v-bind:obj="i"></Time> <Time v-if="i.tabtype === 'time'" v-bind:obj="i"></Time>
<Menu v-if="i.tabtype === 'menu'" v-bind:obj="i"></Menu> <Menu v-if="i.tabtype === 'menu'" v-bind:obj="i"></Menu>
<Info v-if="i.tabtype === 'info'" v-bind:obj="i"></Info>
</section> </section>
</section> </section>
</div> </div>
@ -380,6 +430,8 @@ Vue.component('Accordeon', {
return "byl-icon-clock" return "byl-icon-clock"
// code block // code block
break; break;
case "info":
return "byl-icon-info"
default: default:
// code block // code block
} }

View File

@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="asset/leaflet/leaflet.css"/> <link rel="stylesheet" href="asset/leaflet/leaflet.css"/>
<link rel="stylesheet" href="asset/css/style.css"/> <link rel="stylesheet" href="asset/css/style.css"/>
<link rel="stylesheet" href="asset/fonts/byl-iconfont-v3.2/icons.css"/> <link rel="stylesheet" href="asset/fonts/byl-iconfont-v4.0/icons.css"/>
</head> </head>
<body> <body>