first part of syncing LCARStrek with Firefox 54 browser windows theme changes
[themes.git] / LCARStrek / browser / preferences / in-content / preferences.css
index ac4160cfaf1b51bc482db2832cf7332bc74285c6..151b4995d2f39710873fc6edd299392d2586a064 100644 (file)
    - 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/. */
 
-/* === BEGIN shared/in-content/preferences.css === */
+/* === BEGIN shared/incontentprefs/preferences.inc.css === */
 
 @namespace html "http://www.w3.org/1999/xhtml";
 
-@font-face {
-  font-family: "Clear Sans";
-  src: url("chrome://browser/skin/fonts/ClearSans-Regular.ttf");
+.main-content {
+  padding: 1.5em 0 0; /* That padding needs to match the upper stripe. */
+  overflow: auto;
+
+  /* This actually results in two black boxes extending to the right and bottom,
+   * leaving the LCARS-gray background only in a top stripe and
+   * a bit larger area on the top left.
+   * The prefpane will overlay that with the rounded shape we want. */
+  background-color: #A09090;
+  background-position: 3em 1.5em, 0px 5em;
+  background-image: linear-gradient(0deg, #000, #000), linear-gradient(0deg, #000, #000);
+  background-repeat: no-repeat;
 }
 
-page {
+#mainPrefPane {
+  padding: 10px 20px 0px;
+  border-radius: 1em 0 0 0;
   background-color: #000000;
-}
 
-caption {
-  -moz-appearance: none;
-  margin: 0;
+  max-width: 800px;
+  font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif;
+  font-size: 1.25rem;
+  color: #FF9F00;
 }
 
-.caption-text {
-  font-size: 1.3rem;
-  font-weight: bold;
-  line-height: 22px;
-  margin: 0 !important;
+* {
+  -moz-user-select: text;
 }
 
-.main-content {
-  max-width: 800px;
+button,
+treecol {
+  /* override the * rule */
+  -moz-user-select: none;
 }
-
-prefpane > .content-box {
-  overflow: auto;
+/*
+#engineList treechildren::-moz-tree-image(engineShown, checked),
+#blocklistsTree treechildren::-moz-tree-image(selectionCol, checked) {
+  list-style-image: url("chrome://global/skin/in-content/check.svg#check");
+  width: 21px;
+  height: 21px;
 }
 
-prefpane {
-  padding: 40px 48px 48px;
-  font-family: "Clear Sans", sans-serif;
-  font-size: 1.25rem;
-  line-height: 22px;
-  color: #000000;
+#engineList treechildren::-moz-tree-image(engineShown, checked, selected),
+#blocklistsTree treechildren::-moz-tree-image(selectionCol, checked, selected) {
+  list-style-image: url("chrome://global/skin/in-content/check.svg#check-inverted");
 }
 
-prefpane > .content-box {
-  overflow: auto;
+#engineList treechildren::-moz-tree-row,
+#blocklistsTree treechildren::-moz-tree-row {
+  min-height: 36px;
 }
-
-/* groupboxes */
-
-groupbox {
+*/
+#selectionCol {
+  min-width: 26px;
 }
 
-groupbox label {
+.learnMore {
+  margin-inline-start: 10px;
+  font-weight: normal;
+  white-space: nowrap;
 }
 
-/* tabpanels and tabs */
+/* Category List */
 
-tabpanels {
+#categories {
+  max-height: 100vh;
 }
 
-tabs {
+#categories > scrollbox {
+  overflow-x: hidden !important;
 }
 
-.tabs-left,
-.tabs-right {
+/**
+ * We want the last category to always have non-0 getBoundingClientRect().bottom
+ * so we can use the value to figure out the max-height of the list in
+ * preferences.js, so use collapse instead of display: none; if it's hidden
+ */
+#categories > .category[hidden="true"] {
+  display: -moz-box;
+  visibility: collapse;
 }
 
-tab {
+#category-general > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#general");
 }
 
-tab[selected] {
+#category-general:hover > .category-icon,
+#category-general[selected] > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#general-active");
 }
 
-.tab-text {
+#category-search > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#search");
 }
 
-tab:not([selected]):hover > .tab-middle > .tab-text {
+#category-search:hover > .category-icon,
+#category-search[selected] > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#search-active");
 }
 
-tab:not([selected]):hover:active > .tab-middle > .tab-text {
+#category-content > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#content");
 }
 
-tab[selected] > .tab-middle > .tab-text {
+#category-content:hover > .category-icon,
+#category-content[selected] > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#content-active");
 }
 
-/* buttons and menulists */
-
-button,
-menulist {
+#category-application > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#applications");
 }
 
-button:not([disabled]):hover,
-menulist:not([disabled]):hover {
+#category-application:hover > .category-icon,
+#category-application[selected] > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#applications-active");
 }
 
-button:not([disabled]):hover:active,
-menulist[open="true"]:not([disabled]) {
+#category-privacy > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#privacy");
 }
 
-button[disabled],
-menulist[disabled] {
+#category-privacy:hover > .category-icon,
+#category-privacy[selected] > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#privacy-active");
 }
 
-button > .button-box,
-menulist > .menulist-label-box {
+#category-security > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#security");
 }
 
-button[type="menu"] > .button-box > .button-menu-dropmarker {
+#category-security:hover > .category-icon,
+#category-security[selected] > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#security-active");
 }
 
-.spinbuttons-button {
+#category-sync > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#sync");
 }
 
-.spinbuttons-up {
+#category-sync:hover > .category-icon,
+#category-sync[selected] > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#sync-active");
 }
 
-.spinbuttons-down  {
+#category-advanced > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#advanced");
 }
 
-.spinbuttons-button > .button-box {
+#category-advanced:hover > .category-icon,
+#category-advanced[selected] > .category-icon {
+  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.svg#advanced-active");
 }
 
-.spinbuttons-up > .button-box > .button-icon {
+@media (max-width: 800px) {
+  .category-name {
+    display: none;
+  }
 }
 
-.spinbuttons-up[disabled] > .button-box > .button-icon {
-}
+/* header */
 
-.spinbuttons-down > .button-box > .button-icon {
+.header {
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
 }
 
-.spinbuttons-down[disabled] > .button-box > .button-icon {
+.header[hidden=true] {
+  display: none;
 }
 
-menulist:not([editable="true"]) > .menulist-dropmarker {
+#header-advanced {
+  border-bottom: none;
+  padding-bottom: 0;
 }
 
-menulist[disabled]:not([editable="true"]) > .menulist-dropmarker {
+.indent {
+  margin-top: 7px;
+  margin-bottom: 7px;
 }
 
-menulist > menupopup,
-button[type="menu"] > menupopup {
-}
+/* General Pane */
 
-menulist > menupopup menu,
-menulist > menupopup menuitem,
-button[type="menu"] > menupopup menu,
-button[type="menu"] > menupopup menuitem {
+#startupTable {
+  border-collapse: collapse;
 }
 
-menulist > menupopup > menu[_moz-menuactive="true"],
-menulist > menupopup > menuitem[_moz-menuactive="true"],
-button[type="menu"] > menupopup > menu[_moz-menuactive="true"],
-button[type="menu"] > menupopup > menuitem[_moz-menuactive="true"] {
+#startupTable > tr > td {
+  padding: 0; /* remove the padding from html.css */
 }
 
-menulist > menupopup menuseparator,
-button[type="menu"] > menupopup menuseparator {
+#startupTable > tr:not(:first-child) > td {
+  padding-top: 0.5em; /* add a spacing between the rows */
 }
 
-/* textboxes */
-
-textbox {
+#startupTable > tr > .label-cell {
+  text-align: end;
+  width: 0; /* make the column as small as possible */
 }
 
-textbox[focused] {
+#startupTable > tr > .label-cell > label {
+  white-space: nowrap;
 }
 
-textbox[disabled] {
+#startupTable > tr > .content-cell > menulist,
+#startupTable > tr > .content-cell > textbox {
+  width: calc(100% - 8px);
+  margin-left: 4px;
+  margin-right: 4px;
 }
 
-/* Links */
-
-.text-link,
-.inline-link,
-html|a.inline-link {
+#startupTable > tr > .homepage-buttons {
+  display: flex;
+  flex-wrap: wrap;
 }
 
-.text-link:hover,
-.inline-link:hover {
+#startupTable > tr > .homepage-buttons > .content-cell-item {
+  flex-grow: 1;
 }
 
-.text-link:hover:active,
-.inline-link:hover:active {
+#useFirefoxSync  {
+  font-size: 90%;
+  margin-inline-end: 8px !important;
 }
 
-/* Checkboxes and radio buttons */
-
-.checkbox-check {
+#getStarted {
+  font-size: 90%;
 }
 
-.checkbox-check[checked] {
+#isNotDefaultLabel {
+  font-weight: bold;
 }
 
-checkbox:hover::before,
-checkbox[checked]::before {
+#browserHomePage:-moz-locale-dir(rtl) input {
+  unicode-bidi: plaintext;
+  direction: rtl;
 }
 
-checkbox[checked]::before {
+/* Content pane */
+#defaultFontSizeLabel {
+  /* !important needed to override common !important rule */
+  margin-inline-start: 4px !important;
 }
 
-radio {
-}
+/* Applications Pane Styles */
 
-.radio-check {
+#applicationsContent {
+  padding: 15px 0;
 }
 
-.radio-check[selected] {
+#filter {
+  margin-inline-start: 0;
 }
 
-radio:hover::before,
-radio[selected]::before {
+#handlersView {
+  height: 25em;
 }
 
-radio[selected]::before {
+#handlersView > richlistitem {
+  min-height: 36px !important;
 }
 
-/* Category List */
-
-#categories {
-  background-color: #A09090;
-/*  -moz-border-end: 1px solid #FF9F00; */
-  padding-top: 39px;
-  margin: 0;
-  border-radius: 1em 0 0 0;
+.typeIcon {
+  margin-inline-start: 10px !important;
+  margin-inline-end: 9px !important;
 }
 
-.category {
-  background-color: #000000;
-  color: #FFCF00;
-  -moz-border-end-width: 0;
-  -moz-padding-start: 14px;
-  -moz-padding-end: 21px;
-  min-height: 40px;
+.actionIcon {
+  margin-inline-start: 11px !important;
+  margin-inline-end: 8px !important;
 }
 
-.category:hover {
-  background-color: #FFCF00;
-  color: #000000;
+.actionsMenu {
+  min-height: 36px;
 }
 
-.category[selected] {
-  background-color: #008484;
-  color: #000000;
+.actionsMenu > menupopup > menuitem {
+  padding-inline-start: 10px !important;
 }
 
-.category-name {
-  line-height: 22px;
-  font-family: "Clear Sans", sans-serif;
-  font-size: 1.25rem;
-  padding-bottom: 2px;
-  -moz-padding-start: 9px;
-  margin: 0;
+.actionsMenu > menupopup > menuitem > .menu-iconic-left {
+  margin-inline-end: 8px !important;
 }
 
-.category-icon {
-  width: 24px;
-  height: 24px;
-  list-style-image: url("chrome://browser/skin/preferences/in-content/icons.png");
-}
+/* Privacy pane */
 
-#category-general > .category-icon {
-  -moz-image-region: rect(0, 24px, 24px, 0);
+.doNotTrackLearnMore {
+  margin-inline-start: calc(1em + 30px);
+  margin-bottom: 1em;
+  font-weight: normal;
 }
 
-#category-general:hover > .category-icon,
-#category-general[selected] > .category-icon {
-  -moz-image-region: rect(24px, 24px, 48px, 0);
+.doNotTrackLearnMore > label {
+  font-size: 1em !important;
+  margin-left: 0;
 }
 
-#category-content > .category-icon {
-  -moz-image-region: rect(0, 48px,  24px, 24px)
+/* Collapse the non-active vboxes in decks to use only the height the
+   active vbox needs */
+#historyPane:not([selectedIndex="1"]) > #historyDontRememberPane,
+#historyPane:not([selectedIndex="2"]) > #historyCustomPane,
+#weavePrefsDeck:not([selectedIndex="1"]) > #hasFxaAccount,
+#fxaLoginStatus:not([selectedIndex="1"]) > #fxaLoginUnverified,
+#fxaLoginStatus:not([selectedIndex="2"]) > #fxaLoginRejected {
+  visibility: collapse;
 }
 
-#category-content:hover > .category-icon,
-#category-content[selected] > .category-icon {
-  -moz-image-region: rect(24px, 48px, 48px, 24px);
+/* XXX This style is for bug 740213 and should be removed once that
+   bug has a solution. */
+description > html|a {
+  cursor: pointer;
 }
 
-#category-application > .category-icon {
-  -moz-image-region: rect(0, 72px,  24px, 48px)
+#noFxaAccount {
+  padding-top: 15px;
 }
 
-#category-application:hover > .category-icon,
-#category-application[selected] > .category-icon {
-  -moz-image-region: rect(24px, 72px, 48px, 48px);
+#weavePrefsDeck > vbox > label,
+#weavePrefsDeck > vbox > groupbox,
+#weavePrefsDeck > vbox > description,
+#weavePrefsDeck > vbox > #pairDevice > label,
+#weavePrefsDeck > #needsUpdate > hbox > #loginError,
+#weavePrefsDeck > #hasFxaAccount > vbox > label,
+#weavePrefsDeck > #hasFxaAccount > hbox:not(#tosPP-normal) > label {
+  /* no margin-inline-start for elements at the begin of a line */
+  margin-inline-start: 0;
 }
 
-#category-privacy > .category-icon {
-  -moz-image-region: rect(0, 96px,  24px, 72px)
+#advancedPrefs {
+  padding-bottom: 0; /* no padding needed in inContent prefs */
 }
 
-#category-privacy:hover > .category-icon,
-#category-privacy[selected] > .category-icon {
-  -moz-image-region: rect(24px, 96px, 48px, 72px);
+#tabsElement {
+/*  margin-inline-end: 4px; / add the 4px end-margin of other elements */
 }
 
-#category-security > .category-icon {
-  -moz-image-region: rect(0, 120px,  24px, 96px)
+.indent {
+  /* !important needed to override margin-inline-start:0 !important; rule
+     define in common.css for labels - but not in LCARStrek*/
+  margin-inline-start: 33px /*!important*/;
+}
+.text-link {
+  margin-bottom: 0;
 }
 
-#category-security:hover > .category-icon,
-#category-security[selected] > .category-icon {
-  -moz-image-region: rect(24px, 120px, 48px, 96px);
+#showUpdateHistory {
+  margin-inline-start: 0;
 }
 
-#category-sync > .category-icon {
-  -moz-image-region: rect(0, 144px, 24px, 120px);
+#fxaProfileImage {
+  -moz-user-focus: normal;
 }
 
-#category-sync:hover > .category-icon,
-#category-sync[selected] > .category-icon {
-  -moz-image-region: rect(24px, 144px, 48px, 120px);
+/**
+ * Dialog
+ */
+
+#dialogOverlay {
+  background-color: rgba(0,0,0,0.75);
+  visibility: hidden;
 }
 
-#category-advanced > .category-icon {
-  -moz-image-region: rect(0, 168px, 24px, 144px)
+#dialogBox {
+  background-color: #000000;
+  background-clip: content-box;
+  color: #FF9F00;
+  /* font-size: 14px; */
+  border: 1px solid #9C9CFF;
+  border-radius: 10px;
+  display: -moz-box;
+  margin: 0;
+  padding-right: 6px;
+  padding-left: 6px;
 }
 
-#category-advanced:hover > .category-icon,
-#category-advanced[selected] > .category-icon {
-  -moz-image-region: rect(24px, 168px, 48px, 144px);
+#dialogBox[resizable="true"] {
+  resize: both;
+  overflow: hidden;
+  min-height: 20em;
+  min-width: 66ch;
 }
 
-/* header */
+#dialogBox > .groupbox-title {
+  margin-inline-start: 0;
+  margin-inline-end: 0;
+/*  padding: 3.5px 0;
+  background-color: #F1F1F1; */
+}
 
-.header {
-  margin-bottom: 15px;
+#dialogTitle {
+  text-align: center;
+  -moz-user-select: none;
 }
 
-.header-icon {
-  width: 40px;
-  max-height: 40px;
-  -moz-margin-end: 20px;
-  list-style-image: url("chrome://browser/skin/preferences/in-content/header.png");
+.close-icon {
+  background-color: transparent !important;
+  border: none;
+  box-shadow: none;
+  padding: 0;
+  height: auto;
+  min-height: 16px;
+  min-width: 0;
 }
 
-.header-name {
-  font-size: 2.5rem;
-  font-weight: normal;
-  line-height: 40px;
+#dialogBox > .groupbox-title > caption {
   margin: 0;
+  border-radius: 1000px;
+  background-color: #A09090;
 }
 
-#header-general > .header-icon {
-  -moz-image-region: rect(3px, 45px, 45px, 3px);
+#dialogBox > .groupbox-body {
+  -moz-appearance: none;
+  padding: 0;
 }
 
-#header-content > .header-icon {
-  -moz-image-region: rect(3px, 93px, 45px, 51px);
+#dialogFrame {
+  -moz-box-flex: 1;
+  /* Default dialog dimensions */
+  width: 66ch;
 }
 
-#header-application > .header-icon {
-  -moz-image-region: rect(3px, 141px, 45px, 99px);
+.largeDialogContainer.doScroll {
+  overflow-y: auto;
+  -moz-box-flex: 1;
 }
 
-#header-privacy > .header-icon {
-  -moz-image-region: rect(3px, 189px, 45px, 147px);
-}
+/**
+ * End Dialog
+ */
 
-#header-security > .header-icon {
-  -moz-image-region: rect(3px, 237px, 45px, 195px);
-}
+/**
+ * Font dialog menulist fixes
+ */
 
