mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
305 lines
5.4 KiB
CSS
305 lines
5.4 KiB
CSS
:root {
|
|
--sb-main-bg-color: #222626;
|
|
--sb-main-fg-color: white;
|
|
--sb-gray-fg-color: #444848;
|
|
--sb-on-white-bg: black;
|
|
--sb-green-bg: #077B27;
|
|
}
|
|
|
|
#sponsorblockPopup {
|
|
color: var(--sb-main-fg-color);
|
|
font-family: 'Source Sans Pro', sans-serif;
|
|
font-size: 14px;
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
align-items: center;
|
|
width: calc(100% - 6px);
|
|
height: calc(100% - 22px);
|
|
padding: 22px 3px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
#issueReporterTimeButtons {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
#issueReporterTimeButtons > button {
|
|
font-weight: bold;
|
|
color: var(--sb-main-fg-color);
|
|
background: none;
|
|
border: none;
|
|
height: 20px;
|
|
padding: 0 8px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
#issueReporterTimeButtons > div > img:nth-child(2) {
|
|
margin-left: 6px;
|
|
transform: scaleY(-1);
|
|
}
|
|
|
|
#issueReporterTimeButtons > div > h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
#videoInfo>p, #videoInfo>div>p {
|
|
margin: 0;
|
|
}
|
|
|
|
div.logoText {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
align-items: center;
|
|
color: var(--sb-main-fg-color);
|
|
}
|
|
|
|
div.logoText>p, .sbHeader {
|
|
font-size: 32px;
|
|
margin: -4px 0 -2px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.largeButton{
|
|
background: white;
|
|
/*font-weight: bold;*/
|
|
padding: 6px 24px;
|
|
font-size: 20px;
|
|
border-radius: 25px;
|
|
border: none;
|
|
text-decoration: none;
|
|
color: black;
|
|
min-height: 26px;
|
|
min-width: 152px;
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-family: 'Source Sans Pro', sans-serif;
|
|
}
|
|
|
|
.mediumButton {
|
|
background: red;
|
|
/* font-weight: bold; */
|
|
padding: 6px 24px;
|
|
font-size: 16px;
|
|
border-radius: 25px;
|
|
border: none;
|
|
text-decoration: none;
|
|
color: white;
|
|
min-height: 26px;
|
|
min-width: 152px;
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-family: 'Source Sans Pro', sans-serif;
|
|
}
|
|
|
|
/* disable extension */
|
|
|
|
#disableExtension {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
align-items: center;
|
|
}
|
|
|
|
/* switch button */
|
|
|
|
.toggleSwitchContainer {
|
|
display: flex;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.switchBg {
|
|
display: block;
|
|
height: 37px;
|
|
width: 78px;
|
|
border-radius: 18.5px;
|
|
}
|
|
|
|
.switchBg.shadow {
|
|
background: none;
|
|
box-shadow: 0.75px 0.75px 10px 0px rgba(50, 50, 50, 0.5);
|
|
opacity: 1;
|
|
}
|
|
|
|
.switchBg.white {
|
|
position: absolute;
|
|
background: white;
|
|
opacity: 1;
|
|
}
|
|
|
|
.switchBg.green {
|
|
position: absolute;
|
|
background: #00a205;
|
|
opacity: 0;
|
|
transition: opacity .2s ease-out;
|
|
}
|
|
|
|
.switchDot {
|
|
width: 25px;
|
|
height: 25px;
|
|
margin: 6px;
|
|
background: white;
|
|
position: absolute;
|
|
border-radius: 12.5px;
|
|
transition: transform .2s ease-out;
|
|
box-shadow: .75px .75px 3.8px 0px rgba(50, 50, 50, 0.45);
|
|
}
|
|
|
|
#toggleSwitch:checked~.switchDot {
|
|
transform: translateX(40px);
|
|
}
|
|
|
|
#toggleSwitch:checked~.switchBg.green {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
#toggleSwitch:checked~.switchBg.white {
|
|
opacity: 0 !important;
|
|
transition: opacity .2s step-end;
|
|
}
|
|
|
|
.sidebyside {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
width: 88%;
|
|
margin: 0 6% 0 6%;
|
|
}
|
|
|
|
.sidebyside>div {
|
|
width: 50%;
|
|
justify-content: center;
|
|
}
|
|
|
|
#whitelistButton, #sponsorTimesSkipsDoneContainer, .toggleSwitchContainer {
|
|
margin-bottom: 2px !important;
|
|
}
|
|
|
|
.sbHeader {
|
|
margin-bottom: 5px !important;
|
|
}
|
|
|
|
.logoText {
|
|
margin-bottom: 6px !important;
|
|
}
|
|
|
|
#videoInfo, #mainControls, .sidebyside, #sponsorTimesSkipsDoneContainer, .largeButton {
|
|
margin-bottom: 12px !important;
|
|
}
|
|
#mainControls{
|
|
flex-flow: column;
|
|
align-items: center;
|
|
}
|
|
#submitTimesContainer{
|
|
flex-flow: column;
|
|
align-items: center;
|
|
}
|
|
/* additional buttons */
|
|
|
|
#additionalButtons {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
align-items: center;
|
|
}
|
|
|
|
#additionalButtons>button, button#setUsernameButton, #submitUsername {
|
|
background: none;
|
|
border: none;
|
|
color: white;
|
|
width: fit-content;
|
|
padding: 0;
|
|
}
|
|
|
|
#additionalButtons, #additionalButtons>button {
|
|
font-size: 15px;
|
|
}
|
|
|
|
#usernameValue, #usernameInput, #sponsorTimesContributionsDisplay{
|
|
font-size: 19px;
|
|
}
|
|
|
|
#whitelistButton > label > svg {
|
|
min-width: 16px;
|
|
min-height: 16px;
|
|
margin-top: auto;
|
|
margin-bottom: auto;
|
|
}
|
|
|
|
label>svg>path {
|
|
fill: var(--sb-main-fg-color);
|
|
}
|
|
|
|
label>p, #disableExtension>p, #usernameValue, #usernameElement > div > p,#sponsorTimesContributionsContainer > div > p, #usernameElement > div > #setUsername > #setUsernameStatusContainer > p {
|
|
margin: 0;
|
|
}
|
|
|
|
#usernameElement > div > p, #sponsorTimesContributionsContainer {
|
|
text-align: start;
|
|
}
|
|
|
|
|
|
.grayedOut>label>svg>path {
|
|
fill: var(--sb-gray-fg-color);
|
|
}
|
|
|
|
.grayedOut>label {
|
|
color: var(--sb-gray-fg-color);
|
|
}
|
|
|
|
label>svg.rotated {
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
label>svg, button#optionsButton>img, .logoText>img, #usernameValue {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
#whitelistButton>label, #additionalButtons>button, div#setUsernameContainer {
|
|
display: flex;
|
|
flex-flow: row nowrap;
|
|
}
|
|
|
|
#whitelistButton>label, #additionalButtons>button, div#setUsernameContainer>button {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#usernameElement > div, #sponsorTimesContributionsContainer > div {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.sidebyside > #usernameElement, .sidebyside > #sponsorTimesContributionsContainer {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
#usernameValue{
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 130px;
|
|
}
|
|
|
|
#setUsername {
|
|
display:flex;
|
|
}
|
|
|
|
#usernameInput {
|
|
background: none;
|
|
padding: 0;
|
|
border: none;
|
|
color: var(--sb-main-fg-color);
|
|
width: calc(100% - 24px);
|
|
}
|
|
|
|
/* footer */
|
|
|
|
#sbFooter {
|
|
margin-bottom: 28px;
|
|
}
|
|
|
|
#sbFooter > a {
|
|
color: var(--sb-main-fg-color);
|
|
text-decoration: none;
|
|
}
|