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

Bug 1059967 - Updating SHB to conform to UX v1.0 spec #23646

Merged
merged 1 commit into from Sep 11, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/system/index.html
Expand Up @@ -65,7 +65,7 @@
<script defer src="shared/elements/gaia_overflow_menu/script.js"></script>
-->


<link rel="stylesheet" type="text/css" href="style/definitions.css">
<link rel="stylesheet" type="text/css" href="style/attention_indicator.css">

<!-- System -->
Expand Down Expand Up @@ -168,6 +168,10 @@
<link rel="stylesheet" type="text/css" href="style/action_menu/action_menu_extended.css">
<script defer src="js/action_menu.js"></script>

<!-- Date and Time Selector Extension -->
<link rel="stylesheet" type="text/css" href="style/date_selector/date_selector_extended.css">
<link rel="stylesheet" type="text/css" href="style/time_selector/time_selector_extended.css">

<!-- Ime Menu -->
<script defer src="js/ime_menu.js"></script>

Expand Down
12 changes: 11 additions & 1 deletion apps/system/style/action_menu/action_menu_extended.css
@@ -1,6 +1,16 @@
#screen.software-button-enabled [role="dialog"][data-type="action"],
#screen.software-button-enabled [role="dialog"][data-type="object"] {
bottom: 5rem;
bottom: var(--software-home-button-height);
}

#screen.fullscreen-layout-app.software-button-enabled [role="dialog"][data-type="action"] {
height: calc(100% - 7rem - var(--software-home-button-height));
}

@media (orientation: landscape) {
#screen.fullscreen-layout-app.software-button-enabled [role="dialog"][data-type="action"] {
height: calc(100% - 7rem);
}
}

/* Extending action menu with icon capability & transition*/
Expand Down
2 changes: 1 addition & 1 deletion apps/system/style/authentication_dialog.css
Expand Up @@ -10,7 +10,7 @@
}

#screen.fullscreen-layout-app.software-button-enabled .authentication-dialog {
height: calc(100% - 3rem - 5rem);
height: calc(100% - 3rem - var(--software-home-button-height));
}

@media (orientation: landscape) {
Expand Down
8 changes: 4 additions & 4 deletions apps/system/style/cards_view/cards_view.css
Expand Up @@ -14,14 +14,14 @@

@media not all and (-moz-physical-home-button) {
#screen:not(.software-button-disabled) #cards-view {
height: calc(100% - 5rem);
bottom: 5rem;
height: calc(100% - var(--software-home-button-height));
bottom: var(--software-home-button-height);
}
}

#screen.software-button-enabled #cards-view {
height: calc(100% - 5rem);
bottom: 5rem;
height: calc(100% - var(--software-home-button-height));
bottom: var(--software-home-button-height);
}

#cards-view.active {
Expand Down
9 changes: 9 additions & 0 deletions apps/system/style/date_selector/date_selector_extended.css
@@ -0,0 +1,9 @@
#screen.fullscreen-layout-app.software-button-enabled [role="dialog"][data-type="date-selector"] {
height: calc(100% - 7rem - var(--software-home-button-height));
}

@media (orientation: landscape) {
#screen.fullscreen-layout-app.software-button-enabled [role="dialog"][data-type="date-selector"] {
height: calc(100% - 7rem);
}
}
5 changes: 5 additions & 0 deletions apps/system/style/definitions.css
@@ -0,0 +1,5 @@
/*csslint empty-rules: false*/
/* See bug 1053721 */
:root {
--software-home-button-height: 4.4rem;
}
2 changes: 1 addition & 1 deletion apps/system/style/edges/edges.css
Expand Up @@ -38,7 +38,7 @@
@media (orientation: portrait) {
#screen.software-button-enabled #right-panel,
#screen.software-button-enabled #left-panel {
height: calc(100% - 10rem - 5rem);
height: calc(100% - 10rem - var(--software-home-button-height));
}
}

Expand Down
2 changes: 1 addition & 1 deletion apps/system/style/modal_dialog/modal_dialog.css
Expand Up @@ -33,7 +33,7 @@
}

#screen.fullscreen-layout-app.software-button-enabled .appWindow > .modal-dialog {
height: calc(100% - 5rem);
height: calc(100% - var(--software-home-button-height));
}

@media (orientation: landscape) {
Expand Down
2 changes: 1 addition & 1 deletion apps/system/style/modal_dialog/prompt.css
Expand Up @@ -53,5 +53,5 @@ form[role="dialog"][data-type="confirm"] {
/* Shift the bottom of the prompt to account for the height of the
software home button */
#screen.software-button-enabled form[role="dialog"][data-type="confirm"] {
bottom: 5rem;
bottom: var(--software-home-button-height);
}
14 changes: 7 additions & 7 deletions apps/system/style/permission_manager/permission_manager.css
Expand Up @@ -11,7 +11,7 @@
}