-#header-sync > .header-icon {
-  -moz-image-region: rect(3px, 285px, 45px, 243px);
+#defaultFontType,
+#serif,
+#sans-serif,
+#monospace {
+  min-width: 30ch;
 }
 
-#header-advanced > .header-icon {
-  -moz-image-region: rect(3px, 333px, 45px, 291px);
-}
+/**
+ * Sync
+ */
 
-.indent {
-  margin-top: 7px;
-  margin-bottom: 7px;
+#fxaProfileImage {
+  max-width: 60px;
+  border-radius: 50%;
+  list-style-image: url(chrome://browser/skin/fxa/default-avatar.svg);
+  margin-inline-end: 15px;
+  image-rendering: -moz-crisp-edges;
 }
 
-/* General Pane */
-/*
-filefield {
-  -moz-appearance: none;
-  background-color: transparent;
-  border: none;
-  padding: 0;
+#fxaLoginStatus[hasName] #fxaProfileImage {
+  max-width: 80px;
 }
 
-.fileFieldContentBox {
-  background-color: transparent;
+#fxaProfileImage.actionable {
+  cursor: pointer;
 }
 
-.fileFieldIcon {
-  -moz-margin-start: 10px;
-  -moz-margin-end: 0;
+#fxaProfileImage.actionable:hover {
+  box-shadow: 0px 0px 0px 1px #FFCF00;
 }
 
-.fileFieldLabel {
-  -moz-margin-start: -26px;
-  -moz-padding-start: 36px;
+#fxaProfileImage.actionable:hover:active {
+  box-shadow: 0px 0px 0px 1px #FF9F00;
 }
-*/
 
-/* Applications Pane Styles */
+#noFxaAccount {
+  /* Overriding the margins from the base preferences.css theme file.
+     These overrides can be simplified by fixing bug 1027174 */
+  margin: 0;
+  padding-top: 15px;
+}
 
-#applications-content {
-  -moz-margin-start: 60px;
-  padding: 15px;
+#fxaContentWrapper {
+  -moz-box-flex: 1;
 }
 
-#handlersView {
-  font-size: 1.25rem;
-  line-height: 22px;
-  border: none; /*1px solid #9C9CFF;*/
+#noFxaGroup {
+  -moz-box-flex: 1;
   margin: 0;
-  overflow-y: auto;
-  border-top-left-radius: 0;
-  border-top-right-radius: 0;
-}
-
-#handersView > listheader > treecol {
-  border-radius: 0;
-}
-
-#typeColumn,
-#actionColumn {
-  font-family: "Clear Sans", sans-serif;
-  line-height: 20px;
-/*  color: #737980;
-  height: 36px;
-  padding: 0 10px;
-  background-color: #F7F7F7;
-  border: 1px solid #CCCCCC;
-  -moz-border-top-colors: none;
-  -moz-border-right-colors: none;
-  -moz-border-bottom-colors: none;
-  -moz-border-left-colors: none;
-*/
 }
 
-#typeColumn:-moz-locale-dir(ltr),
-#actionColumn:-moz-locale-dir(rtl) {
-  border-top-left-radius: 5px;
+#fxaContentWrapper {
+  padding-right: 15px;
 }
 
