mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-31 18:32:36 +01:00
changes ig
This commit is contained in:
parent
cc2ef0a8d1
commit
94bac50358
@ -79,11 +79,13 @@ $success: #008026 !default;
|
|||||||
$info: $cyan !default;
|
$info: $cyan !default;
|
||||||
$warning: $yellow !default;
|
$warning: $yellow !default;
|
||||||
$danger: #C23027 !default;
|
$danger: #C23027 !default;
|
||||||
|
|
||||||
$light: #DFDFDF !default;
|
$light: #DFDFDF !default;
|
||||||
$dark: $gray-900 !default;
|
$dark: #24211c !default;
|
||||||
$light-dark: $gray-800 !default;
|
$light-dark: $gray-800 !default;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// scss-docs-end theme-color-variables
|
// scss-docs-end theme-color-variables
|
||||||
|
|
||||||
.bg-tertiary-split {
|
.bg-tertiary-split {
|
||||||
|
@ -5,23 +5,21 @@
|
|||||||
|
|
||||||
::-webkit-scrollbar-track {
|
::-webkit-scrollbar-track {
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
background: rgba($primary,.4);
|
background: rgba($black,.1);
|
||||||
box-shadow:inset 1px 0 rgba($black,.2);
|
box-shadow:inset 0 0 1px 1px rgba($black,.1);
|
||||||
padding-top:3px;
|
padding-top:3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
::-webkit-scrollbar-thumb {
|
||||||
border-radius: $border-radius;
|
border-radius: $border-radius;
|
||||||
background: #DCDCDC;
|
background: rgba($primary,.4);
|
||||||
box-shadow:inset 0px 4px $white, inset 0px -4px rgba($black,.2), 0 1px rgba($black,.2);
|
|
||||||
width: 4px;
|
width: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
::-webkit-scrollbar-thumb:hover {
|
||||||
background: rgba($white, 1);
|
background: rgba($primary,.8);
|
||||||
}
|
}
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:active {
|
::-webkit-scrollbar-thumb:active {
|
||||||
box-shadow: inset 1px 4px rgba($white,.4), inset -1px -4px rgba($black,.2), 0 1px rgba($black,.2);
|
background: $secondary;
|
||||||
background:#C4C4C4;
|
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@ $nitro-card-top-height: $nitro-card-header-height + $nitro-card-tabs-height;
|
|||||||
}
|
}
|
||||||
|
|
||||||
.nitro-card-close-parent {
|
.nitro-card-close-parent {
|
||||||
right: -3px;
|
|
||||||
top: 5px;
|
top: 5px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
@ -7,6 +7,8 @@
|
|||||||
|
|
||||||
.content-area {
|
.content-area {
|
||||||
height: 100% !important;
|
height: 100% !important;
|
||||||
|
min-height: auto !important;
|
||||||
max-height: 100% !important;
|
max-height: 100% !important;
|
||||||
|
resize: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
.nitro-card-header {
|
.nitro-card-header {
|
||||||
min-height: $nitro-card-header-height;
|
min-height: $nitro-card-header-height;
|
||||||
max-height: $nitro-card-header-height;
|
max-height: $nitro-card-header-height;
|
||||||
|
|
||||||
|
.nitro-card-close-parent {
|
||||||
|
right:-3px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,7 @@ export const CatalogLayoutSingleBundleView: FC<CatalogLayoutSingleBundleViewProp
|
|||||||
}) }
|
}) }
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="position-relative d-flex flex-column col-5 justify-content-center align-items-center">
|
<div className="position-relative d-flex flex-column col-5 justify-content-center align-items-center h-100 overflow-auto">
|
||||||
<div className="d-block mb-2">
|
<div className="d-block mb-2">
|
||||||
<img alt="" src={ GetCatalogPageImage(pageParser, 1) } />
|
<img alt="" src={ GetCatalogPageImage(pageParser, 1) } />
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,5 +1,14 @@
|
|||||||
.nitro-purse {
|
.nitro-purse {
|
||||||
|
background: rgba($dark,.95);
|
||||||
|
border: 1px solid lighten($dark,8.3);
|
||||||
|
box-shadow: inset 0px 3px lighten(rgba($dark,.6),2.5), inset 0 -2px darken(rgba($dark,.6),4);
|
||||||
|
font-weight: bolder;
|
||||||
|
|
||||||
|
.notification-button {
|
||||||
|
color:lighten($dark,20);
|
||||||
|
cursor: pointer;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@import './currency/CurrencyView';
|
@import './currency/CurrencyView';
|
||||||
|
@ -29,13 +29,14 @@ export const PurseView: FC<PurseViewProps> = props =>
|
|||||||
return (
|
return (
|
||||||
<PurseContextProvider value={ { purseState, dispatchPurseState }}>
|
<PurseContextProvider value={ { purseState, dispatchPurseState }}>
|
||||||
<PurseMessageHandler />
|
<PurseMessageHandler />
|
||||||
<div className="nitro-purse row row-cols-2 g-0">
|
<div className="nitro-purse rounded d-flex flex-row py-1 justify-content-between">
|
||||||
{ currencies && currencies.map((currency, index) =>
|
{ currencies && currencies.map((currency, index) =>
|
||||||
{
|
{
|
||||||
if(displayedCurrencies.indexOf(currency.type) === -1) return null;
|
if(displayedCurrencies.indexOf(currency.type) === -1) return null;
|
||||||
|
|
||||||
return <CurrencyView key={ index } currency={ currency } />;
|
return <CurrencyView key={ index } currency={ currency } />;
|
||||||
}) }
|
}) }
|
||||||
|
<div className="notification-button px-2"><i className="fas fa-bars"/></div>
|
||||||
</div>
|
</div>
|
||||||
</PurseContextProvider>
|
</PurseContextProvider>
|
||||||
);
|
);
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
.nitro-currency {
|
.nitro-currency {
|
||||||
background: rgba(20, 20, 20, .95);
|
pointer-events: all;
|
||||||
border: 1px solid #101010;
|
.nitro-currency-text {
|
||||||
box-shadow: inset 2px 2px rgba(255, 255, 255, .1), inset -2px -2px rgba(255, 255, 255, .1);
|
max-width: 60px;
|
||||||
|
}
|
||||||
.icon {
|
&:not(:last-child) {
|
||||||
border-left: 1px solid rgba(255, 255, 255, .1);
|
border-right:1px solid #000;
|
||||||
|
box-shadow: 1px 0 lighten($dark,8.3)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
import { OverlayTrigger, Tooltip } from 'react-bootstrap';
|
||||||
|
import { LocalizeShortNumber } from '../../../utils/LocalizeShortNumber';
|
||||||
import { CurrencyIcon } from '../../currency-icon/CurrencyIcon';
|
import { CurrencyIcon } from '../../currency-icon/CurrencyIcon';
|
||||||
import { CurrencyViewProps } from './CurrencyView.types';
|
import { CurrencyViewProps } from './CurrencyView.types';
|
||||||
|
|
||||||
@ -6,13 +8,19 @@ export function CurrencyView(props: CurrencyViewProps): JSX.Element
|
|||||||
const { currency = null } = props;
|
const { currency = null } = props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="col pe-1 pb-1">
|
<OverlayTrigger
|
||||||
<div className="nitro-currency p-1 d-flex rounded overflow-hidden">
|
placement="left"
|
||||||
<div className="flex-grow-1 px-1 me-1 text-end">{ currency.amount }</div>
|
overlay={
|
||||||
<div className="icon px-1">
|
<Tooltip id={`tooltip-${currency.type}`}>
|
||||||
|
{ currency.amount }
|
||||||
|
</Tooltip>
|
||||||
|
}>
|
||||||
|
<div className="nitro-currency px-1 d-flex">
|
||||||
|
<div className="px-1 text-end text-truncate nitro-currency-text">{LocalizeShortNumber(currency.amount)}</div>
|
||||||
|
<div className="icon">
|
||||||
<CurrencyIcon type={ currency.type } />
|
<CurrencyIcon type={ currency.type } />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</OverlayTrigger>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
width: 200px;
|
min-width: 200px;
|
||||||
|
max-width: 400px;
|
||||||
z-index: $rightside-zindex;
|
z-index: $rightside-zindex;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
.nitro-toolbar {
|
.nitro-toolbar {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
pointer-events: all;
|
pointer-events: all;
|
||||||
background: rgba(20, 20, 20, .95);
|
background: rgba($dark,.95);
|
||||||
border-top: 1px solid #101010;
|
border-top: 2px solid lighten($dark,8.3);
|
||||||
box-shadow: inset 0px 2px rgba(255, 255, 255, .1);
|
box-shadow: inset 0px 5px lighten(rgba($dark,.6),2.5), inset 0 -4px darken(rgba($dark,.6),4);
|
||||||
|
|
||||||
#toolbar-chat-input-container {
|
#toolbar-chat-input-container {
|
||||||
margin-left: 25px;
|
margin-left: 25px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user