Skip to content
Snippets Groups Projects
Commit 7f8a520f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Unite green buttons under one css class


Rename btn-new, btn-create and btn-save to btn-success

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent e23d08c7
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Showing
with 21 additions and 27 deletions
Loading
Loading
@@ -83,7 +83,7 @@ export default {
right on the way to making the most of your board.
</p>
<button
class="btn btn-create btn-inverted btn-block"
class="btn btn-success btn-inverted btn-block"
type="button"
@click.stop="addDefaultLists">
Add default lists
Loading
Loading
Loading
Loading
@@ -229,7 +229,7 @@ export default () => {
template: `
<div class="board-extra-actions">
<button
class="btn btn-create prepend-left-10"
class="btn btn-success prepend-left-10"
type="button"
data-placement="bottom"
ref="addIssuesButton"
Loading
Loading
Loading
Loading
@@ -38,7 +38,7 @@ export default {
<div class="text-center">
<a
:href="newBlobPath"
class="btn btn-save"
class="btn btn-success"
>
{{ __('Create commit') }}
</a>
Loading
Loading
Loading
Loading
@@ -35,7 +35,7 @@ code gets deployed, such as staging or production.`) }}
<a
v-if="canCreateEnvironment"
:href="newPath"
class="btn btn-create js-new-environment-button"
class="btn btn-success js-new-environment-button"
>
{{ s__("Environments|New environment") }}
</a>
Loading
Loading
Loading
Loading
@@ -107,7 +107,7 @@
>
<a
:href="newEnvironmentPath"
class="btn btn-create"
class="btn btn-success"
>
{{ s__("Environments|New environment") }}
</a>
Loading
Loading
Loading
Loading
@@ -53,7 +53,7 @@
<button
:class="{ disabled: formState.updateLoading || !isSubmitEnabled }"
:disabled="formState.updateLoading || !isSubmitEnabled"
class="btn btn-save float-left"
class="btn btn-success float-left"
type="submit"
@click.prevent="updateIssuable">
Save changes
Loading
Loading
Loading
Loading
@@ -57,7 +57,7 @@ export default {
actions.push({
label: 'New issue',
path: this.job.new_issue_path,
cssClass: 'js-new-issue btn btn-new btn-inverted d-none d-md-block d-lg-block d-xl-block',
cssClass: 'js-new-issue btn btn-success btn-inverted d-none d-md-block d-lg-block d-xl-block',
type: 'link',
});
}
Loading
Loading
Loading
Loading
@@ -130,7 +130,7 @@ export default {
<a
v-if="job.new_issue_path"
:href="job.new_issue_path"
class="js-new-issue btn btn-new btn-inverted"
class="js-new-issue btn btn-success btn-inverted"
>
{{ __('New issue') }}
</a>
Loading
Loading
Loading
Loading
@@ -374,7 +374,7 @@ js-gfm-input js-autosize markdown-area js-vue-textarea"
append-right-10 comment-type-dropdown js-comment-type-dropdown droplab-dropdown">
<button
:disabled="isSubmitButtonDisabled"
class="btn btn-create comment-btn js-comment-button js-comment-submit-button"
class="btn btn-success comment-btn js-comment-button js-comment-submit-button"
type="submit"
@click.prevent="handleSave()">
{{ __(commentButtonTitle) }}
Loading
Loading
Loading
Loading
@@ -188,7 +188,7 @@ js-autosize markdown-area js-vue-issue-note-form js-vue-textarea"
<button
:disabled="isDisabled"
type="button"
class="js-vue-issue-save btn btn-save js-comment-button "
class="js-vue-issue-save btn btn-success js-comment-button "
@click="handleUpdate()">
{{ saveButtonTitle }}
</button>
Loading
Loading
Loading
Loading
@@ -43,7 +43,7 @@ export default {
<a
v-if="newPipelinePath"
:href="newPipelinePath"
class="btn btn-create js-run-pipeline"
class="btn btn-success js-run-pipeline"
>
{{ s__('Pipelines|Run Pipeline') }}
</a>
Loading
Loading
Loading
Loading
@@ -37,7 +37,7 @@ export default {
<a
v-if="mr.newBlobPath"
:href="mr.newBlobPath"
class="btn btn-inverted btn-save">
class="btn btn-inverted btn-success">
Create file
</a>
</div>
Loading
Loading
Loading
Loading
@@ -147,18 +147,12 @@
}
 
&.btn-success,
&.btn-new,
&.btn-create,
&.btn-save,
&.btn-register {
@include btn-green;
}
 
&.btn-inverted {
&.btn-success,
&.btn-new,
&.btn-create,
&.btn-save {
&.btn-success {
@include btn-outline($white-light, $green-600, $green-500, $green-500, $white-light, $green-600, $green-600, $green-700);
}
 
Loading
Loading
Loading
Loading
@@ -45,7 +45,7 @@
}
}
 
.snippet-scope-menu .btn-new {
.snippet-scope-menu .btn-success {
margin-top: 15px;
}
 
Loading
Loading
Loading
Loading
@@ -106,7 +106,7 @@
&,
.dropdown,
.dropdown .dropdown-toggle,
.btn-new {
.btn-success {
display: block;
}
 
Loading
Loading
@@ -118,7 +118,7 @@
 
.group-filter-form,
.dropdown .dropdown-toggle,
.btn-new {
.btn-success {
width: 100%;
}
 
Loading
Loading
Loading
Loading
@@ -4,7 +4,7 @@
}
 
.users-project-form {
.btn-create {
.btn-success {
margin-right: 10px;
}
}
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
* Note Form
*/
.comment-btn {
@extend .btn-create;
@extend .btn-success;
}
 
.diff-file .diff-content {
Loading
Loading
Loading
Loading
@@ -218,7 +218,7 @@ input[type='checkbox']:hover {
}
 
.btn-search,
.btn-new {
.btn-success {
width: 100%;
margin-top: 5px;
 
Loading
Loading
Loading
Loading
@@ -32,7 +32,7 @@ module ServicesHelper
end
 
def service_save_button(service)
button_tag(class: 'btn btn-save', type: 'submit', disabled: service.deprecated?) do
button_tag(class: 'btn btn-success', type: 'submit', disabled: service.deprecated?) do
icon('spinner spin', class: 'hidden js-btn-spinner') +
content_tag(:span, 'Save changes', class: 'js-btn-label')
end
Loading
Loading
Loading
Loading
@@ -19,4 +19,4 @@
Explain the problem with this user. If appropriate, provide a link to the relevant issue or comment.
 
.form-actions
= f.submit "Send report", class: "btn btn-create"
= f.submit "Send report", class: "btn btn-success"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment