nfp_sites/nfp_moe/public/assets/admin.css

251 lines
4.0 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: 0 1rem 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 .text {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
text-align: center;
justify-content: center;
flex-direction: column;
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;
}
/* ************** dialogue ************** */
.floating-container {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: #00000099;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
dialogue {
background: var(--bg);
display: flex;
flex-direction: column;
text-align: center;
width: calc(100% - 40px);
max-width: 500px;
color: var(--color);
}
dialogue h2 {
}
dialogue p {
padding: 1rem;
}
dialogue .buttons {
display: flex;
justify-content: space-around;
padding: 1rem
}
dialogue button {
border: 1px solid var(--link);
background: transparent;
color: var(--link);
padding: 0.5rem 1rem;
min-width: 150px;
}
dialogue button.alert {
border: none;
background: var(--error-bg);
color: var(--error-fg);
}
dialogue button.cancel {
border-color: var(--seperator);
color: var(--seperator);
}
/*
===================== Blocks =====================
*/
.admin .cdx-quote__text {
min-height: 80px !important;
}
/*
===================== 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);
}