|
|
|
@ -1,119 +1,74 @@
@@ -1,119 +1,74 @@
|
|
|
|
|
<template> |
|
|
|
|
<div class='countryChoose'> |
|
|
|
|
<header> |
|
|
|
|
<div class="title"> |
|
|
|
|
<img src="../../assets/img/icon/close-white.png" alt="" class="close-img"> |
|
|
|
|
<span>选择国家或地区</span> |
|
|
|
|
<base-header> |
|
|
|
|
<template v-slot:center> |
|
|
|
|
选择国家或地区 |
|
|
|
|
</template> |
|
|
|
|
<template v-slot:bottom> |
|
|
|
|
<Search :isShowText="isShowText" |
|
|
|
|
@click="isShowText = true" |
|
|
|
|
@notice="isShowText = false;" |
|
|
|
|
@clear="isShowText = false" |
|
|
|
|
class="ml2r mr2r mt1r" placeholder="输入城市或区县名搜索" v-model="searchKey"></Search> |
|
|
|
|
</template> |
|
|
|
|
</base-header> |
|
|
|
|
<div ref="list" class="content" @scroll="scroll"> |
|
|
|
|
<div class="row no-active"> |
|
|
|
|
默认位置 |
|
|
|
|
</div> |
|
|
|
|
<div class="row no-active"> |
|
|
|
|
同城 |
|
|
|
|
</div> |
|
|
|
|
<div class="list"> |
|
|
|
|
<div v-for="(value, name) of countryOk"> |
|
|
|
|
<div :class="name" class="row no-active no-padding border index"> |
|
|
|
|
<span>{{ name }}</span> |
|
|
|
|
</div> |
|
|
|
|
<div class="row no-active no-padding border" v-for="item of value"> |
|
|
|
|
<span>{{ item.name }}</span> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
</header> |
|
|
|
|
<div class="content"> |
|
|
|
|
<div class="left"> |
|
|
|
|
<p>1111212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
<p>1212</p> |
|
|
|
|
</div> |
|
|
|
|
<div class="right"> |
|
|
|
|
<ul class="indicator-ctn2"> |
|
|
|
|
<li>A</li> |
|
|
|
|
<li>B</li> |
|
|
|
|
<li>C</li> |
|
|
|
|
<li>D</li> |
|
|
|
|
<li>E</li> |
|
|
|
|
<li>F</li> |
|
|
|
|
<li>G</li> |
|
|
|
|
<li>H</li> |
|
|
|
|
<li>I</li> |
|
|
|
|
<li>J</li> |
|
|
|
|
<li>K</li> |
|
|
|
|
<li>L</li> |
|
|
|
|
<li>M</li> |
|
|
|
|
<li>N</li> |
|
|
|
|
<li>O</li> |
|
|
|
|
<li>P</li> |
|
|
|
|
<li>Q</li> |
|
|
|
|
<li>R</li> |
|
|
|
|
<li>S</li> |
|
|
|
|
<li>T</li> |
|
|
|
|
<li>U</li> |
|
|
|
|
<li>V</li> |
|
|
|
|
<li>W</li> |
|
|
|
|
<li>X</li> |
|
|
|
|
<li>Y</li> |
|
|
|
|
<li>Z</li> |
|
|
|
|
</ul> |
|
|
|
|
</div> |
|
|
|
|
<div class="indicator-ctn"> |
|
|
|
|
<div class="indicator"> |
|
|
|
|
<div class="item arrow" data-index="top"></div> |
|
|
|
|
<div class="item">A</div> |
|
|
|
|
<div class="item">B</div> |
|
|
|
|
<div class="item">C</div> |
|
|
|
|
<div class="item">D</div> |
|
|
|
|
<div class="item">E</div> |
|
|
|
|
<div class="item">F</div> |
|
|
|
|
<div class="item">G</div> |
|
|
|
|
<div class="item">H</div> |
|
|
|
|
<div class="item">I</div> |
|
|
|
|
<div class="item">J</div> |
|
|
|
|
<div class="item">K</div> |
|
|
|
|
<div class="item">L</div> |
|
|
|
|
<div class="item">M</div> |
|
|
|
|
<div class="item">N</div> |
|
|
|
|
<div class="item">O</div> |
|
|
|
|
<div class="item">P</div> |
|
|
|
|
<div class="item">Q</div> |
|
|
|
|
<div class="item">R</div> |
|
|
|
|
<div class="item">S</div> |
|
|
|
|
<div class="item">T</div> |
|
|
|
|
<div class="item">U</div> |
|
|
|
|
<div class="item">V</div> |
|
|
|
|
<div class="item">W</div> |
|
|
|
|
<div class="item">X</div> |
|
|
|
|
<div class="item">Y</div> |
|
|
|
|
<div class="item">Z</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
export default { |
|
|
|
|
import Search from "../../components/Search"; |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
name: "countryChoose", |
|
|
|
|
components: {}, |
|
|
|
|
components: {Search}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
country: [ |
|
|
|
@ -2341,200 +2296,171 @@
@@ -2341,200 +2296,171 @@
|
|
|
|
|
"pinyin": "Z" |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
isShowText: false, |
|
|
|
|
searchKey: '', |
|
|
|
|
indexOffsetTop: {} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
console.log(this.countryOk) |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
let ul = document.querySelector('.indicator-ctn2') |
|
|
|
|
let ulOffsetTop = ul.offsetTop |
|
|
|
|
let itemHeight = 18 |
|
|
|
|
let fontSize = '1.4rem' |
|
|
|
|
let liEl = document.querySelectorAll('.indicator-ctn2 li') |
|
|
|
|
liEl.forEach((el, index) => { |
|
|
|
|
el.style.top = index * itemHeight + 'px' |
|
|
|
|
el.style.width = itemHeight + 'px' |
|
|
|
|
el.style.height = itemHeight + 'px' |
|
|
|
|
let indexs = document.querySelectorAll('.index') |
|
|
|
|
indexs.forEach(v => { |
|
|
|
|
this.indexOffsetTop[v.children[0].innerText] = v.offsetTop |
|
|
|
|
}) |
|
|
|
|
ul.addEventListener('touchstart', function ($e) { |
|
|
|
|
let pageY = $e.touches[0].pageY - ulOffsetTop |
|
|
|
|
let items = document.querySelectorAll('.item') |
|
|
|
|
let item = document.querySelector(`.item:nth-child(2)`) |
|
|
|
|
let itemHeight = item.clientHeight |
|
|
|
|
let ul = document.querySelector('.indicator') |
|
|
|
|
let ulOffsetTop = ul.offsetTop |
|
|
|
|
let resetScale = 'scale(1)' |
|
|
|
|
let resetColor = 'rgb(143, 143, 158)' |
|
|
|
|
ul.addEventListener('touchstart', e => { |
|
|
|
|
let pageY = e.touches[0].pageY - ulOffsetTop |
|
|
|
|
let currentIndex = pageY / itemHeight |
|
|
|
|
currentIndex = Math.floor(currentIndex) |
|
|
|
|
render(currentIndex) |
|
|
|
|
}) |
|
|
|
|
ul.addEventListener('touchend', function ($e) { |
|
|
|
|
liEl.forEach((el, index) => { |
|
|
|
|
el.style.left = 0 |
|
|
|
|
el.style.fontSize = '1rem' |
|
|
|
|
el.style.color = '#fff' |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
ul.addEventListener('touchmove', function ($e) { |
|
|
|
|
liEl.forEach((el, index) => { |
|
|
|
|
el.style.left = 0 |
|
|
|
|
el.style.fontSize = '1rem' |
|
|
|
|
el.style.color = '#fff' |
|
|
|
|
}) |
|
|
|
|
let pageY = $e.touches[0].pageY - ulOffsetTop |
|
|
|
|
ul.addEventListener('touchmove', e => { |
|
|
|
|
let pageY = e.touches[0].pageY - ulOffsetTop |
|
|
|
|
let currentIndex = pageY / itemHeight |
|
|
|
|
currentIndex = Math.floor(currentIndex) |
|
|
|
|
if (currentIndex >= 0 && currentIndex < 26) { |
|
|
|
|
render(currentIndex) |
|
|
|
|
console.log(currentIndex) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
function render(currentIndex) { |
|
|
|
|
liEl[currentIndex].style.left = -itemHeight * 4 + 10 + 'px' |
|
|
|
|
liEl[currentIndex].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex].style.color = '#fff' |
|
|
|
|
if (currentIndex === 0) { |
|
|
|
|
liEl[currentIndex + 1].style.left = -itemHeight * 3 + 'px' |
|
|
|
|
liEl[currentIndex + 1].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 1].style.color = '#ffffff22' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 2].style.left = -itemHeight * 2 + 'px' |
|
|
|
|
liEl[currentIndex + 2].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 2].style.color = '#ffffff44' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 3].style.left = -itemHeight * 1 + 'px' |
|
|
|
|
liEl[currentIndex + 3].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 3].style.color = '#ffffff66' |
|
|
|
|
} else if (currentIndex === 1) { |
|
|
|
|
liEl[currentIndex - 1].style.left = -itemHeight * 3 + 'px' |
|
|
|
|
liEl[currentIndex - 1].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex - 1].style.color = '#ffffff22' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 1].style.left = -itemHeight * 3 + 'px' |
|
|
|
|
liEl[currentIndex + 1].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 1].style.color = '#ffffff22' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 2].style.left = -itemHeight * 2 + 'px' |
|
|
|
|
liEl[currentIndex + 2].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 2].style.color = '#ffffff44' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 3].style.left = -itemHeight * 1 + 'px' |
|
|
|
|
liEl[currentIndex + 3].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 3].style.color = '#ffffff66' |
|
|
|
|
} else if (currentIndex === 2) { |
|
|
|
|
liEl[currentIndex - 2].style.left = -itemHeight * 2 + 'px' |
|
|
|
|
liEl[currentIndex - 2].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex - 2].style.color = '#ffffff44' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex - 1].style.left = -itemHeight * 3 + 'px' |
|
|
|
|
liEl[currentIndex - 1].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex - 1].style.color = '#ffffff22' |
|
|
|
|
liEl[currentIndex + 1].style.left = -itemHeight * 3 + 'px' |
|
|
|
|
liEl[currentIndex + 1].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 1].style.color = '#ffffff22' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 2].style.left = -itemHeight * 2 + 'px' |
|
|
|
|
liEl[currentIndex + 2].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 2].style.color = '#ffffff44' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 3].style.left = -itemHeight * 1 + 'px' |
|
|
|
|
liEl[currentIndex + 3].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 3].style.color = '#ffffff66' |
|
|
|
|
ul.addEventListener('touchend', function ($e) { |
|
|
|
|
items.forEach((el, index) => { |
|
|
|
|
el.style.transform = `translate3d(0,0,0) ${resetScale}` |
|
|
|
|
el.style.color = resetColor |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
let render = (currentIndex) => { |
|
|
|
|
// console.log('currentIndex', currentIndex) |
|
|
|
|
let scale = 'scale(1.2)' |
|
|
|
|
items[currentIndex].style.transform = `translate3d(${-itemHeight * 4}px,0,0) ${scale}` |
|
|
|
|
items[currentIndex].style.color = '#fff' |
|
|
|
|
this.goto(items[currentIndex]) |
|
|
|
|
for (let i = 1; i < 5; i++) { |
|
|
|
|
let nextIndex = currentIndex + i |
|
|
|
|
let preIndex = currentIndex - i |
|
|
|
|
if (preIndex >= 0) { |
|
|
|
|
if (i === 4) { |
|
|
|
|
items[preIndex].style.transform = `translate3d(0,0,0) ${resetScale}` |
|
|
|
|
items[preIndex].style.color = resetColor |
|
|
|
|
} else { |
|
|
|
|
liEl[currentIndex - 1].style.left = -itemHeight * 3 + 'px' |
|
|
|
|
liEl[currentIndex - 1].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex - 1].style.color = '#ffffff22' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex - 2].style.left = -itemHeight * 2 + 'px' |
|
|
|
|
liEl[currentIndex - 2].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex - 2].style.color = '#ffffff44' |
|
|
|
|
|
|
|
|
|
liEl[currentIndex - 3].style.left = -itemHeight * 1 + 'px' |
|
|
|
|
liEl[currentIndex - 3].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex - 3].style.color = '#ffffff66' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 1].style.left = -itemHeight * 3 + 'px' |
|
|
|
|
liEl[currentIndex + 1].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 1].style.color = '#ffffff22' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 2].style.left = -itemHeight * 2 + 'px' |
|
|
|
|
liEl[currentIndex + 2].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 2].style.color = '#ffffff44' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
liEl[currentIndex + 3].style.left = -itemHeight * 1 + 'px' |
|
|
|
|
liEl[currentIndex + 3].style.fontSize = fontSize |
|
|
|
|
liEl[currentIndex + 3].style.color = '#ffffff66' |
|
|
|
|
items[preIndex].style.transform = `translate3d(${-itemHeight * (4 - i)}px,0,0) ${scale}` |
|
|
|
|
items[preIndex].style.color = `#ffffff${22 * i}` |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (nextIndex < 26) { |
|
|
|
|
if (i === 4) { |
|
|
|
|
items[nextIndex].style.transform = `translate3d(0,0,0) ${resetScale}` |
|
|
|
|
items[nextIndex].style.color = resetColor |
|
|
|
|
} else { |
|
|
|
|
items[nextIndex].style.transform = `translate3d(${-itemHeight * (4 - i)}px,0,0) ${scale}` |
|
|
|
|
items[nextIndex].style.color = `#ffffff${22 * i}` |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
computed: {}, |
|
|
|
|
methods: {} |
|
|
|
|
methods: { |
|
|
|
|
goto(el) { |
|
|
|
|
let list = this.$refs.list |
|
|
|
|
if (el.dataset['index']) { |
|
|
|
|
return list.scrollTop = 0 |
|
|
|
|
} |
|
|
|
|
let py = el.innerText |
|
|
|
|
if (document.querySelector(`.${py}`)) { |
|
|
|
|
list.scrollTop = document.querySelector(`.${py}`).offsetTop - 110 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
scroll(e) { |
|
|
|
|
// console.log() |
|
|
|
|
let listScrollTop = e.target.scrollTop + 100 |
|
|
|
|
for (const item of this.indexOffsetTop) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style scoped lang='scss'> |
|
|
|
|
.countryChoose { |
|
|
|
|
height: 100%; |
|
|
|
|
width: 100%; |
|
|
|
|
font-size: 1.6rem; |
|
|
|
|
overflow: hidden; |
|
|
|
|
@import "../../assets/scss/index"; |
|
|
|
|
|
|
|
|
|
.countryChoose { |
|
|
|
|
position: fixed; |
|
|
|
|
left: 0; |
|
|
|
|
right: 0; |
|
|
|
|
bottom: 0; |
|
|
|
|
top: 0; |
|
|
|
|
color: white; |
|
|
|
|
font-size: 1.4rem; |
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
|
|
header { |
|
|
|
|
background: red; |
|
|
|
|
height: 110px; |
|
|
|
|
width: 100%; |
|
|
|
|
.indicator-ctn { |
|
|
|
|
width: 2rem; |
|
|
|
|
height: 100vh; |
|
|
|
|
position: fixed; |
|
|
|
|
z-index: 3; |
|
|
|
|
top: 0; |
|
|
|
|
right: 0.5rem; |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
|
|
|
|
|
.title { |
|
|
|
|
text-align: center; |
|
|
|
|
.indicator { |
|
|
|
|
width: 2rem; |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
|
|
|
|
|
span { |
|
|
|
|
font-size: 1.8rem; |
|
|
|
|
font-weight: bold; |
|
|
|
|
} |
|
|
|
|
div { |
|
|
|
|
color: $second-text-color; |
|
|
|
|
//transition: all .3s; |
|
|
|
|
font-size: 1rem; |
|
|
|
|
padding: .1rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.arrow { |
|
|
|
|
padding: 0 0 .3rem 0; |
|
|
|
|
width: 0; |
|
|
|
|
height: 0; |
|
|
|
|
border: .5rem solid transparent; |
|
|
|
|
border-bottom: 1rem solid $second-text-color; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.content { |
|
|
|
|
margin-top: 110px; |
|
|
|
|
display: flex; |
|
|
|
|
height: 100%; |
|
|
|
|
width: 100%; |
|
|
|
|
.fixed { |
|
|
|
|
position: fixed; |
|
|
|
|
top: 11rem; |
|
|
|
|
left: 2rem; |
|
|
|
|
right: 2rem; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.left { |
|
|
|
|
width: 95%; |
|
|
|
|
height: calc(100% - 110px); |
|
|
|
|
.content { |
|
|
|
|
height: calc(100% - 11rem); |
|
|
|
|
margin-top: 11rem; |
|
|
|
|
width: 100%; |
|
|
|
|
overflow-y: scroll; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.right { |
|
|
|
|
width: 5%; |
|
|
|
|
height: calc(100% - 110px); |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: center; |
|
|
|
|
} |
|
|
|
|
.list { |
|
|
|
|
padding-left: 2rem; |
|
|
|
|
padding-right: 2rem; |
|
|
|
|
//padding-right: 2.5rem; |
|
|
|
|
|
|
|
|
|
.indicator-ctn2 { |
|
|
|
|
width: 20px; |
|
|
|
|
padding: 0; |
|
|
|
|
margin: 0; |
|
|
|
|
height: 468px; |
|
|
|
|
position: relative; |
|
|
|
|
text-align: center; |
|
|
|
|
list-style: none; |
|
|
|
|
.row { |
|
|
|
|
background: $main-bg; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
li { |
|
|
|
|
position: absolute; |
|
|
|
|
transition: all .3s; |
|
|
|
|
height: 18px; |
|
|
|
|
font-size: 1rem; |
|
|
|
|
line-height: 14px; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
|