Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #17949 from wilsonpage/bug/991506
Browse files Browse the repository at this point in the history
Bug 991506 - flash and swap buttons respond to touches even when hidden
  • Loading branch information
wilsonpage authored and rvandermeulen committed Apr 9, 2014
1 parent bdd4364 commit 1f0feab
Showing 1 changed file with 22 additions and 15 deletions.
37 changes: 22 additions & 15 deletions apps/camera/style/hud.css
Expand Up @@ -68,46 +68,45 @@
/** Camera Button
---------------------------------------------------------*/

/**
* 1. Hidden by default
*/

.hud_camera {
font-size: 2.6rem;
transition: opacity 300ms;
opacity: 0;
opacity: 0; /* 1 */
}

/**
* @camera-enabled
* camera-enabled=true
*/

.hud[camera-enabled=true] .hud_camera {
opacity: 1;
}

/**
* @camera-hidden
*/

.hud.camera-hidden .hud_camera {
opacity: 0;
}

/**
* @toggling-camera
* camera-enabled=false
*/

.hud[toggling-camera=true] .hud_camera {
background-color: #00b9df;
.hud[camera-enabled=false] .hud_camera {
pointer-events: none;
}


/** Flash Button
---------------------------------------------------------*/

/**
* 1. Hidden by default
*/

.hud_flash {
width: 5.8rem;
height: 5.8rem;
line-height: 5.8rem;
font-size: 2.5rem;
opacity: 0;
opacity: 0; /* 1 */
transition: opacity 300ms;
}

Expand All @@ -118,3 +117,11 @@
.hud[flash-enabled=true] .hud_flash {
opacity: 1;
}

/**
* flash-enabled=false
*/

.hud[flash-enabled=false] .hud_flash {
pointer-events: none;
}

0 comments on commit 1f0feab

Please sign in to comment.