couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject fauxton commit: updated refs/heads/secondary-indexes to e228123
Date Thu, 31 Jul 2014 18:02:43 GMT
Repository: couchdb-fauxton
Updated Branches:
  refs/heads/secondary-indexes de76f37f5 -> e228123f1


Styling the view form


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/e228123f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/e228123f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/e228123f

Branch: refs/heads/secondary-indexes
Commit: e228123f1d813d765d2b7f2ad62c8bf65c3af359
Parents: de76f37
Author: deathbearbrown <deathbearbrown@gmail.com>
Authored: Thu Jul 31 14:02:41 2014 -0400
Committer: deathbearbrown <deathbearbrown@gmail.com>
Committed: Thu Jul 31 14:02:41 2014 -0400

----------------------------------------------------------------------
 app/addons/indexes/assets/less/doc-item.less    | 83 ++++++++++++++++++++
 app/addons/indexes/assets/less/index-form.less  | 27 +++++++
 app/addons/indexes/assets/less/indexes.less     | 76 +-----------------
 .../assets/less/new-index-placeholder.less      | 11 +++
 app/addons/indexes/templates/view_editor.html   |  2 +-
 5 files changed, 124 insertions(+), 75 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e228123f/app/addons/indexes/assets/less/doc-item.less
----------------------------------------------------------------------
diff --git a/app/addons/indexes/assets/less/doc-item.less b/app/addons/indexes/assets/less/doc-item.less
new file mode 100644
index 0000000..a04883a
--- /dev/null
+++ b/app/addons/indexes/assets/less/doc-item.less
@@ -0,0 +1,83 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+.view table td div.doc-menu-item div.dropdown{
+  display: block;
+}
+
+#doc-list{
+  margin-top: 30px;
+  div.doc-row {
+    margin-bottom:20px;
+    div.select {
+      width: 10%;
+      float: left;
+      vertical-align: top;
+    }
+    .doc-item {
+      float:left;
+      width:90%;
+      vertical-align: top;
+      position: relative;
+      .border-radius(5px 5px 5px 5px);
+      .box-shadow(3px 4px 0 rgba(0, 0, 0, 0.3));
+      border: 1px solid #000;
+      header {
+        font-weight: bold;
+        position: relative;
+        padding: 20px;
+        background-color: #777;
+        color: #3a2c2b;
+        border-bottom: 1px solid #000;
+        .header-id-number{
+          color: #fff;
+          margin-left: 10px;
+        }
+      }
+
+      .doc-data{
+        pre.prettyprint{
+        }
+      }
+
+      &:hover{
+        .btn-group{
+          display:block;
+        }
+      }
+      //temporary
+      .btn-group{
+        position:absolute;
+        top:10px;
+        right:10px;
+        display:none;
+      }
+
+      .doc-menu {
+        position:absolute;
+        right: 0px;
+        top: 0px;
+        .doc-menu-item{
+          a {
+            text-decoration: none;
+          }
+          .dropdown-menu {
+            left:auto;
+            right: 0px;
+          }
+          display: inline-block;
+          width: 30px;
+          height: 30px;
+        }
+      }
+    }
+  }
+}

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e228123f/app/addons/indexes/assets/less/index-form.less
----------------------------------------------------------------------
diff --git a/app/addons/indexes/assets/less/index-form.less b/app/addons/indexes/assets/less/index-form.less
new file mode 100644
index 0000000..674efa7
--- /dev/null
+++ b/app/addons/indexes/assets/less/index-form.less
@@ -0,0 +1,27 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
+.index-form{
+  .control-group {
+    padding:20px;
+    border-bottom: 1px solid #D9D9D9;
+    border-top: 1px solid #fff;
+    margin: 0 0 0 1px;
+  }
+  input[type=text]{
+    width: 100%;
+    .border-radius(5px 5px 5px 5px);
+  }
+  .js-editor {
+    border: 1px solid #ccc;
+    .border-radius(5px 5px 5px 5px);
+  }
+}

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e228123f/app/addons/indexes/assets/less/indexes.less
----------------------------------------------------------------------
diff --git a/app/addons/indexes/assets/less/indexes.less b/app/addons/indexes/assets/less/indexes.less
index acb82b4..5795cce 100644
--- a/app/addons/indexes/assets/less/indexes.less
+++ b/app/addons/indexes/assets/less/indexes.less
@@ -13,77 +13,5 @@
 @import "../../../../../assets/less/bootstrap/variables.less";
 @import "../../../../../assets/less/bootstrap/mixins.less";
 @import "new-index-placeholder.less";
