Skip to content

Commit

Permalink
reverted the hiding of UI elements on home page when mouse out (was c…
Browse files Browse the repository at this point in the history
…omfusing on mobile and annoying on pc)

removed drop shadow around canvas
added meta to tell android to start app fullscreen from home screen
  • Loading branch information
renanlecaro committed Jul 26, 2017
1 parent a062f52 commit 470d941
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 26 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.css.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@
<title>Minimage : minimal image editor</title>
<meta name="description" content="Free web app to draw on your images. Works on mobile. No watermark."/>
<link rel="manifest" href="./manifest.json">
<link rel="stylesheet" href="/dist/main.css?cachebust=28655">

<link rel="stylesheet" href="/dist/main.css?cachebust=23380">
<!-- Launch fullscreen when added to home screen -->
<meta name="mobile-web-app-capable" content="yes">
</head>
<body>
<noscript><h1>This app requires javascript to be enabled, sorry.</h1></noscript>
Expand Down Expand Up @@ -42,7 +43,7 @@
</div>
</div>
<div id="spinners"/><i></i><i></i><i></i></spinner>
<script src="./dist/bundle.js?cachebust=28655"></script>
<script src="./dist/bundle.js?cachebust=23380"></script>
</script>

</body>
Expand Down
40 changes: 20 additions & 20 deletions src/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ canvas#welcome {
padding: 5px;
color: white;
}
transform: translate(0, 100%);
transition: transform 0.2s;
// transform: translate(0, 100%);
// transition: transform 0.2s;
}
// Show links when cursor in page
#inputForAFile:hover .links {
transform: none;
}
// #inputForAFile:hover .links {
// transform: none;
// }

#fileInputWrapper {
background: white;
Expand All @@ -100,21 +100,21 @@ canvas#welcome {
max-height: 250px;
border-radius: 50%;

opacity: 0;
transform: scale(0.5);
transition: opacity 0.1s, transform 0.3s;
}

#inputForAFile:hover {
#fileInputWrapper {
opacity: 1;
transform: scale(1);
&:hover {
opacity: 1;
transform: scale(1.2);
}
}
// opacity: 0;
// transform: scale(0.5);
// transition: opacity 0.1s, transform 0.3s;
}
//
// #inputForAFile:hover {
// #fileInputWrapper {
// opacity: 1;
// transform: scale(1);
// &:hover {
// opacity: 1;
// transform: scale(1.2);
// }
// }
// }
#inputForAFile,
#fileinput,
canvas#drawzone {
Expand Down Expand Up @@ -151,7 +151,7 @@ div#drawAndDownload {
max-width: 100%;
max-height: 100%;
margin: auto;
box-shadow: 0 0 70px rgba(0, 0, 0, 0.5);
// box-shadow: 0 0 70px rgba(0, 0, 0, 0.5);
border-radius: 2px;
width: auto;
height: auto;
Expand Down

0 comments on commit 470d941

Please sign in to comment.