2023-08-22 16:08:11 -07:00
|
|
|
@import "../partials/clean/constants"
|
|
|
|
@import "../partials/clean/mixins"
|
2024-01-21 03:38:02 -08:00
|
|
|
@import "../partials/item_header"
|
2023-08-22 16:08:11 -07:00
|
|
|
|
2010-11-05 13:43:26 -07:00
|
|
|
body.items-show
|
2024-01-21 03:38:02 -08:00
|
|
|
.item-header
|
|
|
|
+item-header
|
2024-01-18 22:16:56 -08:00
|
|
|
|
2012-10-24 20:09:05 -07:00
|
|
|
#item-contributors
|
|
|
|
+subtle-banner
|
|
|
|
clear: both
|
2012-10-24 20:16:01 -07:00
|
|
|
margin:
|
|
|
|
bottom: 0
|
|
|
|
top: 2em
|
2012-10-24 20:09:05 -07:00
|
|
|
|
|
|
|
header
|
|
|
|
display: inline
|
|
|
|
font-weight: bold
|
|
|
|
margin-right: .25em
|
|
|
|
|
|
|
|
footer
|
|
|
|
display: inline
|
|
|
|
|
|
|
|
ul
|
2024-01-23 04:37:43 -08:00
|
|
|
display: inline
|
|
|
|
list-style: none
|
|
|
|
|
|
|
|
li
|
|
|
|
display: inline
|
|
|
|
|
|
|
|
&::after
|
|
|
|
content: ", "
|
2012-10-24 20:09:05 -07:00
|
|
|
|
2024-01-23 04:37:43 -08:00
|
|
|
&:last-child::after
|
|
|
|
content: "."
|
2012-03-23 14:37:53 -07:00
|
|
|
|
2010-11-05 13:43:26 -07:00
|
|
|
.nc-icon
|
|
|
|
height: 16px
|
|
|
|
width: 16px
|
2024-06-30 23:09:28 -07:00
|
|
|
|
2024-07-01 16:07:25 -07:00
|
|
|
.outfit-viewer
|
2024-06-30 23:09:28 -07:00
|
|
|
position: relative
|
|
|
|
display: block
|
|
|
|
width: 300px
|
|
|
|
height: 300px
|
|
|
|
border: 1px solid $module-border-color
|
|
|
|
border-radius: 1em
|
|
|
|
overflow: hidden
|
|
|
|
|
|
|
|
margin: 0 auto .75em
|
|
|
|
|
2024-07-02 22:16:37 -07:00
|
|
|
outfit-layer
|
2024-06-30 23:09:28 -07:00
|
|
|
display: block
|
|
|
|
position: absolute
|
|
|
|
inset: 0
|
|
|
|
|
2024-07-03 20:15:35 -07:00
|
|
|
img, iframe
|
2024-06-30 23:09:28 -07:00
|
|
|
width: 100%
|
|
|
|
height: 100%
|
2024-06-30 23:34:27 -07:00
|
|
|
|
2024-07-07 21:32:41 -07:00
|
|
|
.loading-indicator
|
|
|
|
position: absolute
|
|
|
|
z-index: 999
|
|
|
|
bottom: 0px
|
|
|
|
right: 4px
|
|
|
|
padding: 8px
|
|
|
|
background: radial-gradient(circle closest-side, white 45%, #ffffff00)
|
|
|
|
|
2024-07-07 19:05:48 -07:00
|
|
|
opacity: 0
|
|
|
|
transition: opacity .5s
|
|
|
|
|
|
|
|
// When loading, fade in the loading spinner after a brief delay. (We only
|
|
|
|
// apply the delay here, because fading *out* on load should be instant.)
|
2024-07-02 22:34:51 -07:00
|
|
|
&:has(outfit-layer:state(loading))
|
2024-07-07 21:32:41 -07:00
|
|
|
cursor: wait
|
|
|
|
.loading-indicator
|
2024-07-07 19:05:48 -07:00
|
|
|
opacity: 1
|
|
|
|
transition-delay: 2s
|
2024-07-01 17:59:07 -07:00
|
|
|
|
2024-07-03 20:15:35 -07:00
|
|
|
&:has(outfit-layer:state(error))
|
|
|
|
border-color: $error-border-color
|
|
|
|
|
2024-07-07 21:32:41 -07:00
|
|
|
// We also show the loading spinner when the item preview Turbo frame is
|
|
|
|
// loading in new data for us.
|
|
|
|
turbo-frame#item-preview[busy]
|
|
|
|
.outfit-viewer
|
|
|
|
cursor: wait
|
|
|
|
.loading-indicator
|
|
|
|
opacity: 1
|
|
|
|
transition-delay: 2s
|
|
|
|
|
2024-06-30 23:34:27 -07:00
|
|
|
.species-color-picker
|
|
|
|
.error-icon
|
|
|
|
cursor: help
|
|
|
|
margin-right: .25em
|
|
|
|
|
|
|
|
&[data-is-valid="false"]
|
|
|
|
select
|
|
|
|
border-color: $error-border-color
|
|
|
|
color: $error-color
|