From 1b80bd45dda094d8d63d7b0d816f4988e71e1801 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Fri, 29 Sep 2023 11:08:16 +0530 Subject: [PATCH] style: Fix linter warnings --- cypress/integration/theme_switcher_dialog.js | 8 +++- frappe/templates/styles/card_style.css | 50 ++++++++++---------- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/cypress/integration/theme_switcher_dialog.js b/cypress/integration/theme_switcher_dialog.js index fdd49d732e..53c3323a6d 100644 --- a/cypress/integration/theme_switcher_dialog.js +++ b/cypress/integration/theme_switcher_dialog.js @@ -9,7 +9,9 @@ context("Theme Switcher Shortcut", () => { it("Check Toggle", () => { cy.open_theme_dialog(); cy.get(".modal-backdrop").should("exist"); - cy.intercept("POST", "/api/method/frappe.core.doctype.user.user.switch_theme").as("set_theme"); + cy.intercept("POST", "/api/method/frappe.core.doctype.user.user.switch_theme").as( + "set_theme" + ); cy.findByText("Timeless Night").click(); cy.wait("@set_theme"); cy.close_theme("{ctrl+shift+g}"); @@ -17,7 +19,9 @@ context("Theme Switcher Shortcut", () => { }); it("Check Enter", () => { cy.open_theme_dialog(); - cy.intercept("POST", "/api/method/frappe.core.doctype.user.user.switch_theme").as("set_theme"); + cy.intercept("POST", "/api/method/frappe.core.doctype.user.user.switch_theme").as( + "set_theme" + ); cy.findByText("Frappe Light").click(); cy.wait("@set_theme"); cy.close_theme("{enter}"); diff --git a/frappe/templates/styles/card_style.css b/frappe/templates/styles/card_style.css index 430af07a5a..c887c1eabe 100644 --- a/frappe/templates/styles/card_style.css +++ b/frappe/templates/styles/card_style.css @@ -8,7 +8,7 @@ margin: 70px auto; border-radius: var(--border-radius-md); background-color: var(--fg-color); - border: 1px solid var(--border-color); + border: 1px solid var(--border-color); } .for-reset-password { @@ -32,60 +32,60 @@ } .page-card .page-card-head { - padding: 10px 15px; - margin: -15px; - margin-bottom: 15px; - border-bottom: 1px solid var(--border-color); + padding: 10px 15px; + margin: -15px; + margin-bottom: 15px; + border-bottom: 1px solid var(--border-color); } .for-reset-password .page-card .page-card-head { - border-bottom: 0; + border-bottom: 0; } .page-card-head h4 { - font-size: 18px; - font-weight: 600; + font-size: 18px; + font-weight: 600; } #reset-password .form-group { - margin-bottom: 10px; - font-size: var(--font-size-sm); + margin-bottom: 10px; + font-size: var(--font-size-sm); } .page-card .page-card-head .indicator { - color: #36414C; - font-size: 14px; + color: #36414c; + font-size: 14px; } .sign-up-message { - margin-top: 20px; - font-size: 13px; - color: var(--text-color); + margin-top: 20px; + font-size: 13px; + color: var(--text-color); } .page-card .page-card-head .indicator::before { - margin: 0 6px 0.5px 0px; + margin: 0 6px 0.5px 0px; } button#update { - font-size: var(--font-size-sm); + font-size: var(--font-size-sm); } .page-card .btn { - margin-top: 30px; + margin-top: 30px; } .page-card p:empty { - display: none; + display: none; } .page-card p { - font-size: 14px; + font-size: 14px; } .ellipsis { - overflow: hidden; - text-overflow: ellipsis; - max-width: 100%; - vertical-align: middle; -} \ No newline at end of file + overflow: hidden; + text-overflow: ellipsis; + max-width: 100%; + vertical-align: middle; +}