Style changes

This commit is contained in:
Infinite
2020-02-01 22:22:53 +01:00
parent 4a32f90382
commit 49a6076500
11 changed files with 29 additions and 38 deletions

View File

@@ -79,7 +79,6 @@ export const MainNavbar: React.FC = () => {
{menuItems.map(i => ( {menuItems.map(i => (
<LinkContainer <LinkContainer
activeClassName="active" activeClassName="active"
exact
to={i.href} to={i.href}
key={i.href} key={i.href}
> >

View File

@@ -104,7 +104,7 @@ export const WallPanel: React.FC<IWallPanelProps> = (
return ( return (
<> <>
<div className={`wall-overlay ${overlayClassName}`} /> <div className={`wall-overlay ${overlayClassName}`} />
<div className="wall grid row"> <div className="wall row justify-content-center">
{maybeRenderScenes()} {maybeRenderScenes()}
{maybeRenderSceneMarkers()} {maybeRenderSceneMarkers()}
</div> </div>

View File

@@ -25,7 +25,7 @@ export const PerformerCard: React.FC<IPerformerCardProps> = (
} }
return ( return (
<Card> <Card className="performer-card">
<Link <Link
to={`/performers/${performer.id}`} to={`/performers/${performer.id}`}
> >

View File

@@ -55,7 +55,7 @@ export const PerformerList: React.FC = () => {
} }
if (filter.displayMode === DisplayMode.Grid) { if (filter.displayMode === DisplayMode.Grid) {
return ( return (
<div className="grid row"> <div className="row justify-content-center">
{result.data.findPerformers.performers.map(p => ( {result.data.findPerformers.performers.map(p => (
<PerformerCard key={p.id} performer={p} /> <PerformerCard key={p.id} performer={p} />
))} ))}

View File

@@ -48,7 +48,7 @@ export const PerformerListTable: React.FC<IPerformerListTableProps> = (
); );
return ( return (
<div className="grid"> <div className="row justify-content-center table-list">
<Table bordered striped> <Table bordered striped>
<thead> <thead>
<tr> <tr>

View File

@@ -17,13 +17,6 @@
float: right; float: right;
margin-right: .5rem; margin-right: .5rem;
} }
&-tabpane-scenes {
.grid {
margin-right: 0;
padding: 0;
}
}
} }
#url-field { #url-field {
@@ -79,3 +72,9 @@
width: 100%; width: 100%;
} }
} }
.card {
&.performer-card {
padding: 0 0 1rem 0;
}
}

View File

@@ -19,7 +19,7 @@ export const ScenePerformerPanel: FunctionComponent<IScenePerformerPanelProps> =
return ( return (
<> <>
<div className="grid">{cards}</div> <div className="row justify-content-center">{cards}</div>
</> </>
); );
}; };

View File

@@ -55,7 +55,7 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
) )
return ( return (
<div className="grid"> <div className="row justify-content-center table-list">
<Table striped bordered> <Table striped bordered>
<thead> <thead>
<tr> <tr>

View File

@@ -194,7 +194,7 @@ export class ScenePlayerImpl extends React.Component<
return ( return (
<ReactJWPlayer <ReactJWPlayer
playerId={JWUtils.playerID} playerId={JWUtils.playerID}
playerScript="http://localhost:9999/jwplayer/jwplayer.js" playerScript="http://192.168.1.65:9999/jwplayer/jwplayer.js"
customProps={config} customProps={config}
onReady={this.onReady} onReady={this.onReady}
onSeeked={this.onSeeked} onSeeked={this.onSeeked}

View File

@@ -18,26 +18,14 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace; font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
} }
.grid { .table-list td {
display: flex; text-align: center;
flex-flow: row wrap; vertical-align: middle;
justify-content: center;
margin: $pt-grid-size $pt-grid-size 0 0;
padding: 0;
&.wall {
margin: 0;
padding: 0;
}
table td {
text-align: center;
vertical-align: middle;
}
} }
.card { .card {
margin: 5px; margin: 5px;
overflow: hidden;
} }
@media (min-width: 576px) { @media (min-width: 576px) {

View File

@@ -30,7 +30,6 @@ $sepia1: #63411e;
$dark-gray2: #202b33; $dark-gray2: #202b33;
$dark-gray5: #394b59; $dark-gray5: #394b59;
$pt-grid-size: 10px;
$pt-navbar-height: 4rem; $pt-navbar-height: 4rem;
.btn.active:not(.disabled), .btn.active:not(.disabled),
@@ -66,15 +65,21 @@ button.minimal {
} }
.nav-tabs { .nav-tabs {
border-bottom-color: gray; border: none;
margin: auto;
.nav-link.active { .nav-link {
border-color: gray; border: none;
border-bottom-color: transparent;
color: $text-color; color: $text-color;
padding: 8px;
&:hover { &.active {
cursor: default; border-bottom: 2px solid;
color: $link-color;
&:hover {
cursor: default;
}
} }
} }
} }