Skip to content

Commit

Permalink
Better navigation done
Browse files Browse the repository at this point in the history
  • Loading branch information
midstar committed Feb 26, 2019
1 parent 19de9eb commit a6af79e
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 9 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ View your images and play your videos:

![viewer](testmedia/screenshot_viewer.jpg)

Swipe (mouse or mobile touch) to switch between images/videos:

![viewer](testmedia/screenshot_viewer_swipe.jpg)

## Features

* Simple WEB GUI for viewing your images and videos both on your PC and on your mobile phone
Expand Down
69 changes: 60 additions & 9 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,17 @@
border-radius: 3px;
}

@media (min-resolution: 250dpi) {
/* This is a high resolution device (such as a mobile) */
@media (min-resolution: 250dpi) and (orientation : portrait) {
/* Mobile device in portrait mode */
#navigator {
font-size: 40px;
}
}

@media (min-resolution: 250dpi) and (orientation : landscape) {
/* Mobile device in landscape mode */
#navigator {
font-size: 30px;
font-size: 20px;
}
}

Expand All @@ -47,10 +54,17 @@
margin-top: 40px; /* To not hit navigator */
}

@media (min-resolution: 250dpi) {
/* This is a high resolution device (such as a mobile) */
@media (min-resolution: 250dpi) and (orientation : portrait) {
/* Mobile device in portrait mode */
.items {
margin-top: 60px;
margin-top:70px;
}
}

@media (min-resolution: 250dpi) and (orientation : landscape) {
/* Mobile device in landscape mode */
.items {
margin-top:45px;
}
}

Expand Down Expand Up @@ -189,12 +203,21 @@

.media-caption {
width: 100%;
height: 30px;
margin-top: 5px;
height: 35px;
font-size: 15px;
margin-top: 10px;
color: white;
text-align: center; /* center content inside div */
}

@media (min-resolution: 250dpi) and (orientation : portrait) {
/* Mobile device in portrait mode */
.media-caption {
font-size: 25px;
margin-top: 5px;
}
}

/* Add Animation (when opening) */
.media-viewer {
-webkit-animation-name: zoom;
Expand All @@ -217,12 +240,26 @@
.media-button {
position: absolute;
color: #f1f1f1;
font-size: 80px;
font-size: 40px;
font-weight: bold;
transition: 0.3s;
z-index: 3; /* Sit on top */
}

@media (min-resolution: 250dpi) and (orientation : portrait) {
/* Mobile device in portrait mode */
.media-button {
font-size: 120px;
}
}

@media (min-resolution: 250dpi) and (orientation : landscape) {
/* Mobile device in landscape mode */
.media-button {
font-size:55px;
}
}

.media-button:hover,
.media-button:focus {
color: #bbb;
Expand All @@ -235,6 +272,20 @@
right: 35px;
}

@media (min-resolution: 250dpi) and (orientation : portrait) {
/* This is a high resolution device (such as a mobile) */
#na vigator{
font-size: 40px;
}
}

@media (min-resolution: 250dpi) and (orientation : landscape) {
/* This is a high resolution device (such as a mobile) */
#navigator {
font-size: 20px;
}
}

</style>

<script>
Expand Down
Binary file modified testmedia/screenshot_browser.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified testmedia/screenshot_viewer.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added testmedia/screenshot_viewer_swipe.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a6af79e

Please sign in to comment.