-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
/
Copy pathActionHeader.vue
110 lines (95 loc) · 1.78 KB
/
ActionHeader.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<template>
<div class="action-header">
<slot />
</div>
</template>
<style lang="stylus" scoped>
.action-header
display flex
align-items center
padding 0 10px
font-size 12px
border-bottom 1px solid $border-color
color #666
height 35px
@media (min-height: $tall)
height 50px
.vue-ui-dark-mode &
border-bottom 1px solid $dark-border-color
&.no-search
.button
&:first-of-type
margin-left 0
.title
display flex
align-items center
font-size 18px
color $component-color
+ .search
margin-left 10px
&-bracket
color #ccc
.vue-ui-icon
min-width 16px
width 16px
height @width
margin-right 0
@media (min-width: $wide)
margin-right 5px
.button
cursor pointer
display flex
align-items center
justify-content center
padding 0 10px
transition opacity .25s, color .25s
white-space nowrap
opacity .8
overflow hidden
color $green
.vue-ui-icon >>> svg
transition fill .25s
fill @color
&:first-of-type
margin-left auto
&:not(.disabled):hover,
&:not(.disabled).active
opacity 1
color $active-color
.vue-ui-icon >>> svg
fill @color
.vue-ui-dark-mode &
color lighten($green, 15%)
.vue-ui-icon >>> svg
fill @color
&.disabled
opacity 0.45
cursor not-allowed
span
display none
@media (min-width: $wide)
display inline
.vue-ui-button
&:not(:last-child)
margin-right 6px
.search
display flex
align-items center
flex 1
input
flex 1
height 100%
background-color transparent
border 0
margin-left 5px
font-size inherit
color inherit
outline 0
transition color 0.25s
&:focus
color $active-color
&::placeholder
opacity 0.8
&.invalid
color rgba(77, 10, 9, 1)
</style>