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 => (
<LinkContainer
activeClassName="active"
exact
to={i.href}
key={i.href}
>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -19,7 +19,7 @@ export const ScenePerformerPanel: FunctionComponent<IScenePerformerPanelProps> =
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 (
<div className="grid">
<div className="row justify-content-center table-list">
<Table striped bordered>
<thead>
<tr>

View File

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

View File

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

View File

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