Visual editor: styling content elements
[fnpeditor.git] / editor.css
index c5c3ee7..588c0b9 100644 (file)
@@ -20,7 +20,7 @@ body {
 }\r
 \r
 #rng-visualEditor-contentWrapper {\r
-    border-color: grey;\r
+    border-color: #ddd;\r
     border-style: solid;\r
     border-width: 1px;\r
     float:left;\r
@@ -56,9 +56,66 @@ body {
     outline: 0px solid transparent;\r
 }\r
 \r
-#rng-visualEditor-meta {\r
+#rng-visualEditor-sidebar {\r
     float:right;\r
-    width: 290px;\r
+    width: 266px;\r
+    height:500px;\r
+    position:relative;\r
+    border-width: 1px 1px 1px 1px;\r
+    border-style: solid;\r
+    border-color: #ddd;\r
+    padding: 5px 15px;\r
+\r
+}\r
+\r
+#rng-visualEditor-sidebar p,\r
+#rng-visualEditor-sidebar td,\r
+#rng-visualEditor-sidebar label,\r
+#rng-visualEditor-sidebar input,\r
+#rng-visualEditor-sidebar select {\r
+    font-size: 11px;\r
+    line-height:13px;\r
+}\r
+\r
+#rng-visualEditor-sidebar select {\r
+    -webkit-appearance: button;\r
+    -moz-appearance: button;\r
+    appearance: button;\r
+    height: auto;\r
+    line-height: 14px;\r
+}\r
+\r
+#rng-visualEditor-sidebar label + select {\r
+    position:relative;\r
+    top: 5px;\r
+}\r
+\r
+#rng-visualEditor-sidebarButtons {\r
+            /*-webkit-transform: rotate(90deg);\r
+            -moz-transform: rotate(90deg);\r
+            -ms-transform: rotate(90deg); */\r
+            \r
+            position:absolute;\r
+            top:-1px;\r
+            right:-50px;\r
+            border-width: 1px 1px 1px 0px;\r
+            border-style: solid;\r
+            border-color: #ddd;\r
+            padding: 5px;\r
+            background: #ededed;\r
+}\r
+\r
+#rng-visualEditor-sidebarButtons  ul {\r
+    margin-bottom: 0px;\r
+}\r
+\r
+.rng-visualEditor-editPaneNodeForm  label {\r
+    width: 50px;\r
+    display: inline-block;\r
+}\r
+\r
+.rng-visualEditor-editPaneNodeForm  select {\r
+    width: 100px;\r
 }\r
 \r
 #rng-visualEditor-meta table {\r
@@ -66,8 +123,6 @@ body {
 }\r
 \r
 #rng-visualEditor-meta table [contenteditable] {\r
-    font-size: 11px;\r
-    line-height:13px;\r
     cursor: pointer;\r
 }\r
 \r
@@ -75,12 +130,12 @@ body {
     border-bottom: none !important;\r
 }\r
 \r
-#rng-visualEditor-meta table tr td:nth-child(1) [contenteditable] {\r
-    width:90px;\r
+#rng-visualEditor-meta table tr td:nth-child(1){\r
+    width: 20%;\r
 }\r
 \r
-#rng-visualEditor-meta table tr td:nth-child(2) [contenteditable]  {\r
-    width:150px;\r
+#rng-visualEditor-meta table tr td:nth-child(2)  {\r
+    width:80%;\r
 }\r
 \r
 #rng-visualEditor-meta .rng-visualEditor-metaAddBtn {\r
@@ -106,8 +161,8 @@ body {
 }\r
 \r
 [wlxml-tag=header] {\r
-    font-size: 19px;\r
-    font-style: bold;\r
+    font-size: 13px;\r
+    font-weight: bold;\r
     margin-bottom: 10px;\r
 }\r
 \r
@@ -116,6 +171,39 @@ body {
     margin-bottom: 10px;\r
 }\r
 \r
+[wlxml-class|="cite"] {\r
+    font-style: italic;\r
+}\r
+\r
+[wlxml-class|="cite-code"] {\r
+    font-family: monospace;\r
+}\r
+\r
+[wlxml-class|="cite-code-xml"] {\r
+    color: blue;\r
+}\r
+\r
+[wlxml-tag=header] > [wlxml-class=author] {\r
+    font-size: 14px;\r
+}\r
+\r
+[wlxml-tag=header] > [wlxml-class=title] {\r
+    font-size:18px;\r
+}\r
+\r
+[wlxml-class|="uri"] {\r
+    color: blue;\r
+    text-decoration: underline;\r
+}\r
+\r
+[wlxml-class|="p"] {\r
+    text-indent: 1.5em;\r
+}\r
+\r
+[wlxml-class|="emph-tech"] {\r
+    font-style: italic;\r
+}\r
+\r
 .rng-hover {\r
     border-color: red;\r
     border-style:solid;\r