#screen.fullscreen-layout-app.software-button-enabled #permission-screen {
height: calc(100% - 5rem);
height: calc(100% - var(--software-home-button-height));
}

@media (orientation: landscape) {
Expand Down Expand Up @@ -44,29 +44,29 @@

@media not all and (-moz-physical-home-button) {
#screen:not(.software-button-disabled) #permission-screen {
height: calc(100% - 5rem);
height: calc(100% - var(--software-home-button-height));
}

#screen.attention:not(.software-button-disabled) #permission-screen {
height: calc(100% - 4rem - 5rem);
height: calc(100% - 4rem - var(--software-home-button-height));
}

#screen.fullscreen-app:not(.software-button-disabled) #permission-screen {
height: calc(100% - 5rem);
height: calc(100% - var(--software-home-button-height));
}
}

#screen.software-button-enabled #permission-screen {
height: calc(100% - 5rem);
height: calc(100% - var(--software-home-button-height));
}

#screen.software-button-enabled.attention #permission-screen {
height: calc(100% - 4rem - 5rem);
height: calc(100% - 4rem - var(--software-home-button-height));
}


#screen.software-button-enabled.fullscreen-app #permission-screen {
height: calc(100% - 5rem);
height: calc(100% - var(--software-home-button-height));
}

#permission-title {
Expand Down
8 changes: 4 additions & 4 deletions apps/system/style/rocketbar/rocketbar.css
Expand Up @@ -131,9 +131,9 @@
}

/* Rocketbar results is normally 7rem tall and should be adjusted by the
height of the SHB of 5rem when enabled */
height of the SHB when enabled */
#screen.software-button-enabled #rocketbar-results {
height: calc(100% - 12rem);
height: calc(100% - 7rem - var(--software-home-button-height));
}

#rocketbar-results.hidden, #rocketbar-results iframe.hidden,
Expand All @@ -149,11 +149,11 @@

@media (orientation:landscape) {
#screen.software-button-enabled #rocketbar {
width: calc(100% - 5rem);
width: calc(100% - var(--software-home-button-height));
}

#screen.software-button-enabled #rocketbar-results {
height: calc(100% - 7rem);
width: calc(100% - 5rem);
width: calc(100% - var(--software-home-button-height));
}
}
Expand Up @@ -4,16 +4,19 @@
align-items: center;
text-align: center;
right: 0;
bottom: -5rem;
bottom: calc(var(--software-home-button-height) * -1);
left: 0;
position: absolute;
background: black;
height: 5rem;
height: var(--software-home-button-height);
transition-duration: 0.4s;
transition-timing-function: ease-in-out;
visibility: hidden;
}

#software-buttons {
background: black;
}

#software-buttons.no-transition {
transition: none;
}
Expand All @@ -25,6 +28,7 @@

#software-buttons-fullscreen-layout {
bottom: 0;
background: none;
}

#screen.fullscreen-layout-app #software-buttons-fullscreen-layout {
Expand All @@ -43,10 +47,10 @@
#software-buttons,
#software-buttons-fullscreen-layout {
top: 0;
right: -5rem;
right: calc(var(--software-home-button-height) * -1);
bottom: 0;
left: auto;
width: 5rem;
width: var(--software-home-button-height);
height: auto;
}

Expand All @@ -62,25 +66,34 @@
#software-home-button,
#fullscreen-software-home-button,
#fullscreen-layout-software-home-button {
width: 4rem;
height: 4rem;
--button-width: 2.6rem;
width: var(--button-width);
height: var(--button-width);
margin: 0 auto;
background: transparent;
border: 0.2rem solid white;
border-width: 0.35rem;
border-style: solid;
border-color: #ffffff;
border-radius: 50%;
box-sizing: border-box;
}

#fullscreen-software-home-button,
#fullscreen-layout-software-home-button {
opacity: 0.8;
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.45), inset 0 1px 5px 0 rgba(0, 0, 0, 0.45);
}

#software-home-button.active,
#fullscreen-software-home-button.active,
#fullscreen-layout-software-home-button.active {
box-shadow: 0 0 1rem white;
border-color: #00caf2;
}

#fullscreen-software-home-button {
position: absolute;
bottom: 0.5rem;
left: calc(50% - 2.5rem);
left: calc(50% - var(--button-width) / 2);
opacity: 0.5;
visibility: hidden;
}
Expand All @@ -94,7 +107,7 @@
top: auto;
left: auto;
right: 0.5rem;
bottom: calc(50% - 2.5rem);
bottom: calc(50% - var(--button-width) / 2);
}
}

