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
......@@ -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
......
......@@ -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"
......
......@@ -38,7 +38,7 @@ export default {
<div class="text-center">
<a
:href="newBlobPath"
class="btn btn-save"
class="btn btn-success"
>
{{ __('Create commit') }}
</a>
......
......@@ -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>
......
......@@ -107,7 +107,7 @@
>
<a
:href="newEnvironmentPath"
class="btn btn-create"
class="btn btn-success"
>
{{ s__("Environments|New environment") }}
</a>
......
......@@ -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
......
......@@ -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',
});
}
......
......@@ -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>
......
......@@ -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) }}
......
......@@ -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>
......
......@@ -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>
......
......@@ -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>
......
......@@ -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);
}
......
......@@ -45,7 +45,7 @@
}
}
.snippet-scope-menu .btn-new {
.snippet-scope-menu .btn-success {
margin-top: 15px;
}
......
......@@ -106,7 +106,7 @@
&,
.dropdown,
.dropdown .dropdown-toggle,
.btn-new {
.btn-success {
display: block;
}
......@@ -118,7 +118,7 @@
.group-filter-form,
.dropdown .dropdown-toggle,
.btn-new {
.btn-success {
width: 100%;
}
......
......@@ -4,7 +4,7 @@
}
.users-project-form {
.btn-create {
.btn-success {
margin-right: 10px;
}
}
......
......@@ -2,7 +2,7 @@
* Note Form
*/
.comment-btn {
@extend .btn-create;
@extend .btn-success;
}
.diff-file .diff-content {
......
......@@ -218,7 +218,7 @@ input[type='checkbox']:hover {
}
.btn-search,
.btn-new {
.btn-success {
width: 100%;
margin-top: 5px;
......
......@@ -32,7 +32,7 @@ def service_event_field_name(event)
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
......
......@@ -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"
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