legacy/fx60-90/css/buttons/custom_backforward_connected_to_location_bar_fx71_extra.css
/* Firefox Quantum userChrome.css tweaks ************************************************/
/* Github: https://github.com/aris-t2/customcssforfx ************************************/
/****************************************************************************************/


/* normal mode */
#main-window:not([uidensity=compact]):not([uidensity=touch]) #nav-bar #forward-button[disabled] + #urlbar-container {
  -moz-margin-start: -15px !important;
}
#main-window:not([uidensity=compact]):not([uidensity=touch]) #nav-bar #back-button + #forward-button:not([disabled]) {
  -moz-margin-start: -12px !important;
}
#main-window:not([uidensity=compact]):not([uidensity=touch]) #nav-bar #forward-button:not([disabled]) + #urlbar-container {
  -moz-margin-start: -4px !important;
}
#main-window:not([uidensity=compact]):not([uidensity=touch]) #nav-bar #forward-button[disabled] + #urlbar-container #identity-box {
  padding-inline-start: 16px !important;
}

#main-window:not([uidensity=compact]):not([uidensity=touch]) #nav-bar #back-button + #forward-button[disabled] + #urlbar-container #urlbar-input-container:not([pageproxystate="invalid"]) > #tracking-protection-icon-container {
  padding-inline-start: 12px !important;
}

#main-window:not([uidensity=compact]):not([uidensity=touch]) #nav-bar #back-button + #forward-button[disabled] + #urlbar-container #urlbar-input-container:not([pageproxystate="invalid"]) > #tracking-protection-icon-container + #identity-box {
  padding-inline-start: 22px !important;
}

#main-window:not([uidensity=compact]):not([uidensity=touch]) #nav-bar #back-button + #forward-button[disabled] + #urlbar-container #urlbar-input-container:not([pageproxystate="invalid"]) > #tracking-protection-icon-container #tracking-protection-icon-box image {
  margin-inline-start: 2px !important;
}

/* touch mode */
#main-window[uidensity=touch] #nav-bar #forward-button[disabled] + #urlbar-container {
  -moz-margin-start: -21px !important;
}
#main-window[uidensity=touch] #nav-bar #back-button + #forward-button:not([disabled]) {
  -moz-margin-start: -12px !important;
}
#main-window[uidensity=touch] #nav-bar #forward-button:not([disabled]) + #urlbar-container {
  -moz-margin-start: -4px !important;
}
#main-window[uidensity=touch] #nav-bar #forward-button[disabled] + #urlbar-container #identity-box {
  padding-inline-start: 22px !important;
}

#main-window[uidensity=touch] #nav-bar #back-button + #forward-button[disabled] + #urlbar-container #urlbar-input-container:not([pageproxystate="invalid"]) > #tracking-protection-icon-container {
  padding-inline-start: 16px !important;
}

#main-window[uidensity=touch] #nav-bar #back-button + #forward-button[disabled] + #urlbar-container #urlbar-input-container:not([pageproxystate="invalid"]) > #tracking-protection-icon-container + #identity-box {
  padding-inline-start: 22px !important;
}
#main-window[uidensity=touch] #nav-bar #back-button + #forward-button[disabled] + #urlbar-container #urlbar-input-container:not([pageproxystate="invalid"]) > #tracking-protection-icon-container #tracking-protection-icon-box image {
  margin-inline-start: 2px !important;
}

/* remove tracking protection icons bg color */
#main-window #urlbar-container #urlbar #urlbar-input-container #tracking-protection-icon-container:not([hidden]):hover,
#main-window #urlbar-container #urlbar #urlbar-input-container #tracking-protection-icon-container:not([hidden]):-moz-any([open="true"],:hover:active) {
  background: unset !important;
}


/**/

#main-window[uidensity=compact] #nav-bar #back-button+#forward-button[disabled]+#urlbar-container #urlbar-input-container:not([pageproxystate="invalid"])>#tracking-protection-icon-container {
  padding-inline-start: 17px !important;
}

#main-window[uidensity=compact] #nav-bar #back-button+#forward-button[disabled]+#urlbar-container #urlbar-input-container:not([pageproxystate="invalid"])>#tracking-protection-icon-container:not([hidden])+#identity-box {
  padding-inline-start: 31px !important;
  margin-inline-start: -29px !important;
}

