Skip to content

Commit

Permalink
fix(header): more enchantment over header
Browse files Browse the repository at this point in the history
  • Loading branch information
DEgITx committed May 13, 2018
1 parent 1907f68 commit 006bb2c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/app.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.header .header-row {
min-height: 360px;
min-height: 330px;
}

.header.sticky .header-row {
Expand Down Expand Up @@ -28,4 +28,5 @@

.header.sticky .counter-statistic {
opacity: 0;
margin: 0 !important;
}
26 changes: 26 additions & 0 deletions src/app/css/izi/components.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,30 @@
top: 6px;
padding-left: 0px;
}
}

@media only screen and (max-width: 840px)
{
.header-row {
flex-wrap: wrap;
align-content: flex-start;
justify-content: flex-start;
}

.search-panel {
margin-left: inherit !important;
}

.header .header-row {
min-height: 450px;
}

.search-panel {
margin-top: 0px !important;
padding-left: 6px;
}

.search-row {
min-width: 30em !important;
}
}
2 changes: 1 addition & 1 deletion src/app/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Search extends Component {

return (
<div className="column w100p center">
<div className='row inline w100p pad0-75' style={{minWidth: '35em', backgroundColor: 'white', paddingTop: 0, paddingBottom: 0, margin: 5, borderRadius: 3}}>
<div className='row inline w100p pad0-75 search-row' style={{minWidth: '35em', backgroundColor: 'white', paddingTop: 0, paddingBottom: 0, margin: 5, borderRadius: 3}}>
<TextField
style={{marginTop: -12}}
hintText="Search torrent or file"
Expand Down
2 changes: 2 additions & 0 deletions src/app/torrent-statistic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default class TorrentsStatistic extends Component {
render()
{
return (
<div style={{position: 'relative', width: '100%', height: 0}}>
<div className='column w100p counter-statistic' style={{backgroundColor: 'rgba(0,0,0,0.7)', padding: 8, borderRadius: 4, marginTop: 2, marginBottom: 100}}>
<div className='row w100p' style={{backgroundColor: 'rgba(0,0,0,0.7)', padding: 8, borderRadius: 4}}>
<div className='row inline' style={{color: '#e5f442', fontSize: '1.15em', fill: '#e5f442'}}>
Expand Down Expand Up @@ -281,6 +282,7 @@ export default class TorrentsStatistic extends Component {
</div>

</div>
</div>
)
}
}

0 comments on commit 006bb2c

Please sign in to comment.