Display notification style updates (#1327)
* Add scrollbar-inverse styles * Update notification styles to support better overflowing
This commit is contained in:
parent
04cf4ec8d5
commit
588d8a681a
@ -129,6 +129,8 @@
|
|||||||
|
|
||||||
--scrollbar-thumb-color: #c1c1c1;
|
--scrollbar-thumb-color: #c1c1c1;
|
||||||
--scrollbar-track-color: #f1f1f1;
|
--scrollbar-track-color: #f1f1f1;
|
||||||
|
--scrollbar-inverse-thumb-color: #444444;
|
||||||
|
--scrollbar-inverse-track-color: #2f2f2f;
|
||||||
|
|
||||||
--progress-bar-track-color: #cccccc;
|
--progress-bar-track-color: #cccccc;
|
||||||
--progress-bar-indicator-color: var(--accent-color);
|
--progress-bar-indicator-color: var(--accent-color);
|
||||||
@ -188,6 +190,8 @@
|
|||||||
|
|
||||||
--scrollbar-thumb-color: #444444;
|
--scrollbar-thumb-color: #444444;
|
||||||
--scrollbar-track-color: #2f2f2f;
|
--scrollbar-track-color: #2f2f2f;
|
||||||
|
--scrollbar-inverse-thumb-color: #c1c1c1;
|
||||||
|
--scrollbar-inverse-track-color: #f1f1f1;
|
||||||
|
|
||||||
--progress-bar-track-color: #3a3a3a;
|
--progress-bar-track-color: #3a3a3a;
|
||||||
--progress-bar-indicator-color: var(--accent-color);
|
--progress-bar-indicator-color: var(--accent-color);
|
||||||
@ -298,6 +302,27 @@ a {
|
|||||||
:root:not([data-theme=default]) .scrollbar::-webkit-scrollbar-corner {
|
:root:not([data-theme=default]) .scrollbar::-webkit-scrollbar-corner {
|
||||||
background-color: var(--scrollbar-track-color);
|
background-color: var(--scrollbar-track-color);
|
||||||
}
|
}
|
||||||
|
:root .scrollbar-inverse {
|
||||||
|
scrollbar-color: var(--scrollbar-inverse-humb-color) var(--scrollbar-inverse-track-color);
|
||||||
|
}
|
||||||
|
:root .scrollbar-inverse::-webkit-scrollbar {
|
||||||
|
width: auto;
|
||||||
|
}
|
||||||
|
:root .scrollbar-inverse::-webkit-scrollbar-button {
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
:root .scrollbar-inverse::-webkit-scrollbar-thumb {
|
||||||
|
background-color: var(--scrollbar-inverse-thumb-color);
|
||||||
|
}
|
||||||
|
:root .scrollbar-inverse::-webkit-scrollbar-track {
|
||||||
|
background-color: var(--scrollbar-inverse-thumb-color);
|
||||||
|
}
|
||||||
|
:root .scrollbar-inverse::-webkit-scrollbar-track-piece {
|
||||||
|
background-color: var(--scrollbar-inverse-track-color);
|
||||||
|
}
|
||||||
|
:root .scrollbar-inverse::-webkit-scrollbar-corner {
|
||||||
|
background-color: var(--scrollbar-inverse-track-color);
|
||||||
|
}
|
||||||
.scrollbar-spacer {
|
.scrollbar-spacer {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
@ -352,6 +377,7 @@ a {
|
|||||||
flex-flow: row nowrap;
|
flex-flow: row nowrap;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
.content-footer {
|
.content-footer {
|
||||||
width: var(--main-content-size);
|
width: var(--main-content-size);
|
||||||
@ -1498,15 +1524,18 @@ button.action-button[data-icon=source-term]::before {
|
|||||||
.footer-notification {
|
.footer-notification {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row nowrap;
|
flex-flow: row nowrap;
|
||||||
align-items: center;
|
align-items: flex-start;
|
||||||
pointer-events: auto;
|
pointer-events: auto;
|
||||||
border-radius: 0.25em;
|
border-radius: 0.25em;
|
||||||
background-color: var(--notification-background-color);
|
background-color: var(--notification-background-color);
|
||||||
box-shadow: 0 0.125em 0.25em 0 var(--notification-shadow-color);
|
box-shadow: 0 0.125em 0.25em 0 var(--notification-shadow-color);
|
||||||
color: var(--notification-text-color);
|
color: var(--notification-text-color);
|
||||||
margin: 0.5em;
|
margin: 0.5em;
|
||||||
padding: 0.5em 0.75em;
|
padding: 0;
|
||||||
transition: opacity var(--animation-duration) ease-out;
|
transition: opacity var(--animation-duration) ease-out;
|
||||||
|
position: relative;
|
||||||
|
overflow: auto;
|
||||||
|
max-height: calc(0.5em * 2 + var(--line-height) * 4 * 1em);
|
||||||
}
|
}
|
||||||
.footer-notification[hidden] {
|
.footer-notification[hidden] {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -1515,7 +1544,18 @@ button.action-button[data-icon=source-term]::before {
|
|||||||
}
|
}
|
||||||
.footer-notification-body {
|
.footer-notification-body {
|
||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
padding-right: 0.5em;
|
padding: 0.5em 0.75em;
|
||||||
|
}
|
||||||
|
.footer-notification-close-button-container {
|
||||||
|
align-self: stretch;
|
||||||
|
display: flex;
|
||||||
|
flex-flow: column nowrap;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
padding: 0.25em 0.75em 0.25em 0;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
}
|
}
|
||||||
button.footer-notification-close-button,
|
button.footer-notification-close-button,
|
||||||
button.footer-notification-close-button:focus,
|
button.footer-notification-close-button:focus,
|
||||||
|
@ -136,9 +136,11 @@
|
|||||||
<template id="tag-template"><span class="tag"><span class="tag-inner"></span></span></template>
|
<template id="tag-template"><span class="tag"><span class="tag-inner"></span></span></template>
|
||||||
|
|
||||||
<!-- Extra -->
|
<!-- Extra -->
|
||||||
<template id="footer-notification-template"><div class="footer-notification">
|
<template id="footer-notification-template"><div class="footer-notification scrollbar-inverse">
|
||||||
<div class="footer-notification-body"></div>
|
<div class="footer-notification-body"></div>
|
||||||
<button class="footer-notification-close-button"><span class="footer-notification-close-button-icon icon" data-icon="cross"></span></button>
|
<div class="footer-notification-close-button-container">
|
||||||
|
<button class="footer-notification-close-button"><span class="footer-notification-close-button-icon icon" data-icon="cross"></span></button>
|
||||||
|
</div>
|
||||||
</div></template>
|
</div></template>
|
||||||
<template id="footer-notification-tag-details-template" data-remove-whitespace-text="true">
|
<template id="footer-notification-tag-details-template" data-remove-whitespace-text="true">
|
||||||
<div class="tag-details"></div>
|
<div class="tag-details"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user