mirror of
https://github.com/Steffo99/bluelib.git
synced 2024-12-22 11:34:21 +00:00
🐛 Fix no-border buttons gaining a border when disabled
This commit is contained in:
parent
dadc6e0f7f
commit
11b0a7856c
5 changed files with 15 additions and 21 deletions
6
src/rules/skeleton.less
vendored
6
src/rules/skeleton.less
vendored
|
@ -155,8 +155,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&@{status-disabled} {
|
&@{status-disabled} {
|
||||||
border-style: dashed;
|
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background-color: @stroke-1;
|
background-color: @stroke-1;
|
||||||
}
|
}
|
||||||
|
@ -175,6 +173,10 @@
|
||||||
padding: 4px 14px;
|
padding: 4px 14px;
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
|
|
||||||
|
@{status-disabled} {
|
||||||
|
border-style: dashed;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@{button-toggle-off} {
|
@{button-toggle-off} {
|
||||||
|
|
|
@ -78,9 +78,6 @@
|
||||||
.bluelib .button:active {
|
.bluelib .button:active {
|
||||||
background-color: rgba(calc(var(--bluelib-color-r) - 55), calc(var(--bluelib-color-g) - 55), calc(var(--bluelib-color-b) - 55), 1);
|
background-color: rgba(calc(var(--bluelib-color-r) - 55), calc(var(--bluelib-color-g) - 55), calc(var(--bluelib-color-b) - 55), 1);
|
||||||
}
|
}
|
||||||
.bluelib .button.status-disabled {
|
|
||||||
border-style: dashed;
|
|
||||||
}
|
|
||||||
.bluelib .button.status-disabled:hover {
|
.bluelib .button.status-disabled:hover {
|
||||||
background-color: rgba(var(--bluelib-color-r), var(--bluelib-color-g), var(--bluelib-color-b), 1);
|
background-color: rgba(var(--bluelib-color-r), var(--bluelib-color-g), var(--bluelib-color-b), 1);
|
||||||
}
|
}
|
||||||
|
@ -95,6 +92,9 @@
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
.bluelib .button-toggle .status-disabled {
|
||||||
|
border-style: dashed;
|
||||||
|
}
|
||||||
.bluelib .button-toggle-off {
|
.bluelib .button-toggle-off {
|
||||||
border-color: rgba(var(--bluelib-color-r), var(--bluelib-color-g), var(--bluelib-color-b), 1);
|
border-color: rgba(var(--bluelib-color-r), var(--bluelib-color-g), var(--bluelib-color-b), 1);
|
||||||
color: rgba(var(--bluelib-color-r), var(--bluelib-color-g), var(--bluelib-color-b), 1);
|
color: rgba(var(--bluelib-color-r), var(--bluelib-color-g), var(--bluelib-color-b), 1);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"version":3,"sources":["/mnt/tera/ext4/code/bluelib-2/src/rules/skeleton.less"],"names":[],"mappings":"AACA;EAGI,qBAAA;EACA,qBAAA;EACA,qBAAA;EAEA,sBAAA;;AAPJ,QAAA;EASQ,sBAAA;EACA,OAAO,IACC,wBACA,wBACA,uBAHR;;AAVR,QAAA;EAoBQ,iBAAA;EACA,kBAAA;EACA,iBAAA;;AAtBR,QAAA;EA8BQ,aAAA;EACA,WAAA;;AAGI,QAlCZ,OAAA,qBAkCa;AAAD,QAlCZ,OACY,eAiCC;AAAD,QAlCZ,OAGI,OA+BS;EACG,aAAA;;AAGJ,QAtCZ,OAAA,qBAsCa;AAAD,QAtCZ,OACY,eAqCC;AAAD,QAtCZ,OAGI,OAmCS;EACG,gBAAA;;AAvChB,QAAA;EA8CQ,YAAA;EACA,kBAAA;EACA,iBAAA;EACA,mBAAA;EAEA,kBAAkB,KACd,wBACA,wBACA,8BAHJ;EAMA,cAAc,KACV,wBACA,wBACA,4BAHJ;;AAzDR,QAAA;EAmEQ,sBAAA;EACA,mBAAA;EACA,sBAAA;EACA,qBAAA;;AAtER,QAAA;EA2EQ,eAAA;EACA,kBAAA;;AA5ER,QAAA;EAiFQ,aAAA;EACA,eAAA;EACA,QAAA;EACA,uBAAA;;AApFR,QAAA,aAAA;EAuFY,YAAA;EACA,cAAA;EACA,aAAA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A,YAAA;EACA,kBAAA;EACA,kBAAA;;AAxXR,QAAA;EA8XQ,sBAAA;EACA,oBAAA;EACA,oBAAA;;AAhYR,QAAA;EAoYQ,sBAAA;EACA,sBAAA;EACA,oBAAA;;AAtYR,QAAA;EA0YQ,sBAAA;EACA,sBAAA;EACA,oBAAA;;AA5YR,QAAA;EAgZQ,oBAAA;EACA,sBAAA;EACA,oBAAA;;AAlZR,QAAA;EAsZQ,oBAAA;EACA,sBAAA;EACA,sBAAA;;AAxZR,QAAA;EA4ZQ,oBAAA;EACA,oBAAA;EACA,sBAAA;;AA9ZR,QAAA;EAkaQ,sBAAA;EACA,oBAAA;EACA,sBAAA;;AApaR,QAAA;EAwaQ,sBAAA;EACA,sBAAA;EACA,sBAAA","file":"skeleton.module.css"}
|
|
@ -685,20 +685,6 @@ body button:active,
|
||||||
body input[type="submit"]:active {
|
body input[type="submit"]:active {
|
||||||
background-color: rgba(calc(var(--bluelib-color-r) - 55), calc(var(--bluelib-color-g) - 55), calc(var(--bluelib-color-b) - 55), 1);
|
background-color: rgba(calc(var(--bluelib-color-r) - 55), calc(var(--bluelib-color-g) - 55), calc(var(--bluelib-color-b) - 55), 1);
|
||||||
}
|
}
|
||||||
.base-skeleton .button.status-disabled,
|
|
||||||
body .button.status-disabled,
|
|
||||||
.base-skeleton button.status-disabled,
|
|
||||||
body button.status-disabled,
|
|
||||||
.base-skeleton input[type="submit"].status-disabled,
|
|
||||||
body input[type="submit"].status-disabled,
|
|
||||||
.base-skeleton .button *[disabled],
|
|
||||||
body .button *[disabled],
|
|
||||||
.base-skeleton button *[disabled],
|
|
||||||
body button *[disabled],
|
|
||||||
.base-skeleton input[type="submit"] *[disabled],
|
|
||||||
body input[type="submit"] *[disabled] {
|
|
||||||
border-style: dashed;
|
|
||||||
}
|
|
||||||
.base-skeleton .button.status-disabled:hover,
|
.base-skeleton .button.status-disabled:hover,
|
||||||
body .button.status-disabled:hover,
|
body .button.status-disabled:hover,
|
||||||
.base-skeleton button.status-disabled:hover,
|
.base-skeleton button.status-disabled:hover,
|
||||||
|
@ -737,6 +723,12 @@ body .button-toggle {
|
||||||
border-width: 2px;
|
border-width: 2px;
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
}
|
}
|
||||||
|
.base-skeleton .button-toggle .status-disabled,
|
||||||
|
body .button-toggle .status-disabled,
|
||||||
|
.base-skeleton .button-toggle *[disabled],
|
||||||
|
body .button-toggle *[disabled] {
|
||||||
|
border-style: dashed;
|
||||||
|
}
|
||||||
.base-skeleton .button-toggle-off,
|
.base-skeleton .button-toggle-off,
|
||||||
body .button-toggle-off {
|
body .button-toggle-off {
|
||||||
border-color: rgba(var(--bluelib-color-r), var(--bluelib-color-g), var(--bluelib-color-b), 1);
|
border-color: rgba(var(--bluelib-color-r), var(--bluelib-color-g), var(--bluelib-color-b), 1);
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue