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
[simple theme] dark mode and some css cleanup #355
Conversation
4e62747
to
a7f59f3
Compare
I'm not sure if it should be a new issue:
If this suggestion is okay / makes sense:
|
1394dfe
to
62ed00d
Compare
e04ebac
to
9e90bc8
Compare
@dalf Sorry for the late reply... Can you please test my progress with the simple theme? I am not a UI dev and I just tested different colors until the updated light theme and the dark theme looked good to me (heavily opinionated tho). Right now I basically just cleaned up the stylesheets and removed unused stuff as well as reworking the CSS vars... The next step is to implement the options for the user to choose between light, dark and auto... (I dont really have time for that right now tho, since university is going to start for me on Monday again... But I wanted to at least finish the dark theme until then...) [EDIT] I also played around with transitions. But in my opinion they only look good, if every viewable element uses that transition, which works on the startpage and about page, but on the result view there are just too many elements... So instead of putting the transition only on the html and important elements, I would rather leave them out completely... I think it looks kinda odd when the background has a transition on theme switch, but the rest of the page transitions instantly... What do you think about that? (But I would still use transition on focus and hover elements in the future tho...) |
* remove vars and add elements to base and btn vars * change default border radius to 10px and padding to 0.7em * put border radius and padding on search input form, infoxbox and buttons * remove unused .help class in #categories_container * remove active background from tabs to straemline design * redo search form: 10px padding * 2rem margin on search results on desktop * fix modal pacement of engine reliability in prefs * use darker accent colors * streamline autocomplete with more padding and a hover effect
* clean up vars in defenition * results look now the same on mobile and desktop * reworked results on mobile * new color theme with more vibrant colors
* add a new color theme for a dark mode * make the device auto switch between dark and light theme
b87efd1
to
bc2c8e6
Compare
Thank you for this amazing work. I'm going to merge your PR. There are few things here and there, but it can be discuss in other pull requests / issues. ( for example 09324f3 ) |
What does this PR do?
This PR is adding a dark theme to the simple theme by:
replacing less vars by CSS vars (this also makes it possible for people to easily change the color theme in the compiled searx.css, since the preprocessor does not touch these css vars...)
dropping some of the vars (vars like
@color-result-link-font
seems a little to verbose!?)change every hardcoded color in the theme to be a css var in defenitions.less
add a dark class with a dark color theme
update result design on tablet and mobile
Make UI elements bigger: more padding on search form and buttons
Minor changes and removed unused CSS (See commit messages)
Why is this change important?
Another PR to eventually have feature parity between simple and oscar theme... Also make the simple theme more polished...
How to test this PR locally?
make themes.simple
make run
Author's checklist
Dark Theme:
Light Theme:
Related issues
Partially solves: #347 and #176