* Improved history view (still not there).
[redakcja.git] / platforma / static / css / master.css
old mode 100755 (executable)
new mode 100644 (file)
index 874d9e1..619d3fd
-body {
-    margin: 0;    
+a, a:visited, a:active {
+       color: gold;
+       text-decoration: none;  
+}
 
-    font: 12px Helvetica, Verdana, sans-serif;
+body {
+    margin: 0;
     overflow: hidden;
-    background: #AAA;
+    padding: 0;
+    min-width: 960px;
+    width: 100%;
+    height: 100%;
 }
 
-#body-wrap {
-    margin: 0px;
-    padding: 0px;
-    position: fixed;
-    left: 0px;
-    right: 0px;
-    bottom: 0px;
+.vsplitbar {
+    position: absolute;
     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;   
 }
 
-#header { 
-    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;
+.vsplitbar:hover {
+       background-color: #e6e6fa;
 }
 
-#content {
-    position: absolute;
-    top: 32px; left: 0px; right: 0px; bottom: 0px;
-    overflow: auto;
-    background-color: white;
+.vsplitbar.active {
+       background-
+    
 }
 
-#header #breadcrumbs {
+#source-editor, #simple-editor, #history-viewer {
+    position: absolute;
+    top: 0px;
+    bottom: 0;
+    left: 0;
+    right: 15px;
+    overflow: hidden;
 }
 
-#header-right-toolbar {
+#html-view, #history-view {
+    overflow: auto;
     position: absolute;
-    right: 1em;
+    top: 30px;
+    bottom: 0;
+    left: 0;
+    right: 0;
+       z-index: 1;
 }
 
-/* Commit dialog */
-#commit-dialog-error-empty-message {
-    color: red;
+#sidebar {
+    position: absolute;
+    overflow: hidden;
+    top: 0px;
+    right: 0;
+    bottom: 0;
+    width: 0;
     display: none;
-    font-weight: bold;
-}
-
-text#commit-dialog-message {
-    width: 80%;
-    margin: auto;
+    background-color: #FFF;
 }
 
-#split-dialog .container-box form {
-    margin: 0.2em 1em;
-}
 
-#split-dialog .container-box fieldset {
-    margin: 0.5em;
+#splitter {
+       position: fixed;
+       top: 31px;
+       left: 0px;
+       right: 0px;
+       bottom: 0px;
+       overflow: hidden;
 }
 
 
-
-
-/* ======= */
-/* = New = */
-/* ======= */
-#splitview {
-    width: 100%;
-    height: 100%;
-    padding: 0;
+#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;
 }
 
-.splitview-splitbar {
-    width: 5px;
-    border-left: 1px solid #999;
-    border-right: 1px solid #999;
-    height: 100%;
-    background-color: #CCC;
-    z-index: 5100;
-}
-
-.splitview-overlay {
-    z-index: 5000;
-    background: #FFF;
-    opacity: 0.5;
+#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-container {
-    height: 100%;
-    position: relative;
+#header h1 a {
+    text-decoration: none;
+    color: #222;
 }
 
-.content-view {
-    position: absolute;
-    top: 25px;
-    right: 0;
-    bottom: 0;
-    left: 0;
-    overflow: hidden;
+#tabs {
+       overflow: hidden;
+    margin: 0;
+       height: 30px;    
+       padding-left: 1em;      
 }
 
-.panel-main-toolbar {
-    z-index: 1100;    
-    position: absolute;
-
-    top: 0px;
-    right: 0px;
-    left: 0px;
-    height: 24px;
-
-    border-bottom: 1px solid black;
-    background: gray;
+#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);
 
-    padding: 0px;
+    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;
 }
 
-.panel-main-toolbar p {
-    margin: 0px;
-    padding: 2px;
-    line-height: 20px;
-    font-size: 13px;    
+#tabs li.active {
+    background-color: #C1C1C1;    
 }
 
-.xmlview {
-    height: 100%;
+#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;
 }
 
-.view-overlay {
-    display: none;
-    z-index: 0;
-    background: #FFF;    
-    text-align: center;
-    vertical-align: middle;
 
-    position: absolute;
-    left: 0;
-    right: 0;
-    top: 0;
-    bottom: 0;
-
-    /* user-select: 'none';
-    -webkit-user-select: 'none';
-    -khtml-user-select: 'none';
-    -moz-user-select: 'none'; */
-
-    overflow: 'hidden';    
-}
+/*
+ * Toolbars
+ */
 
