177 lines
2.8 KiB
CSS
177 lines
2.8 KiB
CSS
/*
|
|
===================== Variables =====================
|
|
*/
|
|
:root {
|
|
--admin-bg: hsl(213.9, 100%, 95%);
|
|
--admin-color: #000;
|
|
--admin-table-border: #01579b;
|
|
--admin-table-header-bg: #3D77C7;
|
|
--admin-table-header-fg: #fff;
|
|
}
|
|
|
|
/*
|
|
===================== main =====================
|
|
*/
|
|
|
|
[hidden] { display: none !important; }
|
|
|
|
.admin {
|
|
background: var(--admin-bg);
|
|
color: var(--admin-color);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
min-height: calc(100vh - 200px);
|
|
}
|
|
|
|
.admin .inside {
|
|
padding-bottom: 1rem;
|
|
}
|
|
|
|
.admin .spacer {
|
|
height: 40px;
|
|
}
|
|
|
|
.admin .loading-spinner {
|
|
position: relative;
|
|
left: unset;
|
|
top: unset;
|
|
min-height: 300px;
|
|
height: calc(100vh - 300px);
|
|
}
|
|
|
|
.admin table {
|
|
border: solid 1px var(--admin-table-border);
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
font-size: 0.75em;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.admin table thead th,
|
|
.admin table tbody td {
|
|
text-align: left;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.admin table thead th {
|
|
background-color: var(--admin-table-header-bg);
|
|
border: solid 1px var(--admin-table-border);
|
|
color: var(--admin-table-header-fg);
|
|
}
|
|
.admin table tbody td {
|
|
border: solid 1px var(--admin-table-border);
|
|
color: var(--alt-color);
|
|
}
|
|
|
|
.admin table button {
|
|
color: var(--link);
|
|
background: transparent;
|
|
border-color: transparent;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.admin table td.right,
|
|
.admin table th.right {
|
|
text-align: right;
|
|
}
|
|
|
|
.admin .actions {
|
|
margin: 0.5rem 0;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.admin .actions a {
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
.admin form {
|
|
margin: 1rem 0 0;
|
|
}
|
|
|
|
.admin form input[type=text],
|
|
.admin form select {
|
|
width: 100%;
|
|
}
|
|
|
|
.admin .input-row {
|
|
display: flex;
|
|
margin-right: -1rem;
|
|
}
|
|
|
|
.admin .input-row > * {
|
|
margin-right: 1rem;
|
|
flex: 2 1 50px;
|
|
}
|
|
|
|
/* ************** fileupload ************** */
|
|
|
|
fileupload {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
fileupload.banner {
|
|
margin: 0 0 -1px;
|
|
}
|
|
|
|
fileupload.empty {
|
|
border: 3px solid var(--seperator);
|
|
border-style: dashed;
|
|
}
|
|
|
|
fileupload.empty.useimg {
|
|
max-width: 700px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
fileupload a {
|
|
display: block;
|
|
width: 100%;
|
|
background-position: center;
|
|
background-size: cover;
|
|
}
|
|
|
|
fileupload .noimage {
|
|
color: var(--seperator);
|
|
|
|
}
|
|
|
|
fileupload input {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
opacity: 0.01;
|
|
width: 100%;
|
|
cursor: pointer;
|
|
text-indent: -9999px;
|
|
z-index: 2;
|
|
}
|
|
|
|
/*
|
|
===================== 3rd party =====================
|
|
*/
|
|
|
|
.ce-block__content,
|
|
.ce-toolbar__content { max-width:calc(100% - 120px) !important; }
|
|
.cdx-block { max-width: 100% !important; }
|
|
|
|
.codex-editor {
|
|
border: 1px solid var(--color);
|
|
background: var(--bg);
|
|
color: var(--color);
|
|
}
|
|
|
|
.codex-editor:hover,
|
|
.codex-editor:active {
|
|
border-color: var(--link);
|
|
}
|
|
|