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
|
|
|
display: block
|
2024-07-08 10:36:16 -07:00
|
|
|
position: relative
|
2024-06-30 23:09:28 -07:00
|
|
|
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
|
|
|
|
|
2024-07-08 10:36:16 -07:00
|
|
|
.error-indicator
|
|
|
|
font-size: 85%
|
|
|
|
color: $error-color
|
|
|
|
margin-top: .25em
|
|
|
|
margin-bottom: .5em
|
|
|
|
display: none
|
2024-07-03 20:15:35 -07:00
|
|
|
|
2024-07-08 10:36:16 -07:00
|
|
|
// 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.)
|
|
|
|
// We are loading when the <turbo-frame> is busy, or when at least one layer
|
|
|
|
// is loading.
|
|
|
|
#item-preview[busy] .outfit-viewer, .outfit-viewer:has(outfit-layer:state(loading))
|
|
|
|
cursor: wait
|
2024-07-07 21:32:41 -07:00
|
|
|
.loading-indicator
|
|
|
|
opacity: 1
|
|
|
|
transition-delay: 2s
|
|
|
|
|
2024-07-08 10:36:16 -07:00
|
|
|
#item-preview:has(outfit-layer:state(error))
|
|
|
|
.outfit-viewer
|
|
|
|
border: 2px solid red
|
|
|
|
.error-indicator
|
|
|
|
display: block
|
|
|
|
|
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
|