Added new button backgrounds. Centered report button

This commit is contained in:
Ajay Ramachandran
2019-08-19 16:49:22 -04:00
parent 0c2c868e5c
commit cbab026f27
2 changed files with 30 additions and 8 deletions

View File

@@ -105,11 +105,6 @@
border-left: 1px solid rgb(150, 150, 150); border-left: 1px solid rgb(150, 150, 150);
} }
.sponsorSkipNoticeCloseButton {
height: 10px;
width: 10px;
}
.sponsorSkipNoticeButton { .sponsorSkipNoticeButton {
background: none; background: none;
color: rgb(235, 235, 235); color: rgb(235, 235, 235);
@@ -120,7 +115,22 @@
margin-right: 10px; margin-right: 10px;
padding: 1px 6px; padding: 2px 5px;
}
.sponsorSkipNoticeButton:hover {
background-color: rgba(235, 235, 235,0.2);
border-radius: 4px;
transition: background-color 0.4s;
}
.sponsorTimesVoteButtonsContainer {
float: left;
padding: 2px 5px;
margin-right: 4px;
} }
.sponsorSkipNoticeRightSection { .sponsorSkipNoticeRightSection {
@@ -133,8 +143,17 @@
} }
.sponsorSkipNoticeRightButton { .sponsorSkipNoticeRightButton {
margin-left: 7px; margin-right: 0;
padding: 0px; }
.sponsorSkipNoticeCloseButton {
height: 10px;
width: 10px;
padding: 2px 5px;
margin-left: 2px;
float: right;
} }
.sponsorSkipMessage { .sponsorSkipMessage {

View File

@@ -76,6 +76,7 @@ class SkipNotice {
//thumbs up and down buttons //thumbs up and down buttons
let voteButtonsContainer = document.createElement("td"); let voteButtonsContainer = document.createElement("td");
voteButtonsContainer.id = "sponsorTimesVoteButtonsContainer" + this.UUID; voteButtonsContainer.id = "sponsorTimesVoteButtonsContainer" + this.UUID;
voteButtonsContainer.className = "sponsorTimesVoteButtonsContainer"
let reportText = document.createElement("span"); let reportText = document.createElement("span");
reportText.id = "sponsorTimesReportText" + this.UUID; reportText.id = "sponsorTimesReportText" + this.UUID;
@@ -104,6 +105,8 @@ class SkipNotice {
unskipButton.className = "sponsorSkipObject sponsorSkipNoticeButton"; unskipButton.className = "sponsorSkipObject sponsorSkipNoticeButton";
unskipButton.addEventListener("click", () => goBackToPreviousTime(this)); unskipButton.addEventListener("click", () => goBackToPreviousTime(this));
unskipButton.style.marginLeft = "4px";
unskipContainer.appendChild(unskipButton); unskipContainer.appendChild(unskipButton);
//add don't show again button //add don't show again button