diff options
Diffstat (limited to 'themes/okadmin/public/css')
| -rw-r--r-- | themes/okadmin/public/css/main.css | 238 |
1 files changed, 211 insertions, 27 deletions
diff --git a/themes/okadmin/public/css/main.css b/themes/okadmin/public/css/main.css index a1e20a0..6a48e94 100644 --- a/themes/okadmin/public/css/main.css +++ b/themes/okadmin/public/css/main.css @@ -14,11 +14,12 @@ html, body { background-attachment: scroll; } -ul { +ul, ol { padding: 0; list-style: none; } +.main.index .resource-category button, a { color: #A200FF; text-decoration: none; @@ -26,6 +27,7 @@ a { text-transform: uppercase; } +.main.index .resource-category button:hover, a:hover { border-bottom: 1px solid #A200FF; } @@ -41,11 +43,14 @@ a:visited { } .admin-header .breadcrumb { - margin-left: 1em; + margin-left: 0.5em; font-size: 2em; color: rgba(0, 0, 0, 0.25); line-height: 50px; } +.admin-header .breadcrumb b { + color: #333; +} .admin-header .site-link { float: right; @@ -62,7 +67,12 @@ a:visited { border: 2px solid #ddd; } -nav { +.main.index .resource-category.active li:before { + content: "፧"; + margin-right: 1em; +} + +.resource-nav { background: white; width: 10%; margin: 2.5em 1em; @@ -86,25 +96,69 @@ h2 { transform: rotate(-1deg); } -.main.index .resource-category a.add-new { - border-bottom: 3px solid rgba(0, 0, 0, 0); +.main.index .resource-category nav { float: right; - font-size: 1.5em; +} + +.main.index .resource-category.active ol { + cursor: -webkit-grab; + cursor: grab; +} + +.main.index .resource-category.active li a { + pointer-events: none; +} + +/* Makes the button look like a link */ +.main.index .resource-category button { + background: none !important; + height: 1.5em; + border: none; + padding: 0 !important; + font: inherit; + cursor: pointer; + font-family: Monaco, monospace; + text-transform: uppercase; +} + +.main.index .resource-category .btn { + border-bottom: 3px solid rgba(0, 0, 0, 0); color: rgba(0, 0, 0, 0.25); + line-height: 20px; +} + +.main.index .resource-category .btn { + display: none; +} + +.main.index .resource-category .btn.active { + display: inline; +} + +.main.index .resource-category .btn:hover { + border-bottom: 1px solid rgba(0, 0, 0, 0.25); +} + +.main.index .resource-category .btn { + margin-right: 1em; +} + +.main.index .resource-category .btn:last-child { + margin-right: 0; +} +.main.index .resource-category .add-btn { + font-size: 20px; } .main.index .resource-category li { margin: 1em 0; } -.main.index .resource-category a.add-new:hover { - border-bottom: 3px solid rgba(0, 0, 0, 0.25); -} .main.resource { float: left; margin-top: 2em; - width: 80%; + width: 85%; } .main.resource > * { @@ -151,7 +205,18 @@ label { 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.resource form .group { + position: relative; display: block; float: left; width: 31em; @@ -168,27 +233,57 @@ label { border: 0; display: none; } -.main.resource form .group.loaded input:first-child, +.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; - width: 20.05em; } -.main.resource form .group input { - display: none; +.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; @@ -202,6 +297,9 @@ label { font-size: 1.0em; margin-top: 1.0em; } +.main.resource form#delete_form button { + float: right; +} .main.resource form ol { margin: 0; @@ -211,43 +309,118 @@ label { list-style-type: none; display: block; clear: both; - height: 10em; + height: 7em; } .main.resource form img { - width: 10em; - max-height: 10em; + 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: 9em; + 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; +} +.handle { + display: block; + width: 1em; + height: 2em; + background: #ddd; + float: left; +} +.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; - padding: 10px; - width: 15em; + float: left; + margin-right: 1em; position: relative; + overflow: hidden; + cursor: pointer; } .add-image-button:hover { background: #def; } +.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; } -li.image-element:hover .remove-image { +.audio-element:hover .remove, +.video-element:hover .remove, +.image-element:hover .remove { display: block; } -.remove-image { +.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; @@ -257,16 +430,27 @@ li.image-element:hover .remove-image { } -.errors { +.success, .errors { background: white; - padding: 10px; - width: 100%; + padding: 9px 8px 7px; + width: 50%; line-height: 1.4em; + border: 1px solid; + margin: 1em; + border-radius: 2px; } -.errors .message { + +.success { + color: green; +} +.errors { color: red; } .clear { clear: both; } + +.hidden { + display: none; +} |
