File size: 3,161 Bytes
07bbbbf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 |
/**
* Ionic Global Styles
*
* Custom styles for desktop-optimized Ionic application
*/
/* Prevent overscroll and ensure proper layout */
html,
body {
overflow: hidden;
height: 100%;
width: 100%;
margin: 0;
padding: 0;
overscroll-behavior: none;
-webkit-overflow-scrolling: touch;
touch-action: pan-x pan-y;
background-color: var(--ion-background-color);
}
#root {
height: 100%;
width: 100%;
overflow: hidden;
overscroll-behavior: none;
--default-item-height: 60px;
}
/* Custom scrollbar styles */
* {
overscroll-behavior: contain;
scrollbar-width: thin;
scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar {
width: 8px;
height: 8px;
}
*::-webkit-scrollbar-track {
background-color: var(--scrollbar-track);
}
*::-webkit-scrollbar-thumb {
background-color: var(--scrollbar-thumb);
border-radius: 4px;
}
*::-webkit-scrollbar-thumb:hover {
background-color: var(--scrollbar-thumb-hover);
}
ion-item {
height: var(--default-item-height);
}
/* Tab Bar - Default (bottom) on mobile */
ion-tab-bar {
--border: 1px solid var(--ion-border-color, rgba(0, 0, 0, 0.12));
border-top: var(--border);
--background: var(--ion-background-color);
}
ion-tab-button {
--color: rgba(var(--ion-text-color-rgb, 0, 0, 0), 0.4);
--color-selected: var(--ion-color-primary);
--padding-top: 4px;
--padding-bottom: 4px;
}
ion-tab-button ion-icon {
font-size: 24px;
}
ion-tab-button ion-label {
font-size: 11px;
font-weight: 400;
margin-top: 2px;
}
ion-tab-button.tab-selected ion-label {
font-weight: 600;
}
/* Desktop: Side tab bar (left side) */
@media (min-width: 768px) {
ion-tab-bar.tab-bar {
position: fixed;
left: 0;
top: 0;
width: 88px;
height: 100vh;
max-height: 100vh;
flex-direction: column;
border-top: none;
border-right: 1px solid var(--ion-border-color, rgba(0, 0, 0, 0.12));
justify-content: flex-start;
align-items: stretch;
padding-top: 0;
padding-bottom: 0;
z-index: 10;
overflow-y: auto;
background-color: var(--ion-background-color);
}
ion-tabs {
display: flex;
background-color: var(--ion-background-color);
}
ion-router-outlet {
margin-left: 88px;
width: calc(100% - 88px);
}
ion-tab-button {
flex: 0 0 auto;
flex-direction: column;
height: 72px;
min-height: 72px;
max-height: 72px;
--padding-top: 8px;
--padding-bottom: 8px;
}
ion-tab-button ion-icon {
margin-bottom: 2px;
}
ion-tab-button ion-label {
margin-top: 2px;
}
/* Wider layouts for desktop */
ion-toolbar {
--min-height: 56px;
}
/* Need to use this trick to fix the left alignment of the input inside the searchbar
when the searchbar is inside a "slot=end" buttons container. The real case in this app
is the in-page searchbar in the ContentView. */
ion-searchbar input {
text-align: left !important;
}
}
/* Error dialog styling */
.error-dialog {
--width: 400px;
--max-width: 90vw;
}
.error-dialog ion-toolbar {
--background: var(--ion-color-danger);
--color: var(--ion-color-danger-contrast);
}
|