|
| 1 | +@import "~@ionic/core/css/core.css"; |
| 2 | +@import "~@ionic/core/css/normalize.css"; |
| 3 | +@import "~@ionic/core/css/structure.css"; |
| 4 | +@import "~@ionic/core/css/typography.css"; |
| 5 | +@import "~@ionic/core/css/padding.css"; |
| 6 | +@import "~@ionic/core/css/float-elements.css"; |
| 7 | +@import "~@ionic/core/css/text-alignment.css"; |
| 8 | +@import "~@ionic/core/css/text-transformation.css"; |
| 9 | +@import "~@ionic/core/css/flex-utils.css"; |
| 10 | + |
| 11 | +:host { |
| 12 | + display: block; |
| 13 | + padding: 0rem; |
| 14 | + margin: -0.5rem; |
| 15 | + |
| 16 | + --height: 100vh; |
| 17 | + |
| 18 | + --ion-color-primary: #3880ff; |
| 19 | + --ion-color-primary-rgb: 56, 128, 255; |
| 20 | + --ion-color-primary-contrast: #ffffff; |
| 21 | + --ion-color-primary-contrast-rgb: 255, 255, 255; |
| 22 | + --ion-color-primary-shade: #3171e0; |
| 23 | + --ion-color-primary-tint: #4c8dff; |
| 24 | + |
| 25 | + --ion-color-secondary: #0cd1e8; |
| 26 | + --ion-color-secondary-rgb: 12, 209, 232; |
| 27 | + --ion-color-secondary-contrast: #ffffff; |
| 28 | + --ion-color-secondary-contrast-rgb: 255, 255, 255; |
| 29 | + --ion-color-secondary-shade: #0bb8cc; |
| 30 | + --ion-color-secondary-tint: #24d6ea; |
| 31 | + |
| 32 | + --ion-color-tertiary: #7044ff; |
| 33 | + --ion-color-tertiary-rgb: 112, 68, 255; |
| 34 | + --ion-color-tertiary-contrast: #ffffff; |
| 35 | + --ion-color-tertiary-contrast-rgb: 255, 255, 255; |
| 36 | + --ion-color-tertiary-shade: #633ce0; |
| 37 | + --ion-color-tertiary-tint: #7e57ff; |
| 38 | + |
| 39 | + --ion-color-success: #10dc60; |
| 40 | + --ion-color-success-rgb: 16, 220, 96; |
| 41 | + --ion-color-success-contrast: #ffffff; |
| 42 | + --ion-color-success-contrast-rgb: 255, 255, 255; |
| 43 | + --ion-color-success-shade: #0ec254; |
| 44 | + --ion-color-success-tint: #28e070; |
| 45 | + |
| 46 | + --ion-color-warning: #ffce00; |
| 47 | + --ion-color-warning-rgb: 255, 206, 0; |
| 48 | + --ion-color-warning-contrast: #ffffff; |
| 49 | + --ion-color-warning-contrast-rgb: 255, 255, 255; |
| 50 | + --ion-color-warning-shade: #e0b500; |
| 51 | + --ion-color-warning-tint: #ffd31a; |
| 52 | + |
| 53 | + --ion-color-danger: #f04141; |
| 54 | + --ion-color-danger-rgb: 245, 61, 61; |
| 55 | + --ion-color-danger-contrast: #ffffff; |
| 56 | + --ion-color-danger-contrast-rgb: 255, 255, 255; |
| 57 | + --ion-color-danger-shade: #d33939; |
| 58 | + --ion-color-danger-tint: #f25454; |
| 59 | + |
| 60 | + --ion-color-dark: #222428; |
| 61 | + --ion-color-dark-rgb: 34, 34, 34; |
| 62 | + --ion-color-dark-contrast: #ffffff; |
| 63 | + --ion-color-dark-contrast-rgb: 255, 255, 255; |
| 64 | + --ion-color-dark-shade: #1e2023; |
| 65 | + --ion-color-dark-tint: #383a3e; |
| 66 | + |
| 67 | + --ion-color-medium: #989aa2; |
| 68 | + --ion-color-medium-rgb: 152, 154, 162; |
| 69 | + --ion-color-medium-contrast: #ffffff; |
| 70 | + --ion-color-medium-contrast-rgb: 255, 255, 255; |
| 71 | + --ion-color-medium-shade: #86888f; |
| 72 | + --ion-color-medium-tint: #a2a4ab; |
| 73 | + |
| 74 | + --ion-color-light: #f4f5f8; |
| 75 | + --ion-color-light-rgb: 244, 244, 244; |
| 76 | + --ion-color-light-contrast: #000000; |
| 77 | + --ion-color-light-contrast-rgb: 0, 0, 0; |
| 78 | + --ion-color-light-shade: #d7d8da; |
| 79 | + --ion-color-light-tint: #f5f6f9; |
| 80 | + |
| 81 | + |
| 82 | + --ion-item-background: var(--ion-color-dark); |
| 83 | + --ion-background-color: var(--ion-color-dark-shade); |
| 84 | +} |
| 85 | + |
| 86 | +.original-image-container { |
| 87 | + display: flex; |
| 88 | + justify-content: center; |
| 89 | + align-content: flex-start; |
| 90 | + overflow: auto; |
| 91 | + |
| 92 | + height: var(--height); |
| 93 | + |
| 94 | + position: relative; |
| 95 | + background-image: linear-gradient(45deg, #808080 25%, transparent 25%), linear-gradient(-45deg, #808080 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #808080 75%), linear-gradient(-45deg, transparent 75%, #808080 75%); |
| 96 | + background-size: 20px 20px; |
| 97 | + background-position: 0 0, 0 10px, 10px -10px, -10px 0px; |
| 98 | + |
| 99 | + img { |
| 100 | + filter: blur(var(--img-blur)) brightness(var(--crop-focus)); |
| 101 | + } |
| 102 | + |
| 103 | + > div { |
| 104 | + position: relative; |
| 105 | + pointer-events: none; |
| 106 | + user-select: none; |
| 107 | + } |
| 108 | +} |
| 109 | + |
| 110 | +.resize-canvas { |
| 111 | + resize: both; |
| 112 | + width: 500px; |
| 113 | + height: 200px; |
| 114 | + overflow: auto; |
| 115 | + position: absolute !important; |
| 116 | + left: 0; |
| 117 | + top: 0; |
| 118 | + z-index: 4; |
| 119 | + border: 4px dashed rgba(255, 255, 255, 0.65); |
| 120 | + user-select: none; |
| 121 | + pointer-events: all !important; |
| 122 | + border-radius: 0.1rem; |
| 123 | + backdrop-filter: blur(var(--img-blur)) brightness(150%); |
| 124 | +} |
| 125 | + |
| 126 | +img { |
| 127 | + user-select: none; |
| 128 | + max-width: initial; |
| 129 | + pointer-events: none; |
| 130 | +} |
| 131 | + |
| 132 | + |
| 133 | +.image-editor-container { |
| 134 | + display: flex; |
| 135 | + flex-direction: row; |
| 136 | + justify-content: space-between; |
| 137 | + align-content: space-between; |
| 138 | + width: 100%; |
| 139 | + |
| 140 | + |
| 141 | + > div:first-child { |
| 142 | + width: 80%; |
| 143 | + max-width: 80%; |
| 144 | + border: 1px solid #000; |
| 145 | + } |
| 146 | + |
| 147 | + > div:last-child { |
| 148 | + width: 20%; |
| 149 | + max-width: 20%; |
| 150 | + border: 1px solid #000; |
| 151 | + display: flex; |
| 152 | + flex-direction: column; |
| 153 | + justify-content: space-between; |
| 154 | + } |
| 155 | +} |
| 156 | + |
| 157 | +ion-range { |
| 158 | + --height: 26px; |
| 159 | + padding: 0px !important; |
| 160 | + margin-top: 0px; |
| 161 | + padding-right: 1rem !important; |
| 162 | +} |
| 163 | + |
| 164 | +.settings-nav { |
| 165 | + --inner-padding-start: 0px; |
| 166 | + --inner-padding-end: 0px; |
| 167 | + |
| 168 | + ion-label { |
| 169 | + margin: 0px !important; |
| 170 | + margin-top: -4px !important; |
| 171 | + |
| 172 | + ion-tab-bar { |
| 173 | + height: 38px; |
| 174 | + } |
| 175 | + } |
| 176 | +} |
| 177 | + |
| 178 | +.history-container { |
| 179 | + display: grid; |
| 180 | + width: 100%; |
| 181 | + max-width: 100%; |
| 182 | + overflow-y: auto; |
| 183 | + grid-template-columns: repeat(2, 1fr); |
| 184 | + grid-column-gap: 0.5rem; |
| 185 | + grid-row-gap: 0.5rem; |
| 186 | + |
| 187 | + .history-image { |
| 188 | + height: 150px; |
| 189 | + cursor: pointer; |
| 190 | + } |
| 191 | +} |
| 192 | + |
0 commit comments