1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-22 11:34:21 +00:00

🔧 Properly display underline in .element-anchor even if they are not :link (#14)

This commit is contained in:
Steffo 2021-07-23 03:10:33 +02:00
parent b40f0bad53
commit ed75c897f1
Signed by: steffo
GPG key ID: 6965406171929D01
11 changed files with 36 additions and 15 deletions

View file

@ -1,6 +1,17 @@
<component name="InspectionProjectProfileManager"> <component name="InspectionProjectProfileManager">
<profile version="1.0"> <profile version="1.0">
<option name="myName" value="Project Default" /> <option name="myName" value="Project Default" />
<inspection_tool class="CssUnknownProperty" enabled="true" level="WARNING" enabled_by_default="true">
<option name="myCustomPropertiesEnabled" value="true" />
<option name="myIgnoreVendorSpecificProperties" value="false" />
<option name="myCustomPropertiesList">
<value>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="text-decoration-thickness" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="InconsistentLineSeparators" enabled="true" level="WEAK WARNING" enabled_by_default="true" /> <inspection_tool class="InconsistentLineSeparators" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="JupyterPackageInspection" enabled="true" level="ERROR" enabled_by_default="true" /> <inspection_tool class="JupyterPackageInspection" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="LessResolvedByNameOnly" enabled="false" level="WARNING" enabled_by_default="false" /> <inspection_tool class="LessResolvedByNameOnly" enabled="false" level="WARNING" enabled_by_default="false" />

View file

@ -379,7 +379,7 @@
"not allowed" cursor if hovered. "not allowed" cursor if hovered.
</p> </p>
<p> <p>
It also works with <a href="#" disabled class="status-disabled">links</a>! It also works with <a disabled class="status-disabled">links</a>!
</p> </p>
<section class="status-disabled"> <section class="status-disabled">
And panels! And panels!

View file

@ -363,6 +363,10 @@
@{element-anchor} { @{element-anchor} {
.bluelib-color(@hex-link); .bluelib-color(@hex-link);
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-color: currentColor;
text-decoration-thickness: 1px;
&:hover { &:hover {
.bluelib-color(@hex-link-hover); .bluelib-color(@hex-link-hover);
@ -374,8 +378,6 @@
&@{status-disabled} { &@{status-disabled} {
text-decoration-style: dashed; text-decoration-style: dashed;
text-decoration-color: currentColor;
text-decoration-width: 1px;
&:hover { &:hover {
.bluelib-color(@hex-link); .bluelib-color(@hex-link);

View file

@ -413,6 +413,10 @@
--bluelib-color-r: 0; --bluelib-color-r: 0;
--bluelib-color-g: 147; --bluelib-color-g: 147;
--bluelib-color-b: 147; --bluelib-color-b: 147;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-color: currentColor;
text-decoration-thickness: 1px;
} }
.bluelib .element-anchor:hover { .bluelib .element-anchor:hover {
--bluelib-color-r: 0; --bluelib-color-r: 0;
@ -426,8 +430,6 @@
} }
.bluelib .element-anchor.status-disabled { .bluelib .element-anchor.status-disabled {
text-decoration-style: dashed; text-decoration-style: dashed;
text-decoration-color: currentColor;
text-decoration-width: 1px;
} }
.bluelib .element-anchor.status-disabled:hover { .bluelib .element-anchor.status-disabled:hover {
--bluelib-color-r: 0; --bluelib-color-r: 0;

File diff suppressed because one or more lines are too long

View file

@ -1718,6 +1718,10 @@ body a {
--bluelib-color-r: 0; --bluelib-color-r: 0;
--bluelib-color-g: 147; --bluelib-color-g: 147;
--bluelib-color-b: 147; --bluelib-color-b: 147;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-color: currentColor;
text-decoration-thickness: 1px;
} }
.base-skeleton .element-anchor:hover, .base-skeleton .element-anchor:hover,
body .element-anchor:hover, body .element-anchor:hover,
@ -1744,8 +1748,6 @@ body .element-anchor .status-disabled,
.base-skeleton a .status-disabled, .base-skeleton a .status-disabled,
body a .status-disabled { body a .status-disabled {
text-decoration-style: dashed; text-decoration-style: dashed;
text-decoration-color: currentColor;
text-decoration-width: 1px;
} }
.base-skeleton .element-anchor[disabled]:hover, .base-skeleton .element-anchor[disabled]:hover,
body .element-anchor[disabled]:hover, body .element-anchor[disabled]:hover,

File diff suppressed because one or more lines are too long

View file

@ -413,6 +413,10 @@
--bluelib-color-r: 0; --bluelib-color-r: 0;
--bluelib-color-g: 202; --bluelib-color-g: 202;
--bluelib-color-b: 202; --bluelib-color-b: 202;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-color: currentColor;
text-decoration-thickness: 1px;
} }
.bluelib .element-anchor:hover { .bluelib .element-anchor:hover {
--bluelib-color-r: 0; --bluelib-color-r: 0;
@ -426,8 +430,6 @@
} }
.bluelib .element-anchor.status-disabled { .bluelib .element-anchor.status-disabled {
text-decoration-style: dashed; text-decoration-style: dashed;
text-decoration-color: currentColor;
text-decoration-width: 1px;
} }
.bluelib .element-anchor.status-disabled:hover { .bluelib .element-anchor.status-disabled:hover {
--bluelib-color-r: 0; --bluelib-color-r: 0;

File diff suppressed because one or more lines are too long

View file

@ -1718,6 +1718,10 @@ body a {
--bluelib-color-r: 0; --bluelib-color-r: 0;
--bluelib-color-g: 202; --bluelib-color-g: 202;
--bluelib-color-b: 202; --bluelib-color-b: 202;
text-decoration-line: underline;
text-decoration-style: solid;
text-decoration-color: currentColor;
text-decoration-thickness: 1px;
} }
.base-skeleton .element-anchor:hover, .base-skeleton .element-anchor:hover,
body .element-anchor:hover, body .element-anchor:hover,
@ -1744,8 +1748,6 @@ body .element-anchor .status-disabled,
.base-skeleton a .status-disabled, .base-skeleton a .status-disabled,
body a .status-disabled { body a .status-disabled {
text-decoration-style: dashed; text-decoration-style: dashed;
text-decoration-color: currentColor;
text-decoration-width: 1px;
} }
.base-skeleton .element-anchor[disabled]:hover, .base-skeleton .element-anchor[disabled]:hover,
body .element-anchor[disabled]:hover, body .element-anchor[disabled]:hover,

File diff suppressed because one or more lines are too long