mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 02:30:57 +08:00
c07a6eeb6d
* Fixes the z-index of the prompt so it is behind the quick access panels * Adds a dismiss `X` button (made sure the click target of this was quite big) * Change structure of HTML to address template lint issues * Fix aria-hidden not returning true/false * Reload current page instead of navigating to / when clicking on the prompt message
58 lines
1.0 KiB
SCSS
58 lines
1.0 KiB
SCSS
.software-update-prompt {
|
|
position: fixed;
|
|
flex: 1;
|
|
right: 0;
|
|
left: 0;
|
|
background-color: var(--tertiary-low);
|
|
color: var(--tertiary);
|
|
max-height: 0;
|
|
visibility: hidden;
|
|
transition: max-height 1s;
|
|
box-shadow: shadow("header");
|
|
z-index: z("header") - 10;
|
|
|
|
.update-prompt-main-content {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.update-prompt-message {
|
|
cursor: pointer;
|
|
padding: 0.75em 0;
|
|
span {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
|
|
.update-prompt-dismiss {
|
|
justify-content: flex-end;
|
|
display: flex;
|
|
height: 44px;
|
|
flex: 1;
|
|
|
|
span {
|
|
cursor: pointer;
|
|
display: inline;
|
|
height: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
padding-left: 20px;
|
|
}
|
|
}
|
|
|
|
.d-icon {
|
|
margin-right: 0.33em;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
&.require-software-refresh {
|
|
visibility: visible;
|
|
overflow: hidden;
|
|
max-height: 300px;
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
}
|
|
}
|