Skip to content

Commit

Permalink
refactor(admin-ui): Remove hard-coded hex color values
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jan 7, 2021
1 parent 2835507 commit 165cac3
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
li:not(:last-child)::after {
content: '';
top: 0;
color: #7e7e7e;
color: var(--color-grey-400);
margin-left: 10px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,3 @@
.trigger clr-icon {
color: white;
}
.btn.btn-outline:hover {
background-color: #e1f1f62e;
}

Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,6 @@ element.style {
.tooltip.tooltip-sm > .tooltip-content, .tooltip .tooltip-content.tooltip-sm {
width: 5rem;
}
.tooltip.tooltip-top-left > .tooltip-content, .tooltip .tooltip-content.tooltip-top-left {
color: #fff;
font-size: 0.541667rem;
font-weight: 400;
letter-spacing: normal;
background: #000;
border-radius: 0.125rem;
line-height: 0.75rem;
margin: 0;
padding: 0.375rem 0.5rem;
width: 10rem;
position: absolute;
top: auto;
bottom: 100%;
right: 50%;
left: auto;
border-bottom-right-radius: 0;
margin-bottom: 0.666667rem;
}

.tooltip:hover > .tooltip-content {
right: 12px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

.ProseMirror-selectednode {
outline: 2px solid #8cf;
outline: 2px solid var(--color-primary-500);
}

/* Make sure li selections wrap around markers */
Expand All @@ -47,7 +47,7 @@
right: -2px;
top: -2px;
bottom: -2px;
border: 2px solid #8cf;
border: 2px solid var(--color-primary-500);
pointer-events: none;
}

Expand All @@ -72,7 +72,7 @@
}

.ProseMirror-menuseparator {
border-right: 1px solid #ddd;
border-right: 1px solid var(--color-grey-300);
margin-right: 3px;
}

Expand Down Expand Up @@ -110,8 +110,8 @@
.ProseMirror-menu-submenu {
position: absolute;
background: white;
color: #666;
border: 1px solid #aaa;
color: var(--color-grey-600);
border: 1px solid var(--color-grey-300);
padding: 2px;
}

Expand All @@ -126,7 +126,7 @@
}

.ProseMirror-menu-dropdown-item:hover {
background: #f2f2f2;
background: var(--color-grey-100);
}

.ProseMirror-menu-submenu-wrap {
Expand All @@ -153,12 +153,12 @@
}

.ProseMirror-menu-active {
background: #eee;
background: var(--color-grey-100);
border-radius: 4px;
}

.ProseMirror-menu-active {
background: #eee;
background: var(--color-grey-100);
border-radius: 4px;
}

Expand All @@ -176,12 +176,12 @@
border-top-right-radius: inherit;
position: relative;
min-height: 1em;
color: #666;
color: var(--color-grey-600);
padding: 1px 6px;
top: 0;
left: 0;
right: 0;
background: white;
background: var(--color-grey-100);
z-index: 10;
-moz-box-sizing: border-box;
box-sizing: border-box;
Expand Down Expand Up @@ -243,7 +243,7 @@

.ProseMirror blockquote {
padding-left: 1em;
border-left: 3px solid #eee;
border-left: 3px solid var(--color-grey-100);
margin-left: 0;
margin-right: 0;
}
Expand All @@ -262,12 +262,12 @@
margin: 0;
font-weight: normal;
font-size: 100%;
color: #444;
color: var(--color-grey-500);
}

.ProseMirror-prompt input[type='text'],
.ProseMirror-prompt textarea {
background: #eee;
background: var(--color-grey-100);
border: none;
outline: none;
}
Expand All @@ -280,7 +280,7 @@
position: absolute;
left: 2px;
top: 1px;
color: #666;
color: var(--color-grey-400);
border: none;
background: transparent;
padding: 0;
Expand All @@ -292,8 +292,8 @@
}

.ProseMirror-invalid {
background: #ffc;
border: 1px solid #cc7;
background: var(--color-warning-200);
border: 1px solid var(--color-warning-300);
border-radius: 4px;
padding: 5px 10px;
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

&:focus {
outline: none;
box-shadow: 0 0 2px 2px #6bc1e3;
box-shadow: 0 0 2px 2px var(--color-primary-500);
}

&.disabled {
Expand Down

0 comments on commit 165cac3

Please sign in to comment.