summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnnabel Dunstone <annabel.dunstone@gmail.com>2016-06-01 11:59:45 -0600
committerAnnabel Dunstone <annabel.dunstone@gmail.com>2016-06-01 20:09:52 -0600
commit30856b1eeaf2990297e4eb2323e5bdf9ee975a5c (patch)
treed868299a8d8b96c4ee4dd7b1040f779c566883c4
parent933a6e0d3618da7bcfc486d6f0c0d6cf9828116e (diff)
downloadgitlab-ce-18080-project-header-alignment.tar.gz
Add flexbox to project header18080-project-header-alignment
-rw-r--r--app/assets/stylesheets/pages/projects.scss10
-rw-r--r--app/views/projects/_home_panel.html.haml8
2 files changed, 13 insertions, 5 deletions
diff --git a/app/assets/stylesheets/pages/projects.scss b/app/assets/stylesheets/pages/projects.scss
index edef336481d..b9cb0f81e3a 100644
--- a/app/assets/stylesheets/pages/projects.scss
+++ b/app/assets/stylesheets/pages/projects.scss
@@ -32,6 +32,15 @@
.container-fluid {
position: relative;
+
+ @media (min-width: $screen-md-max) {
+ .row {
+ display: flex;
+ -ms-flex-align: center;
+ -webkit-align-items: center;
+ -webkit-box-align: center;
+ }
+ }
}
.cover-controls {
@@ -57,7 +66,6 @@
max-width: 86px;
min-width: 86px;
padding-right: 0;
- margin: 11px 0;
@media (max-width: $screen-md-max) {
padding-left: 0;
diff --git a/app/views/projects/_home_panel.html.haml b/app/views/projects/_home_panel.html.haml
index 57c3d1b0a65..f0e04a0235d 100644
--- a/app/views/projects/_home_panel.html.haml
+++ b/app/views/projects/_home_panel.html.haml
@@ -29,10 +29,10 @@
.project-clone-holder
= render "shared/clone_panel"
- .project-repo-buttons.btn-group.project-right-buttons
- = render "projects/buttons/download"
- = render 'projects/buttons/dropdown'
- = render 'projects/buttons/notifications'
+ .project-repo-buttons.btn-group.project-right-buttons
+ = render "projects/buttons/download"
+ = render 'projects/buttons/dropdown'
+ = render 'projects/buttons/notifications'
:javascript
new Star();