kerlser

floating url icons

May 14th, 2023 (edited)
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.20 KB | None | 0 0
  1. /* Test 5 fresh profil buttons off */
  2.  
  3.  
  4. #reader-mode-button {
  5.     display: none !important;
  6. }
  7.  
  8. #identity-box[pageproxystate="invalid"] {
  9.     display: none !important;
  10. }
  11.  
  12. #identity-permission-box {
  13.     display: none !important;
  14. }
  15.  
  16. #contextual-feature-recommendation,
  17. #userContext-icons,
  18. #reader-mode-button,
  19. #pageActionButton,
  20. #urlbar-zoom-button,
  21. #translations-button,
  22. #picture-in-picture-button,
  23. #pageActionButton {
  24.     display: none !important;
  25. }
  26.  
  27. #urlbar-input {
  28.     padding-inline: 9px !important;
  29. }
  30.  
  31. /* opacity not hover, 0, testing 0.5 */
  32.  
  33. :is(#identity-box:not(.chromeUI) .identity-box-button, #tracking-protection-icon-container, #star-button-box):not(:hover, :hover:active, [open="true"]) {
  34.     opacity: 0 !important;
  35. }
  36.  
  37. /*  test colors */
  38. /*
  39. #star-button-box {
  40.     background-color: khaki !important;
  41. }
  42.  
  43. #identity-box:not(.chromeUI) .identity-box-button {
  44.     background-color: lightblue !important;
  45. }
  46.  
  47. #tracking-protection-icon-container {
  48.     background-color: orange !important;
  49. }*/
  50.  
  51. /*  hover, open colors */
  52.  
  53. :is(#identity-box:not(.chromeUI) .identity-box-button, #tracking-protection-icon-container, #star-button-box):hover {
  54.     background-color: color-mix(in srgb, currentColor 17%, white) !important;
  55. }
  56.  
  57. :is(#identity-box:not(.chromeUI) .identity-box-button, #tracking-protection-icon-container, #star-button-box)[open="true"] {
  58.     background-color: color-mix(in srgb, currentColor 30%, white) !important;
  59. }
  60.  
  61. /* positions */
  62.  
  63. :root {
  64.     --custom-url-icon-size: calc(var(--urlbar-min-height) - 2px - 2 * var(--urlbar-container-padding));
  65. }
  66.  
  67. #page-action-buttons:not(.chromeUI ~ #page-action-buttons) {
  68.     position: absolute !important;
  69.     right: 2px !important;
  70. }
  71.  
  72. #identity-box:not(.chromeUI), #tracking-protection-icon-container {
  73.     position: absolute !important;
  74.     margin-inline: 0px !important;
  75.     height: var(--custom-url-icon-size) !important;
  76.     width: var(--custom-url-icon-size) !important;
  77.     z-index: 2 !important;
  78. }
  79.  
  80. #identity-box:not(.chromeUI) {
  81.     right: calc(var(--custom-url-icon-size) + 4px) !important;
  82. }
  83.  
  84. #tracking-protection-icon-container {
  85.     right: calc(2*var(--custom-url-icon-size) + 6px) !important;
  86. }
  87.  
Advertisement
Add Comment
Please, Sign In to add comment