💄 Site > Search > Add design
This commit is contained in:
@@ -3,7 +3,13 @@
|
|||||||
|
|
||||||
.text
|
.text
|
||||||
padding-left 12px
|
padding-left 12px
|
||||||
opacity 0.6
|
|
||||||
|
.letter
|
||||||
|
opacity 0.6
|
||||||
|
|
||||||
|
&.highlight
|
||||||
|
opacity 1
|
||||||
|
font-weight bold
|
||||||
|
|
||||||
.notif
|
.notif
|
||||||
display inline-block
|
display inline-block
|
||||||
@@ -29,5 +35,7 @@
|
|||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
.text
|
.text
|
||||||
opacity 1
|
color #4bd1c5
|
||||||
color #4bd1c5
|
|
||||||
|
.letter
|
||||||
|
opacity 1
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<file-icon class="icon" :extension="content.extension"></file-icon>
|
<file-icon class="icon" :extension="content.extension"></file-icon>
|
||||||
<span class="text">
|
<span class="text">
|
||||||
<template v-for="(letter, key) in content.name">
|
<template v-for="(letter, key) in content.name">
|
||||||
<span :style="matchingPositions.indexOf(key) !== -1 ? 'font-weight:bold;' : ''">{{ letter }}</span>
|
<span class="letter" :class="[matchingPositions.indexOf(key) !== -1 ? 'highlight' : '']">{{ letter }}</span>
|
||||||
</template>
|
</template>
|
||||||
</span>
|
</span>
|
||||||
<span v-if="content.isNew" class="notif new">new</span>
|
<span v-if="content.isNew" class="notif new">new</span>
|
||||||
|
|||||||
@@ -6,12 +6,20 @@
|
|||||||
|
|
||||||
.text
|
.text
|
||||||
padding-left 12px
|
padding-left 12px
|
||||||
opacity 0.6
|
|
||||||
|
.letter
|
||||||
|
opacity 0.6
|
||||||
|
|
||||||
|
&.highlight
|
||||||
|
opacity 1
|
||||||
|
font-weight bold
|
||||||
|
|
||||||
&:hover
|
&:hover
|
||||||
.icon
|
.icon
|
||||||
opacity 1
|
opacity 1
|
||||||
|
|
||||||
.text
|
.text
|
||||||
opacity 1
|
color #4bd1c5
|
||||||
color #4bd1c5
|
|
||||||
|
.letter
|
||||||
|
opacity 1
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
<file-icon class="icon" extension="folder" v-show="!open"></file-icon>
|
<file-icon class="icon" extension="folder" v-show="!open"></file-icon>
|
||||||
<span class="text">
|
<span class="text">
|
||||||
<template v-for="(letter, key) in content.name">
|
<template v-for="(letter, key) in content.name">
|
||||||
<span :style="matchingPositions.indexOf(key) !== -1 ? 'font-weight:bold;' : ''">{{ letter }}</span>
|
<span class="letter" :class="[matchingPositions.indexOf(key) !== -1 ? 'highlight' : '']">{{ letter }}</span>
|
||||||
</template>
|
</template>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -7,6 +7,16 @@
|
|||||||
background #26283B
|
background #26283B
|
||||||
color #ffffff
|
color #ffffff
|
||||||
|
|
||||||
|
.search
|
||||||
|
display block
|
||||||
|
font-size 14px
|
||||||
|
padding-left 20px
|
||||||
|
width 100%
|
||||||
|
height 40px
|
||||||
|
margin-bottom 10px
|
||||||
|
line-height 40px
|
||||||
|
border-bottom 1px solid rgba(255, 255, 255, 0.2)
|
||||||
|
|
||||||
.content
|
.content
|
||||||
line-height 28px
|
line-height 28px
|
||||||
font-size 14px
|
font-size 14px
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="file-tree" :style="`right: calc(100vw - 290px - ${scrollbarWidth}px);`">
|
<div class="file-tree" :style="`right: calc(100vw - 290px - ${scrollbarWidth}px);`">
|
||||||
<input type="text" v-model="searchValue">
|
<input class="search" type="text" v-model="searchValue" placeholder="Search for files ...">
|
||||||
<files-tree-folder class="content" v-for="folder of files.folders" :key="+ new Date()" :content="folder" :depth="0"></files-tree-folder>
|
<files-tree-folder class="content" v-for="folder of files.folders" :key="+ new Date()" :content="folder" :depth="0"></files-tree-folder>
|
||||||
<div>
|
<div>
|
||||||
<a href="#" class="all-read" @click.prevent="onAllReadClick">Mark all as read</a>
|
<a href="#" class="all-read" @click.prevent="onAllReadClick">Mark all as read</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user