* Readonly document view.
[redakcja.git] / platforma / static / css / master.css
old mode 100755 (executable)
new mode 100644 (file)
index 6239684..ae74266
@@ -1,50 +1,93 @@
+a, a:visited, a:active {
+       color: blue;
+       text-decoration: none;  
+}
+
+a:hover {
+       text-decoration: underline;
+}
+
+
 body {
     margin: 0;
     overflow: hidden;
     padding: 0;
     min-width: 960px;
+    width: 100%;
+    height: 100%;
 }
 
 .vsplitbar {
-    width: 14px;
-    background: #EEE url(/static/img/gallery.png) no-repeat scroll center center;
-    border-left: 1px solid #999;
-    cursor: col-resize;
+    position: absolute;
+    top: 0px;
+    bottom: 0;
+    right: 0;
+    width: 26px;
+    background: #C1C1C1 url(../img/gallery.png) no-repeat scroll center center;        
+    border-left: 2px solid #999;
+    border-right: 2px solid #999;
+    cursor: pointer;   
 }
 
-.active {
-    background-color: #DDD;
+.vsplitbar:hover {
+       background-color: yellow;
+       border-color: orange;
 }
 
-#simple-editor {
-    height: 100%;
+.editor {
+    position: absolute;
+    top: 0px;
+    bottom: 0;
+    left: 0;
+    right: 30px;
     overflow: hidden;
-    position: relative;
+}
+
+#editor.readonly .editor {
+       right: 0px;
 }
 
 #html-view {
     overflow: auto;
     position: absolute;
-    top: 27px;
+    top: 33px;
     bottom: 0;
     left: 0;
     right: 0;
+       z-index: 1;
 }
 
-#sidebar {
-    overflow: auto;
+#splitter {
+       position: fixed;
+       top: 31px;
+       left: 0px;
+       right: 0px;
+       bottom: 0px;
+       overflow: hidden;
 }
 
+
 #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;
 }
 
-#header h1 {
+#header h1, #header h1 a {
     margin: 0;
     padding: 0;
     font: 17px Helvetica, Verdana, sans-serif;
@@ -55,63 +98,113 @@ body {
     line-height: 20px;
 }
 
+#header h1 a {
+    text-decoration: none;
+    color: #222;
+}
+
 #tabs {
+       overflow: hidden;
     margin: 0;
-    padding: 0;
-    
-    width: 100%;
-    height: 22px;
-    padding-top: 2px;
-    border-bottom: 1px solid #999;
+       padding: 0;
+       height: 31px;
+       border: 0px;    
+       padding-left: 1em;      
 }
 
 #tabs li {
-    -webkit-user-select: none;
-    cursor: default;
+       height: 18px;
+       margin-top: 6px;
+       margin-bottom: 0px;     
+       
+    -webkit-user-select: none; 
+    cursor: pointer;
     display: block;
     float: left;
-    padding: 5px 12px 3px 12px;
-    border: 1px solid #999;
-    -webkit-border-radius: 4px;
-    -webkit-border-bottom-left-radius: 0;
-    -webkit-border-bottom-right-radius: 0;
+       
+       padding-left: 12px;
+       padding-right: 12px;
+       padding-top: 5px;
+       
     font-weight: bold;
     color: #222;
-    height: 13px;
-    -webkit-box-shadow: 1px -1px 2px rgba(127, 127, 127, 0.25);
-    margin-left: 4px;
-    margin-bottom: -1px;
+    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);
+
+    border: 1px solid #999;
+       border-bottom-width: 0px;       
+       -moz-border-radius: 4px 4px 0px 0px;
+       -webkit-border-radius: 4px;
+    -webkit-border-bottom-left-radius: 0px;
+    -webkit-border-bottom-right-radius: 0px;
 }
 
 #tabs li.active {
-    background-color: #C1C1C1;
-    border-bottom: 1px solid #C1C1C1;
+    background-color: #C1C1C1;    
 }
 
+#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
+ */
+
 .toolbar {
+    width: 100%;
     border-bottom: 1px solid #777;
     background-color: #C1C1C1;
     margin: 0;
     padding: 2px;
-    height: 22px;
+    z-index: 100;
+    height: 28px;
+}
+
+.toolbar button {
+    display: block;
+    float: left;
+    margin: 4px 0 2px 0;
+    padding: 2px 5px;
+    border: none;
+    background: none;
+}
+
+.toolbar button img {
+       margin: 0;
+       padding: 0;     
+       margin-bottom: -3px;
 }
 
+
 .toolbar select {
     float: left;
-    margin: 2px 5px 2px 0;
+    margin: 1px 5px 1px 0;
     background: none;
     border: 1px solid #999;
     padding: 1px;
 }
 
-.toolbar button {
-    display: block;
+.toolbar input {
     float: left;
-    margin: 4px 0 2px 0;
-    padding: 0 5px 2px 5px;
-    border: none;
-    background: none;
+    font-size: 11px;
+    padding: 0;
+    margin: 4px 5px 0px 5px;
+       vertical-align:baseline;
 }
 
 .toolbar-end {
@@ -123,7 +216,6 @@ body {
     color: #FFF;
     -webkit-border-radius: 10px;
     -moz-border-radius: 10px;
-    border-radius: 10px;
 }
 
 /* Remove extra padding in Firefox */
@@ -132,4 +224,97 @@ button::-moz-focus-inner {
     padding: 0;
 }
 
-p { margin: 0;}
\ No newline at end of file
+p { margin: 0;}
+
+#body-wrap {
+    height: 100%;
+    width: 100%;
+}
+
+#content {
+    height: 100%;
+    width: 100%;
+}
+
+#loading-overlay {
+    background-color: #FFF;
+    position: absolute;
+    z-index: 1000;
+    padding: 0;
+    top: 0;
+    left: 0;
+    width: 100%;
+    height: 100%;
+}
+
+#loading-message {
+    position: absolute;
+    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;
+}
+
+img.tabclose {
+       padding-left: 8px;
+       width: 16px;
+       height: 16px;   
+       vertical-align: middle;
+       vertical-align: text-bottom;
+}
+
+
+/*
+ * 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;*/
+}
+
+.blockOverlay {
+       background-color: black;
+       opacity: 0.4;
+}