Bug 1375783 - Make onboarding tour notification responsive, r=mossop, r=fischer draft
authorTimothy Guan-tin Chien <timdream@gmail.com>
Fri, 23 Jun 2017 15:10:52 +0800
changeset 601657 040a3a6b010997d09345a5a803b0fde817447ae1
parent 601524 217b7fcf58944f927118b465769faeb1e613130a
child 635354 eec6a8810027f646464a86d061d096c4e1576d5a
push id66162
push usertimdream@gmail.com
push dateWed, 28 Jun 2017 23:56:21 +0000
reviewersmossop, fischer
bugs1375783
milestone56.0a1
Bug 1375783 - Make onboarding tour notification responsive, r=mossop, r=fischer Reduce the minimum width of the tour notification bar so the close button is visible even on a smaller window size. MozReview-Commit-ID: KTHM3XPSG8C
browser/extensions/onboarding/content/onboarding.css
--- a/browser/extensions/onboarding/content/onboarding.css
+++ b/browser/extensions/onboarding/content/onboarding.css
@@ -287,17 +287,17 @@
 /* Tour Notifications */
 #onboarding-notification-bar {
   position: fixed;
   z-index: 998; /* We want this always under #onboarding-overlay */
   left: 0;
   bottom: 0;
   width: 100%;
   height: 122px;
-  min-width: 1060px;
+  min-width: 640px;
   background: rgba(255, 255, 255, 0.97);
   border-top: 2px solid #e9e9e9;
   transition: transform 0.8s;
   transform: translateY(122px);
 }
 
 #onboarding-notification-bar.onboarding-opened {
   transform: translateY(0px);
@@ -350,16 +350,20 @@
   transform: translate(-50%, -50%);
 }
 
 #onboarding-notification-body {
   width: 420px;
   margin: 0 15px;
   color: #0c0c0d;;
   display: inline-block;
+  max-height: 100%;
+  overflow: auto;
+  padding: 15px 0;
+  box-sizing: border-box;
 }
 
 #onboarding-notification-body * {
   font-size: 13px
 }
 
 #onboarding-notification-tour-title {
   margin: 0;
@@ -375,8 +379,19 @@
   background: #0d96ff;
   border: none;
   border-radius: 3px;
   padding: 10px 20px;
   font-size: 14px;
   color: #fff;
   box-shadow: 0 1px 0 rgba(0,0,0,0.23);
 }
+
+@media all and (max-width: 960px) {
+  #onboarding-notification-icon {
+    display: none;
+  }
+}
+@media all and (max-width: 720px) {
+  #onboarding-notification-body {
+    width: 340px;
+  }
+}