BigW Consortium Gitlab

Commit 5ef3b22e by Filipa Lacerda

Style or separator according to review

parent ba7c65a6
...@@ -7,7 +7,8 @@ ...@@ -7,7 +7,8 @@
} }
.new_project, .new_project,
.edit-project { .edit-project,
.import-project {
.sharing-and-permissions { .sharing-and-permissions {
.header { .header {
...@@ -486,7 +487,7 @@ a.deploy-project-label { ...@@ -486,7 +487,7 @@ a.deploy-project-label {
font-size: 24px; font-size: 24px;
} }
@media (max-width: $screen-md-max) { @media (max-width: $screen-xs-max) {
.btn-template-icon { .btn-template-icon {
display: inline-block; display: inline-block;
height: 14px; height: 14px;
...@@ -514,54 +515,93 @@ a.deploy-project-label { ...@@ -514,54 +515,93 @@ a.deploy-project-label {
} }
} }
.new-project-second-column { .create-project-options {
padding-top: 30px; display: flex;
@media (min-width: $screen-lg-min) { @media (max-width: $screen-xs-max) {
padding-top: 0; display: block;
} }
&::before { .first-column {
content: "OR"; @media(min-width: $screen-xs-min) {
position: absolute; max-width: 50%;
left: 50%; width: 50%;
top: 0; }
z-index: 10;
padding: 0 10px; @media(max-width: $screen-xs-max) {
text-align: center; max-width: 100%;
background-color: $white-light; width: 100%;
color: $gray-darkest;
transform: translateX(-50%);
@media (min-width: $screen-lg-min) {
left: -30px;
top: 50%;
padding: 10px 0;
width: 20px;
line-height: 20px;
transform: translateY(-50%);
} }
} }
&::after { .second-column {
content: ""; @media(min-width: $screen-xs-min) {
position: absolute; width: 50%;
top: 10px; flex: 1;
left: 10px; padding-left: 30px;
right: 10px; position: relative;
height: 1px; }
background-color: $gray-darkest;
@media (min-width: $screen-lg-min) { @media(max-width: $screen-xs-max) {
max-width: 100%;
width: 100%;
padding-left: 0;
position: relative;
}
// Mobile
@media (max-width: $screen-xs-max) {
padding-top: 30px;
}
&::before {
content: "OR";
position: absolute;
left: 0px;
top: 40%;
z-index: 10;
padding: 8px 0;
text-align: center;
background-color: $white-light;
color: $gl-text-color-tertiary;
transform: translateX(-50%);
font-size: 12px;
font-weight: bold;;
line-height: 20px;
// Mobile
@media (max-width: $screen-xs-max) {
left: 50%;
top: 10px;
transform: translateY(-50%);
padding: 0px 8px;
}
}
&::after {
content: "";
position: absolute;
background-color: $border-color;
bottom: 0; bottom: 0;
left: -20px; left: 0;
right: auto; right: auto;
height: 100%; height: 100%;
width: 1px; width: 1px;
top: 0;
// Mobile
@media (max-width: $screen-xs-max) {
top: 10px;
left: 10px;
right: 10px;
height: 1px;
width: auto;
}
} }
} }
} }
.project-stats { .project-stats {
font-size: 0; font-size: 0;
text-align: center; text-align: center;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
Import an exported GitLab project Import an exported GitLab project
%hr %hr
= form_for import_gitlab_project_path, class: 'form-horizontal', multipart: true do |f| = form_for import_gitlab_project_path, class: 'form-horizontal import-project', multipart: true do |f|
.row .row
.form-group.col-xs-12.col-sm-6 .form-group.col-xs-12.col-sm-6
= f.label :namespace_id, class: 'label-light' do = f.label :namespace_id, class: 'label-light' do
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
Create or Import your project from popular Git services Create or Import your project from popular Git services
.col-lg-9.js-toggle-container .col-lg-9.js-toggle-container
= form_for @project, html: { class: 'new_project' } do |f| = form_for @project, html: { class: 'new_project' } do |f|
.row .create-project-options
.col-lg-6.col-sm-12 .first-column
.project-template .project-template
.form-group .form-group
= f.label :template_project, class: 'label-light' do = f.label :template_project, class: 'label-light' do
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
= link_to icon('question-circle'), help_page_path("public_access/public_access"), aria: { label: "What's included in a template?" }, title: "What's included in a template?", class: 'has-tooltip', data: { placement: 'top'} = link_to icon('question-circle'), help_page_path("public_access/public_access"), aria: { label: "What's included in a template?" }, title: "What's included in a template?", class: 'has-tooltip', data: { placement: 'top'}
%div %div
= render 'project_templates', f: f = render 'project_templates', f: f
.col-lg-6.col-sm-12.new-project-second-column .second-column
- if import_sources_enabled? - if import_sources_enabled?
.project-import .project-import
.form-group.clearfix .form-group.clearfix
......
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