nitro-react/src/common/index.scss

544 lines
11 KiB
SCSS
Raw Normal View History

2021-12-13 00:43:53 -05:00
.layout-grid-item {
2022-03-14 06:39:09 -04:00
height: var(--nitro-grid-column-min-height, unset);
2021-12-13 00:43:53 -05:00
background-position: center;
background-repeat: no-repeat;
background-color: $grid-bg-color;
&.active {
border-color: $grid-active-border-color !important;
2022-03-01 04:39:59 -05:00
&:not(.clear-bg) {
background-color: $grid-active-bg-color !important;
}
2021-12-13 00:43:53 -05:00
}
2022-01-11 23:01:59 -05:00
&.disabled {
cursor: not-allowed;
img {
opacity: .5;
filter: grayscale(1);
}
}
2021-12-13 00:43:53 -05:00
&.unseen {
background-color: rgba($success, 0.4);
}
2022-01-03 00:10:55 -05:00
.avatar-image {
background-position-y: -35px;
}
2022-02-22 00:24:45 -05:00
&.has-highlight {
&:after {
2022-03-15 18:38:48 -04:00
content: '';
2022-02-22 00:24:45 -05:00
z-index: 2;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 50%;
background-color: $white;
opacity: 0.1;
}
}
2021-12-13 00:43:53 -05:00
}
2022-03-03 02:23:01 -05:00
.nitro-room-thumbnail-camera {
width: 132px;
height: 192px;
2022-03-15 18:38:48 -04:00
background-image: url('../assets/images/room-widgets/thumbnail-widget/thumbnail-camera-spritesheet.png');
2022-03-03 02:23:01 -05:00
.camera-frame {
position: absolute;
width: 110px;
height: 110px;
margin-top: 38px;
margin-left: 3px;
}
}
.nitro-layout-trophy {
position: relative;
width: 340px;
height: 173px;
color: black;
pointer-events: all;
background-position: 0px 0px;
2022-03-15 18:38:48 -04:00
background-image: url('../assets/images/room-widgets/trophy-widget/trophy-spritesheet.png');
2022-03-03 02:23:01 -05:00
&.trophy-2 {
background-position: 0px 173px;
}
&.trophy-3 {
background-position: 0px 346px;
}
.trophy-header {
2022-03-04 12:42:57 -05:00
height: 22px;
2022-03-03 02:23:01 -05:00
.trophy-close {
width: 15px;
height: 15px;
2022-03-04 12:42:57 -05:00
right: 5.5px;
2022-03-03 02:23:01 -05:00
top: 5px;
}
}
.trophy-content {
width: 297px;
2022-03-04 12:42:57 -05:00
height: 116px;
2022-03-03 02:23:01 -05:00
white-space: pre-wrap;
}
.trophy-footer {
width: 297px;
}
}
.nitro-gift-card {
width: 306px;
height: 159px;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/gift/gift_tag.png') center no-repeat;
2022-03-03 02:23:01 -05:00
.gift-face {
width: 65px;
.gift-incognito {
width: 37px;
height: 48px;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/gift/incognito.png') center no-repeat;
2022-03-03 02:23:01 -05:00
}
.gift-avatar {
position: relative;
overflow: hidden;
width: 40px;
height: 50px;
.avatar-image {
position: absolute;
left: -25px;
top: -20px;
}
}
}
.gift-message {
width: 100%;
min-width: 100%;
max-width: 100%;
height: 90px;
min-height: 90px;
max-height: 90px;
border: none;
resize: none;
outline: none;
line-height: 17px;
}
}
.spinner-container {
display: flex;
align-items: center;
justify-content: center;
.spinner {
margin: 2px;
width: 10px;
height: 10px;
border: $border-width solid $white;
background-color: rgba($white, 0.8);
border-radius: 100%;
display: inline-block;
-webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
animation: sk-bouncedelay 1.4s infinite ease-in-out both;
&:nth-child(1) {
-webkit-animation-delay: -0.32s;
animation-delay: -0.32s;
}
&:nth-child(2) {
-webkit-animation-delay: -0.16s;
animation-delay: -0.16s;
}
}
}
@-webkit-keyframes sk-bouncedelay {
0%, 80%, 100% { -webkit-transform: scale(0) }
40% { -webkit-transform: scale(1.0) }
}
@keyframes sk-bouncedelay {
0%, 80%, 100% {
-webkit-transform: scale(0);
transform: scale(0);
} 40% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
}
}
.room-thumbnail {
position: relative;
width: 110px;
height: 110px;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/navigator/thumbnail_placeholder.png') no-repeat center;
2022-03-03 02:23:01 -05:00
background-color: rgba($black, .125);
}
.nitro-alert {
width: 350px;
2022-03-15 15:12:23 -04:00
min-height: 150px;
2022-03-15 13:35:30 -04:00
max-height: 350px;
2022-03-03 02:23:01 -05:00
}
.nitro-notification-bubble {
pointer-events: all;
padding: 6px 5px;
background-color: rgba($dark,.95);
box-shadow: inset 0px 5px lighten(rgba($dark,.6),2.5), inset 0 -4px darken(rgba($dark,.6),4);
font-size: $font-size-sm;
2022-03-11 00:08:17 -05:00
.bubble-image-container {
2022-03-15 15:06:50 -04:00
width: 50px;
height: 50px;
2022-03-03 02:23:01 -05:00
}
}
#draggable-windows-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
@include media-breakpoint-down(lg) {
display: flex;
justify-content: center;
2022-03-15 15:12:23 -04:00
align-items: center;
2022-03-03 02:23:01 -05:00
}
.draggable-window {
display: inline-block;
visibility: hidden;
pointer-events: all;
}
}
2022-03-03 12:03:21 -05:00
.nitro-currency-icon {
background-position: center;
background-repeat: no-repeat;
width: 15px;
height: 15px;
}
2022-03-03 12:09:41 -05:00
.nitro-item-count {
top: 2px;
right: 2px;
font-size: 8px;
z-index: 1;
}
2022-03-03 13:16:51 -05:00
.badge-image {
position: relative;
width: 40px;
height: 40px;
background-repeat: no-repeat;
background-position: center;
&.group-badge {
width: 39px;
height: 39px;
&.scale-2 {
width: 80px;
height: 80px;
}
}
.badge-information {
display: none;
}
&:hover {
.badge-information {
display: block;
}
}
.badge-information {
position: absolute;
pointer-events: none;
user-select: none;
width: 210px;
border-radius: $border-radius;
background: $white;
left: -220px;
z-index: 100;
&:before {
position: absolute;
content: ' ';
width: 0;
height: 0;
border-left: 10px solid $white;
border-bottom: 10px solid transparent;
border-top: 10px solid transparent;
top: 10px;
right: -10px;
}
}
}
2022-03-04 00:04:17 -05:00
.furni-image {
position: relative;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: center;
}
2022-03-03 23:59:53 -05:00
.nitro-rarity-level {
width: 36px;
height: 28px;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/infostand/rarity-level.png');
2022-03-03 23:59:53 -05:00
div {
line-height: 28px;
text-align: center;
color: $black;
font-weight: bold;
}
}
2022-03-04 12:26:37 -05:00
.avatar-image {
position: relative;
width: 90px;
height: 130px;
background-repeat: no-repeat;
background-position: center -8px;
pointer-events: none;
image-rendering: pixelated;
&.scale-0-5,
&.scale-0-75 {
image-rendering: -webkit-optimize-contrast;
}
}
.pet-image {
position: relative;
width: 100%;
height: 100%;
background-repeat: no-repeat;
background-position: center;
}
.room-preview-container {
position: relative;
width: 100%;
.room-preview-image {
position: relative;
top: 0;
left: 0;
height: 100%;
width: 100%;
border-radius: $border-radius;
background-color: $light;
background-repeat: no-repeat;
background-position: center;
overflow: hidden;
&.border-0 {
&::after {
content: none;
}
}
&::after {
position: absolute;
content: '';
top: 0;
bottom: 0;
left: 0;
right: 0;
border-radius: $border-radius;
border-bottom: 2px solid white;
border-right: 2px solid white;
box-shadow: -2px -2px rgba(0, 0, 0, .4), inset 3px 3px rgba(0, 0, 0, .2);
}
}
}
2022-03-03 23:59:53 -05:00
2022-03-12 00:52:59 -05:00
.unique-item {
.unique-bg-override {
background-position: center;
background-repeat: no-repeat;
z-index: 2;
}
&:before {
position: absolute;
content: '';
width: 100%;
height: 100%;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/unique/grid-bg.png') center no-repeat;
2022-03-12 00:52:59 -05:00
z-index: 1;
}
&:after {
position: absolute;
content: '';
width: 100%;
height: 100%;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/unique/grid-bg-glass.png') center no-repeat;
2022-03-12 00:52:59 -05:00
bottom: 0;
z-index: 4;
}
&.sold-out:after {
2022-03-15 18:38:48 -04:00
background: url('../assets/images/unique/grid-bg-sold-out.png') center no-repeat,
url('../assets/images/unique/grid-bg-glass.png') center no-repeat;
2022-03-12 00:52:59 -05:00
}
.unique-item-counter {
margin: 0 auto;
display: flex;
justify-content: center;
align-items: center;
bottom: 1px;
width: 100%;
height: 9px;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/unique/grid-count-bg.png') center no-repeat;
2022-03-12 00:52:59 -05:00
z-index: 3;
}
}
.unique-sold-out-blocker {
width: 364px;
height: 30px;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/unique/catalog-info-sold-out.png');
2022-03-12 00:52:59 -05:00
div {
float: right;
width: 140px;
text-align: center;
font-weight: bold;
margin-top: 5px;
margin-right: 17px;
color: #000;
}
}
.unique-compact-plate {
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
right: 16px;
width: 34px;
height: 37px;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/unique/inventory-info-amount-bg.png');
2022-03-12 00:52:59 -05:00
div {
display: flex;
justify-content: center;
align-items: center;
height: 9.5px;
}
}
.unique-complete-plate {
width: 170px;
height: 29px;
2022-03-15 18:38:48 -04:00
background: url('../assets/images/unique/catalog-info-amount-bg.png') no-repeat center;
2022-03-12 00:52:59 -05:00
z-index: 1;
padding-top: 3px;
.plate-container {
margin-left: 45px;
width: 100px;
font-size: 10px;
color: black;
> :first-child {
margin-bottom: 2px;
}
}
}
.limited-edition-number {
display: inline-block;
outline: 0;
height: 5px;
margin-right: 1px;
2022-03-15 18:38:48 -04:00
background-image: url('../assets/images/unique/numbers.png');
2022-03-12 00:52:59 -05:00
background-repeat: no-repeat;
&:last-child {
margin-right: 0px;
}
&.n-0 {
width: 4px;
background-position: -1px 0px;
}
&.n-1 {
width: 2px;
background-position: -6px 0px;
}
&.n-2 {
width: 4px;
background-position: -9px 0px;
}
&.n-3 {
width: 4px;
background-position: -14px 0px;
}
&.n-4 {
width: 4px;
background-position: -19px 0px;
}
&.n-5 {
width: 4px;
background-position: -24px 0px;
}
&.n-6 {
width: 4px;
background-position: -29px 0px;
}
&.n-7 {
width: 4px;
background-position: -34px 0px;
}
&.n-8 {
width: 4px;
background-position: -39px 0px;
}
&.n-9 {
width: 4px;
background-position: -44px 0px;
}
}
2022-03-03 12:09:41 -05:00
2022-03-03 02:23:01 -05:00
@import './card/NitroCardView';