-#typeColumn:-moz-locale-dir(rtl),
-#actionColumn:-moz-locale-dir(ltr) {
-  border-top-right-radius: 5px;
-}
-/*
-#typeColumn:hover,
-#actionColumn:hover {
-  border-color: #737980;
+#noFxaGroup > vbox,
+#fxaGroup {
+  -moz-box-align: start;
 }
 
-#typeColumn:hover:active,
-#actionColumn:hover:active {
-  padding: 0 10px;
-  border-color: #0096DC;
-}
-*/
-#typeColumn > .treecol-sortdirection[sortDirection=ascending],
-#actionColumn > .treecol-sortdirection[sortDirection=ascending],
-#typeColumn > .treecol-sortdirection[sortDirection=descending],
-#actionColumn > .treecol-sortdirection[sortDirection=descending]  {
+#fxaSyncEngines > vbox:first-child {
+  margin-right: 80px;
 }
 
-#typeColumn > .treecol-sortdirection[sortDirection=descending],
-#actionColumn > .treecol-sortdirection[sortDirection=descending] {
+#fxaSyncComputerName {
+  margin-inline-start: 0px;
+  -moz-box-flex: 1;
 }
 
-#handlersView > richlistitem {
-  min-height: 40px !important;
+#tosPP-small-ToS {
+  margin-bottom: 1em;
 }
 
