mobile-config-firefox/chrome/minimal_text_fields.css

60 lines
1.9 KiB
CSS
Raw Normal View History

2020-05-22 07:13:58 +02:00
/* Source file https://github.com/MrOtherGuy/firefox-csshacks/tree/master/chrome/minimal_text_fields.css made available under Mozilla Public License v. 2.0
See the above repository for updates as well as full license text. */
2019-08-23 09:16:06 +02:00
:root:not([customizing]){
2018-12-29 16:18:42 +01:00
--lwt-toolbar-field-background-color: transparent !important;
--toolbar-field-border-color: transparent !important;
2018-12-29 16:18:42 +01:00
}
#urlbar[open]{ background-color: var(--toolbar-bgcolor) !important; }
2019-10-03 16:48:26 +02:00
#urlbar,
#searchbar,
#search-box{
-moz-appearance: none !important;
background-color: var(--lwt-toolbar-field-background-color) !important;
color: inherit !important;
}
#searchbar,
2018-12-29 16:18:42 +01:00
#urlbar,
.searchbar-textbox{
box-shadow: none !important;
}
2019-08-23 09:16:06 +02:00
#tracking-protection-icon-container,
#identity-box ~ *,
2018-12-29 16:18:42 +01:00
.searchbar-textbox > *{
opacity: 0;
transition: opacity 150ms linear
}
2019-08-23 09:16:06 +02:00
#urlbar .urlbar-input-box,
2018-12-29 16:18:42 +01:00
.searchbar-textbox > moz-input-box{ opacity: 0.6 }
2019-08-23 09:16:06 +02:00
#identity-box ~ *:hover,
#tracking-protection-icon-container:hover,
#tracking-protection-icon-container ~ *:hover,
2018-12-29 16:18:42 +01:00
#urlbar:focus-within > *,
2019-08-23 09:16:06 +02:00
#urlbar-input-container:focus-within > *,
2018-12-29 16:18:42 +01:00
.searchbar-textbox:hover > *,
.searchbar-textbox:focus-within > *{ opacity: 1 }
#identity-box{ border: none !important }
2019-08-23 09:16:06 +02:00
#urlbar:not(:hover) #identity-box{ background-image: radial-gradient(closest-side circle at 16px, orange 10%,transparent 35% ); }
#urlbar:not(:hover) #identity-box.verifiedIdentity{ background-image: radial-gradient(closest-side circle at 16px, lime 10%,transparent 35% ); }
#urlbar:not(:hover) #identity-box > *{ opacity: 0 }
/*
:root[title="Firefox Nightly"] #identity-box,
:root[title="Mozilla Firefox"] #identity-box,
2019-08-23 09:16:06 +02:00
*/
#urlbar[pageproxystate=invalid]:not([usertyping]) #identity-box,
#identity-box:hover,
#identity-box.chromeUI,
#identity-box.verifiedDomain{
background-image: none !important;
}
#identity-box > #identity-icon-labels{ transition: max-width 150ms linear !important; }
#identity-box:not(:hover) > #identity-icon-labels{ max-width: 0px !important; }