Skip to content

Commit

Permalink
ajout du menu dans le header + search elastique
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentBlondel committed Oct 5, 2023
1 parent fe83e9e commit 66f939a
Show file tree
Hide file tree
Showing 2 changed files with 306 additions and 12 deletions.
97 changes: 97 additions & 0 deletions ui/src/main/resources/static/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,101 @@ Xwiki css
.jumbotron .h1 {
font-size: 63px;
}
}




.button {
display: inline-block;
margin: 4px 2px;
background-color: #444;
font-size: 14px;
padding-left: 32px;
padding-right: 32px;
height: 50px;
line-height: 50px;
text-align: center;
color: white;
text-decoration: none;
cursor: pointer;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
user-select: none;
}

.button:hover {
transition-duration: 0.4s;
-moz-transition-duration: 0.4s;
-webkit-transition-duration: 0.4s;
-o-transition-duration: 0.4s;
background-color: white;
color: black;
}

.search-container {
position: relative;
display: inline-block;
margin: 4px 2px;
height: 50px;
width: 50px;
vertical-align: bottom;
}

.mglass {
display: inline-block;
pointer-events: none;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
}

.searchbutton {
position: absolute;
font-size: 22px;
width: 100%;
margin: 0;
padding: 0;
}

.search:focus + .searchbutton {
transition-duration: 0.4s;
-moz-transition-duration: 0.4s;
-webkit-transition-duration: 0.4s;
-o-transition-duration: 0.4s;
background-color: white;
color: black;
}

.search {
position: absolute;
left: 49px; /* Button width-1px (Not 50px/100% because that will sometimes show a 1px line between the search box and button) */
background-color: #f9fafb;
outline: none;
border: none;
padding: 0;
width: 0;
height: 100%;
z-index: 10;
transition-duration: 0.4s;
-moz-transition-duration: 0.4s;
-webkit-transition-duration: 0.4s;
-o-transition-duration: 0.4s;
}

.search:focus {
width: 363px; /* Bar width+1px */
padding: 0 16px 0 0;
}

.expandright {
left: auto;
right: 49px; /* Button width-1px */
}

.expandright:focus {
padding: 0 0 0 16px;
}
Loading

0 comments on commit 66f939a

Please sign in to comment.