refactor: completely remove ionic

This commit is contained in:
waterplea
2024-04-05 12:06:02 +07:00
parent b2c8907635
commit 8594781780
291 changed files with 416 additions and 3365 deletions

View File

@@ -1,29 +0,0 @@
/*
* App Global CSS
* ----------------------------------------------------------------------------
* Put style rules here that you want to apply globally. These styles are for
* the entire app and not just one component. Additionally, this file can be
* used as an entry point to import other CSS/Sass files to be included in the
* output CSS.
* For more information on global stylesheets, visit the documentation:
* https://ionicframework.com/docs/layout/global-stylesheets
*/
/* Core CSS required for Ionic components to work properly */
@import '@ionic/angular/css/core.css';
/* Basic CSS for apps built with Ionic */
@import '@ionic/angular/css/normalize.css';
@import '@ionic/angular/css/structure.css';
@import '@ionic/angular/css/typography.css';
@import '@ionic/angular/css/display.css';
/* Optional CSS utils that can be commented out */
@import '@ionic/angular/css/padding.css';
@import '@ionic/angular/css/float-elements.css';
@import '@ionic/angular/css/text-alignment.css';
@import '@ionic/angular/css/text-transformation.css';
@import '@ionic/angular/css/flex-utils.css';
/* Import swiper styles for slides */
@import 'swiper/scss';

View File

