Skip to content

Commit

Permalink
XWIKI-21115: @breadcrumb-color doesn't apply to links in the Breadcru…
Browse files Browse the repository at this point in the history
…mb (#3536)

* Updated the color used by the links in the breadcrumb dropdown.
* Updated the color used by the links in the breadcrumb bar.
* Created a breadcrumb-link-color variable in the colorTheme
* Updated the existing colorTheme pages to use this new property for the link.

Note: I doubt this is really needed for the change to work, but it makes things more consistent and easier to understand.

* Fixed the default to fit the former looks
  • Loading branch information
Sereza7 authored Nov 7, 2024
1 parent ae810cb commit 35425fd
Show file tree
Hide file tree
Showing 27 changed files with 379 additions and 0 deletions.
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 {
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

0 comments on commit 35425fd

Please sign in to comment.