-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Simplified Nextcloud logo icon #2 #5407
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
Conversation
| background-size: 175px; | ||
| background-size: contain; | ||
| background-position: center; | ||
| width: 252px; |
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.
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.
The problem is that themed logos should use all of the space that is available, while the default logo should just have its default size.
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.
Ok, I see your point. I can make adjustments.
But in that case, can I ask why is the width set to 252px? parent div, .header, is 300px wide (probably in order to fit into smallest supported mobile width), while the form elements (inputs and submit) are 269px wide. Seems arbitrary...
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.
Maybe @jancborchardt has an idea about that?
|
Yes, it is completely arbitrary and has some historical reasons I don't remember. The basic points are of course that:
If you can make that work, we can fix it all to 270 px or even 300px if that looks good. |
|
But maybe best let's merge this first, and do thaf in a separate pull request? Your call @pixelipo :) |
|
@jancborchardt yes, that should be a separate PR (and a separate issue for discussion). Should I revert this or do we merge as is? |
|
@pixelipo yes, that part should be reverted ideally because otherwise master is broken. :) |
Codecov Report
@@ Coverage Diff @@
## master #5407 +/- ##
============================================
- Coverage 53.98% 53.98% -0.01%
Complexity 22466 22466
============================================
Files 1390 1390
Lines 85980 85980
Branches 1329 1329
============================================
- Hits 46419 46416 -3
- Misses 39561 39564 +3
|
|
Should be ready to review/merge, @jancborchardt @juliushaertl @MorrisJobke |
Signed-off-by: Marin Treselj <marin@pixelipo.com>
Signed-off-by: Marin Treselj <marin.treselj@forlagshuset.no>
ea3f32b to
02dd7f5
Compare
juliusknorr
left a comment
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've rebased this to master. Works as expected. 👍
|
Lools good to me now - @juliushaertl @MorrisJobke? |
|
@jancborchardt Yes, already approved by me 😉 CI failing is unrelated. |
Replaces pull request #5288
This is part of the SVG optimization task #5157
Nextcloud logo code has been simplified, but at the same time it's more human-readable.
I've changed the size to more traditional values (256*128). Circles are a bit fatter than they used to be (+0.5px at 128px width). If that is an issue, I can change their width to 21.5px.
logo-icon.svg is deprecated since new logo.svg is already much smaller in weight.
I've combined .logo and .logo-icon - this is not strictly needed, I can revert if @nextcloud/designers disagree. It requires adding logo class to tags that have logo-icon class in apps - mainly where pages are shared publicly, e.g. Calendar.
PNG images and favicons were not edited.
Signed-off-by: Marin Treselj marin@pixelipo.com