Commit 21ccf896 authored by Annabel Dunstone's avatar Annabel Dunstone

Redesign profile page and group page mobile navigation

parent f53557a4
...@@ -156,6 +156,26 @@ ...@@ -156,6 +156,26 @@
border-bottom: 1px solid $border-color; border-bottom: 1px solid $border-color;
text-align: left; text-align: left;
padding: 24px 0; padding: 24px 0;
.group-info {
p {
margin-bottom: 0;
}
}
@media (max-width: $screen-xs-max) {
text-align: center;
.avatar {
float: none;
}
}
}
.group-info {
h1 {
display: inline;
}
} }
} }
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
} }
.rss-btn { .rss-btn {
display: none !important; display: none;
} }
.project-home-links { .project-home-links {
......
...@@ -198,13 +198,35 @@ ...@@ -198,13 +198,35 @@
.dropdown { .dropdown {
margin-left: 7px; margin-left: 7px;
} }
}
.nav-links { @media (max-width: $screen-md-max) {
border-bottom: none; float: none;
margin-bottom: 10px;
a { .btn {
padding-top: 2px; width: 20%;
}
} }
@media (max-width: $screen-xs-max) {
text-align: center;
.rss-btn,
.dropdown-new {
display: inline-block;
width: 48%;
}
}
}
}
.nav-links {
border-bottom: none;
white-space: nowrap;
overflow-x: auto;
overflow-y: hidden;
a {
padding-top: 2px;
} }
} }
...@@ -109,7 +109,7 @@ $red-light: #e52c5a; ...@@ -109,7 +109,7 @@ $red-light: #e52c5a;
$red-normal: #d22852; $red-normal: #d22852;
$red-dark: darken($red-normal, 5%); $red-dark: darken($red-normal, 5%);
$black: #000000; $black: #000;
$black-transparent: rgba(0, 0, 0, 0.3); $black-transparent: rgba(0, 0, 0, 0.3);
$border-white-light: #f1f2f4; $border-white-light: #f1f2f4;
......
...@@ -205,3 +205,33 @@ ...@@ -205,3 +205,33 @@
text-align: center; text-align: center;
} }
} }
.user-profile {
@media (max-width: $screen-xs-max) {
.cover-block {
padding-top: 20px;
}
.cover-controls {
position: static;
margin-bottom: 20px;
.btn {
display: inline-block;
width: 48%;
}
}
}
.cover-controls {
@media (max-width: $screen-xs-max) {
position: static;
margin-bottom: 20px;
.btn {
display: inline-block;
width: 48%;
}
}
}
}
...@@ -8,12 +8,16 @@ ...@@ -8,12 +8,16 @@
.container-fluid .container-fluid
= link_to group_icon(@group), target: '_blank' do = link_to group_icon(@group), target: '_blank' do
= image_tag group_icon(@group), class: "avatar group-avatar s90" = image_tag group_icon(@group), class: "avatar group-avatar s90"
.cover-title .group-info
%h1 @#{@group.path} .cover-title
%h1
@#{@group.path}
%span.visibility-icon.has-tooltip{ data: { container: 'body' }, title: visibility_icon_description(@group) }
= visibility_level_icon(@group.visibility_level, fw: false)
- if @group.description.present? - if @group.description.present?
.cover-desc.description .cover-desc.description
= markdown(@group.description, pipeline: :description) = markdown(@group.description, pipeline: :description)
%div{ class: container_class } %div{ class: container_class }
.top-area .top-area
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment