X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/78644811ca0c6042212788dc67add42bc41fb74c..5fa827a3cd9dcbfb587074f6046a66cbe1d5f5e4:/platforma/static/css/master.css diff --git a/platforma/static/css/master.css b/platforma/static/css/master.css index ae51e475..5fc28d00 100644 --- a/platforma/static/css/master.css +++ b/platforma/static/css/master.css @@ -1,415 +1,378 @@ body { - margin: 0; - - font: 12px Helvetica, Verdana, sans-serif; + margin: 0; overflow: hidden; - background: #AAA; -} - -/* fix icon buttons */ - -button img { - vertical-align: middle; - margin: 0px; -} - -/* default form style hacks */ -select { - border: none; - margin-left: 0.1em; -} - -#body-wrap { - margin: 0px; - padding: 0px; + padding: 0; + min-width: 960px; + width: 100%; + height: 100%; } -#header { +.vsplitbar { position: absolute; - padding: 2px 0.5em; - background-color: #CDCDCD; /* !unused */ - border-bottom: 2px solid black; - - font-size: 14px; - - line-height: 26px; - vertical-align: middle; - - /* height: 30px; */ - top: 0px; left: 0px; right: 0px; - z-index: 300; + top: 0px; + bottom: 0; + right: 0;; + width: 13px; + background: #C1C1C1 url(../img/gallery.png) no-repeat scroll center center; + text- + border-left: 1px solid #999; + border-right: 1px solid #999; + cursor: pointer; } -#content { - position: absolute; - top: 32px; left: 0px; right: 0px; bottom: 0px; - overflow: auto; - background-color: white; +.vsplitbar:hover { + background-color: #e6e6fa; } -#header #breadcrumbs { +.vsplitbar.active { + background- + } -#header-right-toolbar { +#source-editor, #simple-editor, #history-viewer { position: absolute; - right: 1em; -} - -#header button { - vertical-align: middle; -} - -/* ========== */ -/* = Panels = */ -/* ========== */ - -/* #panels { - height: 100%; - width: 100%; -} - -.panel-wrap { - overflow: hidden; - position: absolute; top: 0px; - bottom: 0px; -} - -#left-panel-wrap { - left: 0px; - width: 8px; -} - -#right-panel-wrap { - right: 0px; - width: auto; - left: 8px; + bottom: 0; + left: 0; + right: 15px; + overflow: hidden; } -.panel-content { - position: absolute; +#html-view, #history-view { overflow: auto; - overflow-x: hidden; - top: 25px; left: 0px; bottom:0px; right: 0px; + position: absolute; + top: 30px; + bottom: 0; + left: 0; + right: 0; + z-index: 1; } -.panel-overlay { +#sidebar { position: absolute; - top: 0px; bottom: 0px; left: 0px; right: 0px; - z-index: 100; - background: gray; - opacity: 0.8; - text-align: center; overflow: hidden; + top: 0px; + right: 0; + bottom: 0; + width: 0; display: none; - cursor: col-resize; + background-color: #FFF; } -.panel-content-overlay { -} - -.panel-wrap.last-panel .panel-content { - right: 0px; -} -.panel-wrap.last-panel .panel-slider { - display: none; +#splitter { + position: fixed; + top: 31px; + left: 0px; + right: 0px; + bottom: 0px; + overflow: hidden; } -.panel-wrap .panel-toolbar { - position: absolute; - top: 0px; left:0px; right: 0px; height: 26px; - padding: 0px; - border-bottom: 1px solid #AAA; - z-index: 80; +#header { + position: fixed; + top: 0px; + right: 0px; + left: 0px; + height: 30px; + border-bottom: 1px solid #999; + + margin: 0; + padding: 0; + background-color: #C1C1C1; + background-image: -webkit-gradient(linear, left top, left bottom, from(#C1C1C1), color-stop(0.9, #A2A2A2)); + + /* Firefox 3.6 */ + background-image: -moz-linear-gradient(top left, #C1C1C1, #A2A2A2, 90%); + + font: 11px Helvetica, Verdana, sans-serif; + font-weight: bold; } -.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; +#header h1, #header h1 a { + margin: 0; + padding: 0; + font: 17px Helvetica, Verdana, sans-serif; + font-weight: bold; + float: left; + padding: 3px 6px 2px 6px; + color: #222; + line-height: 20px; } -.panel-wrap .panel-slider:hover { - background-color: #999; +#header h1 a { + text-decoration: none; + color: #222; } -.panel-content-overlay.panel-wrap .panel-slider { - background-color: #DDD; +#tabs { + overflow: hidden; + margin: 0; + height: 30px; + padding-left: 1em; } -*/ - -/* OLD STUFF AGAIN */ - -/* Commit dialog */ -#commit-dialog-error-empty-message { - color: red; - display: none; +#tabs li { + height: 24px; + margin-top: 6px; + + -webkit-user-select: none; + cursor: pointer; + display: block; + float: left; + + padding-left: 12px; + padding-right: 12px; + padding-top: 5px; + font-weight: bold; -} + color: #222; + margin-left: 4px; + + background-color: #A2A2A2; + + -moz-box-shadow: 1px -1px 2px rgba(127, 127, 127, 0.25); + -webkit-box-shadow: 1px -1px 2px rgba(127, 127, 127, 0.25); -text#commit-dialog-message { - width: 80%; - margin: auto; + border: 1px solid #999; + -moz-border-radius: 4px 4px 0px 0px; + -webkit-border-radius: 4px; + -webkit-border-bottom-left-radius: 0px; + -webkit-border-bottom-right-radius: 0px; } -#split-dialog .container-box form { - margin: 0.2em 1em; +#tabs li.active { + background-color: #C1C1C1; } -#split-dialog .container-box fieldset { - margin: 0.5em; +#tools { + float: right; + clear: right; + overflow: hidden; + margin: 0; + padding: 0; + height: 30px; + margin-right: 5px; + line-height: 30px; + font-size: 10px; + vertical-align: middle; } +/* + * Toolbars + */ - -/* ======= */ -/* = New = */ -/* ======= */ -#splitview { +.toolbar { width: 100%; - height: 100%; - padding: 0; + border-bottom: 1px solid #777; + background-color: #C1C1C1; margin: 0; -} - -.splitview-splitbar { - width: 5px; - border-left: 1px solid #999; - border-right: 1px solid #999; - height: 100%; - background-color: #CCC; - z-index: 100; -} - -.splitview-overlay { - z-index: 90; - background: #FFF; - opacity: 0.5; -} - -.panel-container { - height: 100%; - position: relative; -} - -.content-view { - position: absolute; - top: 25px; - right: 0; - bottom: 0; - left: 0; - overflow: hidden; -} - -.panel-main-toolbar { - z-index: 1100; - position: absolute; - - top: 0px; - right: 0px; - left: 0px; - height: 24px; - - border-bottom: 1px solid black; - background: gray; - - padding: 0px; -} - -.panel-main-toolbar p { - margin: 0px; padding: 2px; - line-height: 20px; - font-size: 13px; -} - -.xmlview { - height: 100%; -} - -.view-overlay { - z-index: 1000; - background: #FFF; - opacity: 0.8; - text-align: center; - text-valign: center; + z-index: 100; +/* height: 22px;*/ } -.view-overlay p { +.toolbar button { display: block; - position: relative; - top: auto; - bottom: auto; - height: 40px; + float: left; + margin: 4px 0 2px 0; + padding: 2px 5px; + border: none; + background: none; } -/* .buttontoolbarview { - display: block; - background-color: #CCC; +.toolbar button img { + margin: 0; + padding: 0; + margin-bottom: -3px; } -.buttontoolbarview a { - color: #000; - text-decoration: none; -} */ /* Similar classes already exist in toolbar.css */ - -/* ================= */ -/* = Gallery panel = */ -/* ================= */ -.image-gallery-view-template { - position: absolute; - top: 0px; left: 0px; right: 0px; bottom: 0px; - overflow: hidden; +.toolbar select { + float: left; + margin: 1px 5px 1px 0; + background: none; + border: 1px solid #999; + padding: 1px; } -.image-gallery-header { - position: absolute; - bottom: 0px; - left: 0px; - right: 0px; - height: 30px; - - background: gray; - border-top: 1px solid #780000; - z-index: 100; +.toolbar input { + float: left; + font-size: 11px; + padding: 0; + margin: 4px 5px 0px 5px; + vertical-align:baseline; } -input.image-gallery-current-page { - text-align: center; +.toolbar-end { + clear: both; } -.image-gallery-header p { - margin: 0px; - padding: 3px 1em; - height: 30px; - line-height: 24px; - text-align: center; - white-space: nowrap; +.toolbar button:hover, .toolbar button:active { + background: #777; + color: #FFF; + -webkit-border-radius: 10px; + -moz-border-radius: 10px; } -.image-gallery-page-list { - position: absolute; - top: 0px; - left: 0px; - right: 0px; - bottom: 31px; - background: black; - z-index: 0; - - overflow: hidden; +/* Remove extra padding in Firefox */ +button::-moz-focus-inner { + border: 0; + padding: 0; } -.image-gallery-page-container { - display: none; - border: none; - - position: absolute; - top: 0px; left: 0px; +p { margin: 0;} - text-align: center; - padding: 0px; +/* =========== */ +/* = Gallery = */ +/* =========== */ +.change-gallery-panel { + width: 100%; + border-bottom: 1px solid #777; + background-color: #C1C1C1; + margin: 0; + padding: 2px; + z-index: 10; } -.htmlview { +.gallery-image { position: absolute; - top: 25px; + top: 30px; right: 0; bottom: 0; left: 0; - overflow: auto; margin: 0; + border: none; + background-color: #000; + overflow: hidden; } -.image-gallery-page-container img { - /* border: 2px solid green; */ - margin: 0px; +.gallery-image img { + position: absolute; + -moz-drag: none; + user-select: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + cursor: pointer; } -body#base button { - background-color: #DDD; - border-width: 1px; - padding: 0px 0.5em; - font-family: Sans-Serif; - /* color: #000; */ - margin: 2px 4px; -} -body#base button:hover { - background-color: #EEE; +#body-wrap { + height: 100%; + width: 100%; } - -/* HTML editor interactive elements */ - -.html-editarea { - border: 2px solid black; - background-color: gray; - padding: 1px; - - z-index: 2000; +#content { + height: 100%; + width: 100%; } -.html-editarea textarea -{ - - border: 0px; - margin: 0px; - padding: 0px; - +#loading-overlay { + background-color: #FFF; + position: absolute; + z-index: 1000; + padding: 0; + top: 0; + left: 0; width: 100%; height: 100%; - - z-index: 0; - font-size: 10pt; - background-color: ivory; } -.html-editarea p.html-editarea-toolbar { +#loading-message { position: absolute; - background: gray; - - bottom: -26px; - height: 24px; - - left: 0px; - right: 0px; - - border: 2px solid black; - - margin: 0px; - padding: 0px; - - z-index: 100; -} - -/* ================= */ -/* = Message boxes = */ -/* ================= */ -.info { - background-color: gray; -} - -.success { - background-color: green; -} - -.error { - background-color: yellow; + height: 20px; + width: 120px; + left: 50%; + margin-left: -60px; + top: 50%; + margin-top: -10px; +/* text-align: center;*/ +} + +#loading-message img { + float: left; + margin-right: 10px; + margin-top: -6px; +} + + + + +/* + * CodeMirror + */ + +.CodeMirror-line-numbers { + padding: 0px; + padding-top: 5px; + text-align: right; + overflow: hidden; + width: 40px; + border-right: 1px solid black; + background-color: #e6e6fa; +} + +.CodeMirror-line-numbers div { + display: block; + font-family:"Lucida Console", monospace; + font-size: 13px; + line-height: 18px; + padding-right: 5px; +} + +/* DIFFS */ + #history-view table { + width: 75%; + margin: 1em auto; + max-height: 400px; + overflow-y: auto; + } + + #diff-view { + border: 2px solid black; + background: #fafafa; + margin: 1em auto; + width: 90%; + } + + td.diff_header { + display: none; + } + + td.diff_next { + display: none; + } + + .diff_sub { + background-color: #ef4040; + } + + .diff_chg { + background-color: #efef40; + } + + .diff_add { + background-color: #40ef40; + } + + +/* + * HTML Editor view + */ + +.htmlview { + z-index: 1; + overflow: hidden; } -.critical { - background-color: red; +.htmlview *[x-editable] { + background-color: white; + } - +.htmlview .active[x-editable] { + background-color: #FAFAFA; + border: 1px solid #DDD; +/* -webkit-transition: all 1s linear;*/ +} \ No newline at end of file