-.typeIcon {
-  -moz-margin-start: 10px !important;
-  -moz-margin-end: 9px !important;
+#fxaLoginRejectedWarning {
+  list-style-image: url("chrome://browser/skin/warning.svg");
+  margin: 4px 8px 0px 0px;
 }
 
-.actionIcon {
-  -moz-margin-start: 11px !important;
-  -moz-margin-end: 8px !important;
+#noFxaCaption {
+  font-weight: bold;
+  margin-bottom: 11px;
 }
 
-.actionsMenu {
-  height: 40px;
-  max-height: 40px;
+.fxaSyncIllustration {
+  margin-top: 35px;
 }
 
-.actionsMenu > menupopup > menuitem {
-  -moz-padding-start: 10px !important;
+#syncOptions caption {
+  margin-bottom: 11px;
 }
 
-.actionsMenu > menupopup > menuitem > .menu-iconic-left {
-  -moz-margin-end: 8px !important;
+#fxaSyncComputerName {
+  margin-left: 0px;
 }
 
-/* XXX This style is for bug 740213 and should be removed once that
-   bug has a solution. */
-description > html|a {
-  cursor: pointer;
+#noFxaDescription {
+  margin-bottom: 20px !important;
 }
 
-/* Content Pane */
-
-#defaultFontSize {
-  min-width: 5.5em;
+.separator {
+  border-bottom: 1px solid var(--in-content-header-border-color);
 }
 
-/* Sync Pane */
-
-#syncEnginesList {
-/*  -moz-appearance: none;
-  color: #737980;
-  padding: 10px;
-  border: 1px solid rgba(23,50,77,0.4);
+.fxaAccountBox {
+  border: 1px solid #A09090;
   border-radius: 5px;
-  background-color: #F1F1F1;*/
+  padding: 14px 20px 14px 14px;
 }
 
