kerlser

floating url icons #2

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