Skip to content

Conversation

@Poorchop
Copy link
Member

@Poorchop Poorchop commented May 5, 2016

I wasn't sure how to style this element. It normally has a background gradient:

background-image: linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff),linear-gradient(70deg, #e0f1ff 32%, #fffae3)

I tried yellow but it didn't look right, and I took a look at the various gradients that already exist, but those didn't look good either, so I stuck with blue. Let me know what you think. You can find the unstyled element if you go to the main GitHub page after signing in (not your profile page). It's the page that shows your news feed.

@Mottie
Copy link
Member

Mottie commented May 5, 2016

Hmm, the only .js-notice class I see on that page is the broadcast.

2016-05-05 16_15_44-github

I don't see any elements with a class name of shelf or intro-shelf. Would you share a screenshot?

@Poorchop
Copy link
Member Author

Poorchop commented May 6, 2016

untitled-1

@Mottie
Copy link
Member

Mottie commented May 6, 2016

I think that might look better with a solid grey background since it appears to take up the entire page. What do you think @silverwind?

@silverwind
Copy link
Member

silverwind commented May 6, 2016

Hmm, I'm not getting this, here's the full original style from GitHub's stylesheet:

.intro-shelf {
    margin-top:0;
    color:#234766;
    background-image:-webkit-linear-gradient(270deg, rgba(255,255,255,0) 60%, #fff),-webkit-linear-gradient(20deg, #e0f1ff 32%, #fffae3);
    background-image:linear-gradient(180deg, rgba(255,255,255,0) 60%, #fff),linear-gradient(70deg, #e0f1ff 32%, #fffae3);
    border-bottom:#fff
}

That border-bottom is an invalid style, by the way.

The blue might be fine as we use it for various other notice-boxes, only suggestion I have is to reduce the selector to just .intro-shelf.

@Mottie Mottie merged commit 0287499 into StylishThemes:master May 10, 2016
@Mottie
Copy link
Member

Mottie commented May 10, 2016

@Poorchop Oh, you went with plain blue? We can keep the gradient if you want.

@Poorchop
Copy link
Member Author

That's initially what I went with because none of the other colors or gradients looked good. I think I tried a gray gradient but it looked kind of sloppy. I'll leave it up to you to change it and if you need me to test it out and send a screenshot, I wouldn't mind since you're missing the element.

@Mottie
Copy link
Member

Mottie commented May 11, 2016

Actually, I'll leave it to you since you can see it! You are a collaborator, so feel free to do stuff.

@silverwind
Copy link
Member

silverwind commented May 11, 2016

Just saw that box. I think some transparency like this might look good:

.shelf {
  background-color: rgba(0,0,0,.2) !important;
  border-bottom: 1px solid #343434 !important;
}
.pricing-shelf {
  background-image: none !important;
}

@Poorchop
Copy link
Member Author

Is this supposed to be on top of the existing .intro-shelf rule? It just looks like regular dark gray on my end when I add those selectors. The way that it's styled by default, it just seamlessly transitions into the main background color so that it doesn't exactly appear as a distinct notification, so I agree that blue probably isn't the best choice. Something like this but cleaner:

screen shot 2016-05-11 at 06 38 13

That 70 degree gradient looks weird though, even in the default stylesheet. Silverwind's rules look fine to me.

@Mottie
Copy link
Member

Mottie commented May 11, 2016

Odd, I just saw a .pricing-shelf... I think we it might be better to use .js-notice since that might be the common selector

2016-05-11 06_32_57- github

@Mottie
Copy link
Member

Mottie commented May 11, 2016

Hmm, ok, I think I like @silverwind's suggestion. I'll go ahead and make the change but you guys feel free to tweak it!

Mottie added a commit that referenced this pull request May 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants