Skip to content

Commit

Permalink
Make casual vote box green
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayyy committed Feb 12, 2025
1 parent d68acca commit e2abc7c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
17 changes: 14 additions & 3 deletions public/content.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
--skip-notice-margin: 5px;

--cb-forground-button-color: #0e79cac2;
--cb-foreground-button-disabled-color: #0e78ca63;
}

.cbCustomThumbnailCanvas.ytd-img-shadow:not(.ytp-autonav-endscreen-upnext-thumbnail, .ytp-videowall-still-image) {
Expand Down Expand Up @@ -187,6 +188,9 @@ ytd-compact-playlist-renderer .ytd-compact-playlist-renderer #video-title:not(.c

.casualVoteMenuInner {
padding: 10px;

--cb-forground-button-color: #1a6c30;
--cb-foreground-button-disabled-color: #00380f;
}

.cbThumbnailImg {
Expand Down Expand Up @@ -383,7 +387,7 @@ ytd-compact-playlist-renderer .ytd-compact-playlist-renderer #video-title:not(.c

.cbNoticeButton:disabled {
cursor: default;
background-color: #0e78ca63 !important;
background-color: var(--cb-foreground-button-disabled-color) !important;
}

.cbNoticeButton {
Expand Down Expand Up @@ -655,8 +659,15 @@ ytd-compact-playlist-renderer .ytd-compact-playlist-renderer #video-title:not(.c

.cbCasualVoteTitle {
font-size: 22px;
text-align: center;
margin: 5px;

display: flex;
justify-content: center;
align-items: center;
}

.cbCasualVoteTitleLogo {
height: 25px;
padding: 5px;
}

.cbCasualVoteOriginalTitle {
Expand Down
4 changes: 4 additions & 0 deletions src/submission/CasualVoteComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export const CasualVoteComponent = (props: CasualVoteComponentProps) => {
onMouseDown={(e) => e.stopPropagation()}>

<div className="cbCasualVoteTitle">
<img
className="cbCasualVoteTitleLogo"
src={chrome.runtime.getURL("icons/logo-casual.svg")}
/>
<FormattedText
langKey="likeOriginalTitle"
/>
Expand Down

0 comments on commit e2abc7c

Please sign in to comment.