399 lines
6.8 KiB
PHP
399 lines
6.8 KiB
PHP
<?php
|
|
$clr = [
|
|
'background' => '#e3e3e3'
|
|
];
|
|
?>
|
|
<style>
|
|
body {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-family: system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,"mastodon-font-sans-serif",sans-serif;
|
|
}
|
|
body.instance {
|
|
background: <?php echo $clr['background'] ?>;
|
|
}
|
|
|
|
body > .toast-container {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: -moz-available;
|
|
display: flex;
|
|
padding: 1em;
|
|
max-width: 45em;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.toast {
|
|
width: 100%;
|
|
min-height: 2em;
|
|
border: 1px solid #ffffffab;
|
|
border-radius: 10px;
|
|
box-shadow: 0px 0px 2em #00000075;
|
|
color: #fff;
|
|
padding: 1em 1.8em;
|
|
display: flex;
|
|
}
|
|
#toast-container {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
z-index: 1000;
|
|
}
|
|
#toast-container > .toast-container {
|
|
width: 100%;
|
|
margin: auto;
|
|
display: flex;
|
|
padding: 1em;
|
|
max-width: 45em;
|
|
}
|
|
.toast.info {
|
|
background: #0f3377;
|
|
}
|
|
.toast.error {
|
|
background: #9b1919;
|
|
}
|
|
#overlay, .overlay {
|
|
position: fixed;
|
|
display: flex;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: #0000009e;
|
|
z-index: 1000;
|
|
}
|
|
#overlay > *, .overlay > * {
|
|
margin: auto;
|
|
}
|
|
#overlay span, .overlay span {
|
|
color: #fff;
|
|
}
|
|
|
|
.window.hidden { display: none !important }
|
|
*[id*="-item"] { display: none !important }
|
|
|
|
.flex { display: flex }
|
|
.inline { display: inline-block }
|
|
.center { margin: auto }
|
|
.wmax { width: 100vw }
|
|
.hmax { height: 100vh }
|
|
.w100 { width: 100% }
|
|
.h100 { height: 100% }
|
|
.card {
|
|
background: #fff;
|
|
border-radius: .5em;
|
|
box-shadow: 0px 0px .5em #0000004f;
|
|
padding: 1em;
|
|
}
|
|
.noborder {
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
.disabled,
|
|
.silenced .disable-able {
|
|
filter: saturate(0);
|
|
opacity: 0.7;
|
|
}
|
|
span.sr {
|
|
background: yellow;
|
|
}
|
|
.gray { color: gray }
|
|
.btn {
|
|
padding: 1em 3em;
|
|
border: 1px solid #00000059;
|
|
border-radius: .6em;
|
|
box-shadow: 0px 0px .7em #0000001c;
|
|
}
|
|
.btn.small {
|
|
padding: .2em !important;
|
|
}
|
|
.btn.mid {
|
|
padding: .5em .8em !important;
|
|
}
|
|
.btn:hover {
|
|
filter: brightness(95%);
|
|
}
|
|
.btn:active,
|
|
.btn:focus {
|
|
filter: brightness(85%);
|
|
}
|
|
.white {
|
|
background: #fff;
|
|
}
|
|
.red {
|
|
background: #ffb5b5;
|
|
color: #9d0202;
|
|
}
|
|
.blue {
|
|
background: #b5d5ff;
|
|
color: #253d5e;
|
|
}
|
|
.green {
|
|
background: #c2ffb5;
|
|
color: #386f2c;
|
|
}
|
|
.btn.fit {
|
|
max-width: fit-content;
|
|
margin: auto;
|
|
}
|
|
button, .btn {
|
|
cursor: pointer;
|
|
}
|
|
.textbox {
|
|
background: #e8e8e8;
|
|
padding: 1em;
|
|
border-radius: .3em;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
h1.normal,h2.normal,h3.normal,
|
|
h4.normal,h5.normal,h6.normal {
|
|
font-weight: normal;
|
|
}
|
|
|
|
textarea {
|
|
max-width: -moz-available;
|
|
}
|
|
|
|
br.sep {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
hr { color: #0000005e }
|
|
a {
|
|
text-decoration: none;
|
|
color: inherit;
|
|
}
|
|
|
|
main input[type=text],
|
|
main input[type=password],
|
|
main textarea {
|
|
padding: 1em;
|
|
}
|
|
main input[type=number] {
|
|
padding: .5em 1em;
|
|
max-width: 8em;
|
|
}
|
|
main select {
|
|
padding: .5em;
|
|
}
|
|
main .input {
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.software .only {
|
|
display: none;
|
|
}
|
|
.software.mastodon .only.mastodon {
|
|
display: inherit !important;
|
|
padding-top: .5em;
|
|
}
|
|
table.fields tr > td {
|
|
padding: .2em;
|
|
font-size: .9em;
|
|
}
|
|
table.fields tr > td:nth-child(1) {
|
|
background: #f0f0f0;
|
|
}
|
|
table.fields tr > td:nth-child(2) {
|
|
background: #d5d5d5;
|
|
}
|
|
table.fields tr.verified > td:nth-child(1) {
|
|
background: #e6ffe4 !important;
|
|
}
|
|
table.fields tr.verified > td:nth-child(2) {
|
|
background: #beecb1 !important;
|
|
}
|
|
table.fields tr.verified td .fa.fa-check {
|
|
color: #31d023 !important;
|
|
width: 1em;
|
|
height: 1em;
|
|
background: #ccfddb;
|
|
padding: .2em;
|
|
border-radius: 50%;
|
|
border: 1px solid #8bd97b;
|
|
}
|
|
table.fields tr.verified td .fa.fa-check::before {
|
|
left: 1px;
|
|
top: 1px;
|
|
}
|
|
.item .note {
|
|
padding: 1em;
|
|
font-size: .9em;
|
|
background: #e6e6e6;
|
|
border: 1px solid #0000001a;
|
|
border-radius: .5em;
|
|
margin-top: .5em;
|
|
word-break: break-all;
|
|
}
|
|
.item table.fields tr > td:nth-child(2) {
|
|
word-break: break-all;
|
|
}
|
|
.item.suspended .card {
|
|
background: #fff3f3 !important;
|
|
border: 2px solid red;
|
|
}
|
|
|
|
|
|
/* specific styles */
|
|
#window-home {
|
|
background: <?php echo $clr['background'] ?>;
|
|
}
|
|
#window-home #instances .item {
|
|
padding: .5em;
|
|
background: #fff;
|
|
border-radius: .5em;
|
|
box-shadow: 0px 0px .5em #0000004f;
|
|
margin-top: .5em;
|
|
}
|
|
#window-home #instances .item:hover {
|
|
background: #f9f9f9;
|
|
}
|
|
#window-home #instances .item:active,
|
|
#window-home #instances .item:focus {
|
|
background: #dfdfdf;
|
|
}
|
|
#window-home #instances .item img {
|
|
width: 2.5em;
|
|
height: 2.5em;
|
|
}
|
|
|
|
|
|
#window-add {
|
|
background: <?php echo $clr['background'] ?>;
|
|
}
|
|
|
|
|
|
#window-instance #tabs {
|
|
background: #fff;
|
|
position: relative;
|
|
z-index: 10;
|
|
}
|
|
#window-instance #tabs .fa {
|
|
color: #5e5e5e;
|
|
}
|
|
#window-instance #tabs .fa.fa-home {
|
|
font-size: 1.2em;
|
|
}
|
|
#window-instance #tabs .item {
|
|
display: inline-flex;
|
|
width: max-content;
|
|
}
|
|
#window-instance #tabs .item:hover {
|
|
background: #f0f0f0;
|
|
}
|
|
#window-instance #tabs .item:active,
|
|
#window-instance #tabs .item:focus {
|
|
color: #8203a6 !important;
|
|
}
|
|
#window-instance #tabs .item[data-id="home"] {
|
|
border-right: 2px solid #5e5e5e;
|
|
}
|
|
#window-instance #tabs .item[data-id="settings"] {
|
|
border-left: 2px solid #5e5e5e;
|
|
}
|
|
#window-instance #tabs .tab-content {
|
|
padding: 1em;
|
|
}
|
|
#window-instance #content {
|
|
display: flex;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
}
|
|
#window-instance #content #container {
|
|
margin: 0 auto;
|
|
padding: 1em;
|
|
}
|
|
#window-instance #container .card {
|
|
margin-bottom: 1em;
|
|
max-width: 50em;
|
|
}
|
|
#window-instance #filters-all {
|
|
max-width: 50em;
|
|
}
|
|
#window-instance #container #new-accounts .card {
|
|
width: calc(100vw - 4em);
|
|
max-width: 30em;
|
|
}
|
|
#window-instance #container #new-accounts .card > div {
|
|
margin-bottom: 1em;
|
|
}
|
|
@media (max-width: 400px) {
|
|
#window-instance #tabs .item {
|
|
float: inherit;
|
|
}
|
|
#window-instance #tabs .tab-content {
|
|
padding: .6em;
|
|
}
|
|
}
|
|
#window-instance #users-all .item img {
|
|
width: 5em;
|
|
height: 5em;
|
|
}
|
|
#window-instance #users-all .item .props {
|
|
max-width: 20em;
|
|
font-size: .9em;
|
|
margin-top: .5em;
|
|
}
|
|
#window-instance #users-all .item .props > span {
|
|
margin-right: 1em;
|
|
}
|
|
|
|
#window-instance_config {
|
|
background: <?php echo $clr['background'] ?>;
|
|
}
|
|
#window-instance_config #title {
|
|
margin-top: 0;
|
|
}
|
|
#window-instance_config form {
|
|
background: #fff;
|
|
padding: 2.5em 2em;
|
|
}
|
|
#window-instance_config form .item {
|
|
margin-bottom: 1em;
|
|
}
|
|
#window-instance_config form .item input[type=text] {
|
|
padding: .5em;
|
|
margin-top: .4em;
|
|
}
|
|
|
|
/* ANIMATIONS*/
|
|
.lds-ring {
|
|
display: inline-block;
|
|
position: relative;
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
.lds-ring div {
|
|
box-sizing: border-box;
|
|
display: block;
|
|
position: absolute;
|
|
width: 64px;
|
|
height: 64px;
|
|
margin: 8px;
|
|
border: 8px solid #fff;
|
|
border-radius: 50%;
|
|
animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
border-color: #fff transparent transparent transparent;
|
|
}
|
|
.lds-ring div:nth-child(1) {
|
|
animation-delay: -0.45s;
|
|
}
|
|
.lds-ring div:nth-child(2) {
|
|
animation-delay: -0.3s;
|
|
}
|
|
.lds-ring div:nth-child(3) {
|
|
animation-delay: -0.15s;
|
|
}
|
|
@keyframes lds-ring {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
</style>
|