sync both themes with toolkit windows theme changes in Mozilla 52 cycle
[themes.git] / EarlyBlue / mozapps / plugins / pluginProblem.css
index 08d4838ca78106b73abbbdf570781fd14fff4c71..b1a680f928eaf858a8dffab0a89d1bb70fe868f6 100644 (file)
@@ -6,20 +6,45 @@
 
 /* These styles affect only the bound element, not other page content. */
 
+/* Keep any changes to these styles in sync with plugin-doorhanger.inc.css */
 .mainBox {
   text-align: center;
+  display: table;
+  width: 100%;
+  height: 100%;
   background-color: #CCD0DD;
   color: #000000;
-  border-radius: 12px;
-  /* recessed effect with 'disabled' shadow */
-  box-shadow: inset 0 1px 5px #808080;
-  padding: 5px;
   -moz-user-select: none;
-  position: relative;
 }
 
 .hoverBox {
+  display: table-cell;
+  box-sizing: border-box;
   padding: 5px;
+  vertical-align: middle;
+  width: 100%;
+  height: 100%;
+}
+
+:-moz-handler-vulnerable-updatable .hoverBox:active,
+:-moz-handler-vulnerable-no-update .hoverBox:active,
+:-moz-handler-clicktoplay .hoverBox:active {
+  background-color: #CCCCCC;
+}
+
+:-moz-handler-clicktoplay .hoverBox:active .msgTapToPlay,
+:-moz-handler-clicktoplay .hoverBox:active .msgClickToPlay,
+:-moz-handler-vulnerable-updatable .hoverBox:active .msgTapToPlay,
+:-moz-handler-vulnerable-updatable .hoverBox:active .msgClickToPlay,
+:-moz-handler-vulnerable-no-update .hoverBox:active .msgTapToPlay,
+:-moz-handler-vulnerable-no-update .hoverBox:active .msgClickToPlay {
+  color: red;
+}
+
+:-moz-handler-vulnerable-updatable .hoverBox,
+:-moz-handler-vulnerable-no-update .hoverBox,
+:-moz-handler-blocked .hoverBox,
+:-moz-handler-crashed .hoverBox {
 }
 
 html|a {
@@ -27,41 +52,28 @@ html|a {
 }
 
 .icon {
-  display: inline-block;
   width: 48px;
   height: 48px;
   background-position: center;
   background-repeat: no-repeat;
   border: none;
   background-color: transparent;
+  -moz-user-focus: ignore;
+  margin-bottom: 6px;
 }
-:-moz-type-unsupported .icon,
-:-moz-type-unsupported-platform .icon {
-  background-image: url("chrome://mozapps/skin/plugins/contentPluginMissing.png");
-}
-:-moz-type-unsupported .icon[status="ready"] {
-  background-image: url("chrome://mozapps/skin/plugins/contentPluginDownload.png");
-}
+
 :-moz-handler-vulnerable-updatable .icon,
 :-moz-handler-vulnerable-no-update .icon {
-  background-image: url("chrome://mozapps/skin/plugins/contentPluginClickToPlay.png");
-}
-
-:-moz-handler-clicktoplay .icon {
-  background-image: url("chrome://mozapps/skin/plugins/contentPluginClickToPlayPlain.png");
-  background-position: 0 0;
-}
-:-moz-handler-clicktoplay .hoverBox:hover .icon,
-:-moz-handler-clicktoplay .hoverBox:hover:active .icon {
- background-position: -48px 0;
-}
-
-:-moz-handler-disabled .icon {
-  background-image: url("chrome://mozapps/skin/plugins/contentPluginDisabled.png");
+  background-image: url("chrome://mozapps/skin/plugins/contentPluginBlocked.png");
+  -moz-user-focus: normal;
 }
 :-moz-handler-blocked .icon {
   background-image: url("chrome://mozapps/skin/plugins/contentPluginBlocked.png");
 }
+:-moz-handler-clicktoplay .icon {
+  background-image: url("chrome://mozapps/skin/plugins/contentPluginActivate.png");
+  -moz-user-focus: normal;
+}
 :-moz-handler-crashed .icon {
   background-image: url("chrome://mozapps/skin/plugins/contentPluginCrashed.png");
 }
@@ -72,27 +84,21 @@ html|a {
   margin-left: 5px;
 }
 
-.msg {
-  cursor: default;
-  width: 100%;
-}
-
-:-moz-handler-clicktoplay .mainBox,
-:-moz-handler-clicktoplay .icon,
-:-moz-handler-clicktoplay .msgClickToPlay,
-:-moz-handler-vulnerable-updatable .msgClickToPlay,
-:-moz-handler-vulnerable-no-update .msgClickToPlay {
-  cursor: pointer;
+.msgTapToPlay,
+.msgClickToPlay {
+  text-decoration: underline;
 }
 
 @media not all and (-moz-touch-enabled) {
-  :-moz-handler-clicktoplay .msgTapToPlay {
+  :-moz-handler-clicktoplay .msgTapToPlay,
+  a .msgTapToPlay {
     display: none;
   }
 }
 
 @media (-moz-touch-enabled) {
-  :-moz-handler-clicktoplay .msgClickToPlay {
+  :-moz-handler-clicktoplay .msgClickToPlay,
+  a .msgTapToPlay {
     display: none;
   }
 }
@@ -153,48 +159,32 @@ html|a {
 
 .closeIcon {
   display: block;
-  position: absolute;
   width: 16px;
   height: 16px;
-  top: 4px;
-  right: 4px;
+  margin-top: 4px;
+  margin-inline-start: -20px;
+  margin-inline-end: 4px;
   border: none;
   background-color: transparent;
-  background-image: url("chrome://global/skin/icons/close-button.gif");
+  background-image: url("chrome://mozapps/skin/plugins/contentPluginClose.png");
   background-repeat: no-repeat;
 }
 
-.closeIcon:-moz-locale-dir(rtl) {
-  right: auto;
-  left: 4px;
-}
-
-:-moz-handler-clicktoplay .mainBox {
-  background-image: none;
-  background-color: rgba(255, 255, 255, .2);
-  border: 1px dashed rgba(128, 128, 128, 0.5);
-  color: #808080;
-  text-shadow: none;
-  box-shadow: none;
-  transition: background-color 150ms ease;
+.action-link {
+  display: inline-block;
+  border-radius: 10px;
+  background-color: #9999CC;
+  padding: 2px 8px;
+  margin-top: 7px;
+  text-decoration: none;
 }
-
-:-moz-handler-clicktoplay .mainBox:hover,
-:-moz-handler-clicktoplay .mainBox:hover:active {
-  background-color: rgba(255, 255, 255, .8);
+.action-link:active {
+  background-color: #666699;
 }
 
-:-moz-handler-clicktoplay .mainBox,
-:-moz-handler-clicktoplay html|a {
-  color: #000000;
+:-moz-handler-vulnerable-updatable .action-link {
+  background-color: #CCCC60;
 }
-
-:-moz-handler-clicktoplay .hoverBox:hover,
-:-moz-handler-clicktoplay .hoverBox:hover html|a,
-:-moz-handler-clicktoplay .hoverBox:hover:active,
-:-moz-handler-clicktoplay .hoverBox:hover:active html|a {
-}
-
-:-moz-handler-clicktoplay .closeIcon {
-  background-image: url("chrome://mozapps/skin/plugins/contentPluginClose.png");
+:-moz-handler-vulnerable-updatable .action-link:active {
+  background-color: #AAAA40;
 }