SponsorBlock/public/popup.css

374 lines
6.5 KiB
CSS
Raw Normal View History

2020-08-08 01:43:04 +02:00
:root {
--sb-main-bg-color: #222626;
2020-08-16 04:09:14 +02:00
--sb-main-fg-color: white;
--sb-gray-fg-color: #444848;
--sb-on-white-bg: black;
--sb-green-bg: #077B27;
}
.hidden {
2020-12-14 05:52:38 +01:00
display: none !important;
}
2020-12-22 07:20:22 +01:00
@media only screen and (max-width: 600px) {
#sponsorBlockPopupBody {
width: 100%;
}
}
#sponsorBlockPopupBody {
margin: auto;
width: 374px;
background: var(--sb-main-bg-color);
}
2020-08-08 01:43:04 +02:00
#sponsorblockPopup {
2020-08-16 04:09:14 +02:00
color: var(--sb-main-fg-color);
font-family: 'Source Sans Pro', sans-serif;
2020-08-19 18:01:33 +02:00
font-size: 14px;
2020-08-16 04:09:14 +02:00
display: flex;
flex-flow: column nowrap;
2020-08-08 01:43:04 +02:00
align-items: center;
width: 330px;
2020-12-15 05:51:23 +01:00
padding: 22px;
2020-08-16 04:09:14 +02:00
text-align: center;
}
2020-12-13 21:46:48 +01:00
#issueReporterTimeButtons > .votingButtons > .segmentTimeButton {
2020-08-19 17:57:46 +02:00
font-weight: bold;
color: var(--sb-main-fg-color);
background: none;
border: none;
2020-12-15 05:26:08 +01:00
padding: 7px;
2020-12-13 21:46:48 +01:00
outline: none;
cursor: pointer;
}
2020-12-14 03:51:55 +01:00
.dot {
height: 10px;
width: 10px;
border-radius: 50%;
display: inline-block;
}
2020-12-13 21:46:48 +01:00
.sponsorTimesThanksForVotingText {
font-size: large;
}
2020-12-13 21:46:48 +01:00
.voteButton {
height: 20px;
padding: 0 5px;
cursor: pointer;
2020-08-19 17:57:46 +02:00
}
2020-08-16 04:09:14 +02:00
#videoInfo>p, #videoInfo>div>p {
2020-08-08 01:43:04 +02:00
margin: 0;
}
2020-08-08 01:43:04 +02:00
div.logoText {
2020-08-16 04:09:14 +02:00
display: flex;
flex-flow: row nowrap;
align-items: center;
color: var(--sb-main-fg-color);
}
div.logoText>p, .sbHeader {
2020-08-16 04:09:14 +02:00
font-size: 32px;
margin: -4px 0 -2px;
font-weight: bold;
}
2020-10-15 05:07:17 +02:00
.sbHeader.sbSubHeader {
font-size: 20px;
}
2020-08-16 04:09:14 +02:00
.largeButton{
background: white;
/*font-weight: bold;*/
padding: 6px 24px;
font-size: 20px;
border-radius: 25px;
border: none;
2020-08-16 04:09:14 +02:00
text-decoration: none;
color: black;
2020-08-19 17:57:46 +02:00
min-height: 26px;
min-width: 152px;
2020-08-16 04:09:14 +02:00
display: block;
overflow: hidden;
text-overflow: ellipsis;
font-family: 'Source Sans Pro', sans-serif;
}
2020-10-15 05:31:51 +02:00
.sponsorBlockPageBody .mediumButton {
background-color:#cc1717;
-moz-border-radius:28px;
-webkit-border-radius:28px;
border-radius:28px;
border: none;
2020-10-15 05:31:51 +02:00
display:inline-block;
cursor:pointer;
color:#ffffff;
font-size:16px;
padding:8px 37px;
text-decoration:none;
text-shadow:0px 0px 0px #662727;
font-family: 'Source Sans Pro', sans-serif;
2020-10-15 05:31:51 +02:00
transition: 0.01s background-color;
}
.sponsorBlockPageBody .mediumButton:hover {
background-color:#ec1c1c;
}
.sponsorBlockPageBody .mediumButton:focus {
outline: none;
background-color:#ec1c1c;
}
.sponsorBlockPageBody .mediumButton:active {
position:relative;
top:1px;
}
2020-08-08 01:43:04 +02:00
/* disable extension */
2020-08-16 04:09:14 +02:00
2020-08-08 01:43:04 +02:00
#disableExtension {
2020-08-16 04:09:14 +02:00
display: flex;
flex-flow: column nowrap;
align-items: center;
}
2020-08-08 01:43:04 +02:00
/* switch button */
.toggleSwitchContainer {
display: flex;
cursor: pointer;
}
2020-08-16 04:09:14 +02:00
2020-08-08 01:43:04 +02:00
.switchBg {
display: block;
height: 37px;
width: 78px;
border-radius: 18.5px;
}
2020-08-08 01:43:04 +02:00
.switchBg.shadow {
background: none;
box-shadow: 0.75px 0.75px 10px 0px rgba(50, 50, 50, 0.5);
opacity: 1;
}
2020-08-08 01:43:04 +02:00
.switchBg.white {
position: absolute;
background: white;
opacity: 1;
}
2020-08-08 01:43:04 +02:00
.switchBg.green {
position: absolute;
background: #00a205;
opacity: 0;
transition: opacity .2s ease-out;
}
2020-04-20 22:56:12 +02:00
2020-08-08 01:43:04 +02:00
.switchDot {
width: 25px;
height: 25px;
margin: 6px;
background: white;
position: absolute;
border-radius: 12.5px;
box-shadow: .75px .75px 3.8px 0px rgba(50, 50, 50, 0.45);
2020-12-14 06:35:49 +01:00
transition: transform .2s ease-out;
}
.preload * {
transition: none !important;
2020-08-08 01:43:04 +02:00
}
2020-04-20 22:56:12 +02:00
2020-08-16 04:09:14 +02:00
#toggleSwitch:checked~.switchDot {
2020-08-08 01:43:04 +02:00
transform: translateX(40px);
}
2020-08-16 04:09:14 +02:00
#toggleSwitch:checked~.switchBg.green {
2020-08-08 01:43:04 +02:00
opacity: 1 !important;
}
2020-08-16 04:09:14 +02:00
#toggleSwitch:checked~.switchBg.white {
2020-08-08 01:43:04 +02:00
opacity: 0 !important;
transition: opacity .2s step-end;
2019-07-10 18:20:29 +02:00
}
2020-08-08 01:43:04 +02:00
.sidebyside {
display: flex;
flex-flow: row nowrap;
width: 88%;
margin: 0 6% 0 6%;
2020-04-20 21:57:07 +02:00
}
2020-08-16 04:09:14 +02:00
.sidebyside>div {
2020-08-08 01:43:04 +02:00
width: 50%;
justify-content: center;
2019-08-13 20:39:20 +02:00
}
2020-09-06 20:04:50 +02:00
#whitelistButton, #sponsorTimesSkipsDoneContainer, .toggleSwitchContainer {
2020-08-19 05:15:22 +02:00
margin-bottom: 2px !important;
}
2020-12-14 04:41:59 +01:00
#whitelistForceCheck {
font-weight: bold;
text-decoration: underline;
font-size: large;
cursor: pointer;
padding: 10px 0;
}
.sbHeader {
margin-bottom: 5px !important;
2020-08-19 05:15:22 +02:00
}
.logoText {
2020-08-16 04:09:14 +02:00
margin-bottom: 6px !important;
}
2020-09-23 21:29:49 +02:00
#videoInfo, #mainControls, .sidebyside, #sponsorTimesSkipsDoneContainer, .largeButton {
2020-08-19 05:15:22 +02:00
margin-bottom: 12px !important;
}
#mainControls{
2020-10-15 05:23:42 +02:00
flex-flow: column;
align-items: center;
}
#submitTimesContainer{
flex-flow: column;
align-items: center;
}
2020-08-08 01:43:04 +02:00
/* additional buttons */
#additionalButtons {
display: flex;
flex-flow: column nowrap;
align-items: center;
}
2020-08-16 04:09:14 +02:00
#additionalButtons>button, button#setUsernameButton, #submitUsername {
background: none;
2020-08-08 01:43:04 +02:00
border: none;
color: white;
width: fit-content;
2020-10-15 05:23:42 +02:00
padding-left: 0;
cursor: pointer;
}
#submitUsername {
padding-left: 5pt;
}
2020-08-08 01:43:04 +02:00
2020-08-16 04:09:14 +02:00
#additionalButtons, #additionalButtons>button {
font-size: 15px;
}
#usernameValue, #usernameInput, #sponsorTimesContributionsDisplay{
font-size: 16px;
2020-08-08 01:43:04 +02:00
}
2020-12-14 04:41:59 +01:00
.SBWhitelistIcon {
2020-09-01 14:36:22 +02:00
min-width: 16px;
min-height: 16px;
margin-top: auto;
margin-bottom: auto;
2020-12-14 04:41:59 +01:00
height: 100%;
2020-09-01 14:36:22 +02:00
}
2020-12-14 04:41:59 +01:00
.SBWhitelistIcon>path {
2020-08-16 04:09:14 +02:00
fill: var(--sb-main-fg-color);
}
2020-08-19 05:15:22 +02:00
label>p, #disableExtension>p, #usernameValue, #usernameElement > div > p,#sponsorTimesContributionsContainer > div > p, #usernameElement > div > #setUsername > #setUsernameStatusContainer > p {
2020-08-08 01:43:04 +02:00
margin: 0;
2019-07-29 05:52:32 +02:00
}
2020-08-19 05:15:22 +02:00
#usernameElement > div > p, #sponsorTimesContributionsContainer {
2020-08-16 04:09:14 +02:00
text-align: start;
}
2020-12-14 04:41:59 +01:00
.grayedOut>.SBWhitelistIcon>path {
2020-08-16 04:09:14 +02:00
fill: var(--sb-gray-fg-color);
2020-08-08 01:43:04 +02:00
}
2020-08-16 04:09:14 +02:00
.grayedOut>label {
color: var(--sb-gray-fg-color);
}
2020-12-14 04:41:59 +01:00
.SBWhitelistIcon.rotated {
2020-08-16 04:09:14 +02:00
transform: rotate(45deg);
2019-07-29 05:52:32 +02:00
}
2020-12-14 04:41:59 +01:00
.SBWhitelistIconContainer, button#optionsButton>img, .logoText>img, #usernameValue {
2020-08-16 04:09:14 +02:00
margin-right: 8px;
}
2020-09-06 20:04:50 +02:00
#whitelistButton>label, #additionalButtons>button, div#setUsernameContainer {
2020-08-08 01:43:04 +02:00
display: flex;
flex-flow: row nowrap;
}
2020-09-06 20:04:50 +02:00
#whitelistButton>label, #additionalButtons>button, div#setUsernameContainer>button {
2020-08-19 05:15:22 +02:00
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;
2020-08-16 04:09:14 +02:00
}
2020-04-20 22:56:12 +02:00
2020-08-16 04:09:14 +02:00
#usernameValue{
overflow: hidden;
text-overflow: ellipsis;
2020-09-01 14:36:22 +02:00
max-width: 130px;
2019-08-20 02:05:33 +02:00
}
2020-08-19 05:15:22 +02:00
#setUsername {
display:flex;
}
2020-08-16 04:09:14 +02:00
#usernameInput {
background: none;
2020-08-19 05:15:22 +02:00
padding: 0;
border: white 1px solid;
2020-08-16 04:09:14 +02:00
color: var(--sb-main-fg-color);
2020-08-19 05:15:22 +02:00
width: calc(100% - 24px);
2020-12-14 05:52:38 +01:00
text-overflow: ellipsis;
}
#setUsername.SBExpanded {
width: 200%;
2020-08-16 04:09:14 +02:00
}
/* footer */
#sbFooter > a {
color: var(--sb-main-fg-color);
text-decoration: none;
}
2020-12-14 06:44:21 +01:00
#showNoticeAgain {
margin-top: 30px;
color: var(--sb-main-fg-color);
background: none;
border: 1px solid white;
cursor: pointer;
padding: 5px;
border-radius: 5px;
}