Expand Down
2 changes: 1 addition & 1 deletion apps/system/style/statusbar/statusbar.css
Expand Up @@ -21,7 +21,7 @@
@media (orientation: landscape) {
#screen.software-button-enabled #statusbar-background,
#screen.software-button-enabled #statusbar {
width: calc(100% - 5rem);
width: calc(100% - var(--software-home-button-height));
}
}

Expand Down
6 changes: 3 additions & 3 deletions apps/system/style/system/keyboard.css
Expand Up @@ -25,17 +25,17 @@

@media not all and (-moz-physical-home-button) {
#screen:not(.software-button-disabled) #keyboards {
bottom: 5rem;
bottom: var(--software-home-button-height);
}
}

#screen.software-button-enabled #keyboards {
bottom: 5rem;
bottom: var(--software-home-button-height);
}

@media (orientation: landscape) {
#screen.software-button-enabled #keyboards {
right: 5rem;
right: var(--software-home-button-height);
bottom: 0;
left: 0;
width: auto;
Expand Down
6 changes: 3 additions & 3 deletions apps/system/style/system/system.css
Expand Up @@ -276,8 +276,8 @@ body {
}

#screen.software-button-enabled #windows + #dialog-overlay {
bottom: 5rem;
height: calc(100% - 3rem - 5rem);
bottom: var(--software-home-button-height);
height: calc(100% - 3rem - var(--software-home-button-height));
}

#screen.active-statusbar #dialog-overlay,
Expand Down Expand Up @@ -338,7 +338,7 @@ body {

/* Banner should be offset when software home button is enabled */
#screen.software-button-enabled .generic-dialog.banner {
bottom: 5rem;
bottom: var(--software-home-button-height);
}

.generic-dialog.banner.visible {
Expand Down
9 changes: 9 additions & 0 deletions apps/system/style/time_selector/time_selector_extended.css
@@ -0,0 +1,9 @@
#screen.fullscreen-layout-app.software-button-enabled [role="dialog"][data-type="time-selector"] {
height: calc(100% - 7rem - var(--software-home-button-height));
}

@media (orientation: landscape) {
#screen.fullscreen-layout-app.software-button-enabled [role="dialog"][data-type="time-selector"] {
height: calc(100% - 7rem);
}
}
8 changes: 4 additions & 4 deletions apps/system/style/utility_tray/utility_tray.css
Expand Up @@ -20,14 +20,14 @@

@media (orientation: portrait) {
#screen.software-button-enabled #utility-tray {
top: calc(-100% + 6rem + 5rem);
height: calc(100% - 3rem - 5rem);
top: calc(-100% + 6rem + var(--software-home-button-height));
height: calc(100% - 3rem - var(--software-home-button-height));
}
}

@media (orientation: landscape) {
#screen.software-button-enabled #utility-tray {
width: calc(100% - 5rem);
width: calc(100% - var(--software-home-button-height));
}
}

Expand Down Expand Up @@ -76,6 +76,6 @@

@media (orientation: landscape) {
#screen.software-button-enabled #utility-tray-notifications {
width: calc(100% - 5rem);
width: calc(100% - var(--software-home-button-height));
}
}
13 changes: 12 additions & 1 deletion apps/system/style/value_selector/value_selector.css
Expand Up @@ -15,10 +15,21 @@
height: calc(100% - 7rem);
}

#screen.fullscreen-layout-app.software-button-enabled [role="dialog"][data-type="value-selector"] {
height: calc(100% - 7rem - var(--software-home-button-height));
}

@media (orientation: landscape) {
#screen.fullscreen-layout-app.software-button-enabled [role="dialog"][data-type="value-selector"] {
height: calc(100% - 7rem);
}
}

#screen.fullscreen-layout-app.software-button-enabled .generic-dialog[role="dialog"] .value-selector {
height: calc(100% - 5rem - 7rem);
height: calc(100% - 7rem - var(--software-home-button-height));
}


@media (orientation: landscape) {
#screen.fullscreen-layout-app.software-button-enabled .generic-dialog[role="dialog"] .value-selector {
height: calc(100% - 7rem);
Expand Down
2 changes: 1 addition & 1 deletion apps/system/style/window.css
Expand Up @@ -561,7 +561,7 @@

@media (orientation: landscape) {
#screen.software-button-enabled:not(.fullscreen-layout-app) #windows > .appWindow.outside-edges-right {
transform: translateX(calc(100% + 5rem));
transform: translateX(calc(100% + var(--software-home-button-height)));
}
}

Expand Down