mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 21:52:23 +00:00
245 lines
6.6 KiB
CSS
245 lines
6.6 KiB
CSS
#bd-settingspane-container h2.ui-form-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
line-height: 20px;
|
|
text-transform: uppercase;
|
|
display: inline-block;
|
|
margin-bottom: 20px;
|
|
}
|
|
#bd-settingspane-container h2.ui-form-title {
|
|
color: #f6f6f7;
|
|
}
|
|
.theme-light #bd-settingspane-container h2.ui-form-title {
|
|
color: #4f545c;
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item {
|
|
flex-direction: column;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item h3 {
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
line-height: 24px;
|
|
flex: 1;
|
|
}
|
|
#bd-settingspane-container .ui-switch-item h3 {
|
|
color: #f6f6f7;
|
|
}
|
|
.theme-light #bd-settingspane-container .ui-switch-item h3 {
|
|
color: #4f545c;
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item .style-description {
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
line-height: 20px;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid hsla(218,5%,47%,.3);
|
|
}
|
|
#bd-settingspane-container .ui-switch-item .style-description {
|
|
color: #72767d;
|
|
}
|
|
.theme-light #bd-settingspane-container .ui-switch-item .style-description {
|
|
color: rgba(114,118,125,.6);
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item .ui-switch-wrapper {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
position: relative;
|
|
width: 44px;
|
|
height: 24px;
|
|
display: block;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item .ui-switch-wrapper input {
|
|
position: absolute;
|
|
opacity: 0;
|
|
cursor: pointer;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch {
|
|
background: #7289da;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: #72767d;
|
|
border-radius: 14px;
|
|
transition: background .15s ease-in-out,box-shadow .15s ease-in-out,border .15s ease-in-out;
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch:before {
|
|
content: '';
|
|
display: block;
|
|
width: 18px;
|
|
height: 18px;
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
bottom: 3px;
|
|
background: #f6f6f7;
|
|
border-radius: 10px;
|
|
transition: all .15s ease;
|
|
box-shadow: 0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch.checked {
|
|
background: #7289da;
|
|
}
|
|
|
|
#bd-settingspane-container .ui-switch-item .ui-switch-wrapper .ui-switch.checked:before {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
#bd-settingspane-container .plugin-settings {
|
|
padding: 0 12px 12px 20px;
|
|
}
|
|
|
|
@keyframes bd-modal-backdrop {
|
|
to { opacity: 0.85; }
|
|
}
|
|
|
|
@keyframes bd-modal-anim {
|
|
to { transform: scale(1); opacity: 1; }
|
|
}
|
|
|
|
@keyframes bd-modal-backdrop-closing {
|
|
to { opacity: 0; }
|
|
}
|
|
|
|
@keyframes bd-modal-closing {
|
|
to { transform: scale(0.7); opacity: 0; }
|
|
}
|
|
|
|
#bd-settingspane-container .backdrop {
|
|
animation: bd-modal-backdrop 250ms ease;
|
|
animation-fill-mode: forwards;
|
|
background-color: rgb(0, 0, 0);
|
|
transform: translateZ(0px);
|
|
}
|
|
|
|
#bd-settingspane-container.closing .backdrop {
|
|
animation: bd-modal-backdrop-closing 200ms linear;
|
|
animation-fill-mode: forwards;
|
|
animation-delay: 50ms;
|
|
opacity: 0.85;
|
|
}
|
|
|
|
#bd-settingspane-container.closing .modal {
|
|
animation: bd-modal-closing 250ms cubic-bezier(0.19, 1, 0.22, 1);
|
|
animation-fill-mode: forwards;
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
}
|
|
|
|
#bd-settingspane-container .modal {
|
|
animation: bd-modal-anim 250ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
animation-fill-mode: forwards;
|
|
transform: scale(0.7);
|
|
transform-origin: 50% 50%;
|
|
}
|
|
/* Toast CSS */
|
|
|
|
.toasts {
|
|
position: fixed;
|
|
display: flex;
|
|
top: 0;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
pointer-events: none;
|
|
z-index: 4000;
|
|
}
|
|
|
|
@keyframes toast-up {
|
|
from {
|
|
transform: translateY(0);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.toast {
|
|
animation: toast-up 300ms ease;
|
|
transform: translateY(-10px);
|
|
background: #36393F;
|
|
padding: 10px;
|
|
border-radius: 5px;
|
|
box-shadow: 0 0 0 1px rgba(32,34,37,.6), 0 2px 10px 0 rgba(0,0,0,.2);
|
|
font-weight: 500;
|
|
color: #fff;
|
|
user-select: text;
|
|
font-size: 14px;
|
|
opacity: 1;
|
|
margin-top: 10px;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
}
|
|
|
|
@keyframes toast-down {
|
|
to {
|
|
transform: translateY(0px);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
.toast.closing {
|
|
animation: toast-down 200ms ease;
|
|
animation-fill-mode: forwards;
|
|
opacity: 1;
|
|
transform: translateY(-10px);
|
|
}
|
|
|
|
|
|
.toast.icon {
|
|
padding-left: 30px;
|
|
background-size: 20px 20px;
|
|
background-repeat: no-repeat;
|
|
background-position: 6px 50%;
|
|
}
|
|
|
|
.toast.toast-info {
|
|
background-color: #4a90e2;
|
|
}
|
|
|
|
.toast.toast-info.icon {
|
|
background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptMSAxNWgtMnYtNmgydjZ6bTAtOGgtMlY3aDJ2MnoiLz48L3N2Zz4=);
|
|
}
|
|
|
|
.toast.toast-success {
|
|
background-color: #43b581;
|
|
}
|
|
|
|
.toast.toast-success.icon {
|
|
background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMTIgMkM2LjQ4IDIgMiA2LjQ4IDIgMTJzNC40OCAxMCAxMCAxMCAxMC00LjQ4IDEwLTEwUzE3LjUyIDIgMTIgMnptLTIgMTVsLTUtNSAxLjQxLTEuNDFMMTAgMTQuMTdsNy41OS03LjU5TDE5IDhsLTkgOXoiLz48L3N2Zz4=);
|
|
}
|
|
.toast.toast-danger,
|
|
.toast.toast-error {
|
|
background-color: #f04747;
|
|
}
|
|
|
|
.toast.toast-danger.icon,
|
|
.toast.toast-error.icon {
|
|
background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTEyIDJDNi40NyAyIDIgNi40NyAyIDEyczQuNDcgMTAgMTAgMTAgMTAtNC40NyAxMC0xMFMxNy41MyAyIDEyIDJ6bTUgMTMuNTlMMTUuNTkgMTcgMTIgMTMuNDEgOC40MSAxNyA3IDE1LjU5IDEwLjU5IDEyIDcgOC40MSA4LjQxIDcgMTIgMTAuNTkgMTUuNTkgNyAxNyA4LjQxIDEzLjQxIDEyIDE3IDE1LjU5eiIvPiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PC9zdmc+);
|
|
}
|
|
|
|
.toast.toast-warning,
|
|
.toast.toast-warn {
|
|
background-color: #FFA600;
|
|
color: white;
|
|
}
|
|
|
|
.toast.toast-warning.icon,
|
|
.toast.toast-warn.icon {
|
|
background-image: url(data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjRkZGRkZGIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4gICAgPHBhdGggZD0iTTAgMGgyNHYyNEgweiIgZmlsbD0ibm9uZSIvPiAgICA8cGF0aCBkPSJNMSAyMWgyMkwxMiAyIDEgMjF6bTEyLTNoLTJ2LTJoMnYyem0wLTRoLTJ2LTRoMnY0eiIvPjwvc3ZnPg==);
|
|
}
|