0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(ui): move preview related style to AppContent

move preview related style to AppContent
This commit is contained in:
simeng-li 2022-10-21 11:26:48 +08:00
parent 84755e00fa
commit 75fb1a1c08
No known key found for this signature in database
GPG key ID: 14EA7BB1541E8075
3 changed files with 14 additions and 11 deletions

View file

@ -1,9 +0,0 @@
.preview {
pointer-events: none;
user-select: none;
main {
pointer-events: none;
user-select: none;
}
}

View file

@ -18,6 +18,18 @@
--color-dark-brand-pressed: #5d36ff;
}
// Disable User Interaction Under Preview
.preview {
pointer-events: none;
user-select: none;
main {
pointer-events: none;
user-select: none;
}
}
body {
background-color: var(--color-base);
-webkit-font-smoothing: antialiased;

View file

@ -2,8 +2,8 @@ import { ConnectorPlatform } from '@logto/schemas';
import { conditionalString } from '@silverhand/essentials';
import { useEffect, useState } from 'react';
import * as styles from '@/App.module.scss';
import type { Context } from '@/hooks/use-page-context';
import * as styles from '@/containers/AppContent/index.module.scss';
import { Context } from '@/hooks/use-page-context';
import initI18n from '@/i18n/init';
import { changeLanguage } from '@/i18n/utils';
import type { SignInExperienceSettings, PreviewConfig } from '@/types';