mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-13 23:17:05 +03:00
Merge pull request #1450 from AlecRust/refine-popup
Tidy/simplify popup
This commit is contained in:
@@ -125,6 +125,9 @@
|
|||||||
"closePopup": {
|
"closePopup": {
|
||||||
"message": "Close Popup"
|
"message": "Close Popup"
|
||||||
},
|
},
|
||||||
|
"closeIcon": {
|
||||||
|
"message": "Close Icon"
|
||||||
|
},
|
||||||
"SubmitTimes": {
|
"SubmitTimes": {
|
||||||
"message": "Submit Segments"
|
"message": "Submit Segments"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -403,7 +403,7 @@
|
|||||||
*/
|
*/
|
||||||
#mainControls {
|
#mainControls {
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
padding: 8px 12px;
|
padding: 8px 14px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border: 2px solid var(--sb-grey-bg-color);
|
border: 2px solid var(--sb-grey-bg-color);
|
||||||
@@ -411,6 +411,7 @@
|
|||||||
.sponsorStartHint {
|
.sponsorStartHint {
|
||||||
display: block;
|
display: block;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
padding-top: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -448,24 +449,23 @@
|
|||||||
/*
|
/*
|
||||||
* Your Work box
|
* Your Work box
|
||||||
*/
|
*/
|
||||||
.sbYourWorkCols {
|
.sbYourWorkBox {
|
||||||
margin: 16px;
|
margin: 16px;
|
||||||
margin-bottom: 8px;
|
margin-bottom: 8px;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
border: 2px solid var(--sb-grey-bg-color);
|
border: 2px solid var(--sb-grey-bg-color);
|
||||||
}
|
}
|
||||||
.sbYourWorkCols > div {
|
.sbYourWorkCols {
|
||||||
display: flex;
|
display: flex;
|
||||||
border-top: 2px solid var(--sb-grey-bg-color);
|
border-top: 2px solid var(--sb-grey-bg-color);
|
||||||
border-bottom: 2px solid var(--sb-grey-bg-color);
|
border-bottom: 2px solid var(--sb-grey-bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sbStatsSentence {
|
.sbStatsSentence {
|
||||||
padding-top: 5px;
|
padding: 6px 14px;
|
||||||
padding-bottom: 5px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.sbStatsSentence .sbExtraInfo {
|
.sbExtraInfo {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -473,37 +473,28 @@
|
|||||||
* Increase font size of username input and display
|
* Increase font size of username input and display
|
||||||
*/
|
*/
|
||||||
#usernameValue,
|
#usernameValue,
|
||||||
#usernameInput,
|
#usernameInput {
|
||||||
#sponsorTimesContributionsDisplay {
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
flex: 1 0;
|
flex: 1 0;
|
||||||
|
}
|
||||||
|
#sponsorTimesContributionsDisplay {
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Improve alignment of username and submissions
|
* Improve alignment of username and submissions
|
||||||
*/
|
*/
|
||||||
#usernameElement,
|
#usernameElement > p,
|
||||||
#sponsorTimesContributionsContainer {
|
#sponsorTimesContributionsContainer {
|
||||||
display: flex;
|
text-align: left;
|
||||||
flex-direction: column;
|
|
||||||
justify-content: start;
|
|
||||||
}
|
|
||||||
#usernameElement > span,
|
|
||||||
#sponsorTimesContributionsContainer {
|
|
||||||
text-align: start;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sponsorTimesContributionsContainer {
|
|
||||||
margin-left: 8px;
|
|
||||||
padding-left: 8px;
|
|
||||||
border-left: 2px solid var(--sb-grey-bg-color);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Username
|
* Username
|
||||||
*/
|
*/
|
||||||
#usernameElement {
|
#usernameElement {
|
||||||
padding: 8px;
|
padding: 8px 14px;
|
||||||
min-width: 50%;
|
min-width: 50%;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
#setUsernameContainer {
|
#setUsernameContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -549,14 +540,15 @@
|
|||||||
width: calc(100% - 68px);
|
width: calc(100% - 68px);
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
color: var(--sb-main-fg-color);
|
color: var(--sb-main-fg-color);
|
||||||
background: var(--sb-grey-bg-color);
|
background-color: var(--sb-grey-bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Submissions
|
* Submissions
|
||||||
*/
|
*/
|
||||||
#sponsorTimesContributionsContainer {
|
#sponsorTimesContributionsContainer {
|
||||||
padding: 8px;
|
padding: 8px 14px;
|
||||||
|
border-left: 2px solid var(--sb-grey-bg-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -571,14 +563,13 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
background: #333;
|
background-color: #333;
|
||||||
cursor: pointer;
|
|
||||||
padding: 4px 8px;
|
padding: 4px 8px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
margin: 2px 1px;
|
margin: 2px 1px;
|
||||||
}
|
}
|
||||||
#sbFooter a:hover {
|
#sbFooter a:hover {
|
||||||
background: #444;
|
background-color: #444;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sponsorTimesDonateContainer a {
|
#sponsorTimesDonateContainer a {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<div id="sponsorblockPopup" class="sponsorBlockPageBody sb-preload">
|
<div id="sponsorblockPopup" class="sponsorBlockPageBody sb-preload">
|
||||||
|
|
||||||
<button id="sbCloseButton" title="__MSG_closePopup__" class="sbCloseButton hidden">
|
<button id="sbCloseButton" title="__MSG_closePopup__" class="sbCloseButton hidden">
|
||||||
<img src="icons/close.png" width="15" height="15">
|
<img src="icons/close.png" width="15" height="15" alt="Close icon">
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div id="sbBetaServerWarning" class="hidden" title="__MSG_openOptionsPage__">
|
<div id="sbBetaServerWarning" class="hidden" title="__MSG_openOptionsPage__">
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<img src="icons/IconSponsorBlocker256px.png" alt="SponsorBlock" width="40" height="40" id="sponsorBlockPopupLogo">
|
<img src="icons/IconSponsorBlocker256px.png" alt="SponsorBlock" width="40" height="40" id="sponsorBlockPopupLogo">
|
||||||
<p class="u-mZ">SponsorBlock</p>
|
<p class="u-mZ">SponsorBlock</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="videoInfo">
|
<div id="videoInfo">
|
||||||
<!-- Loading text -->
|
<!-- Loading text -->
|
||||||
<p id="loadingIndicator" class="u-mZ grey-text">__MSG_noVideoID__</p>
|
<p id="loadingIndicator" class="u-mZ grey-text">__MSG_noVideoID__</p>
|
||||||
@@ -64,11 +64,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Toggle Box -->
|
<!-- Toggle Box -->
|
||||||
<div class="sbControlsMenu">
|
<div class="sbControlsMenu">
|
||||||
<label id="whitelistButton" for="whitelistToggle" class="hidden sbControlsMenu-item">
|
<label id="whitelistButton" for="whitelistToggle" class="hidden sbControlsMenu-item">
|
||||||
<input type="checkbox" style="display:none;" id="whitelistToggle">
|
<input type="checkbox" style="display: none" id="whitelistToggle">
|
||||||
<svg viewBox="0 0 24 24" width="23" height="23" class="SBWhitelistIcon sbControlsMenu-itemIcon">
|
<svg viewBox="0 0 24 24" width="23" height="23" class="SBWhitelistIcon sbControlsMenu-itemIcon">
|
||||||
<path d="M24 10H14V0h-4v10H0v4h10v10h4V14h10z" />
|
<path d="M24 10H14V0h-4v10H0v4h10v10h4V14h10z" />
|
||||||
</svg>
|
</svg>
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
<!--github: mbledkowski/toggle-switch-->
|
<!--github: mbledkowski/toggle-switch-->
|
||||||
<label id="disableExtension" for="toggleSwitch" class="toggleSwitchContainer sbControlsMenu-item">
|
<label id="disableExtension" for="toggleSwitch" class="toggleSwitchContainer sbControlsMenu-item">
|
||||||
<span class="toggleSwitchContainer-switch">
|
<span class="toggleSwitchContainer-switch">
|
||||||
<input type="checkbox" style="display:none;" id="toggleSwitch" checked>
|
<input type="checkbox" style="display: none" id="toggleSwitch" checked>
|
||||||
<span class="switchBg shadow"></span>
|
<span class="switchBg shadow"></span>
|
||||||
<span class="switchBg white"></span>
|
<span class="switchBg white"></span>
|
||||||
<span class="switchBg green"></span>
|
<span class="switchBg green"></span>
|
||||||
@@ -99,29 +99,29 @@
|
|||||||
|
|
||||||
<!-- Submit box -->
|
<!-- Submit box -->
|
||||||
<div id="mainControls" style="display: none">
|
<div id="mainControls" style="display: none">
|
||||||
<p class="sbHeader">
|
<h1 class="sbHeader">
|
||||||
__MSG_recordTimesDescription__
|
__MSG_recordTimesDescription__
|
||||||
</p>
|
</h1>
|
||||||
<sub class="sponsorStartHint grey-text">__MSG_popupHint__</sub>
|
<sub class="sponsorStartHint grey-text">__MSG_popupHint__</sub>
|
||||||
<div align="center" style="margin: 8px 0;">
|
<div style="text-align: center; margin: 8px 0;">
|
||||||
<button id="sponsorStart" class="sbMediumButton" style="margin-right: 8px">__MSG_sponsorStart__</button>
|
<button id="sponsorStart" class="sbMediumButton" style="margin-right: 8px">__MSG_sponsorStart__</button>
|
||||||
<button id="submitTimes" class="sbMediumButton" style="display: none;">__MSG_submitTimesButton__</button>
|
<button id="submitTimes" class="sbMediumButton" style="display: none">__MSG_submitTimesButton__</button>
|
||||||
</div>
|
</div>
|
||||||
<span id="submissionHint" style="display: none;">__MSG_submissionEditHint__</span>
|
<span id="submissionHint" style="display: none">__MSG_submissionEditHint__</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Your Work box -->
|
<!-- Your Work box -->
|
||||||
<div class="sbYourWorkCols">
|
<div class="sbYourWorkBox">
|
||||||
<p class="sbHeader" style="padding: 8px 16px;">
|
<h1 class="sbHeader" style="padding: 8px 15px;">
|
||||||
__MSG_yourWork__
|
__MSG_yourWork__
|
||||||
</p>
|
</h1>
|
||||||
<div>
|
<div class="sbYourWorkCols">
|
||||||
<!-- Username -->
|
<!-- Username -->
|
||||||
<div id="usernameElement">
|
<div id="usernameElement">
|
||||||
<span class="u-mZ grey-text">__MSG_Username__:
|
<p class="u-mZ grey-text">__MSG_Username__:
|
||||||
<!-- loading/errors -->
|
<!-- loading/errors -->
|
||||||
<span id="setUsernameStatus" class="u-mZ white-text" style="display: none"></span>
|
<span id="setUsernameStatus" class="u-mZ white-text" style="display: none"></span>
|
||||||
</span>
|
</p>
|
||||||
<div id="setUsernameContainer">
|
<div id="setUsernameContainer">
|
||||||
<p id="usernameValue"></p>
|
<p id="usernameValue"></p>
|
||||||
<button id="setUsernameButton" title="__MSG_setUsername__">
|
<button id="setUsernameButton" title="__MSG_setUsername__">
|
||||||
@@ -141,7 +141,7 @@
|
|||||||
<!-- Submissions -->
|
<!-- Submissions -->
|
||||||
<div id="sponsorTimesContributionsContainer" class="hidden">
|
<div id="sponsorTimesContributionsContainer" class="hidden">
|
||||||
<p class="u-mZ grey-text">__MSG_Submissions__:</p>
|
<p class="u-mZ grey-text">__MSG_Submissions__:</p>
|
||||||
<span id="sponsorTimesContributionsDisplay">0</span>
|
<p id="sponsorTimesContributionsDisplay" class="u-mZ">0</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@
|
|||||||
<a id="sbConsiderDonateLink" href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener">
|
<a id="sbConsiderDonateLink" href="https://sponsor.ajay.app/donate" target="_blank" rel="noopener">
|
||||||
__MSG_considerDonating__
|
__MSG_considerDonating__
|
||||||
</a>
|
</a>
|
||||||
<img id="sbCloseDonate" src="/icons/close.png" alt="Close icon" height="8" style="padding-left: 5px; cursor: pointer;" />
|
<img id="sbCloseDonate" src="/icons/close.png" alt="__MSG_closeIcon__" height="8" style="padding-left: 5px; cursor: pointer;" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<footer id="sbFooter">
|
<footer id="sbFooter">
|
||||||
|
|||||||
Reference in New Issue
Block a user