Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix styling of confirm actions in tags editor #8528

Merged
merged 8 commits into from
Jul 31, 2020
1 change: 1 addition & 0 deletions src/Umbraco.Web.UI.Client/src/less/belle.less
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@
@import "components/umb-dropdown.less";
@import "components/umb-range-slider.less";
@import "components/umb-number.less";
@import "components/umb-tags-editor.less";

@import "components/buttons/umb-button.less";
@import "components/buttons/umb-button-group.less";
Expand Down
5 changes: 1 addition & 4 deletions src/Umbraco.Web.UI.Client/src/less/buttons.less
Original file line number Diff line number Diff line change
Expand Up @@ -336,20 +336,17 @@ input[type="submit"].btn {
// This is lifted from umb-group-builder.less

.btn-icon {
border: none;

border: none;
font-size: 18px;
position: relative;
cursor: pointer;
color: @ui-icon;

margin: 0;
padding: 5px 10px;
width: auto;
overflow: visible;
background: transparent;
line-height: normal;
outline: 0;
-webkit-appearance: none;

&:hover {
Expand Down
129 changes: 48 additions & 81 deletions src/Umbraco.Web.UI.Client/src/less/components/umb-confirm-action.less
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,6 @@
left: 0;
animation: fadeInUp 0.2s;
flex-direction: column;

.umb_confirm-action__overlay-action {
margin-bottom: 5px;
}

.umb_confirm-action__overlay-action.-confirm {
order: 1;
}

.umb_confirm-action__overlay-action.-cancel {
order: 2;
}

}

.umb_confirm-action__overlay.-right {
Expand All @@ -40,18 +27,6 @@
left: auto;
animation: fadeInLeft 0.2s;
flex-direction: row;

.umb_confirm-action__overlay-action {
margin-left: 5px;
}

.umb_confirm-action__overlay-action.-confirm {
order: 2;
}

.umb_confirm-action__overlay-action.-cancel {
order: 1;
}
}

.umb_confirm-action__overlay.-bottom {
Expand All @@ -61,18 +36,6 @@
left: 0;
animation: fadeInDown 0.2s;
flex-direction: column;

.umb_confirm-action__overlay-action {
margin-top: 5px;
}

.umb_confirm-action__overlay-action.-confirm {
order: 2;
}

.umb_confirm-action__overlay-action.-cancel {
order: 1;
}
}

.umb_confirm-action__overlay.-left {
Expand All @@ -82,55 +45,59 @@
left: -50px;
animation: fadeInRight 0.2s;
flex-direction: row;
}

.umb_confirm-action__overlay {

.umb_confirm-action__overlay-action {
margin-right: 5px;
}

.umb_confirm-action__overlay-action.-confirm {
order: 1;
}
&.-confirm {
order: 1;
}

.umb_confirm-action__overlay-action.-cancel {
order: 2;
&.-cancel {
order: 2;
}
}
}

// BUTTONS
.umb_confirm-action__overlay-action {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
color: @white;
border-radius: 40px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
font-size: 18px;
cursor: pointer;
}

.umb_confirm-action__overlay-action:hover {
text-decoration: none;
color: @white;
}

// confirm button
.umb_confirm-action__overlay-action.-confirm {
background: @white;
color: @green !important;
}

.umb_confirm-action__overlay-action.-confirm:hover {
color: @green !important;
}

// cancel button
.umb_confirm-action__overlay-action.-cancel {
background: @white;
color: @red !important;
}

.umb_confirm-action__overlay-action.-cancel:hover {
color: @red !important;
// BUTTONS
.umb_confirm-action__overlay-action {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
color: @white;
border-radius: 40px;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
font-size: 18px;
cursor: pointer;
user-select: none;

&:hover {
text-decoration: none;
color: @white;
}

// confirm button
&.-confirm {
background: @white;
color: @green !important;

&:hover {
color: @green !important;
}
}

// cancel button
&.-cancel {
background: @white;
color: @red !important;

&:hover {
color: @red !important;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,12 @@ input.umb-group-builder__group-title-input:disabled:hover {
position: relative;
margin: 5px 0;

button {
> button {
border: none;

font-size: 18px;
position: relative;
cursor: pointer;
color: @ui-icon;

margin: 0;
padding: 5px 10px;
width: auto;
Expand Down
53 changes: 53 additions & 0 deletions src/Umbraco.Web.UI.Client/src/less/components/umb-tags-editor.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.umb-tags-editor {
border: @inputBorder solid 1px;
padding: 5px;
min-height: 54px;
font-size: 13px;
text-shadow: none;
box-sizing: border-box;

.tag {
cursor: default;
margin: 10px;
padding: 10px 15px;
background: @blueExtraDark;
position: relative;
user-select: all;

.umb_confirm-action {

> .btn-icon {
color: @white;
padding: 0;
position: relative;
cursor: pointer;
padding-left: 2px;
font-size: 15px;
right: -5px;
bottom: -1px;
user-select: none;
}

.umb_confirm-action__overlay.-left {
top: 8px;
left: auto;
right: 15px;
}
}
}

input {
border: none;
background: @white;
}

.twitter-typeahead {
margin: 10px;
margin-top: 16px;
vertical-align: top;

input {
padding-left: 0;
}
}
}
44 changes: 0 additions & 44 deletions src/Umbraco.Web.UI.Client/src/less/property-editors.less
Original file line number Diff line number Diff line change
Expand Up @@ -818,51 +818,7 @@
// Tags
// --------------------------------------------------
.umb-tags {
border: @inputBorder solid 1px;
padding: 5px;
min-height: 54px;
font-size: 13px;
text-shadow: none;
box-sizing: border-box;
.umb-property-editor--limit-width();

.tag {
cursor: default;
margin: 10px;
padding: 10px 15px;
background: @blueExtraDark;
position: relative;
user-select: all;

.icon-trash {
position: relative;
cursor: pointer;
padding-left: 2px;
font-size: 15px;
right: -5px;
bottom: -1px;
}

.umb_confirm-action__overlay.-left{
top: 6px;
left: auto;
right: 15px;
}
}

input {
border: none;
background: @white;
}

.twitter-typeahead {
margin: 10px;
margin-top: 16px;
vertical-align: top;
input {
padding-left: 0;
}
}
}

//
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div>
<div class="umb-tags-editor">
<ng-form name="vm.tagEditorForm">

<div ng-if="vm.isLoading">
<localize key="loading">Loading</localize>...
</div>
Expand Down