-
-.view table td div.doc-menu-item div.dropdown{
-
-  display: block;
-}
-
-#doc-list{
-  margin-top: 30px;
-  div.doc-row {
-    margin-bottom:20px;
-    div.select {
-      width: 10%;
-      float: left;
-      vertical-align: top;
-    }
-    .doc-item {
-      float:left;
-      width:90%;
-      vertical-align: top;
-      position: relative;
-      .border-radius(5px 5px 5px 5px);
-      .box-shadow(3px 4px 0 rgba(0, 0, 0, 0.3));
-      border: 1px solid #000;
-      header {
-        font-weight: bold;
-        position: relative;
-        padding: 20px;
-        background-color: #777;
-        color: #3a2c2b;
-        border-bottom: 1px solid #000;
-        .header-id-number{
-          color: #fff;
-          margin-left: 10px;
-        }
-      }
-
-      .doc-data{
-        pre.prettyprint{
-        }
-      }
-
-      &:hover{
-        .btn-group{
-          display:block;
-        }
-      }
-      //temporary
-      .btn-group{
-        position:absolute;
-        top:10px;
-        right:10px;
-        display:none;
-      }
-
-      .doc-menu {
-        position:absolute;
-        right: 0px;
-        top: 0px;
-        .doc-menu-item{
-          a {
-            text-decoration: none;
-          }
-          .dropdown-menu {
-            left:auto;
-            right: 0px;
-          }
-          display: inline-block;
-          width: 30px;
-          height: 30px;
-        }
-      }
-    }
-  }
-}
+@import "index-form.less";
+@import "doc-item.less";

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e228123f/app/addons/indexes/assets/less/new-index-placeholder.less
----------------------------------------------------------------------
diff --git a/app/addons/indexes/assets/less/new-index-placeholder.less b/app/addons/indexes/assets/less/new-index-placeholder.less
index 05ed2c1..224725b 100644
--- a/app/addons/indexes/assets/less/new-index-placeholder.less
+++ b/app/addons/indexes/assets/less/new-index-placeholder.less
@@ -1,3 +1,14 @@
+// Licensed under the Apache License, Version 2.0 (the "License"); you may not
+// use this file except in compliance with the License. You may obtain a copy of
+// the License at
+//
+//   http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+// License for the specific language governing permissions and limitations under
+// the License.
 .watermark-logo {
   background: transparent url('../img/couchWatermark.png') no-repeat 0 0;
 }

http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/e228123f/app/addons/indexes/templates/view_editor.html
----------------------------------------------------------------------
diff --git a/app/addons/indexes/templates/view_editor.html b/app/addons/indexes/templates/view_editor.html
index e7e2969..ada5c83 100644
--- a/app/addons/indexes/templates/view_editor.html
+++ b/app/addons/indexes/templates/view_editor.html
@@ -12,7 +12,7 @@ License for the specific language governing permissions and limitations
under
 the License.
 -->
 <div class="all-docs-list errors-container"></div>
-<div id="define-view" class="ddoc-alert well">
+<div id="define-view" class="ddoc-alert index-form">
   <div class="errors-container"></div>
   <form class="form-horizontal view-query-save">
     <div class="control-group">


Mime
View raw message