@@ -167,94 +167,6 @@ body {
user-select: text;
}
ion-input {
caret-color: gray;
}
ion-alert {
.alert-wrapper {
--min-width: 320px;
}
}
.swiper {
.swiper-slide {
display: unset;
}
}
ion-modal {
--backdrop-opacity: 0.7;
&::part(content) {
border-radius: 6px;
border: 2px solid rgba(255, 255, 255, 0.03);
box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
}
}
.alertlike-modal {
&::part(content) {
max-height: 380px !important;
top: 25% !important;
width: 90% !important;
left: 5% !important;
--box-shadow: none !important;
}
}
@media (min-width: 1000px) {
ion-modal::part(content) {
width: $wide-modal !important;
left: calc((100vw - $wide-modal) / 2) !important;
}
.alertlike-modal {
&::part(content) {
width: $wide-modal !important;
left: calc((100vw - $wide-modal) / 2) !important;
}
}
ion-alert {
.alert-wrapper {
--width: 50%;
--max-width: 500px;
}
}
}
.item-interactive {
--highlight-background: var(--ion-color-light) !important;
}
.hidden-scrollbar {
overflow: auto;
white-space: nowrap;
height: 60px;
/* Hide scrollbar for Chrome, Safari and Opera */
&::-webkit-scrollbar {
width: 0;
height: 0;
}
/* Hide scrollbar for IE, Edge and Firefox */
/* IE and Edge */
-ms-overflow-style: none;
/* Firefox */
scrollbar-width: none;
}
.divider {
background: linear-gradient(
90deg,
var(--ion-color-light) 0,
var(--ion-color-dark) 50%,
var(--ion-color-light) 100%
);
height: 1px;
}
.loading-dots:after {
content: '...';
overflow: hidden;
@@ -265,22 +177,6 @@ ion-modal {
width: 1em;
}
.courier-new {
font-family: 'Courier New';
}
.montserrat {
font-family: 'Montserrat', sans-serif !important;
}
.color-success-shade {
color: var(--ion-color-success-shade);
}
.color-primary-shade {
color: var(--ion-color-primary-shade);
}
@keyframes ellipsis-dot {
25% {
content: '';
@@ -299,37 +195,12 @@ ion-modal {
}
}
.alert-error-message {
.alert-title {
color: var(--ion-color-danger);
}
}
.alert-warning-message {
.alert-title {
color: var(--ion-color-warning);
}
}
.alert-success-message {
.alert-title {
color: var(--ion-color-success);
}
}
a {
cursor: pointer;
color: inherit;
text-decoration: none;
}
.modal-buttons {
display: flex;
justify-content: flex-end;
gap: 16px;
margin-top: 24px;
}
/* marketplace */
.background-border {
border-radius: 0.75rem;

View File

@@ -1,134 +0,0 @@
// Ionic Variables and Theming. For more info, please see:
// http://ionicframework.com/docs/theming/
/** Ionic CSS Variables **/
:root {
--ion-color-primary: #0075e1;
--ion-color-primary-rgb: 66, 140, 255;
--ion-color-primary-contrast: #ffffff;
--ion-color-primary-contrast-rgb: 255, 255, 255;
--ion-color-primary-shade: #3a7be0;
--ion-color-primary-tint: #5598ff;
--ion-color-secondary: #50c8ff;
--ion-color-secondary-rgb: 80, 200, 255;
--ion-color-secondary-contrast: #ffffff;
--ion-color-secondary-contrast-rgb: 255, 255, 255;
--ion-color-secondary-shade: #46b0e0;
--ion-color-secondary-tint: #62ceff;
--ion-color-tertiary: #6a64ff;
--ion-color-tertiary-rgb: 106, 100, 255;
--ion-color-tertiary-contrast: #ffffff;
--ion-color-tertiary-contrast-rgb: 255, 255, 255;
--ion-color-tertiary-shade: #5d58e0;
--ion-color-tertiary-tint: #7974ff;
--ion-color-success: #2fdf75;
--ion-color-success-rgb: 47, 223, 117;
--ion-color-success-contrast: #000000;
--ion-color-success-contrast-rgb: 0, 0, 0;
--ion-color-success-shade: #29c467;
--ion-color-success-tint: #44e283;
--ion-color-warning: #ffd534;
--ion-color-warning-rgb: 255, 213, 52;
--ion-color-warning-contrast: #000000;
--ion-color-warning-contrast-rgb: 0, 0, 0;
--ion-color-warning-shade: #e0bb2e;
--ion-color-warning-tint: #ffd948;
--ion-color-danger: #ff4961;
--ion-color-danger-rgb: 255, 73, 97;
--ion-color-danger-contrast: #ffffff;
--ion-color-danger-contrast-rgb: 255, 255, 255;
--ion-color-danger-shade: #e04055;
--ion-color-danger-tint: #ff5b71;
--ion-color-light: #181818;
--ion-color-light-rgb: 24, 24, 24;
--ion-color-light-contrast: #ffffff;
--ion-color-light-contrast-rgb: 255, 255, 255;
--ion-color-light-shade: #000000;
--ion-color-light-tint: #000000;
--ion-color-medium: #222428;
--ion-color-medium-rgb: 34, 36, 40;
--ion-color-medium-contrast: #ffffff;
--ion-color-medium-contrast-rgb: 255, 255, 255;
--ion-color-medium-shade: #1e2023;
--ion-color-medium-tint: #383a3e;
--ion-color-dark: #e0e0e0;
--ion-color-dark-rgb: 224, 224, 224;
--ion-color-dark-contrast: #000000;
--ion-color-dark-contrast-rgb: 0, 0, 0;
--ion-color-dark-shade: #bfbfbf;
--ion-color-dark-tint: #d8d8d8;
--ion-color-step-50: #1e1e1e;
--ion-color-step-100: #2a2a2a;
--ion-color-step-150: #363636;
--ion-color-step-200: #414141;
--ion-color-step-250: #4d4d4d;
--ion-color-step-300: #595959;
--ion-color-step-350: #656565;
--ion-color-step-400: #717171;
--ion-color-step-450: #7d7d7d;
--ion-color-step-500: #898989;
--ion-color-step-550: #949494;
--ion-color-step-600: #a0a0a0;
--ion-color-step-650: #acacac;
--ion-color-step-700: #b8b8b8;
--ion-color-step-750: #c4c4c4;
--ion-color-step-800: #d0d0d0;
--ion-color-step-850: #dbdbdb;
--ion-color-step-900: #e7e7e7;
--ion-color-step-950: #f3f3f3;
--alt-red: #ff4961;
--alt-orange: #f89248;
--alt-yellow: #e5d53e;
--alt-green: #3dcf6f;
--alt-blue: #00a8a8;
--alt-purple: #9747ff;
--portal-header-height: 56px;
// @TODO rename when make style lib
--tw-color-black: 0 0 0;
--tw-color-white: 255 255 255;
--tw-color-slate-50: 248 250 252;
--tw-color-slate-100: 241 245 249;
--tw-color-slate-200: 226 232 240;
--tw-color-slate-300: 203 213 225;
--tw-color-slate-400: 148 163 184;
--tw-color-slate-500: 100 116 139;
--tw-color-slate-600: 71 85 105;
--tw-color-slate-700: 51 65 85;
--tw-color-slate-800: 30 41 59;
--tw-color-slate-900: 15 23 42;
--tw-color-slate-950: 2 6 23;
--tw-color-gray-50: 249 250 251;
--tw-color-gray-100: 243 244 246;
--tw-color-gray-200: 229 231 235;
--tw-color-gray-300: 209 213 219;
--tw-color-gray-400: 156 163 175;
--tw-color-gray-500: 107 114 128;
--tw-color-gray-600: 75 85 99;
--tw-color-gray-700: 55 65 81;
--tw-color-gray-800: 31 41 55;
--tw-color-gray-900: 17 24 39;
--tw-color-gray-950: 3 7 18;
--tw-color-zinc-50: 250 250 250;
--tw-color-zinc-100: 244 244 245;
--tw-color-zinc-200: 228 228 231;
--tw-color-zinc-300: 212 212 216;
--tw-color-zinc-400: 161 161 170;
--tw-color-zinc-500: 113 113 122;
--tw-color-zinc-600: 82 82 91;
--tw-color-zinc-700: 63 63 70;
--tw-color-zinc-800: 39 39 42;
--tw-color-zinc-900: 24 24 27;
--tw-color-zinc-950: 9 9 11;
}