X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/09fa65b2de2f428bc63082d379ecd6bfbd94f63c..45fcd6d5e47f5f51e645f12a87776b9b95b2c0b6:/project/static/css/master.css diff --git a/project/static/css/master.css b/project/static/css/master.css index 1efa2d66..040549e1 100644 --- a/project/static/css/master.css +++ b/project/static/css/master.css @@ -1,13 +1,41 @@ body { margin: 0; - font: 14px Helvetica, Verdana, sans-serif; + font: 10pt Helvetica, Verdana, sans-serif; overflow: hidden; + background: #AAA; } -#breadcrumbs { - padding: 5px 10px; +#header { + position: absolute; + padding: 0.2em 0.5em; background-color: #CDCDCD; - border-bottom: 1px solid #858585; + border-bottom: 0.1px solid black; + height: 1.8em; + line-height: 1.8em; + vertical-align: center; + + top: 0px; left: 0px; right: 0px; + z-index: 300; +} + +#header #breadcrumbs { +} + +#header-right-toolbar { + position: absolute; + right: 1em; +} + +#header button { + vertical-align: center; +} + +#content { + position: absolute; + top: 2.4em; left: 0px; right: 0px; bottom: 0px; + overflow: auto; + background-color: white; + padding: 0.2em 1em; } ul { @@ -74,92 +102,139 @@ label { overflow-y: scroll; } -#whatever { - float: left; -} +/* ========== */ +/* = Panels = */ +/* ========== */ -#images-wrap { -/* width: 0px;*/ - height: 480px; - overflow-y: scroll; - overflow-x: hidden; - background-color: #fff; - float: left; +#panels { + position: absolute; + bottom: 0px; left: 0px; right: 0px; top: 0px; } -#sidebar { - float: left; - width: 8px; +.panel-wrap { overflow: hidden; + position: absolute; /* absolute to relation with #panels */ + top: 0px; + bottom: 0px; } -#toggle-sidebar { - border-left: 1px solid #999; - border-right: 1px solid #999; - background-color: #DDD; - width: 8px; - height: 100%; - float: left; +#left-panel-wrap { + left: 0px; + width: 8px; /* initial width */ } -#toggle-sidebar:hover { - background-color: #999; - cursor: col-resize; +#right-panel-wrap { + right: 0px; + width: auto; + left: 8px; /* initial width of the left panel */ } -#status-bar { - border-top: 1px solid #999; - background-color: #EEE; - padding: 2px 10px; +/* contents */ +.panel-content { + position: absolute; + overflow: auto; + overflow-x: hidden; + top: 22px; left: 0px; bottom:0px; right: 0px; } -.errorlist { - color: red; - margin: 0 20px 0 0; - padding: 0; - float: left; +.panel-overlay { + position: absolute; + top: 0px; bottom: 0px; left: 0px; right: 0px; + z-index: 100; + background: gray; + opacity: 0.8; + text-align: center; + overflow: hidden; + display: none; + cursor: col-resize; } -.errorlist:before { - content: ''; - clear: both; +.panel-content-overlay { } -p { - margin: 0; +.panel-wrap.last-panel .panel-content { + right: 0px; +} + +.panel-wrap.last-panel .panel-slider { + display: none; } -.image-box { - border-top: 1px solid #DDD; +/* Toolbars with select box to change panel contents*/ +.panel-toolbar { + position: absolute; + top: 0px; left:0px; right: 0px; height: 20px; + + padding: 0 0 2px 0; + /* border-top: 1px solid #AAA; */ + border-bottom: 1px solid #AAA; + font-size: 12px; + line-height: 20px; + background-color: #DDD; + white-space: nowrap; + overflow: hidden; + z-index: 80; } -#toolbar, #toolbar ol { +.panel-toolbar label { display: block; - margin: 0; - padding: 0; - background-color: #CCC; - border-top: 1px solid #AAA; + float: left; + margin: 0 10px 0 2px; } -#toolbar { - overflow: hidden; - width: 400%; +/* Slider between panels */ +.panel-wrap .panel-slider { + position: absolute; + background-color: #DDD; + + top: 0px; bottom: 0px; right: 0px; width: 4px; + + border-left: 1px solid #999; + border-right: 1px solid #999; + border-top: none; + border-bottom: none; + + z-index: 90; + cursor: col-resize; +} + +.panel-wrap .panel-slider:hover { + background-color: #999; +} + +.panel-content-overlay.panel-wrap .panel-slider { + background-color: #DDD; } -#sidebar-toolbar, #sidebar-toolbar ol { + +/* ================= */ +/* = Gallery panel = */ +/* ================= */ +.images-wrap { + overflow-x: hidden; + overflow-y: scroll; +} + + +/* ==================== */ +/* = XML Editor panel = */ +/* ==================== */ + +.toolbar { overflow: hidden; + z-index: 70; +} + +.toolbar, .toolbar ol { +/* overflow: hidden;*/ display: block; margin: 0; padding: 0; background-color: #CCC; - border-bottom: 1px solid #AAA; -} - -#sidebar-toolbar { - width: 0; + border-top: 1px solid #AAA; } -#sidebar-tabs li, #toolbar-tabs li { +.toolbar-tabs li { font-size: 14px; display: block; float: left; @@ -175,24 +250,23 @@ p { -webkit-border-top-right-radius: 8px; } -#sidebar-tabs, #toolbar-tabs { +.toolbar-tabs { height: 21px; - z-index: 1000; -/* overflow: hidden;*/ } -#sidebar-tabs li:hover, #sidebar-tabs li.active, #toolbar-tabs li:hover, #toolbar-tabs li.active { +.toolbar-tabs li:hover, .toolbar-tabs li.active { cursor: default; background-color: #EEE; border-bottom: 1px solid #EEE; } -#toolbar-buttons { +.toolbar-buttons { background-color: #EEE; border-bottom: 1px solid #AAA; + z-index: 71; } -#toolbar-buttons li { +.toolbar-buttons li { display: block; font-size: 12px; padding: 1px 8px; @@ -203,8 +277,143 @@ p { float: left; } -#toolbar-buttons li:hover { +.toolbar-buttons li:hover { background-color: #777; color: #FFF; cursor: default; } + +.change-font-size { + width: 45px; + height: 18px; + padding: 3px 0 0; + position: absolute; + top: 0; + right: 0; +} + +.change-font-size div { + float: left; + text-align: center; + width: 20px; + font-size: 13px; + margin: 1px; + cursor: default; + border-radius: 2px; + -moz-border-radius: 2px; + -webkit-border-radius: 2px; +} + +.change-font-size div:hover { + background-color: #EEE; + border: 1px solid #AAA; + margin: 0; +} + +/* =========================== */ +/* = DublinCore Editor panel = */ +/* =========================== */ +.panel-dceditor { + padding: 10px; +} + +.panel-dceditor label { + display: block; + font-size: 12px; + margin-top: 10px; + color: #666; + font-weight: bold; +} + +.panel-dceditor input, .panel-dceditor textarea { + width: 400px; + display: block; +} + +div.isection { + margin: 1em auto; + border: 1px solid black; + padding: 0.5em 2em; + background: #9f9ffa; + + width: 60%; +} + +div.isection p { + margin: 0.5em 1em; +} + +.change-notification { + color: red; +} + +/* + * Popups + */ +#message-box { + position: fixed; + top: 2px; + left: 40%; +} + +.msg-error, .msg-success, .msg-warning { + overflow: hidden; + padding: 0.1em 0.2em; + text-align: center; + border: 1px solid; + -moz-border-radius: 8px; + -webkit-border-radius: 8px; + font-size: 10pt; + line-height: 11pt; + display: none; + + width: 200px; +} + + +.msg-error { + background-color: red; + border-color: red; +} + +.msg-success { + background-color: lightgreen; + border-color: lightgreen; +} + +.msg-warning { + background-color: yellow; + border-color: yellow; +} + + +/* + * Object list table + */ + table.object-list { + border-top: 2px solid black; + border-left: 2px solid black; + border-right: 1px solid black; + border-bottom: 1px solid black; + width: 60%; + margin: auto; + } + + + table.object-list td, table.object-list th { + border-bottom: 1px solid black; + border-right: 1px solid black; + padding: 0.2em 0.5em; + } + + table.object-list th { + text-align: center; + background-color: #8080d0; + font-size: 120% + } + + table.object-list td.page-navigation { + position: relative; + text-align: center; + background-color: #CCC; + } \ No newline at end of file