Bug 1298487 - Modern theme for about:networking. r=IanN a=IanN RELEASE_BASE_20180507
authorPhilip Chee <philip.chee@gmail.com>
Mon, 07 May 2018 13:37:03 +0200
changeset 31470 d1f2c2d881cb
parent 31469 78712c7817d3
child 31471 77e12339f59b
child 31889 119bac89ec21
push id383
push userclokep@gmail.com
push date2018-05-07 21:52 +0000
reviewersIanN, IanN
bugs1298487
Bug 1298487 - Modern theme for about:networking. r=IanN a=IanN
suite/themes/modern/jar.mn
suite/themes/modern/mozapps/aboutNetworking.css
--- a/suite/themes/modern/jar.mn
+++ b/suite/themes/modern/jar.mn
@@ -552,16 +552,17 @@ modern.jar:
   skin/modern/messenger/smime/icons/sbCryptoOk.gif                 (messenger/smime/icons/sbCryptoOk.gif)
   skin/modern/messenger/smime/icons/sbCryptoNotOk.gif              (messenger/smime/icons/sbCryptoNotOk.gif)
   skin/modern/messenger/smime/icons/hdrSignOk.gif                  (messenger/smime/icons/hdrSignOk.gif)
   skin/modern/messenger/smime/icons/hdrSignUnknown.gif             (messenger/smime/icons/hdrSignUnknown.gif)
   skin/modern/messenger/smime/icons/hdrSignNotOk.gif               (messenger/smime/icons/hdrSignNotOk.gif)
   skin/modern/messenger/smime/icons/hdrCryptoOk.gif                (messenger/smime/icons/hdrCryptoOk.gif)
   skin/modern/messenger/smime/icons/hdrCryptoNotOk.gif             (messenger/smime/icons/hdrCryptoNotOk.gif)
   skin/modern/messenger-newsblog/feed-subscriptions.css            (messenger/newsblog/feed-subscriptions.css)
+  skin/modern/mozapps/aboutNetworking.css                          (mozapps/aboutNetworking.css)
   skin/modern/mozapps/downloads/downloadIcon.png                   (mozapps/downloads/downloadIcon.png)
   skin/modern/mozapps/downloads/downloads.css                      (mozapps/downloads/downloads.css)
   skin/modern/mozapps/downloads/unknownContentType.css             (mozapps/downloads/unknownContentType.css)
   skin/modern/mozapps/extensions/about.css                         (mozapps/extensions/about.css)
   skin/modern/mozapps/extensions/alerticon-error.png               (mozapps/extensions/alerticon-error.png)
   skin/modern/mozapps/extensions/alerticon-info-negative.png       (mozapps/extensions/alerticon-info-negative.png)
   skin/modern/mozapps/extensions/alerticon-info-positive.png       (mozapps/extensions/alerticon-info-positive.png)
   skin/modern/mozapps/extensions/alerticon-warning.png             (mozapps/extensions/alerticon-warning.png)
new file mode 100644
--- /dev/null
+++ b/suite/themes/modern/mozapps/aboutNetworking.css
@@ -0,0 +1,151 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+@import url("chrome://global/skin/plugins.css");
+@import url("chrome://global/skin/button.css"); 
+
+html {
+  height: 100%;
+}
+
+body {
+  display: block;
+  align-items: stretch;
+  height: 100%;
+}
+
+#sectionTitle {
+  float: left;
+}
+
+#refreshDiv {
+  text-align: end;
+  margin-bottom: 0.5em;
+}
+
+#refreshButton {
+  vertical-align: middle;
+}
+
+/** Categories **/
+
+#categories > .category
+{
+  -moz-appearance: button;
+  display: inline-block;
+
+  margin: 2px;
+  border: 6px solid;
+  -moz-border-top-colors: transparent transparent transparent #000000 #BBC6D1 #B1BBC9;
+  -moz-border-right-colors: transparent transparent transparent #000000 #A2AEBB #A7B4C1;
+  -moz-border-bottom-colors: transparent transparent transparent #000000 #97A6B6 #9DAAB9;
+  -moz-border-left-colors: transparent transparent transparent #000000 #BBC6D1 #B1BBC9;
+  border-radius: 5px;
+  min-width: 6em;
+  background-color: #AAB6C4;
+  background-clip: padding-box;
+  color: #000000;
+  font: menu;
+}
+
+.category {
+  cursor: pointer;
+  /* Center category names */
+  align-items: center;
+}
+
+.category .category-name {
+  pointer-events: none;
+}
+
+#categories hr {
+  display: none;
+}
+
+/** Warning container **/
+
+/* XXX: a lot of this is duplicated from info-pages.css since that stylesheet
+   is incompatible with this type of layout */
+.warningBackground:not([hidden]) {
+  display: flex;
+}
+
+.warningBackground {
+  flex-direction: column;
+  box-sizing: border-box;
+  align-items: center;
+  justify-content: center;
+  width: 100%;
+  height: 50%;
+  top: 0;
+  left: 0;
+  position: fixed;
+}
+
+.container {
+  width: 40%;
+  color: #22262F;
+  background-color: #C7D0D9;
+  background-image: url("chrome://global/skin/icons/warning-48.png");
+  background-repeat: no-repeat;
+  background-position: 30px 3em;
+  border: 1px solid #494F5D;
+  border-radius: 10px;
+  padding: 3em;
+  padding-inline-start: 78px;
+}
+
+.title {
+  display: inline-block;
+  font-size: 1rem;
+  position: relative;
+  border-bottom: 1px solid #000000;
+  margin-bottom: 1em;
+  padding-bottom: 0.5em;
+}
+
+.warningBackground button {
+  margin-top: 1em;
+  margin-left: 0;
+  min-width: 100px;
+}
+
+/** Content area **/
+
+.warningBackground:not([hidden]) ~ div
+{
+  display: none;
+}
+
+.main-content {
+  flex: 1;
+  margin: 5px 0px;
+  padding: 5px;
+  border: 1px solid #2D3B49;
+  border-radius: 6px;
+}
+
+.header-name {
+  font-size: 1.5rem;
+  font-weight: bold;
+} 
+
+.tab {
+  padding: 0.5em 0;
+}
+
+.tab table {
+  border: 1px solid;
+  width: 100%;
+}
+
+th, td, table {
+  text-align: start;
+}
+
+th {
+  font-size: medium;
+  text-align: start;
+  border-top: 1px dotted #2D3B49;
+}