From b343789554519eee84bbc791d536ac4a00a6c5e3 Mon Sep 17 00:00:00 2001 From: liyasthomas Date: Fri, 31 Dec 2021 20:05:39 +0530 Subject: [PATCH] refactor: sort classes --- .../hoppscotch-app/assets/scss/styles.scss | 17 +++--- .../components/app/Announcement.vue | 2 +- .../hoppscotch-app/components/app/Header.vue | 2 +- .../components/environments/Edit.vue | 18 +++---- .../components/environments/Environment.vue | 4 +- .../components/environments/ImportExport.vue | 2 +- .../components/environments/index.vue | 16 +++--- .../components/firebase/Login.vue | 8 +-- .../components/graphql/Field.vue | 8 +-- .../components/graphql/Request.vue | 6 +-- .../components/graphql/RequestOptions.vue | 16 +++--- .../components/graphql/Response.vue | 14 ++--- .../components/graphql/Sidebar.vue | 26 ++++----- .../components/graphql/Type.vue | 10 ++-- .../components/http/Authorization.vue | 36 ++++++------- .../hoppscotch-app/components/http/Body.vue | 10 ++-- .../components/http/BodyParameters.vue | 10 ++-- .../components/http/CodegenModal.vue | 4 +- .../components/http/Headers.vue | 10 ++-- .../components/http/ImportCurl.vue | 4 +- .../components/http/OAuth2Authorization.vue | 20 +++---- .../components/http/Parameters.vue | 10 ++-- .../components/http/PreRequestScript.vue | 12 ++--- .../components/http/RawBody.vue | 2 +- .../components/http/Response.vue | 2 +- .../components/http/ResponseMeta.vue | 40 +++++++------- .../components/http/TestResult.vue | 18 +++---- .../components/http/TestResultEntry.vue | 6 +-- .../components/http/TestResultReport.vue | 2 +- .../hoppscotch-app/components/http/Tests.vue | 12 ++--- .../components/lenses/HeadersRenderer.vue | 12 ++--- .../lenses/renderers/HTMLLensRenderer.vue | 2 +- .../lenses/renderers/ImageLensRenderer.vue | 4 +- .../lenses/renderers/JSONLensRenderer.vue | 6 +-- .../lenses/renderers/RawLensRenderer.vue | 2 +- .../lenses/renderers/XMLLensRenderer.vue | 2 +- .../components/profile/Picture.vue | 6 +-- .../components/realtime/Log.vue | 4 +- .../components/realtime/Mqtt.vue | 16 +++--- .../components/realtime/Socketio.vue | 36 ++++++------- .../components/realtime/Sse.vue | 10 ++-- .../components/realtime/Websocket.vue | 22 ++++---- .../components/smart/Checkbox.vue | 4 +- .../components/smart/DeletableChip.vue | 2 +- .../hoppscotch-app/components/smart/Item.vue | 8 +-- .../components/smart/LoadingIndicator.vue | 2 +- .../hoppscotch-app/components/smart/Modal.vue | 16 +++--- .../hoppscotch-app/components/smart/Radio.vue | 4 +- .../hoppscotch-app/components/smart/Tabs.vue | 8 +-- .../components/smart/Toggle.vue | 4 +- .../hoppscotch-app/components/tab/Primary.vue | 2 +- .../components/tab/Secondary.vue | 2 +- .../hoppscotch-app/components/teams/Edit.vue | 18 +++---- .../components/teams/Invite.vue | 54 +++++++++---------- .../hoppscotch-app/components/teams/Team.vue | 10 ++-- .../hoppscotch-app/components/teams/index.vue | 8 +-- .../hoppscotch-app/pages/documentation.vue | 16 +++--- packages/hoppscotch-app/pages/enter.vue | 2 +- packages/hoppscotch-app/pages/join-team.vue | 22 ++++---- packages/hoppscotch-app/pages/profile.vue | 18 +++---- packages/hoppscotch-app/pages/r/_id.vue | 14 ++--- packages/hoppscotch-app/pages/settings.vue | 18 +++---- 62 files changed, 349 insertions(+), 352 deletions(-) diff --git a/packages/hoppscotch-app/assets/scss/styles.scss b/packages/hoppscotch-app/assets/scss/styles.scss index 4b632c84f..05b2456cb 100644 --- a/packages/hoppscotch-app/assets/scss/styles.scss +++ b/packages/hoppscotch-app/assets/scss/styles.scss @@ -1,7 +1,9 @@ -*, -*::before, -*::after { +* { @apply backface-hidden; + @apply before:backface-hidden; + @apply after:backface-hidden; + @apply selection:bg-accentDark; + @apply selection:text-accentContrast; } :root { @@ -37,11 +39,6 @@ @apply hidden; } -::selection { - @apply bg-accentDark; - @apply text-accentContrast; -} - input::placeholder, textarea::placeholder { @apply text-secondary; @@ -457,8 +454,8 @@ pre.ace_editor { @apply px-1; } -.capitalize-first::first-letter { - @apply capitalize; +.capitalize-first { + @apply first-letter:capitalize; } @media (max-width: 767px) { diff --git a/packages/hoppscotch-app/components/app/Announcement.vue b/packages/hoppscotch-app/components/app/Announcement.vue index 5ca43aeb2..a86e3ade9 100644 --- a/packages/hoppscotch-app/components/app/Announcement.vue +++ b/packages/hoppscotch-app/components/app/Announcement.vue @@ -7,7 +7,7 @@ {{ t("helpers.offline_short") }} - diff --git a/packages/hoppscotch-app/components/app/Header.vue b/packages/hoppscotch-app/components/app/Header.vue index 57e903346..fb2445177 100644 --- a/packages/hoppscotch-app/components/app/Header.vue +++ b/packages/hoppscotch-app/components/app/Header.vue @@ -9,7 +9,7 @@ label="HOPPSCOTCH" to="/" /> -