-/* Advanced Pane */
+#signedOutAccountBoxTitle {
+  font-weight: bold;
+}
 
-#advancedPrefs {
-  padding-bottom: 0; /* no padding needed in inContent prefs */
+.fxaAccountBoxButtons {
+  margin-bottom: 0 !important;
+  margin-top: 11px;
+  display: flex;
+  align-items: center;
 }
 
-#encryptionPanel {
-  margin-top: 15px;
-  -moz-margin-start: 60px;
+.fxaAccountBoxButtons > * {
+  -moz-box-flex: 1;
 }
 
-#offlineAppsList {
-/*  -moz-appearance: none;
-  color: #737980;
-  padding: 2px;
-  border: 1px solid rgba(23,50,77,0.4);
-  border-radius: 5px;
-  background-color: #F1F1F1;*/
+.fxaAccountBoxButtons > button {
+  text-align: center;
+  padding-left: 11px;
+  padding-right: 11px;
+  margin: 0;
+  min-width: 0;
 }
 
-#telemetryLearnMore,
-#FHRLearnMore,
-#crashReporterLearnMore {
-  /* center the links */
-  margin-top: 8px;
-  margin-bottom: 8px;
+.fxaAccountBoxButtons > button:first-child {
+  margin-inline-end: 14px !important;
 }
 
