Bilibili-Evolved/video/download-video/download-video.css
2019-07-23 12:33:27 +08:00

412 lines
9.4 KiB
CSS

.download-video.opened
{
pointer-events: initial;
opacity: 1;
transform: translate(-50%, -50%) scale(1);
}
.download-video
{
--download-video-background: white;
--download-video-foreground: black;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.95);
background: var(--download-video-background);
color: var(--download-video-foreground);
box-shadow: rgba(0,0,0,0.2) 0 4px 8px 0px;
z-index: 10001;
pointer-events: none;
opacity: 0;
padding: 16px;
width: 300px;
display: flex;
flex-direction: column;
align-items: stretch;
justify-content: space-between;
}
body.dark .download-video {
--download-video-background: #222;
--download-video-foreground: #eee;
}
.round-corner .download-video,
.round-corner .download-video .episode-list .v-checkbox,
.round-corner .download-video .rpc-settings {
border-radius: var(--large-corner-radius);
}
.round-corner .download-video .title,
.round-corner .download-video .cover,
.round-corner .v-dropdown,
.round-corner .v-dropdown .dropdown-menu,
.round-corner .v-dropdown .dropdown-menu li,
.round-corner .download-video button,
.round-corner .download-video .button,
.round-corner .download-video .direct-download .progress .background,
.round-corner .download-video .direct-download .progress .foreground,
.round-corner .download-video .rpc-settings input[type="text"] {
border-radius: var(--corner-radius);
}
.download-video,
.download-video * {
transition: all .2s ease-out;
-webkit-tap-highlight-color: transparent !important;
}
.download-video .cover {
width: 240px;
min-height: 135px;
background-color: #8882;
}
.download-video .header {
display: flex;
justify-content: space-between;
align-items: center;
}
.download-video h1 {
font-size: 16pt;
font-weight: bold;
color: var(--download-video-foreground);
}
.download-video i.mdi.mdi-close {
font-size: 16pt;
color: var(--download-video-foreground);
cursor: pointer;
}
.download-video i.mdi.mdi-close:hover {
color: var(--theme-color);
}
.download-video .info {
display: flex;
flex-direction: column;
align-items: center;
margin-top: 12px;
}
.download-video .title {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: stretch;
margin-top: 12px;
}
.download-video .bold {
color: var(--download-video-foreground);
font-weight: bold;
font-size: 12pt;
}
.download-video .title .bold {
width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
}
.download-video .title .size {
font-size: 10pt;
color: var(--download-video-foreground);
align-self: center;
display: flex;
align-items: center;
height: 24px;
}
.download-video .option-item {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 12px;
font-size: 10pt;
}
.v-dropdown {
position: relative;
background-color: #8884;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
min-width: 100px;
}
.v-dropdown .dropdown-menu {
transform-origin: top;
transform: scaleY(0) translateX(-50%);
position: absolute;
top: calc(100% + 2px);
left: 50%;
background-color: var(--download-video-background);
z-index: 1;
transition: .2s cubic-bezier(0.6, -0.28, 0.74, 0.05);
box-shadow: rgba(0,0,0,0.2) 0 4px 8px 0px;
}
.v-dropdown .dropdown-menu.opened {
transform: scaleY(1) translateX(-50%);
transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.v-dropdown .dropdown-menu li {
padding: 4px 8px;
white-space: nowrap;
min-width: 80px;
text-align: center;
cursor: pointer;
color: var(--download-video-foreground);
background-color: transparent;
}
.v-dropdown .dropdown-menu li:hover {
background-color: rgba(0,0,0,0.16);
}
.v-dropdown .mdi-chevron-down {
font-size: 16pt;
line-height: 1;
transform: rotate(0deg);
}
.v-dropdown .dropdown-menu.opened ~ .mdi-chevron-down {
transform: rotate(180deg);
}
.v-dropdown .selected {
user-select: none;
padding: 4px 8px;
}
.download-video .tabs {
display: flex;
padding-top: 12px;
font-size: 10pt;
}
.download-video .tabs .tab {
padding: 6px 12px;
border-bottom: 2px solid transparent;
cursor: pointer;
}
.download-video .tab.active {
color: var(--theme-color);
border-bottom-color: var(--theme-color);
}
.download-video .separator {
height: 1px;
background: #8884;
width: 100%;
margin: 12px 0;
}
.download-video h2 {
font-size: 12pt;
font-weight: bold;
color: var(--download-video-foreground);
}
.download-video .direct-download {
display: flex;
flex-direction: column;
align-items: start;
justify-content: space-between;
}
.download-video button,
.download-video .button {
border: none;
outline: none !important;
padding: 6px 16px;
font-size: 10pt;
cursor: pointer;
background: #8884;
color: var(--download-video-foreground);
}
.download-video button:hover,
.download-video .button:hover {
background: #8886;
}
.download-video .primary {
background: var(--theme-color);
color: var(--foreground-color);
align-self: center;
}
.download-video .primary:hover {
background: var(--theme-color-90);
}
.download-video button:disabled,
.download-video .busy button,
.download-video .busy .button,
.download-video .busy .primary {
background-color: #0001;
color: #8884;
cursor: not-allowed;
}
.download-video .busy button,
.download-video .busy .button {
cursor: wait !important;
}
.download-video .direct-download .progress {
align-self: stretch;
display: flex;
align-items: center;
margin-top: 8px;
}
.download-video .direct-download .progress .background {
flex-grow: 1;
height: 4px;
background: #8884;
margin-right: 4px;
position: relative;
}
.download-video .direct-download .progress .foreground {
position: absolute;
top: 0;
left: 0;
height: 4px;
background: linear-gradient(to right, var(--theme-color), var(--theme-color-60));
}
body.dark .download-video .direct-download .progress .foreground {
background: linear-gradient(to right, var(--theme-color-70), var(--theme-color));
}
.download-video .direct-download .progress .percent {
width: 50px;
text-align: right;
}
.download-video .actions {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 8px;
}
.download-video .actions>* {
margin: 4px;
flex-grow: 1;
flex-basis: calc(50% - 16px);
display: flex;
justify-content: center;
align-items: center;
}
.download-video i.mdi-alert-circle {
font-size: 14pt;
color: #FF9800;
}
.download-video .size-warning {
position: relative;
padding: 0 8px;
}
.download-video .size-warning-tip {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
background: var(--download-video-background);
color: var(--download-video-foreground);
border: 1px dashed var(--theme-color);
z-index: 2;
font-size: 10pt;
width: 300px;
padding: 8px;
box-shadow: rgba(0,0,0,0.2) 0 4px 8px 0px;
pointer-events: none;
opacity: 0;
}
.download-video .size-warning:hover .size-warning-tip {
opacity: 1;
}
.download-video .episode-list .v-checkbox {
padding: 4px 8px;
margin: 4px 0;
position: relative;
background-color: transparent;
}
.download-video .episode-list .v-checkbox.checked {
background-color: #8882;
}
.v-checkbox {
font-size: 10pt;
cursor: pointer;
display: flex;
align-items: center;
}
.v-checkbox .mdi {
font-size: 15pt;
line-height: 1;
}
.v-checkbox .content {
flex-grow: 1;
text-align: left;
padding: 0 8px;
}
.v-checkbox .mdi-checkbox-marked-circle {
color: var(--theme-color);
position: absolute;
top: 0;
left: 0;
transform: scale(0);
transition-timing-function: cubic-bezier(0.6, -0.28, 0.74, 0.05);
}
.v-checkbox .mdi-checkbox-blank-circle-outline {
color: #8884;
position: relative;
}
.v-checkbox.checked .mdi-checkbox-blank-circle-outline {
color: var(--theme-color);
}
.v-checkbox.checked .mdi-checkbox-marked-circle {
transform: scale(1);
transition-timing-function: cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.download-video .episode-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.download-video .episode-list {
overflow: auto;
max-height: 320px;
}
.download-video button.list-tool {
padding: 4px;
line-height: 1;
font-size: 12pt;
margin: 0 4px;
}
.download-video .episode-header h2 {
flex-grow: 1;
}
.download-video .selected-count {
width: 64px;
text-align: right;
}
.download-video .aria2-rpc .mdi {
margin-left: 8px;
font-size: 14pt;
line-height: 1;
}
.download-video .aria2-rpc {
position: relative;
}
.download-video .rpc-settings {
position: absolute;
display: flex;
flex-direction: column;
align-items: stretch;
color: var(--download-video-foreground);
background: var(--download-video-background);
bottom: 120%;
left: 50%;
cursor: initial;
box-shadow: rgba(0,0,0,0.2) 0 4px 8px 0px;
transform-origin: bottom;
transform: translateX(-50%);
opacity: 0;
pointer-events: none;
padding: 8px;
z-index: 3;
}
.download-video .rpc-settings>* {
margin: 8px;
}
.download-video .rpc-settings.show {
opacity: 1;
pointer-events: initial;
}
.download-video .rpc-settings-item {
display: flex;
align-items: center;
justify-content: space-between;
white-space: nowrap;
}
.download-video .rpc-settings input[type="text"] {
background: transparent;
color: var(--download-video-foreground);
border: 1px solid #8884;
padding: 4px;
margin-left: 8px;
}
.download-video .rpc-settings input[type="text"]:focus {
border-color: var(--theme-color);
}