mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(skins): remove vjs- prefixed CSS custom properties (#179)
This commit is contained in:
@@ -7,11 +7,13 @@ media-container {
|
||||
isolation: isolate;
|
||||
container: root / inline-size;
|
||||
overflow: clip;
|
||||
border-radius: var(--vjs-border-radius, 2rem);
|
||||
border-radius: var(--frosted-border-radius, 2rem);
|
||||
background: oklab(0 0 0);
|
||||
font-family: var(--vjs-font-family, InterVariable, Inter, ui-sans-serif, system-ui, sans-serif);
|
||||
font-family: ui-sans-serif, system-ui, sans-serif;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: auto;
|
||||
-moz-osx-font-smoothing: auto;
|
||||
}
|
||||
media-container::before,
|
||||
media-container::after {
|
||||
|
||||
@@ -7,11 +7,13 @@ media-container {
|
||||
isolation: isolate;
|
||||
container: root / inline-size;
|
||||
overflow: clip;
|
||||
border-radius: var(--vjs-border-radius, 2rem);
|
||||
border-radius: var(--minimal-border-radius, 2rem);
|
||||
background: oklab(0 0 0);
|
||||
font-family: var(--vjs-font-family, InterVariable, Inter, ui-sans-serif, system-ui, sans-serif);
|
||||
font-family: ui-sans-serif, system-ui, sans-serif;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: auto;
|
||||
-moz-osx-font-smoothing: auto;
|
||||
}
|
||||
media-container::after {
|
||||
content: '';
|
||||
|
||||
@@ -7,11 +7,13 @@
|
||||
isolation: isolate;
|
||||
container: root / inline-size;
|
||||
overflow: clip;
|
||||
border-radius: var(--vjs-border-radius, 2rem);
|
||||
border-radius: var(--frosted-border-radius, 2rem);
|
||||
background: oklab(0 0 0);
|
||||
font-family: var(--vjs-font-family, InterVariable, Inter, ui-sans-serif, system-ui, sans-serif);
|
||||
font-family: ui-sans-serif, system-ui, sans-serif;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: auto;
|
||||
-moz-osx-font-smoothing: auto;
|
||||
}
|
||||
.vjs-frosted-skin::before,
|
||||
.vjs-frosted-skin::after {
|
||||
|
||||
@@ -7,11 +7,13 @@
|
||||
isolation: isolate;
|
||||
container: root / inline-size;
|
||||
overflow: clip;
|
||||
border-radius: var(--vjs-border-radius, 2rem);
|
||||
border-radius: var(--minimal-border-radius, 2rem);
|
||||
background: oklab(0 0 0);
|
||||
font-family: var(--vjs-font-family, InterVariable, Inter, ui-sans-serif, system-ui, sans-serif);
|
||||
font-family: ui-sans-serif, system-ui, sans-serif;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: auto;
|
||||
-moz-osx-font-smoothing: auto;
|
||||
}
|
||||
.vjs-minimal-skin::after {
|
||||
content: '';
|
||||
|
||||
@@ -7,11 +7,13 @@ media-container {
|
||||
isolation: isolate;
|
||||
container: root / inline-size;
|
||||
overflow: clip;
|
||||
border-radius: var(--vjs-border-radius, 2rem);
|
||||
border-radius: var(--frosted-border-radius, 2rem);
|
||||
background: oklab(0 0 0);
|
||||
font-family: var(--vjs-font-family, InterVariable, Inter, ui-sans-serif, system-ui, sans-serif);
|
||||
font-family: ui-sans-serif, system-ui, sans-serif;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: auto;
|
||||
-moz-osx-font-smoothing: auto;
|
||||
}
|
||||
media-container::before,
|
||||
media-container::after {
|
||||
|
||||
@@ -7,11 +7,13 @@ media-container {
|
||||
isolation: isolate;
|
||||
container: root / inline-size;
|
||||
overflow: clip;
|
||||
border-radius: var(--vjs-border-radius, 0.75rem);
|
||||
border-radius: var(--minimal-border-radius, 0.75rem);
|
||||
background: oklab(0 0 0);
|
||||
font-family: var(--vjs-font-family, InterVariable, Inter, ui-sans-serif, system-ui, sans-serif);
|
||||
font-family: ui-sans-serif, system-ui, sans-serif;
|
||||
font-size: 0.8125rem;
|
||||
line-height: 1.5;
|
||||
-webkit-font-smoothing: auto;
|
||||
-moz-osx-font-smoothing: auto;
|
||||
}
|
||||
media-container::after {
|
||||
content: '';
|
||||
|
||||
@@ -12,9 +12,9 @@ function cn(...classes: (string | undefined)[]): string {
|
||||
const styles: FrostedSkinStyles = {
|
||||
MediaContainer: cn(
|
||||
'vjs', // Scope preflight
|
||||
'vjs:relative vjs:isolate vjs:@container/root vjs:group/root vjs:overflow-clip vjs:bg-black vjs:rounded-(--vjs-border-radius,2rem)',
|
||||
'vjs:relative vjs:isolate vjs:@container/root vjs:group/root vjs:overflow-clip vjs:bg-black vjs:rounded-(--frosted-border-radius,2rem)',
|
||||
// Base typography
|
||||
'vjs:text-[0.8125rem]',
|
||||
'vjs:font-sans vjs:text-[0.8125rem] vjs:subpixel-antialiased',
|
||||
// Fancy borders
|
||||
'vjs:after:absolute vjs:after:inset-0 vjs:after:ring-black/10 vjs:after:ring-1 vjs:dark:after:ring-white/10 vjs:after:ring-inset vjs:after:z-10 vjs:after:pointer-events-none vjs:after:rounded-[inherit]',
|
||||
'vjs:before:absolute vjs:before:inset-px vjs:before:rounded-[inherit] vjs:before:ring-white/15 vjs:before:ring-1 vjs:before:ring-inset vjs:before:z-10 vjs:before:pointer-events-none vjs:dark:before:ring-0',
|
||||
|
||||
@@ -12,9 +12,9 @@ function cn(...classes: (string | undefined)[]): string {
|
||||
const styles: MinimalSkinStyles = {
|
||||
MediaContainer: cn(
|
||||
'vjs', // Scope preflight
|
||||
'vjs:relative vjs:isolate vjs:@container/root vjs:group/root vjs:overflow-clip vjs:bg-black vjs:rounded-(--vjs-border-radius,0.75rem)',
|
||||
'vjs:relative vjs:isolate vjs:@container/root vjs:group/root vjs:overflow-clip vjs:bg-black vjs:rounded-(--minimal-border-radius,0.75rem)',
|
||||
// Base typography
|
||||
'vjs:text-[0.8125rem]',
|
||||
'vjs:font-sans vjs:text-[0.8125rem] vjs:subpixel-antialiased',
|
||||
// Fancy borders
|
||||
'vjs:after:absolute vjs:after:inset-0 vjs:after:ring-black/15 vjs:after:ring-1 vjs:dark:after:ring-white/15 vjs:after:ring-inset vjs:after:z-10 vjs:after:pointer-events-none vjs:after:rounded-[inherit]',
|
||||
// Prevent rounded corners in fullscreen
|
||||
|
||||
Reference in New Issue
Block a user