From b0138cd23e793f4e9a8ca878b6b306e7e06f0763 Mon Sep 17 00:00:00 2001 From: Andrei Rybak Date: Mon, 8 Jan 2024 15:58:26 +0100 Subject: [PATCH] bitbucket-green-merge-button: update selectors for Cloud CSS class names changed for Bitbucket Cloud. HTML layout has changed slightly as well. Add rules to bitbucket-green-merge-button.user.css to handle the new version of Bitbucket Cloud. --- bitbucket-green-merge-button.user.css | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/bitbucket-green-merge-button.user.css b/bitbucket-green-merge-button.user.css index 22018c2..e987857 100644 --- a/bitbucket-green-merge-button.user.css +++ b/bitbucket-green-merge-button.user.css @@ -1,7 +1,7 @@ /* ==UserStyle== @name Bitbucket: green merge button @namespace https://github.com/rybak/atlassian-tweaks -@version 3 +@version 4 @description Makes an active merge button green in Bitbucket pull requests. @author Andrei Rybak @homepageURL https://github.com/rybak/atlassian-tweaks @@ -49,8 +49,21 @@ domain(/*[[yourDomain2]]*/) { /* Bitbucket Server */ .merge-button:not([disabled]), /* Bitbucket Cloud */ - main > header .css-8fhpv4 { + main > header .css-8fhpv4, + main > header .css-1ha3nxa button { background: #00875a; color: white !important; } + /* extra stuff for Bitbucket Cloud as of 2024-01 */ + main > header .css-1ha3nxa button.css-ijafgl:hover { + background: #00a36d; + } + main > header .css-1ha3nxa button.css-ic3jw3:hover { + background: #00a3a3; + } + /* newer versions of Bitbucket Cloud have additional for text of the + * button */ + main > header .css-1ha3nxa .css-178ag6o { + color: white !important; + } }