-.view-overlay div {
-    position: absolute;
+.toolbar {
+    width: 100%;
+    border-bottom: 1px solid #777;
+    background-color: #C1C1C1;
+    margin: 0;
+    padding: 2px;
+    z-index: 100;
+/*    height: 22px;*/
 }
 
-/* .buttontoolbarview {
+.toolbar button {
     display: block;
-    background-color: #CCC;
+    float: left;
+    margin: 4px 0 2px 0;
+    padding: 2px 5px;
+    border: none;
+    background: none;
 }
 
-.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 button img {
+       margin: 0;
+       padding: 0;     
+       margin-bottom: -3px;
 }
 
-.image-gallery-header {
-    position: absolute;
-    bottom: 0px;
-    left: 0px;
-    right: 0px;
-    height: 30px;
 
-    background: gray;
-    border-top: 1px solid #780000;
-    z-index: 100;
+.toolbar select {
+    float: left;
+    margin: 1px 5px 1px 0;
+    background: none;
+    border: 1px solid #999;
+    padding: 1px;
 }
 
-input.image-gallery-current-page {
-    text-align: center;
+.toolbar input {
+    float: left;
+    font-size: 11px;
+    padding: 0;
+    margin: 4px 5px 0px 5px;
+       vertical-align:baseline;
 }
 
-.image-gallery-header p {
-    margin: 0px;
-    padding: 3px 1em;
-    height: 30px;
-    line-height: 24px;
-    text-align: center;
-    white-space: nowrap;
+.toolbar-end {
+    clear: both;
 }
 
-.image-gallery-page-list {
-    position: absolute;
-    top: 0px;
-    left: 0px;
-    right: 0px;
-    bottom: 31px;
-    background: black;
-    z-index: 0;
+.toolbar button:hover, .toolbar button:active {
+    background: #777;
+    color: #FFF;
+    -webkit-border-radius: 10px;
+    -moz-border-radius: 10px;
+}
 
-    overflow: hidden;
+/* Remove extra padding in Firefox */
+button::-moz-focus-inner { 
+    border: 0;
+    padding: 0;
 }
 
-.image-gallery-page-container {
-    display: none;
-    border: none;
+p { margin: 0;}
 
-    position: absolute;
-    top: 0px; left: 0px;
-
-    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;
 }
 
 
-/* ================= */
-/* = Message boxes = */
-/* ================= */
-.info {
-    background-color: gray;
+#body-wrap {
+    height: 100%;
+    width: 100%;
+}
+#content {
+    height: 100%;
+    width: 100%;
 }
 
-.success {
-    background-color: green;
+#loading-overlay {
+    background-color: #FFF;
+    position: absolute;
+    z-index: 1000;
+    padding: 0;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
 }
 
-.error {
-    background-color: yellow;
+#loading-message {
+    position: absolute;
+    height: 20px;
+    width: 120px;
+    left: 50%;
+    margin-left: -60px;
+    top: 50%;
+    margin-top: -10px;
+/*    text-align: center;*/
 }
 
-.critical {
-    background-color: red;
+#loading-message img {
+    float: left;
+    margin-right: 10px;
+    margin-top: -6px;
 }
 
 
 
+
 /*
- *
- * Buttons
- *
+ * CodeMirror 
  */
-*.button {
-    /* reset margin and padding and see what happens */
-    padding: 0;
-    margin: 0;
-    border: 2px solid blue;
 
-    /*
-     * Borders and padding:
-    */
-    
-    /* observation 1: Firefox doesn't apply top/bottom borders to spans in button */
-    /* observation 2: Webkit leaves out some padding to left/right 
-        also: it cuts the top/bottom margin to 1px max */
+.CodeMirror-line-numbers {
+       padding: 0px;
+       padding-top: 5px;               
+       text-align: right;
+       overflow: hidden;
+       width: 40px;
+       border-right: 1px solid black;
+       background-color: #e6e6fa;
+}
 
-    /* observation 3: Opera does the oposite then WK and FF ->
-        span has all borders, button has only left/right 
-    */
+.CodeMirror-line-numbers div {
+       display: block;  
+       font-family:"Lucida Console", monospace;
+    font-size: 13px;
+    line-height: 18px;
+       padding-right: 5px;
+}
 
-    /* Line Height */
+#history-view table {
+       width: 80%;
+       margin: 1em auto;       
+}
 
-    /* 1. Wszystkie przeglądarki, domyślnie ustawiają vertical-align: baseline */
-    vertical-align: baseline;
+#history-view .diff_table {
+       width: 90%;
+}
+/* DIFFS */
+ .diff_table { 
+       border-width: 1px;
+       border-style: solid;
+       border-color: black;
+       empty-cells: show;
+       border-spacing: 0px;            
+}
 
-    /* 2. Opera ustawia rozmiar przycisku, na rozmiar line-height obiektu, który go zawiera */
-    
-    display: inline-block;
-    position: relative;
-    background: yellow;
-    padding: 2px 4px;
+.diff_table td {
+       border-width: 0px 1px 1px 0px;
+       border-style: dotted;
+       border-color: grey;
+       
+       font-size: 10px;
+       line-height: 20px;
+       font-family: monospace;
+       padding: 0px;
+       white-space:pre-line;
+       /*word-wrap:break-word;
+       word-break:break-all; */
+}
 
-    font-size: 16pt;
-    text-decoration: none;
+.diff_table th {
+       border-width: 0px 1px 1px 0px;
+       border-style: solid;
+       border-color: black;
+       background: #e5ffe5;            
 }
+/* .diff_table td.left, .diff_table td.right {
+       width: 50%;
+}*/
 
-*.button:active {
-    background: aqua;
+.diff_table tr.change {
+       background-color: #dcdcdc;
+       
 }
 
-*.button > span.upper-bg {
-    position: absolute;
-    top: 0px; 
-    left: 2px;
-    right: 0px;
-    bottom: 5px;
+.diff_mark {
+       display: inline-block;
+       padding: 2px;
+}
 
-    margin: 0px;
-    
-    background-color: white;
-    z-index: 0;
-    display: block;
+.diff_mark_removed {
+       background-color: #ff9c94;
 }
 
-*.button > span.button-text {
-    position: relative;
-    margin: 0px;
-    display: inline-block;
-    z-index: 2;
-    background: blue;
-    opacity: 0.5;
+.diff_mark_added {
+       background-color: #90ee90;
 }
 
+.diff_mark_changed {
+       background-color: yellow;
+}
+/*
+ * HTML Editor view
+ */ 
+.htmlview {
+       z-index: 1;
+       overflow: hidden;
+}
+
+.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