Revert "feat(cssVar): add new CSS variables for font size and tooltip positioning"

This reverts commit 59e9a32ecb.
This commit is contained in:
Harvey Zhao committed 2026-01-03 00:11:00 +08:00
1 parent 0bb4e1acdb
commit ae03670f9a
33 files changed
+118 -214

No files matched your search

+1 -1
View File
@@ -479,7 +479,7 @@ if (_utils.isBrowser) {
}
},{"bundle-text:./style/index.less":"bFGMG","option-validator":"9hUEm","../package.json":"3r4tp","./config":"1dlGA","./contextmenu":"dx7Zz","./control":"cNVpy","./events":"dQzlM","./hotkey":"drylQ","./i18n":"3Jf1s","./icons":"avFu3","./info":"gvEup","./layer":"7Oas9","./loading":"glZdQ","./mask":"iGxU6","./notice":"jZEIz","./player":"iA4EC","./plugins":"6P64r","./scheme":"8YPbR","./setting":"7ATN8","./storage":"grHII","./subtitle":"hxr0l","./template":"5JwMQ","./utils":"gGxPm","./utils/emitter":"2qvfs","@parcel/transformer-js/src/esmodule-helpers.js":"8oCsH"}],"bFGMG":[function(require,module,exports,__globalThis) {
module.exports = ".art-video-player {\n --art-theme: red;\n --art-font-color: #fff;\n --art-background-color: #000;\n --art-font-size-sm: 12px;\n --art-text-shadow-color: #00000080;\n --art-transition-duration: .2s;\n --art-ease-standard: ease;\n --art-padding: 10px;\n --art-border-radius: 3px;\n --art-mobile-padding: 10px;\n --art-mobile-radius: 3px;\n --art-radius-sm: 3px;\n --art-space-xxs: 5px;\n --art-space-xs: 10px;\n --art-surface-hover-color: #ffffff1a;\n --art-surface-border-color: #ffffff1a;\n --art-surface-muted-color: #ffffff80;\n --art-surface-range-color: #fff3;\n --art-progress-height: 6px;\n --art-progress-color: #ffffff40;\n --art-progress-top-gap: 8px;\n --art-hover-color: #ffffff40;\n --art-loaded-color: #ffffff40;\n --art-tip-padding: 3px 5px;\n --art-tip-offset: -25px;\n --art-state-size: 80px;\n --art-state-opacity: .8;\n --art-bottom-height: 100px;\n --art-bottom-offset: 20px;\n --art-bottom-gap: 5px;\n --art-highlight-width: 8px;\n --art-highlight-color: #ffffff80;\n --art-control-height: 46px;\n --art-control-opacity: .75;\n --art-control-icon-size: 36px;\n --art-control-icon-scale: 1.1;\n --art-touch-hit-size: var(--art-control-height);\n --art-volume-height: 120px;\n --art-volume-handle-size: 14px;\n --art-lock-size: 36px;\n --art-indicator-scale: 0;\n --art-indicator-size: 16px;\n --art-fullscreen-web-index: 9999;\n --art-settings-icon-size: 24px;\n --art-settings-max-height: 300px;\n --art-selector-max-height: 300px;\n --art-contextmenus-min-width: 250px;\n --art-contextmenu-padding-x: 15px;\n --art-subtitle-font-size: 20px;\n --art-subtitle-gap: 5px;\n --art-subtitle-bottom: 15px;\n --art-subtitle-border: #000;\n --art-widget-background: #000000d9;\n --art-tip-background: #000000b3;\n --art-scrollbar-size: 4px;\n --art-scrollbar-background: #ffffff40;\n --art-scrollbar-background-hover: #ffffff80;\n --art-mini-progress-height: 2px;\n --art-shadow-low: 0 1px 2px 0 #0000001f;\n --art-shadow-medium: 0 1px 3px 0 #0003, 0 1px 2px -1px #0003;\n --art-shadow-high: 0 4px 10px 0 #00000040;\n --art-shadow-elevated: var(--art-shadow-medium);\n --art-icon-small-size: 15px;\n --art-overlay-dim: #00000040;\n --art-overlay-strong: #00000080;\n}\n\n.art-bg-cover {\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n}\n\n.art-bottom-gradient {\n background-image: linear-gradient(to top, #000, #0006, #0000);\n background-position: bottom;\n background-repeat: repeat-x;\n}\n\n.art-backdrop-filter {\n backdrop-filter: saturate(180%) blur(20px);\n background-color: #000000bf !important;\n}\n\n.art-truncate {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.art-panel-surface {\n border-radius: var(--art-radius-sm);\n background-color: var(--art-widget-background);\n}\n\n.art-video-player {\n zoom: 1;\n text-align: left;\n user-select: none;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n color: var(--art-font-color);\n background-color: var(--art-background-color);\n text-shadow: 0 0 2px var(--art-text-shadow-color);\n -webkit-tap-highlight-color: #0000;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n -ms-high-contrast-adjust: none;\n direction: ltr;\n outline: 0;\n margin: 0 auto;\n padding: 0;\n font-family: PingFang SC, Helvetica Neue, Microsoft YaHei, Roboto, Arial, sans-serif;\n font-size: 14px;\n line-height: 1.3;\n position: relative;\n}\n\n.art-video-player *, .art-video-player :before, .art-video-player :after {\n box-sizing: border-box;\n}\n\n.art-video-player ::-webkit-scrollbar {\n width: var(--art-scrollbar-size);\n height: var(--art-scrollbar-size);\n}\n\n.art-video-player ::-webkit-scrollbar-thumb {\n background-color: var(--art-scrollbar-background);\n}\n\n.art-video-player ::-webkit-scrollbar-thumb:hover {\n background-color: var(--art-scrollbar-background-hover);\n}\n\n.art-video-player img {\n vertical-align: top;\n max-width: 100%;\n}\n\n.art-video-player svg {\n fill: var(--art-font-color);\n}\n\n.art-video-player a {\n color: var(--art-font-color);\n text-decoration: none;\n}\n\n.art-icon {\n justify-content: center;\n align-items: center;\n line-height: 1;\n display: flex;\n}\n\n.art-video-player.art-backdrop .art-contextmenus, .art-video-player.art-backdrop .art-info, .art-video-player.art-backdrop .art-settings, .art-video-player.art-backdrop .art-layer-auto-playback, .art-video-player.art-backdrop .art-selector-list, .art-video-player.art-backdrop .art-volume-inner {\n backdrop-filter: saturate(180%) blur(20px);\n background-color: #000000bf !important;\n}\n\n.art-video {\n z-index: 10;\n cursor: pointer;\n width: 100%;\n height: 100%;\n position: absolute;\n inset: 0;\n}\n\n.art-poster {\n z-index: 11;\n pointer-events: none;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n width: 100%;\n height: 100%;\n positiLine truncated
module.exports = ".art-video-player {\n --art-theme: red;\n --art-font-color: #fff;\n --art-background-color: #000;\n --art-text-shadow-color: #00000080;\n --art-transition-duration: .2s;\n --art-padding: 10px;\n --art-border-radius: 3px;\n --art-progress-height: 6px;\n --art-progress-color: #ffffff40;\n --art-progress-top-gap: 8px;\n --art-hover-color: #ffffff40;\n --art-loaded-color: #ffffff40;\n --art-state-size: 80px;\n --art-state-opacity: .8;\n --art-bottom-height: 100px;\n --art-bottom-offset: 20px;\n --art-bottom-gap: 5px;\n --art-highlight-width: 8px;\n --art-highlight-color: #ffffff80;\n --art-control-height: 46px;\n --art-control-opacity: .75;\n --art-control-icon-size: 36px;\n --art-control-icon-scale: 1.1;\n --art-volume-height: 120px;\n --art-volume-handle-size: 14px;\n --art-lock-size: 36px;\n --art-indicator-scale: 0;\n --art-indicator-size: 16px;\n --art-fullscreen-web-index: 9999;\n --art-settings-icon-size: 24px;\n --art-settings-max-height: 300px;\n --art-selector-max-height: 300px;\n --art-contextmenus-min-width: 250px;\n --art-subtitle-font-size: 20px;\n --art-subtitle-gap: 5px;\n --art-subtitle-bottom: 15px;\n --art-subtitle-border: #000;\n --art-widget-background: #000000d9;\n --art-tip-background: #000000b3;\n --art-scrollbar-size: 4px;\n --art-scrollbar-background: #ffffff40;\n --art-scrollbar-background-hover: #ffffff80;\n --art-mini-progress-height: 2px;\n}\n\n.art-bg-cover {\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n}\n\n.art-bottom-gradient {\n background-image: linear-gradient(to top, #000, #0006, #0000);\n background-position: bottom;\n background-repeat: repeat-x;\n}\n\n.art-backdrop-filter {\n backdrop-filter: saturate(180%) blur(20px);\n background-color: #000000bf !important;\n}\n\n.art-truncate {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n}\n\n.art-video-player {\n zoom: 1;\n text-align: left;\n user-select: none;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n color: var(--art-font-color);\n background-color: var(--art-background-color);\n text-shadow: 0 0 2px var(--art-text-shadow-color);\n -webkit-tap-highlight-color: #0000;\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n -ms-high-contrast-adjust: none;\n direction: ltr;\n outline: 0;\n margin: 0 auto;\n padding: 0;\n font-family: PingFang SC, Helvetica Neue, Microsoft YaHei, Roboto, Arial, sans-serif;\n font-size: 14px;\n line-height: 1.3;\n position: relative;\n}\n\n.art-video-player *, .art-video-player :before, .art-video-player :after {\n box-sizing: border-box;\n}\n\n.art-video-player ::-webkit-scrollbar {\n width: var(--art-scrollbar-size);\n height: var(--art-scrollbar-size);\n}\n\n.art-video-player ::-webkit-scrollbar-thumb {\n background-color: var(--art-scrollbar-background);\n}\n\n.art-video-player ::-webkit-scrollbar-thumb:hover {\n background-color: var(--art-scrollbar-background-hover);\n}\n\n.art-video-player img {\n vertical-align: top;\n max-width: 100%;\n}\n\n.art-video-player svg {\n fill: var(--art-font-color);\n}\n\n.art-video-player a {\n color: var(--art-font-color);\n text-decoration: none;\n}\n\n.art-icon {\n justify-content: center;\n align-items: center;\n line-height: 1;\n display: flex;\n}\n\n.art-video-player.art-backdrop .art-contextmenus, .art-video-player.art-backdrop .art-info, .art-video-player.art-backdrop .art-settings, .art-video-player.art-backdrop .art-layer-auto-playback, .art-video-player.art-backdrop .art-selector-list, .art-video-player.art-backdrop .art-volume-inner {\n backdrop-filter: saturate(180%) blur(20px);\n background-color: #000000bf !important;\n}\n\n.art-video {\n z-index: 10;\n cursor: pointer;\n width: 100%;\n height: 100%;\n position: absolute;\n inset: 0;\n}\n\n.art-poster {\n z-index: 11;\n pointer-events: none;\n background-position: center;\n background-repeat: no-repeat;\n background-size: cover;\n width: 100%;\n height: 100%;\n position: absolute;\n inset: 0;\n}\n\n.art-video-player .art-subtitle {\n z-index: 20;\n text-align: center;\n pointer-events: none;\n justify-content: center;\n align-items: center;\n gap: var(--art-subtitle-gap);\n width: 100%;\n bottom: var(--art-subtitle-bottom);\n font-size: var(--art-subtitle-font-size);\n transition: bottom var(--art-transition-duration) ease;\n text-shadow: var(--art-subtitle-border) 1px 0 1px, var(--art-subtitle-border) 0 1px 1px, var(--art-subtitle-border) -1px 0 1px, var(--art-subtitle-border) 0 -1px 1px, var(--art-subtitle-border) 1px 1px 1px, var(--art-subtitle-border) -1px -1px 1px, var(--art-subtitle-border) 1px -1px 1px, var(--art-subtitle-border) -1px 1px 1px;\n flex-direction: column;\n padding: 0 5%;\n display: none;\n position: absolute;\n}\n\n.art-video-player.art-subtitle-show .art-subtitle {\n display: flex;\n}\n\n.art-video-player.art-control-show .art-subtitle {\n Line truncated
},{}],"9hUEm":[function(require,module,exports,__globalThis) {
!function(r, t) {
+1 -1
View File
@@ -59,4 +59,4 @@
color: var(--art-font-color);
text-decoration: none;
}
}
}
@@ -1,10 +1,9 @@
.art-video-player {
&[data-aspect-ratio] {
overflow: hidden;
.art-video {
object-fit: fill;
box-sizing: content-box;
}
}
}
}
+1 -2
View File
@@ -1,5 +1,4 @@
.art-video-player.art-backdrop {
.art-contextmenus,
.art-info,
.art-settings,
@@ -8,4 +7,4 @@
.art-volume-inner {
.art-backdrop-filter();
}
}
}
+3 -4
View File
@@ -8,14 +8,14 @@
overflow: hidden;
pointer-events: none;
padding: 0 var(--art-padding);
transition: all var(--art-transition-duration) var(--art-ease-standard);
transition: all var(--art-transition-duration) ease;
background-size: 100% var(--art-bottom-height);
.art-bottom-gradient();
.art-controls,
.art-progress {
transform: translateY(var(--art-bottom-offset));
transition: transform var(--art-transition-duration) var(--art-ease-standard);
transition: transform var(--art-transition-duration) ease;
}
}
@@ -23,11 +23,10 @@
&.art-hover {
.art-bottom {
opacity: 1;
.art-controls,
.art-progress {
transform: translateY(0);
}
}
}
}
}
@@ -4,14 +4,17 @@
flex-direction: column;
position: absolute;
z-index: 120;
padding: var(--art-space-xxs) 0;
font-size: var(--art-font-size-sm);
padding: 5px 0;
border-radius: var(--art-border-radius);
font-size: 12px;
background-color: var(--art-widget-background);
min-width: var(--art-contextmenus-min-width);
.art-panel-surface();
.art-contextmenu {
.art-menu-item-base(var(--art-space-xs), var(--art-contextmenu-padding-x), false);
border-bottom: 1px solid var(--art-surface-border-color);
cursor: pointer;
display: flex;
padding: 10px 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
span {
padding: 0 8px;
@@ -23,7 +26,7 @@
}
&:hover {
background-color: var(--art-surface-hover-color);
background-color: rgba(255, 255, 255, 0.1);
}
&:last-child {
+5 -5
View File
@@ -30,15 +30,15 @@
cursor: pointer;
white-space: nowrap;
opacity: var(--art-control-opacity);
min-height: var(--art-touch-hit-size);
min-width: var(--art-touch-hit-size);
transition: opacity var(--art-transition-duration) var(--art-ease-standard);
min-height: var(--art-control-height);
min-width: var(--art-control-height);
transition: opacity var(--art-transition-duration) ease;
.art-icon {
height: var(--art-control-icon-size);
width: var(--art-control-icon-size);
transform: scale(var(--art-control-icon-scale));
transition: transform var(--art-transition-duration) var(--art-ease-standard);
transition: transform var(--art-transition-duration) ease;
&:active {
transform: scale(calc(var(--art-control-icon-scale) * 0.8));
@@ -49,4 +49,4 @@
opacity: 1;
}
}
}
}
+1 -1
View File
@@ -2,4 +2,4 @@
.art-full(30);
pointer-events: none;
overflow: hidden;
}
}
+1 -1
View File
@@ -6,4 +6,4 @@
&[data-flip='vertical'] .art-video {
transform: scaleY(-1);
}
}
}
+1 -1
View File
@@ -3,4 +3,4 @@
--art-indicator-size: 20px;
--art-control-height: 60px;
--art-control-icon-scale: 1.3;
}
}
@@ -1,4 +1,4 @@
.art-fullscreen-web {
.art-fullscreen();
.art-full(var(--art-fullscreen-web-index), fixed);
}
}
+1 -1
View File
@@ -1,3 +1,3 @@
.art-hide-cursor * {
cursor: none !important;
}
}
+1 -9
View File
@@ -34,7 +34,6 @@
* tooltip body
*/
}
[class*='hint--']:before,
[class*='hint--']:after {
position: absolute;
@@ -52,20 +51,17 @@
-moz-transition-delay: 0ms;
transition-delay: 0ms;
}
[class*='hint--']:hover:before,
[class*='hint--']:hover:after {
visibility: visible;
opacity: 1;
}
[class*='hint--']:hover:before,
[class*='hint--']:hover:after {
-webkit-transition-delay: 100ms;
-moz-transition-delay: 100ms;
transition-delay: 100ms;
}
[class*='hint--']:before {
content: '';
position: absolute;
@@ -73,7 +69,6 @@
border: 6px solid transparent;
z-index: 1000001;
}
[class*='hint--']:after {
background: #000000;
color: white;
@@ -83,11 +78,9 @@
line-height: 12px;
white-space: nowrap;
}
[class*='hint--'][aria-label]:after {
content: attr(aria-label);
}
[class*='hint--'][data-hint]:after {
content: attr(data-hint);
}
@@ -474,7 +467,6 @@
* tooltip body
*/
}
[class*='hint--']:after {
text-shadow: 0 -1px 0px black;
box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
@@ -817,4 +809,4 @@
.hint--no-arrow:before {
display: none;
}
}
+1 -1
View File
@@ -1,4 +1,4 @@
.art-icon {
line-height: 1;
.art-center();
}
}
+1 -1
View File
@@ -27,4 +27,4 @@
@import './plugins';
@import './selector';
@import './hint';
@import './mobile';
@import './mobile';
+4 -3
View File
@@ -5,9 +5,10 @@
left: var(--art-padding);
top: var(--art-padding);
z-index: 100;
padding: var(--art-space-xs);
font-size: var(--art-font-size-sm);
.art-panel-surface();
padding: 10px;
font-size: 12px;
border-radius: var(--art-border-radius);
background-color: var(--art-widget-background);
.art-info-panel {
display: flex;
+1 -1
View File
@@ -14,4 +14,4 @@
display: flex;
}
}
}
}
+1 -2
View File
@@ -9,9 +9,8 @@
.art-loading {
display: flex;
}
.art-mask {
display: none;
}
}
}
}
+2 -2
View File
@@ -10,7 +10,7 @@
transform: scale(2);
width: var(--art-state-size);
height: var(--art-state-size);
transition: all var(--art-transition-duration) var(--art-ease-standard);
transition: all var(--art-transition-duration) ease;
}
}
@@ -28,4 +28,4 @@
display: none;
}
}
}
}
+7 -8
View File
@@ -8,8 +8,8 @@
cursor: move;
user-select: none;
overflow: hidden;
transition: opacity var(--art-transition-duration) var(--art-ease-standard);
box-shadow: 0 0 5px var(--art-overlay-strong);
transition: opacity 0.2s ease;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
svg {
fill: #fff;
@@ -26,7 +26,7 @@
top: 10px;
cursor: pointer;
opacity: 0;
transition: opacity var(--art-transition-duration) var(--art-ease-standard);
transition: opacity 0.2s ease;
}
.art-mini-state {
@@ -34,15 +34,15 @@
.art-center();
pointer-events: none;
opacity: 0;
transition: opacity var(--art-transition-duration) var(--art-ease-standard);
background-color: var(--art-overlay-dim);
transition: opacity 0.2s ease;
background-color: rgba(0, 0, 0, 0.25);
.art-icon {
opacity: 0.75;
cursor: pointer;
transform: scale(3);
pointer-events: auto;
transition: transform var(--art-transition-duration) var(--art-ease-standard);
transition: transform 0.2s ease;
&:active {
transform: scale(2.5);
@@ -55,10 +55,9 @@
}
&:hover {
.art-mini-close,
.art-mini-state {
opacity: 1;
}
}
}
}
-63
View File
@@ -35,66 +35,3 @@
text-overflow: ellipsis;
white-space: nowrap;
}
.art-panel-surface {
border-radius: var(--art-radius-sm);
background-color: var(--art-widget-background);
}
.art-flyout-hidden(@distance: 10px, @axis: y) {
opacity: 0;
pointer-events: none;
transition: all var(--art-transition-duration) var(--art-ease-standard);
& when (@axis =y) {
transform: translateY(@distance);
}
& when (@axis =x) {
transform: translateX(@distance);
}
}
.art-flyout-visible(@axis: y) {
opacity: 1;
pointer-events: auto;
& when (@axis =y) {
transform: translateY(0);
}
& when (@axis =x) {
transform: translateX(0);
}
}
.art-elevation(@level: medium) when (@level =low) {
box-shadow: var(--art-shadow-low);
}
.art-elevation(@level: medium) when (@level =medium) {
box-shadow: var(--art-shadow-medium);
}
.art-elevation(@level: medium) when (@level =high) {
box-shadow: var(--art-shadow-high);
}
.art-text-muted(@size: 12px) {
font-size: @size;
color: var(--art-surface-muted-color);
}
.art-menu-item-base(@padding-y, @padding-x, @animated: true) {
display: flex;
cursor: pointer;
padding: @padding-y @padding-x;
& when (@animated = true) {
transition: background-color var(--art-transition-duration) var(--art-ease-standard);
}
&:hover {
background-color: var(--art-surface-hover-color);
}
}
+1 -3
View File
@@ -7,8 +7,6 @@
--art-selector-max-height: 180px;
--art-indicator-scale: 1;
--art-control-opacity: 1;
--art-padding: var(--art-mobile-padding);
--art-border-radius: var(--art-mobile-radius);
.art-controls-left {
margin-left: calc(var(--art-padding) / -1);
@@ -17,4 +15,4 @@
.art-controls-right {
margin-right: calc(var(--art-padding) / -1);
}
}
}
+2 -2
View File
@@ -9,7 +9,7 @@
.art-notice-inner {
display: inline-flex;
padding: var(--art-space-xxs);
padding: 5px;
line-height: 1;
border-radius: var(--art-border-radius);
background-color: var(--art-tip-background);
@@ -21,4 +21,4 @@
display: flex;
}
}
}
}
+9 -6
View File
@@ -16,19 +16,20 @@
gap: 10px;
align-items: center;
position: absolute;
padding: var(--art-space-xs);
border-radius: var(--art-border-radius);
padding: 10px;
line-height: 1;
left: var(--art-padding);
bottom: calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);
.art-panel-surface();
background-color: var(--art-widget-background);
.art-auto-playback-close {
.art-center();
cursor: pointer;
svg {
width: var(--art-icon-small-size);
height: var(--art-icon-small-size);
width: 15px;
height: 15px;
fill: var(--art-theme);
}
}
@@ -54,7 +55,9 @@
.art-controls,
.art-progress {
transform: translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height) / 4));
transform: translateY(
calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height) / 4)
);
}
.art-progress-indicator {
@@ -68,4 +71,4 @@
display: flex;
}
}
}
}
+1 -1
View File
@@ -2,4 +2,4 @@
.art-full(11);
.art-bg-cover();
pointer-events: none;
}
}
+14 -15
View File
@@ -18,7 +18,7 @@
position: relative;
height: 50%;
width: 100%;
transition: height var(--art-transition-duration) var(--art-ease-standard);
transition: height var(--art-transition-duration) ease;
background-color: var(--art-progress-color);
.art-progress-hover {
@@ -63,7 +63,7 @@
height: var(--art-indicator-size);
transform: scale(var(--art-indicator-scale));
margin-left: calc(var(--art-indicator-size) / -2);
transition: transform var(--art-transition-duration) var(--art-ease-standard);
transition: transform var(--art-transition-duration) ease;
.art-icon {
width: 100%;
@@ -86,16 +86,15 @@
opacity: 0;
position: absolute;
z-index: 50;
top: var(--art-tip-offset);
top: -25px;
left: 0;
padding: var(--art-tip-padding);
padding: 3px 5px;
line-height: 1;
font-size: var(--art-font-size-sm);
font-size: 12px;
border-radius: var(--art-border-radius);
white-space: nowrap;
background-color: var(--art-tip-background);
transition: transform var(--art-transition-duration) var(--art-ease-standard),
opacity var(--art-transition-duration) var(--art-ease-standard);
transition: transform var(--art-transition-duration) ease, opacity var(--art-transition-duration) ease;
}
}
@@ -113,11 +112,13 @@
position: absolute;
bottom: calc(var(--art-bottom-gap) + 10px);
left: 0;
border-radius: var(--art-border-radius);
pointer-events: none;
.art-panel-surface();
transition: transform var(--art-transition-duration) var(--art-ease-standard),
opacity var(--art-transition-duration) var(--art-ease-standard);
.art-elevation(medium);
background-color: var(--art-widget-background);
transition: transform var(--art-transition-duration) ease, opacity var(--art-transition-duration) ease;
box-shadow:
0 1px 3px 0 rgb(0 0 0 / 0.2),
0 1px 2px -1px rgb(0 0 0 / 0.2);
}
}
@@ -130,11 +131,9 @@
.art-progress-hover {
.art-bottom .art-progress {
.art-control-progress .art-control-progress-inner .art-progress-tip,
.art-control-thumbnails {
.art-control-progress .art-control-progress-inner .art-progress-tip, .art-control-thumbnails {
transform: scale(1);
opacity: 1;
}
}
}
}
+11 -5
View File
@@ -9,12 +9,16 @@
align-items: center;
text-align: center;
position: absolute;
border-radius: var(--art-border-radius);
overflow-y: auto;
overflow-x: hidden;
opacity: 0;
transform: translateY(10px);
pointer-events: none;
bottom: var(--art-control-height);
max-height: var(--art-selector-max-height);
.art-panel-surface();
.art-flyout-hidden();
background-color: var(--art-widget-background);
transition: all var(--art-transition-duration) ease;
.art-selector-item {
.art-center();
@@ -24,7 +28,7 @@
line-height: 1;
&:hover {
background-color: var(--art-surface-hover-color);
background-color: rgba(255, 255, 255, 0.1);
}
&:hover,
@@ -36,7 +40,9 @@
&:hover {
.art-selector-list {
.art-flyout-visible();
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
}
}
}
+18 -10
View File
@@ -7,11 +7,12 @@
left: auto;
overflow-y: auto;
overflow-x: hidden;
border-radius: var(--art-border-radius);
max-height: var(--art-settings-max-height);
right: var(--art-padding);
bottom: var(--art-control-height);
transition: all var(--art-transition-duration) var(--art-ease-standard);
.art-panel-surface();
transition: all var(--art-transition-duration) ease;
background-color: var(--art-widget-background);
.art-setting-panel {
display: none;
@@ -22,10 +23,17 @@
}
.art-setting-item {
.art-menu-item-base(0, var(--art-space-xxs));
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 5px;
cursor: pointer;
overflow: hidden;
transition: background-color var(--art-transition-duration) ease;
&:hover {
background-color: rgba(255, 255, 255, 0.1);
}
&.art-current {
color: var(--art-theme);
@@ -33,7 +41,7 @@
.art-icon-check {
visibility: hidden;
height: var(--art-icon-small-size);
height: 15px;
}
&.art-current .art-icon-check {
@@ -43,7 +51,7 @@
.art-setting-item-left {
.art-center();
flex-shrink: 0;
gap: var(--art-space-xxs);
gap: 5px;
.art-setting-item-left-icon {
.art-center();
@@ -54,12 +62,12 @@
.art-setting-item-right {
.art-center();
gap: var(--art-space-xxs);
font-size: var(--art-font-size-sm);
gap: 5px;
font-size: 12px;
.art-setting-item-right-tooltip {
white-space: nowrap;
color: var(--art-surface-muted-color);
color: rgba(255, 255, 255, 0.5);
}
.art-setting-item-right-icon {
@@ -73,13 +81,13 @@
width: 80px;
outline: none;
appearance: none;
background-color: var(--art-surface-range-color);
background-color: rgba(255, 255, 255, 0.2);
}
}
}
.art-setting-item-back {
border-bottom: 1px solid var(--art-surface-border-color);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
}
}
+2 -2
View File
@@ -11,7 +11,7 @@
gap: var(--art-subtitle-gap);
bottom: var(--art-subtitle-bottom);
font-size: var(--art-subtitle-font-size);
transition: bottom var(--art-transition-duration) var(--art-ease-standard);
transition: bottom var(--art-transition-duration) ease;
text-shadow:
var(--art-subtitle-border) 1px 0 1px,
var(--art-subtitle-border) 0 1px 1px,
@@ -34,4 +34,4 @@
bottom: calc(var(--art-control-height) + var(--art-subtitle-bottom));
}
}
}
}
@@ -2,28 +2,15 @@
--art-theme: #f00;
--art-font-color: #fff;
--art-background-color: #000;
--art-font-size-sm: 12px;
--art-text-shadow-color: rgba(0, 0, 0, 0.5);
--art-transition-duration: 0.2s;
--art-ease-standard: ease;
--art-padding: 10px;
--art-border-radius: 3px;
--art-mobile-padding: 10px;
--art-mobile-radius: 3px;
--art-radius-sm: 3px;
--art-space-xxs: 5px;
--art-space-xs: 10px;
--art-surface-hover-color: rgba(255, 255, 255, 0.1);
--art-surface-border-color: rgba(255, 255, 255, 0.1);
--art-surface-muted-color: rgba(255, 255, 255, 0.5);
--art-surface-range-color: rgba(255, 255, 255, 0.2);
--art-progress-height: 6px;
--art-progress-color: rgba(255, 255, 255, 0.25);
--art-progress-top-gap: 8px;
--art-hover-color: rgba(255, 255, 255, 0.25);
--art-loaded-color: rgba(255, 255, 255, 0.25);
--art-tip-padding: 3px 5px;
--art-tip-offset: -25px;
--art-state-size: 80px;
--art-state-opacity: 0.8;
--art-bottom-height: 100px;
@@ -35,7 +22,6 @@
--art-control-opacity: 0.75;
--art-control-icon-size: 36px;
--art-control-icon-scale: 1.1;
--art-touch-hit-size: var(--art-control-height);
--art-volume-height: 120px;
--art-volume-handle-size: 14px;
--art-lock-size: 36px;
@@ -46,7 +32,6 @@
--art-settings-max-height: 300px;
--art-selector-max-height: 300px;
--art-contextmenus-min-width: 250px;
--art-contextmenu-padding-x: 15px;
--art-subtitle-font-size: 20px;
--art-subtitle-gap: 5px;
--art-subtitle-bottom: 15px;
@@ -57,11 +42,4 @@
--art-scrollbar-background: rgba(255, 255, 255, 0.25);
--art-scrollbar-background-hover: rgba(255, 255, 255, 0.5);
--art-mini-progress-height: 2px;
--art-shadow-low: 0 1px 2px 0 rgb(0 0 0 / 0.12);
--art-shadow-medium: 0 1px 3px 0 rgb(0 0 0 / 0.2), 0 1px 2px -1px rgb(0 0 0 / 0.2);
--art-shadow-high: 0 4px 10px 0 rgb(0 0 0 / 0.25);
--art-shadow-elevated: var(--art-shadow-medium);
--art-icon-small-size: 15px;
--art-overlay-dim: rgba(0, 0, 0, 0.25);
--art-overlay-strong: rgba(0, 0, 0, 0.5);
}
+1 -1
View File
@@ -1,4 +1,4 @@
.art-video {
.art-full(10);
cursor: pointer;
}
}
+15 -9
View File
@@ -7,23 +7,27 @@
left: 0;
right: 0;
padding: 0 5px;
.art-text-muted(12px);
font-size: 12px;
text-align: center;
cursor: default;
opacity: 0;
transform: translateY(10px);
pointer-events: none;
bottom: var(--art-control-height);
width: var(--art-control-height);
height: var(--art-volume-height);
.art-flyout-hidden();
transition: all var(--art-transition-duration) ease;
.art-volume-inner {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--art-space-xs);
gap: 10px;
height: 100%;
width: 100%;
padding: var(--art-space-xs) 0 12px;
.art-panel-surface();
padding: 10px 0 12px;
border-radius: var(--art-border-radius);
background-color: var(--art-widget-background);
.art-volume-slider {
flex: 1;
@@ -40,7 +44,7 @@
width: 2px;
border-radius: var(--art-border-radius);
overflow: hidden;
background-color: var(--art-hover-color);
background-color: rgba(255, 255, 255, 0.25);
.art-volume-loaded {
.art-full(0);
@@ -57,7 +61,7 @@
transform: scale(1);
border-radius: 100%;
background-color: var(--art-theme);
transition: transform var(--art-transition-duration) var(--art-ease-standard);
transition: transform var(--art-transition-duration) ease;
}
&:active {
@@ -71,7 +75,9 @@
&:hover {
.art-volume-panel {
.art-flyout-visible();
opacity: 1;
transform: translateY(0);
pointer-events: auto;
}
}
}
}
-22
View File
@@ -2,28 +2,15 @@ export interface CssVar {
'--art-theme': string
'--art-font-color': string
'--art-background-color': string
'--art-font-size-sm': string
'--art-text-shadow-color': string
'--art-transition-duration': string
'--art-ease-standard': string
'--art-padding': string
'--art-border-radius': string
'--art-mobile-padding': string
'--art-mobile-radius': string
'--art-radius-sm': string
'--art-space-xxs': string
'--art-space-xs': string
'--art-surface-hover-color': string
'--art-surface-border-color': string
'--art-surface-muted-color': string
'--art-surface-range-color': string
'--art-progress-height': string
'--art-progress-color': string
'--art-progress-top-gap': string
'--art-hover-color': string
'--art-loaded-color': string
'--art-tip-padding': string
'--art-tip-offset': string
'--art-state-size': string
'--art-state-opacity': number
'--art-bottom-height': string
@@ -35,7 +22,6 @@ export interface CssVar {
'--art-control-opacity': number
'--art-control-icon-size': string
'--art-control-icon-scale': number
'--art-touch-hit-size': string
'--art-volume-height': string
'--art-volume-handle-size': string
'--art-lock-size': string
@@ -46,7 +32,6 @@ export interface CssVar {
'--art-settings-max-height': string
'--art-selector-max-height': string
'--art-contextmenus-min-width': string
'--art-contextmenu-padding-x': string
'--art-subtitle-font-size': string
'--art-subtitle-gap': string
'--art-subtitle-bottom': string
@@ -57,11 +42,4 @@ export interface CssVar {
'--art-scrollbar-background': string
'--art-scrollbar-background-hover': string
'--art-mini-progress-height': string
'--art-shadow-low': string
'--art-shadow-medium': string
'--art-shadow-high': string
'--art-shadow-elevated': string
'--art-icon-small-size': string
'--art-overlay-dim': string
'--art-overlay-strong': string
}