Fix annoying whitespace to left of menu in standalone
authorRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Sat, 2 Dec 2023 17:19:12 +0000 (17:19 +0000)
committerRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Sat, 2 Dec 2023 17:19:12 +0000 (17:19 +0000)
templates/CRM/common/standalone.tpl

index 562f792527e55b396de0d0ca5a226e49ea48c2ff..4dbbafd94235fcc339869a50205b22adbf4e359d 100644 (file)
@@ -1,7 +1,6 @@
 <!DOCTYPE html >
 <html lang="{$config->lcMessages|substr:0:2}">
  <head>
-  <meta http-equiv="Content-Style-Type" content="text/css" />
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
   <meta name="viewport" content="width=device-width, initial-scale=1.0" />
   <link rel="Shortcut Icon" type="image/x-icon" href="{$config->resourceBase}i/widget/favicon.png" />
 {/if}
 
   <title>{if isset($docTitle)}{$docTitle}{else}CiviCRM{/if}</title>
+
+  <style>
+  {literal}
+  body { margin:0; padding:0; }
+  body>.crm-container { padding: 1rem; }
+  {/literal}
+  </style>
 </head>
 <body>
   {if $config->debug}