-/* === END shared/in-content/preferences.css === */
+.fxaSyncIllustration {
+  width: 231px;
+  list-style-image: url(chrome://browser/skin/fxa/sync-illustration.png)
+}
 
-.indent-small {
-  -moz-margin-start: 10px;
+#fxaLoginStatus[hasName] #fxaEmailAddress1 {
+  font-size: 1.1rem;
 }
 
-@media (min-resolution: 2dppx) {
-  checkbox:hover::before,
-  checkbox[checked]::before {
-  }
+#fxaEmailAddress1,
+#fxaEmailAddress2,
+#fxaEmailAddress3 {
+  word-break: break-all;
+}
 
-  checkbox[checked]::before {
-  }
+.fxaFirefoxLogo {
+  list-style-image: url(chrome://browser/skin/fxa/logo.png);
+  max-width: 64px;
+  margin-inline-end: 14px;
+}
 
-  .category-icon {
-    list-style-image: url("chrome://browser/skin/preferences/in-content/icons@2x.png");
-  }
+.fxaMobilePromo {
+  margin-bottom: 20px;
+  margin-top: 25px;
+}
 
-  #category-general > .category-icon {
-    -moz-image-region: rect(0, 48px, 48px, 0);
-  }
+#fxaLoginRejectedWarning {
+  list-style-image: url(chrome://browser/skin/warning.svg);
+  filter: drop-shadow(0 1px 0 hsla(206, 50%, 10%, .15));
+  margin: 4px 8px 0px 0px;
+}
 
-  #category-general[selected] > .category-icon {
-    -moz-image-region: rect(48px, 48px, 96px, 0);
-  }
+#syncOptions {
+  margin-bottom: 27.5px;
+}
 
-  #category-content > .category-icon {
-    -moz-image-region: rect(0, 96px, 48px, 48px);
-  }
+.androidLink {
+  background-image: url("chrome://browser/skin/fxa/android.png");
+}
 
-  #category-content[selected] > .category-icon {
-    -moz-image-region: rect(48px, 96px, 96px, 48px);
-  }
+.iOSLink {
+  background-image: url("chrome://browser/skin/fxa/ios.png");
+}
 
-  #category-application > .category-icon {
-    -moz-image-region: rect(0, 144px, 48px, 96px);
-  }
+.androidLink,
+.iOSLink {
+  margin: 0 0 0 2px;
+  padding-left: 28px;
+  padding-top: 6px;
+  height: 28px;
+  background-repeat: no-repeat;
+  background-size: 24px 28px;
+}
 
-  #category-application[selected] > .category-icon {
-    -moz-image-region: rect(48px, 144px, 96px, 96px);
-  }
+#tosPP-small {
+  margin-top: 20px;
+  margin-bottom: 20px;
+}
 
-  #category-privacy > .category-icon {
-    -moz-image-region: rect(0, 192px, 48px, 144px);
+@media (min-resolution: 1.1dppx) {
+  .androidLink {
+    background-image: url("chrome://browser/skin/fxa/android@2x.png");
   }
-
-  #category-privacy[selected] > .category-icon {
-    -moz-image-region: rect(48px, 192px, 96px, 144px);
+  .iOSLink {
+    background-image: url("chrome://browser/skin/fxa/ios@2x.png");
   }
-
-  #category-security > .category-icon {
-    -moz-image-region: rect(0, 240px, 48px, 192px);
+  .fxaSyncIllustration {
+    list-style-image: url(chrome://browser/skin/fxa/sync-illustration@2x.png)
   }
-
-  #category-security[selected] > .category-icon {
-    -moz-image-region: rect(48px, 240px, 96px, 192px);
+  .fxaFirefoxLogo {
+    list-style-image: url(chrome://browser/skin/fxa/logo@2x.png);
   }
+}
 
-  #category-sync > .category-icon {
-    -moz-image-region: rect(0, 288px, 48px, 240px);
-  }
+/* === END shared/incontentprefs/preferences.inc.css === */
 
-  #category-sync[selected] > .category-icon {
-    -moz-image-region: rect(48px, 288px, 96px, 240px);
-  }
+caption {
+}
+
+.indent-small {
+  margin-inline-start: 10px;
+}
 
-  #category-advanced > .category-icon {
-    -moz-image-region: rect(0, 336px, 48px, 288px);
+@media (min-resolution: 2dppx) {
+  checkbox:hover::before,
+  checkbox[checked]::before {
   }
 
-  #category-advanced[selected] > .category-icon {
-    -moz-image-region: rect(48px, 336px, 96px, 288px);
+  checkbox[checked]::before {
   }
 }