support new help button and update deck in prefs
authorRobert Kaiser <kairo@kairo.at>
Sun, 21 May 2017 18:05:06 +0000 (20:05 +0200)
committerRobert Kaiser <kairo@kairo.at>
Sun, 21 May 2017 18:05:06 +0000 (20:05 +0200)
LCARStrek/browser/preferences/in-content/preferences.css
LCARStrek/global/in-content/help-glyph.svg

index 32b9f93e63673e280a516b255200daf787f21ec3..4ed9cc01a6cdd2ab33c3e6519873009411bae7f7 100644 (file)
@@ -164,8 +164,12 @@ treecol {
   .category-name {
     display: none;
   }
+  .help-button {
+    font-size: 0 !important;
+  }
 }
 
+
 /* header */
 
 .header {
@@ -652,6 +656,61 @@ description > html|a {
   }
 }
 
+#updateDeck > hbox > label {
+  margin-inline-end: 5px ! important;
+}
+
+.update-throbber {
+  width: 16px;
+  min-height: 16px;
+  margin-inline-end: 3px;
+  list-style-image: url("chrome://global/skin/icons/loading.png");
+}
+
+@media (min-resolution: 1.1dppx) {
+  .update-throbber {
+    list-style-image: url("chrome://global/skin/icons/loading@2x.png");
+  }
+}
+
+.help-button {
+  position: fixed;
+  left: 3px;
+  /* Needs to have enough gap from the bottom to not
+     get behind the status panel (bug 1357841). */
+  bottom: 2rem;
+  font-size: 13px;
+  line-height: 13px;
+  height: 14px;
+  background-position: 5px;
+  padding-inline-start: 25px;
+  white-space: nowrap;
+  background-color: var(--in-content-category-background);
+  width: auto;
+  padding-inline-end: 10px;
+  border: 3px solid black;
+  border-radius: 0 300px 300px 0;
+}
+
+.help-button:-moz-locale-dir(rtl) {
+  left: auto;
+  right: 0;
+  background-position: right 15px top 0;
+}
+
+.help-button:link,
+.help-button:visited {
+  color: var(--in-content-category-text);
+  text-decoration: none;
+}
+
+.help-button:hover {
+  background-image: url("chrome://global/skin/in-content/help-glyph.svg#help-inverted");
+  color: var(--in-content-category-text-selected);
+  background-color: var(--in-content-category-background-hover);
+  border-color: var(--in-content-category-background-hover);
+}
+
 /* === END shared/incontentprefs/preferences.inc.css === */
 
 caption {
index 1374351fc8c5845c37bfb6bf00ffb00e5deb3160..4ff69094086c1d5111ee0a67547a2f0ba5222741 100644 (file)
@@ -13,6 +13,9 @@
 
     #help-pressed path { fill: #000000; }
     #help-pressed circle { fill: #FF9F00; stroke: #FF9F00; }
+
+    #help-inverted path { fill: #A09090; }
+    #help-inverted circle { fill: #000000; stroke: #000000; }
   </style>
 
   <defs>
@@ -25,4 +28,5 @@
   <use id="help"          xlink:href="#help-shape" />
   <use id="help-hover"    xlink:href="#help-shape" />
   <use id="help-pressed"  xlink:href="#help-shape" />
+  <use id="help-inverted"  xlink:href="#help-shape" />
 </svg>