Enhance popup styles

This commit is contained in:
Aljaž Grilc 2025-02-26 10:53:16 +01:00
parent 29e83ccc0a
commit ad256cabef

View File

@ -2033,6 +2033,7 @@ class BesPopup extends HTMLElement {
}
.popup-text {
font-size: 0.93rem;
font-weight: heavier;
max-width: 160px;
color: #333;
text-align: center;
@ -2054,7 +2055,7 @@ class BesPopup extends HTMLElement {
.bes-toolbar {
display: flex;
justify-content: end;
padding: 5px 2px;
padding: 3px 2px;
}
.bes-toolbar button {
margin-right: 2px;
@ -2065,10 +2066,11 @@ class BesPopup extends HTMLElement {
cursor: grab;
}
.bes-text-div{
background-color: #eee;
background-color: #fff;
padding: 10px;
border-radius: 5px;
border: 1px solid #f1f3f9;
box-shadow:rgba(0, 0, 0, 0.16) 0px 2px 6px -1px, rgba(0, 0, 0, 0.04) 0px 1px 4px -1px
}
.bes-replacement-btn{
margin: 4px 1px;
@ -2085,6 +2087,23 @@ class BesPopup extends HTMLElement {
.bes-replacement-div{
margin-top: 4px;
}
.bes-close-btn {
width: 20px;
height: 20px;
background: none;
border: none;
cursor: pointer;
padding: 2px;
}
.bes-close-btn svg {
width: 100%;
height: 100%;
fill: #333;
}
.bes-close-btn:hover {
background: #dee3ed;
border-radius: 8px
}
:host(.show) .bes-popup-container {
visibility: visible;
animation: fadeIn 1s;
@ -2095,28 +2114,31 @@ class BesPopup extends HTMLElement {
}
@media (prefers-color-scheme: dark) {
.popup-text {
font-weight: lighter;
color: #eee;
color: #fff;
}
.bes-popup-container {
font-weight: lighter;
background-color: #57585A;
background-color: #2f3237;
border-color: 1px solid rgb(241, 243, 249)
box-shadow: rgb(94, 99, 110) 0px 0px 0px 1px
}
.bes-popup-title {
font-weight: lighter;
color: #eee;
font-weight: heavier;
color: #fff;
}
.bes-text-div {
font-weight: lighter;
background-color: #333;
border: 1px solid #57585A;
background-color: #111213;
border: 1px solid #2e3036;
}
}
</style>
<div class="bes-popup-container">
<div class="bes-toolbar">
<div class="bes-popup-title">Besana</div>
<button class="bes-close-btn" onclick="BesPopup.dismiss()">X</button>
<button class="bes-close-btn" onclick="BesPopup.dismiss()">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill="currentColor" d="M13.46 12L19 17.54V19h-1.46L12 13.46L6.46 19H5v-1.46L10.54 12L5 6.46V5h1.46L12 10.54L17.54 5H19v1.46z"/></svg>
</button>
</div>
</div>
`