Skip to content

Commit

Permalink
Tidy-ups to style of mobile layout and spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
damianmoore committed Jan 2, 2019
1 parent cba2e14 commit b7ac674
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/Spinner.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import spinner from '../static/images/spinner.svg'

const Spinner = ({ active }) => (
<span className="Spinner">
<img src={spinner} alt="spinner" />
<img src={spinner} />
</span>
)

Expand Down
6 changes: 6 additions & 0 deletions ui/src/static/css/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,9 @@ footer {
#content::-webkit-scrollbar {
display: none;
}

@media all and (max-width: 700px) {
header {
height: 330px;
}
}
7 changes: 7 additions & 0 deletions ui/src/static/css/Filters.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,10 @@
.FilterGroup li.Black {
background: rgb(0, 0, 0);
}

@media all and (max-width: 700px) {
.FilterGroup {
width: 180px;
height: 250px;
}
}
11 changes: 10 additions & 1 deletion ui/src/static/css/PhotoList.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,13 @@
background-size: cover;
background-position: center;
}


@media all and (max-width: 700px) {
.PhotoList {
padding: 20px 0 0 20px;
}
.PhotoList .thumbnail {
width: 96px;
height: 96px;
}
}
8 changes: 7 additions & 1 deletion ui/src/static/css/Search.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@
}
.Search h2 {
font-size: 18px;
}
}

@media all and (max-width: 700px) {
.Search {
padding: 20px;
}
}
2 changes: 1 addition & 1 deletion ui/src/static/css/Spinner.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.Spinner {
margin: 40px;
padding: 40px;
display: block;
text-align: center;
}
Expand Down

0 comments on commit b7ac674

Please sign in to comment.