Skip to content

Commit

Permalink
add link view for bubble theme
Browse files Browse the repository at this point in the history
closes slab#857
  • Loading branch information
jhchen committed Feb 10, 2017
1 parent 8ead5d3 commit b4c983d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions assets/bubble.styl
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,37 @@ textColor = #fff
@import './core'
@import './base'
@import './bubble/*'

.ql-container.ql-bubble:not(.ql-disabled)
a
position: relative
white-space: nowrap
a::before
background-color: #444
border-radius: 15px
top: -5px
font-size: 12px
color: #fff
content: attr(href)
font-weight: normal
overflow: hidden
padding: 5px 15px
text-decoration: none
z-index: 1
a::after
border-top: 6px solid #444
border-left: 6px solid transparent
border-right: 6px solid transparent
top: 0
content: " "
height: 0
width: 0
a::before, a::after
left: 0
margin-left: 50%
position: absolute
transform: translate(-50%, -100%)
transition: visibility 0s ease 200ms
visibility: hidden
a:hover::before, a:hover::after
visibility: visible

0 comments on commit b4c983d

Please sign in to comment.