-
-
Notifications
You must be signed in to change notification settings - Fork 562
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New (additional) LCARS theme inspired by Picard TV show #2709
New (additional) LCARS theme inspired by Picard TV show #2709
Conversation
I'm trying to solve another issue. I included the "Signed-by-off.." message, but it says it's wrong. But as far as I can see those 2 strings are identical 🤔
|
I don't know what the issue is. Maybe it's an encoding difference (like this one), or DCO test simply can't handle non-english strings ( |
It crossed my mind, but I somehow presumed that a global company in 2023 could acount for that. I'll try to search more. |
I'm guessing about the encoding, but if I'm right, the name and encoding on your Github account should match the name (and encoding) set on your machine ( |
7ca5d57
to
f310734
Compare
The "Lint / PHP-CS-Fixer" error is unrelated to this PR. |
Yes, I figure it out 🙂 I went after the prettier fix and the DCO, which was caused by the special characters as you pointed out previously 👍 Sorry, for the mess I had to setup everything for the GH signing and also I didn't realize (which I should have 🤦 ) that the code style will be probably different from mine. |
f310734
to
fb4a888
Compare
I see all the issues. The first two could be solved by adding small padding to the wrapper The third one ... you're running it in the Docker I presume? Because on the "normal" version there are only 3 items in the footer and I put there the 4th one fill the visual hole and insert self promo at the same time 👼 I'll delete it. At the same time I noticed another small issue with the footer. Thank you for the feedback! I'll fix it during tomorrow. |
|
Is this the same installation? To be honest I don't know how to fix this now from the top of my head 🤔 The theme needs the "Antonio" font. Or at least some "narrow" font. Any ideas? (I think I will have to get the Docker up and running as soon as possible to be more flexible with the testing.) |
Yes, it's the same installation. I checked out your branch on my docker installation. |
fb4a888
to
d04c422
Compare
Scrollbar + footer + rounded cornersThe scrollbar was caused by footer ( Color in network tableYou're right @rdwebdesign - fixed. Number next to the arrowI fixed the position to acount for bigger numbers, but the missalign in your screenshot is caused by the font again. FontCan you check which kind of font is actually applied @yubiuser? I don't know why the "Antonio" font is not used. It's local, so it cannot be some blocker of 3rd party fonts. Maybe some custom settings? (ℹ️ I rebased the branch to include PHP_CS) |
|
What will happen if there are 9 or 10 items? |
I'll have to tweak it little bit more, but this version is not based on |
2 variants, both with dynamic height. Which one do you think is better @rdwebdesign? |
Your're correct, it's the stable v5 image. I'll try it with the dev version ADD: Using the dev container the footer looks fine |
The :dev tag on docker still uses all the master branches of the other components. (It is designed to do docker Dev work against currently released pi-hole) :nightly has all the Dev branches |
Audit log - got it 👍 @PromoFaux So I should use |
the
|
OIC. Thank you for the clarification 👍 I see now the broken footer, btw. There is a different class |
e8581c7
to
6197573
Compare
1.4.2
|
style/themes/lcars-picard.css
Outdated
========================================================== */ | ||
/* body[class*="lcars"][class*="lcars"] is a small dirty trick to avoid even more deep "!important hell" */ | ||
|
||
body[class*="lcars"][class*="lcars"] [class*="icheck-"] > label { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add the attribute selector ([class*="lcars"]
) twice?
body[class*="lcars"][class*="lcars"] [class*="icheck-"] > label { | |
body[class*="lcars"] [class*="icheck-"] > label { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a comment there to clarify - /* body[class*="lcars"][class*="lcars"] is a small dirty trick to avoid even more deep "!important hell" */
The pihole.css
contains several lines of code with body:not(.lcars) ...
. :not
adds specificity, so I needed to do the same, but without depending on another class or putting !important everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the hack, but are you sure it's needed?
You already increased the specificity with body[class*="lcars"]
.
I will test again another time, but apparently it works without the hack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nightly, with lcars
or lcars-picard
class. If I remove one of the [class*="lcars"]
on line 398 - it breaks the checkboxes.
EDIT: Hmm, I see that maybe it doesn't have to be everywhere 🤔 For example the color, or the border. I wanted to be consistent 😄 I'll adjust that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I finally found time to test your PR again.
When I use the simplified selector, I saw the issue only in "Domains" page (do you see it in other places?).
I noticed there are some things contributing for the issue, but we can fix them instead of adding a new hack or a lot of !important
rules.
I pushed a new branch with the changes. I will wait the team approval and them we can simplify the selectors here. (merged)
The new code is in You can rebase your branch to use the new code.development-v6
.
EDIT:
The new code is in devel
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it looks like that at the end only the "Domains" page cause an issue.
This PR is based on devel
not development-v6
, are you sure that I should rebase?
(I'm sorry for such a delay.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry... it was a distraction when I typed.
New code is in devel
.
5d118d8
to
a3b203d
Compare
style/themes/lcars-picard.css
Outdated
|
||
/* --- additional visual tweaks */ | ||
.navbar-custom-menu > .navbar-nav > li > .dropdown-menu::after { | ||
content: "LCARS theme by @MichalSvatos"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@MichalSvatos - can you remove this please? No issue with the Author attribution in the header of the file.
The Pull Request / commits / release notes will provide credit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, sure! I've already removed one in the footer, I forgot about this one.
a3b203d
to
e460c85
Compare
You are right. Something like this should fix: #domain-frequency .table-bordered > tbody > tr > td:last-child,
#ad-frequency .table-bordered > tbody > tr > td:last-child {
width: 204px;
} But I'm not sure if this will affect the Long-term Data > Top Lists. |
Signed-off-by: Michal Svatos <github@svatos.dev>
e460c85
to
070ccb5
Compare
I went through few iterations and this one was the good compromise between the functionality and least amount of code added. Other options were unecessaryli complex (eg. turning table rows in a flex containers). And simple Not perfect solution, but it works. Anyway I open to suggestions. |
I think you could start working to adapt your theme to v6 now..... |
I tried to run My `docker_run.sh`
The error
|
I never used this script and I never saw this error. Note: You can find details in docker-pihole v6 readme: |
Nice job! |
…f8 (#15274) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [pihole/pihole](https://github.com/pi-hole/docker-pi-hole) | minor | `2023.10.0` -> `2023.11.0` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>pi-hole/docker-pi-hole (pihole/pihole)</summary> ### [`v2023.11.0`](https://github.com/pi-hole/docker-pi-hole/releases/tag/2023.11.0) [Compare Source](https://github.com/pi-hole/docker-pi-hole/compare/2023.10.0...2023.11.0) Nothing Docker specific, this release pulls in web v5.21 https://github.com/pi-hole/web/releases/tag/v5.21 <!-- Release notes generated using configuration in .github/release.yml at devel --> #### What's Changed - Insert icheck CSS right after bootstrap file. by [@​rdwebdesign](https://github.com/rdwebdesign) in [https://github.com/pi-hole/web/pull/2752](https://github.com/pi-hole/web/pull/2752) - New (additional) LCARS theme inspired by Picard TV show by [@​MichalSvatos](https://github.com/MichalSvatos) in [https://github.com/pi-hole/web/pull/2709](https://github.com/pi-hole/web/pull/2709) - Add word break for clients column to avoid horizontal scrollbar by [@​rdwebdesign](https://github.com/rdwebdesign) in [https://github.com/pi-hole/web/pull/2838](https://github.com/pi-hole/web/pull/2838) #### New Contributors - [@​MichalSvatos](https://github.com/MichalSvatos) made their first contribution in [https://github.com/pi-hole/web/pull/2709](https://github.com/pi-hole/web/pull/2709) **Full Changelog**: pi-hole/web@v5.20.2...v5.21 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy42NS4wIiwidXBkYXRlZEluVmVyIjoiMzcuNjUuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
What does this PR aim to accomplish?
New (additional) LCARS theme. Description and more screenshot available here. Related discussion on the Discourse forum.
Small preview
How does this PR accomplish the above?
New CSS file added and configuration of the themes updated.
By submitting this pull request, I confirm the following:
git rebase
)