Enhance popup styles
This commit is contained in:
parent
29e83ccc0a
commit
ad256cabef
42
service.js
42
service.js
@ -2033,6 +2033,7 @@ class BesPopup extends HTMLElement {
|
|||||||
}
|
}
|
||||||
.popup-text {
|
.popup-text {
|
||||||
font-size: 0.93rem;
|
font-size: 0.93rem;
|
||||||
|
font-weight: heavier;
|
||||||
max-width: 160px;
|
max-width: 160px;
|
||||||
color: #333;
|
color: #333;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -2054,7 +2055,7 @@ class BesPopup extends HTMLElement {
|
|||||||
.bes-toolbar {
|
.bes-toolbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: end;
|
justify-content: end;
|
||||||
padding: 5px 2px;
|
padding: 3px 2px;
|
||||||
}
|
}
|
||||||
.bes-toolbar button {
|
.bes-toolbar button {
|
||||||
margin-right: 2px;
|
margin-right: 2px;
|
||||||
@ -2065,10 +2066,11 @@ class BesPopup extends HTMLElement {
|
|||||||
cursor: grab;
|
cursor: grab;
|
||||||
}
|
}
|
||||||
.bes-text-div{
|
.bes-text-div{
|
||||||
background-color: #eee;
|
background-color: #fff;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
border: 1px solid #f1f3f9;
|
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{
|
.bes-replacement-btn{
|
||||||
margin: 4px 1px;
|
margin: 4px 1px;
|
||||||
@ -2085,6 +2087,23 @@ class BesPopup extends HTMLElement {
|
|||||||
.bes-replacement-div{
|
.bes-replacement-div{
|
||||||
margin-top: 4px;
|
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 {
|
:host(.show) .bes-popup-container {
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
animation: fadeIn 1s;
|
animation: fadeIn 1s;
|
||||||
@ -2095,28 +2114,31 @@ class BesPopup extends HTMLElement {
|
|||||||
}
|
}
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
.popup-text {
|
.popup-text {
|
||||||
font-weight: lighter;
|
color: #fff;
|
||||||
color: #eee;
|
|
||||||
}
|
}
|
||||||
.bes-popup-container {
|
.bes-popup-container {
|
||||||
font-weight: lighter;
|
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 {
|
.bes-popup-title {
|
||||||
font-weight: lighter;
|
font-weight: heavier;
|
||||||
color: #eee;
|
color: #fff;
|
||||||
}
|
}
|
||||||
.bes-text-div {
|
.bes-text-div {
|
||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
background-color: #333;
|
background-color: #111213;
|
||||||
border: 1px solid #57585A;
|
border: 1px solid #2e3036;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<div class="bes-popup-container">
|
<div class="bes-popup-container">
|
||||||
<div class="bes-toolbar">
|
<div class="bes-toolbar">
|
||||||
<div class="bes-popup-title">Besana</div>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
`
|
`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user