python-gallery/gallery/themes/default/components/buttons/pill.sass

110 lines
1.7 KiB
Sass
Raw Normal View History

.pill-row
margin: 0
padding: 0
width: 100%
height: auto
display: flex
justify-content: center
align-items: center
gap: 0.5rem
> div
margin: 0
padding: 0
display: flex
2023-03-25 16:22:32 +00:00
background-color: RGB($bg-100)
border-radius: $rad
.pill-item
margin: 0
padding: 0.5rem
width: 2.5rem
height: 2.5rem
display: flex
justify-content: center
align-items: center
position: relative
border: none
background-color: transparent
2023-03-25 16:22:32 +00:00
color: RGB($fg-white)
svg
width: 1.25rem
height: 1.25rem
&:hover
cursor: pointer
2023-03-25 16:22:32 +00:00
color: RGB($primary)
.tool-tip
opacity: 1
top: -2.7rem
transform: translateX(calc(-50% + 1.25rem ))
.pill__critical
2023-03-25 16:22:32 +00:00
color: RGB($critical)
span
2023-03-25 16:22:32 +00:00
color: RGB($critical)
&:hover
2023-03-25 16:22:32 +00:00
color: RGB($fg-white)
.pill__info
2023-03-25 16:22:32 +00:00
color: RGB($info)
span
2023-03-25 16:22:32 +00:00
color: RGB($info)
&:hover
2023-03-25 16:22:32 +00:00
color: RGB($fg-white)
.tool-tip
margin: 0
padding: 0.5rem 0.75rem
width: auto
display: block
position: absolute
top: -1.7rem
left: 0
transform: translateX(calc(-50% + 1.25rem ))
font-size: 1rem
font-weight: 600
background-color: #000000
2023-03-25 16:22:32 +00:00
color: RGB($fg-white)
opacity: 0
border-radius: $rad-inner
transition: opacity 0.2s cubic-bezier(.76,0,.17,1), top 0.2s cubic-bezier(.76,0,.17,1)
pointer-events: none
svg
margin: 0
font-size: 1rem
width: 0.75rem
height: 0.75rem
display: block
position: absolute
left: 50%
bottom: -0.46rem
transform: translateX(-50%)
color: #000000