♻️ Move colors to css variables
This commit is contained in:
@ -23,11 +23,11 @@ function getChar(type) {
|
||||
function getColor(type) {
|
||||
switch (type) {
|
||||
case "change":
|
||||
return "background-color: #14587E;";
|
||||
return "background-color: var(--substitution-background-change)";
|
||||
case "addition":
|
||||
return "background-color: #476331;";
|
||||
return "background-color: var(--substitution-background-addition);";
|
||||
case "deletion":
|
||||
return "background-color: #7D2B2D;";
|
||||
return "background-color: var(--substitution-background-deletion);";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@ -70,7 +70,6 @@ function getColor(type) {
|
||||
|
||||
.change {
|
||||
display: grid;
|
||||
background-color: #26272a;
|
||||
min-height: 35px;
|
||||
border-radius: 11px;
|
||||
margin: 10px 0px;
|
||||
|
Reference in New Issue
Block a user