Skip to content
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

Clean all superposed white backgrounds #1657

Closed
wants to merge 7 commits into from
Closed

Conversation

skjnldsv
Copy link
Member

@skjnldsv skjnldsv commented Oct 7, 2016

In nextcloud there's too much elements with a white background. If the parent element already have a white bg, we should reapply one. This causes a lot of difficulties for themers to create their own.
We should also use transparents borders so we can easily change background without breaking the contrast between bg and borders.

The though came from my work on a dark theme. Changing the body bgcolor isn't enough.

@mention-bot
Copy link

@skjnldsv, thanks for your PR! By analyzing the history of the files in this pull request, we identified @jancborchardt, @MorrisJobke and @DeepDiver1975 to be potential reviewers.

@skjnldsv skjnldsv added design Design, UI, UX, etc. 2. developing Work in progress feature: theming labels Oct 7, 2016
@skjnldsv skjnldsv self-assigned this Oct 7, 2016
@@ -215,7 +213,7 @@ table th:focus .sort-indicator.hidden {

table th,
table td {
border-bottom: 1px solid #eee;
border-bottom: 1px solid 1px solid rgba(0,0,0,0.08);
Copy link
Member

@irgendwie irgendwie Oct 7, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo? 😉

@@ -439,8 +438,7 @@
width: 27%;
min-width: 300px;
display: block;
background: #fff;
border-left: 1px solid #eee;
border-left: 1px solid 1px solid rgba(0,0,0,0.08)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sigh... Copy/paste wasn't really effective here...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@skjnldsv Nice, very good call on using transparency vs greyspale! Also the code style is rgba(0, 0, 0, .08) (space after comma and no 0 before dot ;)

@@ -144,7 +142,7 @@
#filestable tbody tr.searchresult,
table tr.mouseOver td {
transition: background-color 0.3s ease;
background-color: #f8f8f8;
background-color: rgba(0,0,0,0.08);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compare this with line 216 where you use the ame .08 color for #eee, instead of #f8f8f8 like here. ;) They should be different, no?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should! To be honest, i'm not calculating the hex to rgba! :p
It's a visual estimation ^^

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will calculate the new value. I like it more precise! :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done @jancborchardt .
Values are now calculated base on a rgba transparency on white background.

outline: 0;
padding-right: 24px !important;
}

select:hover {
background-color: #fefefe;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jancborchardt I'm not really sure this is humanly visible 😆

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not really. Do you want to adjust this to the equivalent of #fff instead? Or rather it really needs to be solid #fff because by default the select is grey and it could be on top of dark background.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't think of dark backgrounds superposition. Because the rgba I'm changing are planned on a #fff bg. If we want a dark background with the same contrast, we should reverse the values. :)

For this line, I think we could just remove it. Or choose a completely different value to set for all inputs:hover.

@@ -272,8 +272,8 @@ button:hover, button:focus,
.button:hover, .button:focus,
.button a:focus,
select:hover, select:focus, select:active {
background-color: rgba(255, 255, 255, .95);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jancborchardt same here. This is not visible to the eye. I changed to something more visible. What do you think?

Copy link
Member

@jancborchardt jancborchardt Oct 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The point about this was that the background color shines a bit through. For example when we have it in the header of the link share page there are buttons on the top right.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, makes sense! :)

@codecov-io
Copy link

codecov-io commented Oct 8, 2016

Current coverage is 56.23% (diff: 100%)

Merging #1657 into master will not change coverage

@@             master      #1657   diff @@
==========================================
  Files          1070       1070          
  Lines         60505      60505          
  Methods        6829       6829          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits          34027      34027          
  Misses        26478      26478          
  Partials          0          0          

Sunburst

Powered by Codecov. Last update 0beecbf...d056698

}
tbody a { color:#000; }
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to redefine the a colors since it's already set on core/styles.css

skjnldsv added a commit to nextcloud/mail that referenced this pull request Oct 9, 2016
skjnldsv added a commit to nextcloud/activity that referenced this pull request Oct 9, 2016
skjnldsv added a commit to nextcloud/gallery that referenced this pull request Oct 9, 2016
@nickvergessen
Copy link
Member

@skjnldsv you need to "sign off" all your commits:
https://github.com/nextcloud/server/blob/master/CONTRIBUTING.md#sign-your-work

Can you fix all your commit messages please?

@skjnldsv
Copy link
Member Author

I know, I forgot, I will when I will squash those commits :)
Thanks

@nickvergessen nickvergessen added this to the Nextcloud 11.0 milestone Oct 10, 2016
skjnldsv added a commit to nextcloud/calendar that referenced this pull request Oct 10, 2016
georgehrke pushed a commit to nextcloud/calendar that referenced this pull request Oct 11, 2016
@georgehrke
Copy link
Member

nextcloud chromium today at 3 45 14 pm

This also removes the background on the login for me 🙈

@skjnldsv
Copy link
Member Author

@georgehrke Yep, the login form don't have a background. We should apply one to it for this case only. :)

@jancborchardt
Copy link
Member

@skjnldsv can you fix what @georgehrke mentioned and the other things? Then squash or so, and we can review it. :)

@skjnldsv
Copy link
Member Author

@jancborchardt Not now. I'm lost for now. This pr extends to more than just white backgrounds I think.
Could you read your irc private message? :)
I sent you something.

@jancborchardt
Copy link
Member

@skjnldsv I’m not on IRC atm ;) either Github or email.

@skjnldsv
Copy link
Member Author

Just sent you one 🚀

@MorrisJobke
Copy link
Member

@skjnldsv What is the status of this?

@skjnldsv
Copy link
Member Author

@MorrisJobke on hold while I wait for the scss pr. Too much sh*** to clean.
Let's close and see after!

@skjnldsv skjnldsv closed this Nov 30, 2016
skjnldsv added a commit to nextcloud/activity that referenced this pull request Nov 30, 2016
skjnldsv added a commit to nextcloud/gallery that referenced this pull request Nov 30, 2016
@skjnldsv skjnldsv deleted the white-bg-cleanup branch November 30, 2016 14:51
@MorrisJobke MorrisJobke removed this from the Nextcloud 12.0 milestone Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress design Design, UI, UX, etc. feature: theming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants