* { box-sizing: border-box; } @import "https://fonts.googleapis.com/css?family=Roboto"; html, body { margin: 0; padding: 0; font-family: "Roboto", sans-serif; font-size: 15px; } ul, ol { padding: 0; list-style: none; } .main.index .resource-category button, a { } .main.index .resource-list a { -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; font-weight: 100; display: block; width: 100%; text-decoration: none; color: #000; font-weight: 500; padding: 10px 10px; cursor: pointer; margin-bottom: 5px; } .main.index .resource-category.image .resource-list a { width: 20vw; display: inline-block; } .main.index .resource-list a div.image { width: 20vw; height: 16vw; margin: 10px; background-size: contain; background-repeat: no-repeat; background-position: center; } .main.index .resource-list a:before { counter-increment: start; content: counter(start, decimal-leading-zero) ".\00a0\00a0"; } .main.index .resource-list a.disabled { display: block; text-decoration: line-through; color: #aaa; } .main.index .resource-list a.disabled:hover { color: #888; } .main.index .resource-list a:hover { background: #ccc !important; } .main.index nav a { text-decoration: none; } .main.index .resource-category button:hover, a:hover { } .admin-header { background: #000; color: white; padding: 5px; font-size: 24px; font-weight: 100; display: flex; flex-direction: row; justify-content: space-between; align-items: center; } .admin-header .breadcrumb { } .admin-header .breadcrumb b { } .admin-header .site-link { color: white; font-size: 15px; font-weight: bold; } .main.index .resource-category { min-width: 200px; width: 100%; padding: 0 10px; } .main.index .resource-list { position: relative; counter-reset: start; width: 100%; -moz-columns: 4; columns: 4; column-gap: 5px; } .main.index .image .resource-list { columns: 1; } .main.index .resource-category.active .resource-list a:before { content: counter(start, decimal-leading-zero) " :: "; } .main.index .resource-list:after { content: " "; position: absolute; bottom: 0px; width: 100%; height: 1px; } .resource-nav { background: white; width: 12%; margin: 2.5em 1em; padding: 1em; float: left; display: block; } .resource-nav a { color: white; background: #ccc; padding: 5px; margin-bottom: 5px; text-decoration: none; text-transform: lowercase; } h2 { font-size: 17px; color: black; border-bottom: 2px solid; padding-bottom: 10px; } .main.index .resource-category nav { margin-top: 10px; width: 100%; display: inline-block; margin-bottom: 30px; } .main.index .resource-category nav a { margin-right: 0px; padding: 10px; background: #ccc; color: white; } .main.index .resource-category nav a:last-child { background: #000; color: white; } .main.index .resource-category.active .resource-list a { cursor: -webkit-grab; cursor: grab; } .main.index .resource-category .resource-list a:nth-child(2n + 1) { background: #f8f8f8; } .main.index .resource-category .resource-list a:nth-child(2n + 2) { background: #eeeeee; } .main.index .resource-category.active footer { margin-top: -10px; margin-bottom: -10px; } /* Makes the button look like a link */ button, .btn { background: #000; color: white; border: none; padding: 10px; font: inherit; cursor: pointer; font-family: Roboto, sans-serif; } .btn { text-transform: lowercase; font-family: Roboto, sans-serif; } .btn:hover, .main.index .resource-category nav a:hover, .add-image-button:hover button { color: #fff; background: #888; } .main.index .resource-category button:hover, .main.resource form button[type="submit"]:hover, .main.index .resource-category nav a.btn.add-btn:hover { background: #000; color: #ff8; } .add-btn:after { content: " Add Item"; } .main.index .resource-category .btn { display: none; } .main.index .resource-category .btn.active { display: inline; } .main.index .resource-category .btn { margin-right: 10px; font-size: 17px; } .main.index .resource-category .btn:last-child { margin-right: 0; } .main.index .resource-category .add-btn { } .main.resource { float: left; margin-top: 2em; width: 85%; } .main.resource > * { margin: 1em 1em; } .main.resource form { } label { clear: left; display: block; float: left; background: white; margin-bottom: 1em; width: 10em; line-height: 17px; font-weight: 500; font-size: 13px; } .property label { border-bottom: 1px solid #000; } .main.resource form .property { margin: 1em 0; } .main.resource form input, .main.resource form textarea, .main.resource form select, .main.resource form img { display: block; float: left; width: 25em; font-size: 1em; color: #000; border: 1px solid #333; min-height: 2em; padding: 0 0.5em; margin-bottom: 1em; } .main.resource form input[name="id"] { width: 15em; } button, input[type="submit"] { cursor: pointer; } .main.resource .date input { /* date inputs need font family override */ font-family: "Helvetica", sans-serif; } .main.index form { overflow-x: hidden; } .main.index .grouped .resource-category { background: #fbfbfb; padding: 5px 10px; margin: 10px; width: calc(100% - 20px); box-shadow: 0 3px 6px #888; } .main.resource form .group { position: relative; display: block; float: left; width: 31em; margin-bottom: 1em; } .main.resource form .group label { width: 5em; color: #777; font-size: 0.9em; line-height: 1.4em; margin-bottom: 0; margin-left: -5.8em; text-align: right; border: 0; display: none; } .main.resource form .group.image input, .main.resource form .group.video input[type="text"]:first-child, .main.resource form .group.loaded.video input[type="text"], .main.resource form .group input:first-child { display: block; width: 25em; } .main.resource form .group .checkboxes, .main.resource form .group.loaded .checkboxes { clear: left; display: block; max-width: 250px; padding-top: 5px; } .main.resource form .group .checkboxes input.flag, .main.resource form .group.loaded .checkboxes input.flag { display: inline-block; max-width: 20px; float: none; } .main.resource form .group .checkboxes label, .main.resource form .group.loaded .checkboxes label { display: inline-block; float: none; width: 70px; margin: 0; text-align: left; } .main.resource form .group.loaded label { display: block; } .main.resource form .group.loaded input { display: block; } .main.resource form .group input[type="text"] { width: 20.05em; margin-bottom: 0.1em; } .main.resource form .group.image .image-element, .main.resource form .group.video input[type="text"], .main.resource form .group.loaded input[hidden], .main.resource form .group.image.loaded .fields, .main.resource form input[hidden] { display: none; } .main.resource form .group.image.loaded .image-element { display: block; } .main.resource form .fields { height: 3em; } .main.resource form textarea { padding: 0.5em; height: 15em; } .main.resource form select { margin-top: 0.5em; } .main.resource form button { float: left; padding: 0.5em; font-size: 1em; color: white; border: 0; font-weight: 500; } .main.resource form#delete_form button { float: right; color: red; background: #ccc; margin-bottom: 50px; } .main.resource form#delete_form button:hover { background: red; color: white; } .main.resource form button[type="submit"] { background: #000; font-size: 17px; padding: 10px; } .main.resource form ol { margin: 0; padding: 0; } .main.resource form li { list-style-type: none; display: block; clear: both; height: 7em; } .main.resource form img { width: auto; height: auto; max-width: 10em; max-height: 6em; border: 0; } .main.resource form .images img { cursor: -webkit-grab; cursor: grab; } .main.resource form textarea.caption { width: 15em; height: 6em; } .main.resource form .audio-element input[type="text"], .main.resource form .video-element input[type="text"] { width: 15em; } .main.resource form .group input[type="text"].link-input, .main.resource form .group input[type="text"].link-input-new { width: 13.05em; padding: 0 0 0 0.5em;     margin: 1px; } .handle { display: block; width: 1em; height: 2em; background: #f8f8f8; float: left; clear: left; } li .handle { background: #ddd; } .main.resource form .links li { height: 2em; } .main .link-list .add-link-btn, .main .link-list .remove-link-btn { margin: 0; height: 2em; line-height: 1em; } .add-image-button { background: #ddd; clear: left; text-align: left; float: left; margin-right: 1em; position: relative; overflow: hidden; cursor: pointer; } .main.resource form .add-image-button button { margin: 0; pointer-events: none; width: 100%; height: 100%; } .add-image-button input[type="file"] { opacity: 0; position: absolute; top: 0; left: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; } .audio-element:hover .remove, .video-element:hover .remove, .image-element:hover .remove { display: block; } .audio-element .remove:hover, .video-element .remove:hover, .image-element .remove:hover { color: red; } .progress { position: absolute; top: 0; right: -100px; padding: 10px 10px 0 10px; margin: 0px; width: 100px; pointer-events: none; background: #eee; opacity: 0; transition: opacity 0.3s; } .progress .xhr { height: 10px; background: black; margin-bottom: 10px; transition: all 0.2s; } .progress .xhr div { background: white; transition: all 0.2s; height: 100%; } .progress.loading { opacity: 1; } /* .remove { display: none; } */ #delete_form button:hover { color: red; } .template { display: none; } .disabled { display: none; } .success, .errors { background: white; padding: 10px; width: 50%; border: 1px solid; margin: 10px 5px 0 5px; } .success { color: green; } .errors { color: red; } .clear { clear: both; } .hidden { display: none; }