Advertisement
Ruhart

Vivaldi Slim

Mar 6th, 2024 (edited)
1,353
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 5.40 KB | Source Code | 0 0
  1. /* Vivaldi Slim */
  2.  
  3. /* Slim Main */
  4.  
  5. /* Changes the size of the of the mainbar background. */
  6. .mainbar {
  7.     height: 37px;
  8. }
  9.  
  10. #browser.win.address-top .toolbar:has(.window-buttongroup.on-mainbar),
  11. #browser.linux.address-top .toolbar:has(.window-buttongroup.on-mainbar) {
  12.     min-height: calc(32px / var(--uiZoomLevel));
  13. }
  14.  
  15. /* Pushes the security and bookmark buttons back down, because the above rule will push everything up, including these and they do not need to be pushed up. */
  16. .toolbar-insideinput.toolbar-insideinput.toolbar-insideinput
  17.     > .button-toolbar
  18.     > button:not(:hover):not(:active):not(:focus):not(.button-pressed),
  19. .toolbar-insideinput.toolbar-insideinput.toolbar-insideinput
  20.     > .toolbar-group
  21.     > .button-toolbar
  22.     > button:not(:hover):not(:active):not(:focus):not(.button-pressed) {
  23.     margin-top: 2px;
  24. }
  25.  
  26. /* Resizes the maximize, minimize and close buttons to be in-line with the mainbar. */
  27. .disable-titlebar#browser.win .window-buttongroup {
  28.     height: 36px;
  29. }
  30.  
  31. .toolbar-mainbar .toolbar-extensions > .button-toolbar > button:first-of-type {
  32.     min-height: 32px;
  33.     margin-top: 3px;
  34. }
  35.  
  36. /* Aligns hamburger/Vivaldi button. */
  37. .disable-titlebar.address-top#browser:not(.tabs-top) .vivaldi {
  38.     margin-top: 2px;
  39. }
  40.  
  41. /* Pushes the URL bar up to be centered with the new mainbar size. */
  42. .UrlBar-SearchField,
  43. .UrlBar-AddressField {
  44.     height: 24px;
  45.     margin-top: 3px;
  46.     margin-bottom: 1px;
  47. }
  48.  
  49. /* Pushes the content blocker button up to be in-line with the URL bar, and ensures that it doesn't move when hovering over it. */
  50. .toolbar-insideinput.toolbar-insideinput.toolbar-insideinput
  51.     > .button-toolbar
  52.     > button,
  53. .toolbar-insideinput.toolbar-insideinput.toolbar-insideinput
  54.     > .toolbar-group
  55.     > .button-toolbar
  56.     > button {
  57.     margin: 2px 0 2px 0;
  58. }
  59.  
  60. /* Left and Right Style Tabs - Removes the larger forehead padding on the workspace icon in the side-tabs view, making it more size-matched with the tab icons. */
  61. .tabbar-workspace-button + #tabs-tabbar-container.left,
  62. .tabbar-workspace-button + #tabs-tabbar-container.right {
  63.     padding-top: 0;
  64. }
  65.  
  66. /* Left and Right Style Tabs - Removes margins around Workspace icon to be in-line with tabs in icon-only mode. */
  67. #app .tabs-left .button-toolbar.workspace-popup.tabbar-workspace-button button,
  68. #app
  69.     .tabs-right
  70.     .button-toolbar.workspace-popup.tabbar-workspace-button
  71.     button {
  72.     margin: 0;
  73. }
  74.  
  75. /* Centers mainbar icons. */
  76. .color-behind-tabs-on
  77.     .toolbar-mainbar
  78.     .toolbar-extensions
  79.     > .button-toolbar
  80.     > button:hover,
  81. .color-behind-tabs-on
  82.     .toolbar-mainbar
  83.     .page-zoom-controls
  84.     > .button-toolbar
  85.     > button:hover,
  86. .color-behind-tabs-on .toolbar-mainbar > .button-toolbar > button:hover,
  87. .color-behind-tabs-on
  88.     .toolbar-mainbar
  89.     .toolbar-extensions
  90.     > .toolbar-group
  91.     > .button-toolbar
  92.     > button:hover,
  93. .color-behind-tabs-on
  94.     .toolbar-mainbar
  95.     .page-zoom-controls
  96.     > .toolbar-group
  97.     > .button-toolbar
  98.     > button:hover,
  99. .color-behind-tabs-on
  100.     .toolbar-mainbar
  101.     > .toolbar-group
  102.     > .button-toolbar
  103.     > button:hover,
  104. .color-behind-tabs-on
  105.     .toolbar-mainbar
  106.     .toolbar-extensions
  107.     > .button-toolbar
  108.     > button:active,
  109. .color-behind-tabs-on
  110.     .toolbar-mainbar
  111.     .page-zoom-controls
  112.     > .button-toolbar
  113.     > button:active,
  114. .color-behind-tabs-on .toolbar-mainbar > .button-toolbar > button:active,
  115. .color-behind-tabs-on
  116.     .toolbar-mainbar
  117.     .toolbar-extensions
  118.     > .toolbar-group
  119.     > .button-toolbar
  120.     > button:active,
  121. .color-behind-tabs-on
  122.     .toolbar-mainbar
  123.     .page-zoom-controls
  124.     > .toolbar-group
  125.     > .button-toolbar
  126.     > button:active,
  127. .color-behind-tabs-on
  128.     .toolbar-mainbar
  129.     > .toolbar-group
  130.     > .button-toolbar
  131.     > button:active,
  132. .toolbar-mainbar .toolbar-extensions > .button-toolbar > button,
  133. .toolbar-mainbar .page-zoom-controls > .button-toolbar > button,
  134. .toolbar-mainbar > .button-toolbar > button,
  135. .toolbar-mainbar
  136.     .toolbar-extensions
  137.     > .toolbar-group
  138.     > .button-toolbar
  139.     > button,
  140. .toolbar-mainbar
  141.     .page-zoom-controls
  142.     > .toolbar-group
  143.     > .button-toolbar
  144.     > button,
  145. .toolbar-mainbar > .toolbar-group > .button-toolbar > button {
  146.     margin-bottom: 2px;
  147. }
  148.  
  149. .button-toolbar > button {
  150.     margin-top: 4px;
  151. }
  152.  
  153. /* End Slim Main*/
  154.  
  155. /* Additionals */
  156.  
  157. /* Center Bookmarks */
  158. .bookmark-bar .observer {
  159.     justify-content: center;
  160. }
  161.  
  162. /* Expanding Left Tabs */
  163.  
  164. /* Animate the tabs, set initial width. */
  165. #tabs-tabbar-container.left {
  166.     transition: all 250ms ease !important;
  167.     width: 30px;
  168. }
  169.  
  170. #tabs-tabbar-container.left:hover {
  171.     width: 250px !important;
  172. }
  173.  
  174. .tabbar-wrapper {
  175.     position: absolute !important;
  176.     z-index: 200 !important;
  177.     height: 100% !important;
  178.     transition: all 250ms ease !important;
  179.     width: 30px;
  180. }
  181.  
  182. .tabbar-wrapper:hover {
  183.     width: 250px !important;
  184. }
  185.  
  186. #webview-container {
  187.     margin-left: 30px;
  188. }
  189.  
  190. @media all and (display-mode: fullscreen) {
  191.     #webview-container {
  192.         margin-left: 0 !important;
  193.     }
  194. }
  195.  
  196. /* Shunt the status info (text on hover) over to accomodate tabs */
  197. #webview-container ~ .StatusInfo {
  198.     left: 36px !important;
  199. }
  200.  
  201. .newtab {
  202.     opacity: 0;
  203. }
  204.  
  205. #tabs-tabbar-container.left:hover .newtab {
  206.     opacity: 1 !important;
  207.     transition: opacity 200ms ease 250ms;
  208. }
  209.  
  210. /* End Additionals */
  211.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement