Skip to content

Commit

Permalink
#1201 Mise à jour du header pour synchroniser avec la nouvelle versio…
Browse files Browse the repository at this point in the history
…n DSFR

* Mise à jour des styles active/focus du logo du header
  • Loading branch information
Clément Desableau committed May 5, 2023
1 parent 7352fe6 commit 8a0c902
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions wikis/xwiki/src/main/resources/Demarches/Code/WikiGlobalStyles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,9 @@ Visually, there's the title row and then all the rows from the document content,
#footerglobal .navbar-brand {
/* Reset padding that seems to be computed from the navbar size */
padding: 0;
&:focus {
.outline;
&:focus-visible {
outline: auto;
outline-offset: 1rem;
}
}

Expand Down Expand Up @@ -693,11 +694,18 @@ Visually, there's the title row and then all the rows from the document content,
/* change hover style of main title logos */
.navbar-header {
&:hover {
// new dsfr uses --grey-1000-75-active, which is #f6f6f6
// new dsfr uses --grey-1000-75-hover, which is #f6f6f6
// this variable does not exist in our version
// but we have a variable with the same value: @grey-975
background-color: @grey-975;
}
&:active {
outline: none;
// new dsfr uses --grey-1000-75-active, which is #ededed
// this variable does not exist in our version
// the closest one is: @grey-950, with value #eee
background-color: @grey-950;
}
}

/* customize display of navbar quick links */
Expand All @@ -706,11 +714,17 @@ Visually, there's the title row and then all the rows from the document content,
font-weight: 500;

&:hover {
// new dsfr uses --grey-1000-75-active, which is #f6f6f6
// new dsfr uses --grey-1000-75-hover, which is #f6f6f6
// this variable does not exist in our version
// but we have a variable with the same value: @grey-975
background-color: @grey-975;
}
&:active {
// new dsfr uses --grey-1000-75-active, which is #ededed
// this variable does not exist in our version
// the closest one is: @grey-950, with value #eee
background-color: @grey-950;
}
}
}

Expand Down

0 comments on commit 8a0c902

Please sign in to comment.