Skip to content

Commit

Permalink
#55 Add the pageclass back to the body tag so we can target embedded …
Browse files Browse the repository at this point in the history
…pages
  • Loading branch information
waseemsadiq committed May 25, 2022
1 parent bddc0e7 commit 642b386
Show file tree
Hide file tree
Showing 9 changed files with 55 additions and 17 deletions.
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/php-apc.html.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
@layout:
path: /default

pageclass: embedded

name: APC
title: Joomlatools Server APC
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/php-fpm.html.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
@layout:
path: /default

pageclass: embedded

name: FPM
title: Joomlatools Server FPM
Expand Down
1 change: 1 addition & 0 deletions sites/dashboard/pages/tools/php-info.html.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
@layout:
path: /default
pageclass: embedded


name: PHP Info
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/pages/tools/phpmyadmin.html.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
@layout:
path: /default

pageclass: phpmyadmin

name: PhpMyAdmin
title: Joomlatools Server PhpMyAdmin
Expand Down
2 changes: 1 addition & 1 deletion sites/dashboard/templates/layouts/index.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
<ktml:script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine-ie11.min.js" defer="defer" module="nomodule" />
<![endif]-->

<body class="antialiased bg-gray-100">
<body class="antialiased bg-gray-100<?= isset(layout()->pageclass) ? ' ' . layout()->pageclass : '' ?>">
<ktml:content>
</body>
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<? endif; ?>

<span class="inline">
<a href="https://www.joomlatools.com" class="flex<?= $direction ?> justify-center items-center gap-4" title="Site by Joomlatools.com">
<a href="http://localhost:8080/dashboard/" class="flex<?= $direction ?> justify-center items-center gap-4" title="Site by Joomlatools.com">
<svg class="w-<?= $icon_size ?> h-<?= $icon_size ?>" viewBox="0 0 32 30.3303"><style data-inline>.jt-blue{fill:<?= $jt_blue ?>;}.jt-black{fill:<?= $jt_black ?>;}</style><g><path class="jt-black" d="M30.3747,14.26A12.1484,12.1484,0,0,0,13.7805,9.8135,2.3155,2.3155,0,1,0,16.096,13.824a7.5168,7.5168,0,0,1,7.5165,13.02,2.3158,2.3158,0,0,0,2.3158,4.0111A12.154,12.154,0,0,0,30.3747,14.26Z" transform="translate(0 -0.8348)"/><path class="jt-black" d="M24.2974,18.7688a2.3157,2.3157,0,0,0-4.631.0366v.0374a7.5181,7.5181,0,1,1-15.0347.047l0-.03A2.3155,2.3155,0,0,0,.0012,18.832a12.1491,12.1491,0,1,0,24.2974.1332C24.2983,18.8994,24.298,18.8343,24.2974,18.7688Z" transform="translate(0 -0.8348)"/></g><path id="accent" class="jt-blue" d="M24.5575,4.5516a2.3153,2.3153,0,0,0-1.1263-1.9888A12.1492,12.1492,0,1,0,11.2275,23.5715a2.3153,2.3153,0,0,0,2.2658-4.0385A7.518,7.518,0,1,1,21.0512,6.5362a2.3165,2.3165,0,0,0,3.5063-1.9846Z" transform="translate(0 -0.8348)"/></svg>
<? if($display_text):?>
<span class="font-jt<?= $text_colour ?> text-xl">joomlatools server</span>
Expand Down
23 changes: 18 additions & 5 deletions sites/dashboard/theme/css/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,25 @@
right: -90px;
}

.antialiased a,
.antialiased a:link,
.antialiased a:hover {
color: inherit;
text-decoration: inherit;
body.embedded,
.embedded p,
.embedded td,
.embedded th,
.embedded input,
.embedded submit {
background-color: inherit;
font-family: inherit;
font-size: inherit;
}
body.embedded {
@apply bg-gray-100;
}
.embedded a,
.embedded a:link,
.embedded a:hover,
.embedded a:visited {
background-color: inherit;
@apply text-gray-400 hover:text-white;
}
}

Expand Down
36 changes: 30 additions & 6 deletions sites/dashboard/theme/css/output.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sites/dashboard/theme/css/output.min.css

Large diffs are not rendered by default.

0 comments on commit 642b386

Please sign in to comment.