diff --git a/src/components/Elements/MainModal/scss/index.scss b/src/components/Elements/MainModal/scss/index.scss
index bd4d5fce..6ce7cc93 100644
--- a/src/components/Elements/MainModal/scss/index.scss
+++ b/src/components/Elements/MainModal/scss/index.scss
@@ -7,6 +7,71 @@
@import 'settings/main';
@import 'marketplace/main';
+.Overlay {
+ position: fixed;
+ z-index: 100;
+ inset: 0;
+ width: 100vw;
+ height: 100vh;
+ display: grid;
+ place-items: center;
+}
+
+.Modal {
+ @include themed {
+ color: t($color);
+ }
+
+ box-shadow: 0 0 20px rgb(0 0 0 / 30%);
+ opacity: 1;
+ z-index: -2;
+ transition-timing-function: ease-in;
+ border-radius: map-get($modal, 'border-radius');
+ user-select: none;
+ overflow-y: auto;
+ transform: scale(0);
+ transition: all 0.3s cubic-bezier(0.47, 1.64, 0.41, 0.8);
+
+ &:focus {
+ outline: 0;
+ }
+
+ .modalInfoPage {
+ user-select: text;
+ }
+}
+
+.closePositioning {
+ position: absolute;
+ top: 3rem;
+ right: 3rem;
+}
+
+.ReactModal__Html--open,
+.ReactModal__Body--open {
+ overflow: hidden;
+}
+
+/* modal transition */
+.ReactModal__Content--after-open {
+ opacity: 1;
+ transform: scale(1);
+}
+
+.ReactModal__Content--before-close {
+ opacity: 0;
+ transform: scale(0);
+}
+
+#modal {
+ height: 80vh;
+ width: clamp(60vw, 1400px, 90vw);
+
+ @include themed {
+ background-color: t($modal-background);
+ }
+}
+
.closePositioning {
position: absolute;
top: 3rem;
diff --git a/src/components/Layout/Settings/Section/Section.jsx b/src/components/Layout/Settings/Section/Section.jsx
index 4f0e7c9b..26284d03 100644
--- a/src/components/Layout/Settings/Section/Section.jsx
+++ b/src/components/Layout/Settings/Section/Section.jsx
@@ -11,15 +11,14 @@ function Section({ id, title, subtitle, icon, onClick, children }) {
onClick();
}
};
-
return (
{icon}
- {title}
- {subtitle}
+ {title}
+ {subtitle}
diff --git a/src/features/greeting/options/GreetingOptions.jsx b/src/features/greeting/options/GreetingOptions.jsx
index 3d4dd181..26870f3c 100644
--- a/src/features/greeting/options/GreetingOptions.jsx
+++ b/src/features/greeting/options/GreetingOptions.jsx
@@ -320,6 +320,13 @@ const GreetingOptions = () => {
>
) : (
<>
+
setEvents(true)}
+ icon={}
+ />
{
>
- setEvents(true)}
- icon={}
- />
>
)}
>
diff --git a/src/features/misc/sections/Advanced.jsx b/src/features/misc/sections/Advanced.jsx
index e5bb6dfd..84d12f36 100644
--- a/src/features/misc/sections/Advanced.jsx
+++ b/src/features/misc/sections/Advanced.jsx
@@ -7,6 +7,7 @@ import {
MdRestartAlt as ResetIcon,
MdDataUsage,
MdError,
+ MdBrush,
} from 'react-icons/md';
import { exportSettings, importSettings } from 'utils/settings';
@@ -14,7 +15,14 @@ import { exportSettings, importSettings } from 'utils/settings';
import { FileUpload, Text, Switch, Dropdown } from 'components/Form/Settings';
import { ResetModal, Button } from 'components/Elements';
-import { Header, Section, Row, Content, Action } from 'components/Layout/Settings';
+import {
+ Header,
+ Section,
+ Row,
+ Content,
+ Action,
+ PreferencesWrapper,
+} from 'components/Layout/Settings';
import { useTab } from 'components/Elements/MainModal/backend/TabContext';
import time_zones from 'features/time/timezones.json';
@@ -63,14 +71,10 @@ function AdvancedOptions() {
- {variables.getMessage(
- 'settings:sections.advanced.preview_data_disabled.title',
- )}
+ {variables.getMessage('settings:sections.advanced.preview_data_disabled.title')}
- {variables.getMessage(
- 'settings:sections.advanced.preview_data_disabled.description',
- )}
+ {variables.getMessage('settings:sections.advanced.preview_data_disabled.description')}
@@ -94,8 +98,8 @@ function AdvancedOptions() {
return (
<>
- {header}
- {subSection === "data" ? (
+ {/*{header}*/}
+ {subSection === 'data' && (
<>
setResetModal(false)} />
>
- ) : (
+ )}
+ {subSection === 'custom-css' && (
+
+
+ {variables.getMessage('settings:sections.advanced.custom_css')}
+
+
+
+ )}
+ {subSection === '' && (
<>
setData(true)}
icon={}
/>
-
-
-
-
-
-
+ }
+ />
+
+
+
+
+
+
+
-
-
-
- ({ value: timezone, text: timezone })),
- ]}
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ ({ value: timezone, text: timezone })),
+ ]}
+ />
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
>
)}
>
diff --git a/src/features/misc/sections/Appearance.jsx b/src/features/misc/sections/Appearance.jsx
index d6e7712d..9f92d647 100644
--- a/src/features/misc/sections/Appearance.jsx
+++ b/src/features/misc/sections/Appearance.jsx
@@ -3,7 +3,14 @@ import { memo, useState } from 'react';
import variables from 'config/variables';
import { Checkbox, Dropdown, Radio, Slider, Text } from 'components/Form/Settings';
-import { Header, Section, Row, Content, Action } from 'components/Layout/Settings';
+import {
+ Header,
+ Section,
+ Row,
+ Content,
+ Action,
+ PreferencesWrapper,
+} from 'components/Layout/Settings';
import { useTab } from 'components/Elements/MainModal/backend/TabContext';
import { MdAccessibility } from 'react-icons/md';
@@ -19,9 +26,7 @@ function AppearanceOptions() {
{/* names are taken from https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight */}
@@ -148,9 +141,7 @@ function AppearanceOptions() {
@@ -230,10 +215,7 @@ function AppearanceOptions() {
max="5000"
marks={values.toast}
display={
- ' ' +
- variables.getMessage(
- 'settings:sections.appearance.accessibility.milliseconds',
- )
+ ' ' + variables.getMessage('settings:sections.appearance.accessibility.milliseconds')
}
/>
@@ -246,42 +228,37 @@ function AppearanceOptions() {
header = (
{
- }
- title={variables.getMessage('settings:sections.background.source.title')}
- subtitle={variables.getMessage(`${QUOTE_SECTION}.source_subtitle`)}
- >
-
-
>
)}
diff --git a/src/features/search/options/SearchOptions.jsx b/src/features/search/options/SearchOptions.jsx
index b15de63f..c0af62f8 100644
--- a/src/features/search/options/SearchOptions.jsx
+++ b/src/features/search/options/SearchOptions.jsx
@@ -96,9 +96,7 @@ function SearchOptions() {
-
+
{customEnabled && CustomOptions()}
>