mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 17:36:49 +01:00
85 lines
1.5 KiB
CSS
85 lines
1.5 KiB
CSS
/* fix a few issues with static/scrolling sidebar and algolia search fields
|
|
- issue where overflow-x hidden was added but not required if hidden submit button wraps
|
|
- added search content causes width of sidebar to make content wrap
|
|
- search results not able to be shown inside scrollable container
|
|
- https://github.com/wagtail/sphinx_wagtail_theme/issues/201
|
|
*/
|
|
|
|
.sidebar-container .collapse {
|
|
overflow-x: unset;
|
|
}
|
|
|
|
@media screen and (min-width: 992px) {
|
|
.sidebar-container {
|
|
width: 25%;
|
|
}
|
|
}
|
|
|
|
body.body--autocomplete-open .sidebar-container .collapse {
|
|
overflow-y: unset;
|
|
}
|
|
|
|
.rst-versions.rst-badge {
|
|
z-index: 1021;
|
|
}
|
|
|
|
/* Wagtail Space */
|
|
.wagtailspace {
|
|
background: #00676a;
|
|
color: white;
|
|
border-radius: 6px;
|
|
margin-bottom: 2em;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.wagtailspace svg {
|
|
margin-right: 1em;
|
|
width: 56px;
|
|
}
|
|
|
|
.wagtailspace a {
|
|
display: flex;
|
|
color: inherit;
|
|
padding: 15px;
|
|
text-align: left;
|
|
flex-grow: 2;
|
|
border: 0;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.wagtailspace strong {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.wagtailspace .wagtailspace-close {
|
|
padding: 10px;
|
|
width: 56px;
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
font-size: 1.5em;
|
|
color: inherit;
|
|
border: 0;
|
|
background: none;
|
|
}
|
|
|
|
@keyframes bounce {
|
|
0%,
|
|
100% {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
50% {
|
|
transform: translateY(-5px);
|
|
}
|
|
}
|
|
|
|
.wagtailspace a:hover svg {
|
|
animation-duration: 0.5s;
|
|
animation-fill-mode: both;
|
|
animation-timing-function: linear;
|
|
animation-iteration-count: infinite;
|
|
animation-name: bounce;
|
|
}
|