WIP: supakeen/ui-improvements
#1
Draft
supakeen
wants to merge 10 commits from supakeen/ui:supakeen/ui-improvements
into master
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'supakeen/ui:supakeen/ui-improvements'
Deleting a branch is permanent. It CANNOT be undone. Continue?
CSS improvements
Layouting
For layouting a grid layout was chosen, it offers the same flexibility as before (and more, especially regarding media queries) and gets rid of superfluous wrapper elements.
Dark-Mode
CSS media queries are used for dark mode, the colors are very much a work-in-progress.
Limit Width
It is hard for people to scan wide lines on monitors. There are some limits set through media queries, these limits can be changed at will as the site needs more or less horizontal space.
Text
Minor updates to line-height.
Bugs
I can't get live-reload to work on the component CSS after I adjusted it to use CSS-variables, that means I can't really tell if I did that bit right. Could you take a look at that?
Thanks for the PR! I've left some comments on things to fix/discuss/etc. - ended up accidentally attaching them to
public/css/style.css
instead ofsrc/css/style.css
, but you get the idea :)@ -22,4 +49,1 @@
.contents {
margin-bottom: 2em;
padding: .7em 0;
Removing this padding has caused the datasheet counter to feel 'cramped' against the dividing line of the header, and it should probably be reintroduced in some way.
@ -17,4 +40,0 @@
margin-left: 0.5em;
margin-right: 0.5em;
padding-bottom: .7em;
border-bottom: 2px solid black;
Can you restore the border thickness here? Matter of aesthetic preference and 'branding consistency' with the logo :)
@ -1,0 +9,4 @@
--invert: 0;
}
@media (prefers-color-scheme: dark) {
There are still a number of remaining issues with the dark mode theme, currently:
Agreed with all points, but, for this part:
That is the part I was talking about off-site, it seems the component CSS which does have the CSS-variables in it is not using them. If they do work for you, can you verify that it's the actual color that is wrong or the component CSS not being applied properly?
Oops, caused by an outdated build tool having a bug. Fixed in
c21a9fea09
.@ -19,2 +40,2 @@
padding-bottom: .7em;
border-bottom: 2px solid black;
body {
padding: .5rem;
This padding is reduced too much on large screens; while reducing it makes sense for smaller screens, ideally it'd match the original padding for larger ones. Relatedly, the logo is very weirdly positioned now, with a much larger top margin than left margin.
@ -21,0 +40,4 @@
body {
padding: .5rem;
height: 100%;
display: grid;
While using a grid does solve some sizing issues on small screens in particular, it unfortunately also relegates the footer to the bottom of the page, rather than being permanently visible. Ideally the footer would always remain visible, as it's the place where visitors are invited to get involved with the project, which is a very important part of SeekSeek - it shouldn't just be something people use, but something that people build on collaboratively. Basically, the footer is the 'point of community contact' with visitors.
I'm not sure what the best way to accomplish this would be. The 'obvious' solution is to have a separate grid that keeps the footer in view and has the header+content in a scrollable box above it, but I'm not sure that eg. screenreaders would understand that the scrollable box is the main content of the page (like was obvious when the footer was just overlaid on the main page content).
@ -92,0 +127,4 @@
}
}
@media only screen and (min-width: 1000px) {
There's a strange 'jump' here when resizing - wouldn't it be better to just have a single maximum width, rather than deliberately shrinking the results below a certain screen size? Each individual search frontend will need its own CSS anyway to optimally display on all screen sizes, so I don't really see any value in 'leaving space' in this case.
@ -4,2 +2,2 @@
color: black;
border: 1px solid teal;
font-size: 1.3rem;
background-color: var(--color-background-autention);
That should probably be
attention
, notautention
:)@ -23,3 +16,1 @@
</div>
</div>
<div className="contents">
<header>
I'm not sure about removing the
wrapper
here - having the header line continue across the entire screen was a deliberate choice, in preparation of other search frontends being developed in the future with different usage of screen space (where it may well fill the entire screen).While this does look at bit aesthetically neater right now, it would cause an inconsistent 'core UI' across different search engines in the future, as different search frontends would have a different 'header width'.
15666aa909
to13002057f8
2 years agoI've attended to most points mentioned, there are two things left to speak about (I think).
A better colorscheme for dark mode, the width of the header/site. I understand the need for consistency in the future but as long as there is a single frontend it might be prudent to pick the more pleasing look for now, and instead extend/rethink it when multiple frontends are available? :)
Reviewers
Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.