mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
101 lines
6.3 KiB
Sass
101 lines
6.3 KiB
Sass
//- 💫 CSS > COMPONENTS > CHAT
|
|
|
|
.c-chat
|
|
@include position(fixed, top, left, 0, 60%)
|
|
bottom: 0
|
|
right: 0
|
|
display: flex
|
|
flex-flow: column nowrap
|
|
background: $color-back
|
|
transition: transform 0.3s cubic-bezier(0.16, 0.22, 0.22, 1.7)
|
|
box-shadow: -0.25rem 0 1rem 0 rgba($color-front, 0.25)
|
|
z-index: 100
|
|
|
|
@include breakpoint(min, md)
|
|
left: calc(100% - #{$aside-width} - #{$aside-padding})
|
|
|
|
@include breakpoint(max, sm)
|
|
left: 50%
|
|
|
|
@include breakpoint(max, xs)
|
|
left: 0
|
|
|
|
&.is-collapsed:not(.is-loading)
|
|
transform: translateX(110%)
|
|
|
|
&:before
|
|
@include position(absolute, top, left, 1rem, 2rem)
|
|
content: attr(data-title)
|
|
font: bold 1.4rem $font-code
|
|
text-transform: uppercase
|
|
color: $color-back
|
|
|
|
&:after
|
|
@include position(absolute, top, left, 0, 100%)
|
|
content: ""
|
|
z-index: -1
|
|
bottom: 0
|
|
right: -100%
|
|
background: $color-back
|
|
|
|
& > iframe
|
|
width: 100%
|
|
flex: 1 1 calc(100% - #{$nav-height})
|
|
border: 0
|
|
|
|
.gitter-chat-embed-loading-wrapper
|
|
@include position(absolute, top, left, 0, 0)
|
|
right: 0
|
|
bottom: 0
|
|
display: none
|
|
justify-content: center
|
|
align-items: center
|
|
|
|
.is-loading &
|
|
display: flex
|
|
|
|
.gitter-chat-embed-action-bar,
|
|
.gitter-chat-embed-action-bar-item
|
|
display: flex
|
|
|
|
.gitter-chat-embed-action-bar
|
|
align-items: center
|
|
justify-content: flex-end
|
|
background: $color-theme
|
|
padding: 0 1rem 0 2rem
|
|
flex: 0 0 $nav-height
|
|
|
|
.gitter-chat-embed-action-bar-item
|
|
@include size(40px)
|
|
padding: 0
|
|
opacity: 0.65
|
|
background-position: 50%
|
|
background-repeat: no-repeat
|
|
background-size: 22px 22px
|
|
border: 0
|
|
cursor: pointer
|
|
transition: all 0.2s ease
|
|
|
|
&:focus,
|
|
&:hover
|
|
opacity: 1
|
|
|
|
&.gitter-chat-embed-action-bar-item-pop-out
|
|
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMTcxLjQyOSIgZmlsbD0iIzNhMzEzMyI+PHBhdGggZD0iTTE1Ny4xNDMsMTAzLjU3MXYzNS43MTRjMCw4Ljg1NC0zLjE0NCwxNi40MjYtOS40MzEsMjIuNzEzcy0xMy44NTgsOS40MzEtMjIuNzEyLDkuNDMxSDMyLjE0MyBjLTguODU0LDAtMTYuNDI1LTMuMTQ0LTIyLjcxMi05LjQzMVMwLDE0OC4xNCwwLDEzOS4yODVWNDYuNDI5YzAtOC44NTQsMy4xNDQtMTYuNDI1LDkuNDMxLTIyLjcxMiBjNi4yODctNi4yODcsMTMuODU4LTkuNDMxLDIyLjcxMi05LjQzMWg3OC41NzJjMS4wNDEsMCwxLjg5NiwwLjMzNSwyLjU2NiwxLjAwNGMwLjY3LDAuNjcsMS4wMDQsMS41MjUsMS4wMDQsMi41NjdWMjUgYzAsMS4wNDItMC4zMzQsMS44OTctMS4wMDQsMi41NjdjLTAuNjcsMC42Ny0xLjUyNSwxLjAwNC0yLjU2NiwxLjAwNEgzMi4xNDNjLTQuOTExLDAtOS4xMTUsMS43NDktMTIuNjEyLDUuMjQ2IHMtNS4yNDYsNy43MDEtNS4yNDYsMTIuNjEydjkyLjg1NmMwLDQuOTExLDEuNzQ5LDkuMTE1LDUuMjQ2LDEyLjYxMnM3LjcwMSw1LjI0NSwxMi42MTIsNS4yNDVIMTI1YzQuOTEsMCw5LjExNS0xLjc0OCwxMi42MTEtNS4yNDUgYzMuNDk3LTMuNDk3LDUuMjQ2LTcuNzAxLDUuMjQ2LT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-front
|
|
color: $color-back
|
|
border-top-left-radius: 4px
|
|
border-top-right-radius: 4px
|
|
z-index: 20
|
|
border-color: $color-theme
|
|
border-style: solid
|
|
border-width: 1px 1px 0 1px
|