Commit cd619bdb authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch 'replace-prepend-left-default' into 'master'

Replace prepend-left-default class

See merge request gitlab-org/gitlab!35978
parents 1e68a2fc 8b422362
...@@ -12,7 +12,7 @@ export default { ...@@ -12,7 +12,7 @@ export default {
<div v-if="!lastCommitMsg" class="multi-file-commit-panel-section ide-commit-empty-state"> <div v-if="!lastCommitMsg" class="multi-file-commit-panel-section ide-commit-empty-state">
<div class="ide-commit-empty-state-container"> <div class="ide-commit-empty-state-container">
<div class="svg-content svg-80"><img :src="noChangesStateSvgPath" /></div> <div class="svg-content svg-80"><img :src="noChangesStateSvgPath" /></div>
<div class="append-right-default prepend-left-default"> <div class="append-right-default gl-ml-3">
<div class="text-content text-center"> <div class="text-content text-center">
<h4>{{ __('No changes') }}</h4> <h4>{{ __('No changes') }}</h4>
<p>{{ __('Edit files in the editor and commit changes here') }}</p> <p>{{ __('Edit files in the editor and commit changes here') }}</p>
......
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
<div class="svg-content svg-80"> <div class="svg-content svg-80">
<img :src="committedStateSvgPath" :alt="s__('IDE|Successful commit')" /> <img :src="committedStateSvgPath" :alt="s__('IDE|Successful commit')" />
</div> </div>
<div class="append-right-default prepend-left-default"> <div class="append-right-default gl-ml-3">
<div class="text-content text-center"> <div class="text-content text-center">
<h4>{{ __('All changes are committed') }}</h4> <h4>{{ __('All changes are committed') }}</h4>
<p v-html="lastCommitMsg"></p> <p v-html="lastCommitMsg"></p>
......
...@@ -26,9 +26,9 @@ export default { ...@@ -26,9 +26,9 @@ export default {
:img-src="user.avatar_url" :img-src="user.avatar_url"
:img-size="26" :img-size="26"
:tooltip-text="user.name" :tooltip-text="user.name"
class="prepend-left-default js-pipeline-url-user" class="gl-ml-3 js-pipeline-url-user"
/> />
<span v-else class="prepend-left-default js-pipeline-url-api api"> <span v-else class="gl-ml-3 js-pipeline-url-api api">
{{ s__('Pipelines|API') }} {{ s__('Pipelines|API') }}
</span> </span>
</div> </div>
......
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
<div class="folder-toggle-wrap d-flex align-items-center"> <div class="folder-toggle-wrap d-flex align-items-center">
<item-caret :is-group-open="isOpen" /> <item-caret :is-group-open="isOpen" />
</div> </div>
<div class="group-text flex-grow title namespace-title prepend-left-default"> <div class="group-text flex-grow title namespace-title gl-ml-3">
{{ envName }} {{ envName }}
</div> </div>
</div> </div>
......
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
<div class="add-border ci-status-icon ci-status-icon-failed ci-error js-ci-error"> <div class="add-border ci-status-icon ci-status-icon-failed ci-error js-ci-error">
<icon :size="24" name="status_failed_borderless" /> <icon :size="24" name="status_failed_borderless" />
</div> </div>
<div class="media-body prepend-left-default" v-html="errorText"></div> <div class="media-body gl-ml-3" v-html="errorText"></div>
</template> </template>
<template v-else-if="hasPipeline"> <template v-else-if="hasPipeline">
<a :href="status.details_path" class="align-self-start append-right-default"> <a :href="status.details_path" class="align-self-start append-right-default">
......
...@@ -261,7 +261,7 @@ export default { ...@@ -261,7 +261,7 @@ export default {
</li> </li>
</template> </template>
<li v-else class="dropdown-menu-empty-item"> <li v-else class="dropdown-menu-empty-item">
<div class="append-right-default prepend-left-default gl-mt-3 gl-mb-3"> <div class="append-right-default gl-ml-3 gl-mt-3 gl-mb-3">
<template v-if="loading"> <template v-if="loading">
{{ __('Loading...') }} {{ __('Loading...') }}
</template> </template>
......
...@@ -403,7 +403,6 @@ img.emoji { ...@@ -403,7 +403,6 @@ img.emoji {
.prepend-left-5 { margin-left: 5px; } .prepend-left-5 { margin-left: 5px; }
.prepend-left-10 { margin-left: 10px; } .prepend-left-10 { margin-left: 10px; }
.prepend-left-15 { margin-left: 15px; } .prepend-left-15 { margin-left: 15px; }
.prepend-left-default { margin-left: $gl-padding; }
.prepend-left-20 { margin-left: 20px; } .prepend-left-20 { margin-left: 20px; }
.prepend-left-64 { margin-left: 64px; } .prepend-left-64 { margin-left: 64px; }
.append-right-5 { margin-right: 5px; } .append-right-5 { margin-right: 5px; }
......
...@@ -134,6 +134,11 @@ ...@@ -134,6 +134,11 @@
} }
} }
.label-description-wrapper {
margin-right: 8px;
margin-left: 8px;
}
.prioritized-labels { .prioritized-labels {
margin-bottom: 30px; margin-bottom: 30px;
...@@ -385,7 +390,7 @@ ...@@ -385,7 +390,7 @@
order: 3; order: 3;
width: 100%; width: 100%;
> .append-right-default.prepend-left-default { > .label-description-wrapper {
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
} }
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
%h5.gl-mt-0= s_("Profiles|Upload new avatar") %h5.gl-mt-0= s_("Profiles|Upload new avatar")
.prepend-top-5.append-bottom-10 .prepend-top-5.append-bottom-10
%button.btn.js-choose-user-avatar-button{ type: 'button' }= s_("Profiles|Choose file...") %button.btn.js-choose-user-avatar-button{ type: 'button' }= s_("Profiles|Choose file...")
%span.avatar-file-name.prepend-left-default.js-avatar-filename= s_("Profiles|No file chosen") %span.avatar-file-name.gl-ml-3.js-avatar-filename= s_("Profiles|No file chosen")
= f.file_field_without_bootstrap :avatar, class: 'js-user-avatar-input hidden', accept: 'image/*' = f.file_field_without_bootstrap :avatar, class: 'js-user-avatar-input hidden', accept: 'image/*'
.form-text.text-muted= s_("Profiles|The maximum file size allowed is 200KB.") .form-text.text-muted= s_("Profiles|The maximum file size allowed is 200KB.")
- if @user.avatar? - if @user.avatar?
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
= _("Upload object map") = _("Upload object map")
%button.btn.btn-default.js-choose-file{ type: "button" } %button.btn.btn-default.js-choose-file{ type: "button" }
= _("Choose a file") = _("Choose a file")
%span.prepend-left-default.js-filename %span.gl-ml-3.js-filename
= _("No file selected") = _("No file selected")
= f.file_field :bfg_object_map, class: "hidden js-object-map-input", required: true = f.file_field :bfg_object_map, class: "hidden js-object-map-input", required: true
.form-text.text-muted .form-text.text-muted
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- can_create_project = current_user.can?(:create_projects, namespace) - can_create_project = current_user.can?(:create_projects, namespace)
- if forked_project = namespace.find_fork_of(@project) - if forked_project = namespace.find_fork_of(@project)
.bordered-box.fork-thumbnail.text-center.prepend-left-default.append-right-default.gl-mt-3.gl-mb-3.forked .bordered-box.fork-thumbnail.text-center.gl-ml-3.append-right-default.gl-mt-3.gl-mb-3.forked
= link_to project_path(forked_project) do = link_to project_path(forked_project) do
- if /no_((\w*)_)*avatar/.match(avatar) - if /no_((\w*)_)*avatar/.match(avatar)
= group_icon(namespace, class: "avatar rect-avatar s100 identicon mx-auto") = group_icon(namespace, class: "avatar rect-avatar s100 identicon mx-auto")
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
%h5.gl-mt-3 %h5.gl-mt-3
= namespace.human_name = namespace.human_name
- else - else
.bordered-box.fork-thumbnail.text-center.prepend-left-default.append-right-default.gl-mt-3.gl-mb-3{ class: ("disabled" unless can_create_project) } .bordered-box.fork-thumbnail.text-center.gl-ml-3.append-right-default.gl-mt-3.gl-mb-3{ class: ("disabled" unless can_create_project) }
= link_to project_forks_path(@project, namespace_key: namespace.id), = link_to project_forks_path(@project, namespace_key: namespace.id),
method: "POST", method: "POST",
class: ("disabled has-tooltip" unless can_create_project), class: ("disabled has-tooltip" unless can_create_project),
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
.col-lg-9 .col-lg-9
- if @namespaces.present? - if @namespaces.present?
.fork-thumbnail-container.js-fork-content .fork-thumbnail-container.js-fork-content
%h5.gl-mt-0.gl-mb-0.prepend-left-default.append-right-default %h5.gl-mt-0.gl-mb-0.gl-ml-3.append-right-default
= _("Select a namespace to fork the project") = _("Select a namespace to fork the project")
- @namespaces.each do |namespace| - @namespaces.each do |namespace|
= render 'fork_button', namespace: namespace = render 'fork_button', namespace: namespace
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.label-name .label-name
= render_label(label, tooltip: false) = render_label(label, tooltip: false)
.label-description .label-description
.append-right-default.prepend-left-default .label-description-wrapper
- if label.description.present? - if label.description.present?
.description-text .description-text
= markdown_field(label, :description) = markdown_field(label, :description)
......
...@@ -23,12 +23,12 @@ export default { ...@@ -23,12 +23,12 @@ export default {
<div class="gl-mb-3"> <div class="gl-mb-3">
<gl-tabs @input="trackInstallationTabChange"> <gl-tabs @input="trackInstallationTabChange">
<gl-tab :title="s__('PackageRegistry|Installation')" title-item-class="js-installation-tab"> <gl-tab :title="s__('PackageRegistry|Installation')" title-item-class="js-installation-tab">
<div class="prepend-left-default append-right-default"> <div class="gl-ml-3 append-right-default">
<slot name="installation"></slot> <slot name="installation"></slot>
</div> </div>
</gl-tab> </gl-tab>
<gl-tab :title="s__('PackageRegistry|Registry Setup')" title-item-class="js-setup-tab"> <gl-tab :title="s__('PackageRegistry|Registry Setup')" title-item-class="js-setup-tab">
<div class="prepend-left-default append-right-default"> <div class="gl-ml-3 append-right-default">
<slot name="setup"></slot> <slot name="setup"></slot>
</div> </div>
</gl-tab> </gl-tab>
......
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
<gl-icon v-else name="chevron-down" :size="18" /> <gl-icon v-else name="chevron-down" :size="18" />
<div>{{ titleWithName }}</div> <div>{{ titleWithName }}</div>
</div> </div>
<div class="prepend-left-default">{{ formatAmount(totalAmount, usersPresent) }}</div> <div class="gl-ml-3">{{ formatAmount(totalAmount, usersPresent) }}</div>
</h4> </h4>
</div> </div>
<summary-details v-show="!collapsed" /> <summary-details v-show="!collapsed" />
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
.svg-content .svg-content
= render svg_path = render svg_path
%div{ class: is_empty_state ? "text-content" : "prepend-top-10 prepend-left-default" } %div{ class: is_empty_state ? "text-content" : "prepend-top-10 gl-ml-3" }
- if is_empty_state - if is_empty_state
%h4= title_text %h4= title_text
- else - else
......
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