BigW Consortium Gitlab
Resolve "Clean up CSS for project alerts and flash notifications." ## What does this MR do? Cleans up CSS and html for alert stripes at the top of project pages. ## Screenshots #### Before: ![Screen_Shot_2016-12-16_at_2.39.01_PM_copy](/uploads/6a700cf1e41557c00cdaef40f6a2a5b2/Screen_Shot_2016-12-16_at_2.39.01_PM_copy.png) #### After: ![Screen_Shot_2016-12-16_at_2.39.23_PM_copy](/uploads/c849578becc3a634e8b15ab5340d86a2/Screen_Shot_2016-12-16_at_2.39.23_PM_copy.png) ## Are there points in the code the reviewer needs to double check? In order to get multiple alerts to appear manually while testing, I simply added the following block to [app/views/shared/_no_password.html.haml](app/views/shared/_no_password.html.haml): ``` .no-password-message.alert.alert-warning.hidden-xs You won't be able to pull or push project code via #{gitlab_config.protocol.upcase} until you #{link_to 'set a password', edit_profile_password_path} on your account .pull-right = link_to "Don't show again", profile_path(user: {hide_no_password: true}), method: :put | = link_to 'Remind later', '#', class: 'hide-no-password-message' .no-password-message.alert.alert-warning.hidden-xs You won't be able to pull or push project code via #{gitlab_config.protocol.upcase} until you #{link_to 'set a password', edit_profile_password_path} on your account .pull-right = link_to "Don't show again", profile_path(user: {hide_no_password: true}), method: :put | = link_to 'Remind later', '#', class: 'hide-no-password-message' .no-password-message.alert.alert-warning.hidden-xs You won't be able to pull or push project code via #{gitlab_config.protocol.upcase} until you #{link_to 'set a password', edit_profile_password_path} on your account .pull-right = link_to "Don't show again", profile_path(user: {hide_no_password: true}), method: :put | = link_to 'Remind later', '#', class: 'hide-no-password-message' ``` ## Why was this MR needed? More alert-warning stripes are coming via the CI usage limits implementation in EE (https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/965), and these layout margins and colors were becoming messy. ## Does this MR meet the acceptance criteria? - [x] [Changelog entry](https://docs.gitlab.com/ce/development/changelog.html) added - [ ] ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~ - [ ] ~~API support added~~ - Tests - [ ] ~~Added for this feature/bug~~ - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? Closes #25743 See merge request !8151
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
animations.scss | Loading commit data... | |
asciidoctor.scss | Loading commit data... | |
avatar.scss | Loading commit data... | |
awards.scss | Loading commit data... | |
blank.scss | Loading commit data... | |
blocks.scss | Loading commit data... | |
broadcast-messages.scss | Loading commit data... | |
buttons.scss | Loading commit data... | |
calendar.scss | Loading commit data... | |
callout.scss | Loading commit data... | |
common.scss | Loading commit data... | |
dropdowns.scss | Loading commit data... | |
emojis.scss | Loading commit data... | |
files.scss | Loading commit data... | |
filters.scss | Loading commit data... | |
flash.scss | Loading commit data... | |
forms.scss | Loading commit data... | |
gfm.scss | Loading commit data... | |
gitlab-theme.scss | Loading commit data... | |
header.scss | Loading commit data... | |
highlight.scss | Loading commit data... | |
icons.scss | Loading commit data... | |
images.scss | Loading commit data... | |
issue_box.scss | Loading commit data... | |
jquery.scss | Loading commit data... | |
layout.scss | Loading commit data... | |
lists.scss | Loading commit data... | |
logo.scss | Loading commit data... | |
markdown_area.scss | Loading commit data... | |
mixins.scss | Loading commit data... | |
mobile.scss | Loading commit data... | |
modal.scss | Loading commit data... | |
nav.scss | Loading commit data... | |
page-header.scss | Loading commit data... | |
pagination.scss | Loading commit data... | |
panels.scss | Loading commit data... | |
progress.scss | Loading commit data... | |
selects.scss | Loading commit data... | |
sidebar.scss | Loading commit data... | |
snippets.scss | Loading commit data... | |
tables.scss | Loading commit data... | |
timeline.scss | Loading commit data... | |
tw_bootstrap.scss | Loading commit data... | |
tw_bootstrap_variables.scss | Loading commit data... | |
typography.scss | Loading commit data... | |
variables.scss | Loading commit data... | |
wells.scss | Loading commit data... | |
zen.scss | Loading commit data... |