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

XWIKI-21115: @breadcrumb-color doesn't apply to links in the Breadcrumb #3536

Merged
merged 8 commits into from
Nov 7, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@

// Styles for the tree navigation.
&.dropdown {
/* We make sure the links get their own specific color. */
& > a {
color: @breadcrumb-link-color;
&:hover, &:focus {
michitux marked this conversation as resolved.
Show resolved Hide resolved
color: @breadcrumb-active-color;
}
}

> .dropdown-toggle {
color: @breadcrumb-color;
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
@target-size-minimum: 24px;
@target-size-recommended: 44px;

// Specific color for links in the breadcrumb (except the last one pointing to the current page)
// By default it uses the same color as the other links, but the colorTheme can override this value.
@breadcrumb-link-color: @link-color;

//
// Variables of bootstrap overrided by XWiki
// --------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
"panel-header-text" : "color",
"breadcrumb-bg": "color",
"breadcrumb-color": "color",
"breadcrumb-link-color": "color",
"breadcrumb-separator": "escapedText",
"table-bg": "color",
"table-bg-hover": "color",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -817,6 +830,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -808,6 +821,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -817,6 +830,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -817,6 +830,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -817,6 +830,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -808,6 +821,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -808,6 +821,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -808,6 +821,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -808,6 +821,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -817,6 +830,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -808,6 +821,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,19 @@
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-color>
<breadcrumb-link-color>
<customDisplay/>
<disabled>0</disabled>
<name>breadcrumb-link-color</name>
<number>60</number>
<picker>0</picker>
<prettyName>breadcrumb-link-color</prettyName>
<size>30</size>
<unmodifiable>0</unmodifiable>
<validationMessage/>
<validationRegExp/>
<classType>com.xpn.xwiki.objects.classes.StringClass</classType>
</breadcrumb-link-color>
<breadcrumb-separator>
<customDisplay/>
<disabled>0</disabled>
Expand Down Expand Up @@ -817,6 +830,9 @@
<property>
<breadcrumb-color/>
</property>
<property>
<breadcrumb-link-color/>
</property>
<property>
<breadcrumb-separator/>
</property>
Expand Down
Loading
Loading