Эх сурвалжийг харах

[oozie] Cleaned up unused CSS

Enrico Berti 10 жил өмнө
parent
commit
e9fc26a

+ 5 - 7
apps/oozie/src/oozie/templates/editor2/bundle_editor.mako

@@ -90,7 +90,7 @@ ${ commonheader(_("Bundle Editor"), "Oozie", user) | n,unicode }
   <div class="row-fluid">
     <div class="span12 bundle">
 
-      <div class="card card-home" style="padding-bottom: 10px">
+      <div class="card card-home" style="margin-bottom: 20px; padding-bottom: 10px" data-bind="visible: isEditing">
         <h1 class="card-heading simple">${ _('Which schedules to bundle?') }</h1>
 
         <div class="card-body">
@@ -102,7 +102,7 @@ ${ commonheader(_("Bundle Editor"), "Oozie", user) | n,unicode }
       </div>
           
       <div data-bind="foreach: bundle.coordinators">
-        <div class="card card-home" style="margin-top: 20px; padding-bottom: 10px">
+        <div class="card card-home" style="margin-bottom: 20px; padding-bottom: 10px">
           <h1 class="card-heading simple">
             <a class="pointer" data-bind="click: function() { showChooseCoordinator(this); }, text: $root.getCoordinatorById(coordinator()).name"></a>
             <a data-bind="attr: { href: '${ url('oozie:edit_coordinator') }?coordinator=' + $root.getCoordinatorById(coordinator()).id() }" target="_blank" title="${ _('Open') }">
@@ -114,10 +114,10 @@ ${ commonheader(_("Bundle Editor"), "Oozie", user) | n,unicode }
           </h1>
 
           <div class="card-body">
-            <ul data-bind="foreach: properties" class="unstyled">
+            <ul data-bind="foreach: properties" class="unstyled with-margin">
               <li data-bind="visible: ! $root.isEditing()">
-                <span data-bind="text: name"></span>
-                <span data-bind="text: value"></span>
+                <strong data-bind="text: name"></strong>
+                <em data-bind="text: value"></em>
               </li>
               <li data-bind="visible: $root.isEditing">              
                 <input data-bind="value: name"/>
@@ -199,8 +199,6 @@ ${ commonheader(_("Bundle Editor"), "Oozie", user) | n,unicode }
 </div>
 
 
-<div id="exposeOverlay"></div>
-
 <link rel="stylesheet" href="/static/ext/css/hue-filetypes.css">
 <link rel="stylesheet" href="/static/ext/css/hue-charts.css">
 <link rel="stylesheet" href="/static/ext/chosen/chosen.min.css">

+ 0 - 3
apps/oozie/src/oozie/templates/editor2/coordinator_editor.mako

@@ -483,8 +483,6 @@ ${ commonheader(_("Coordinator Editor"), "Oozie", user) | n,unicode }
 
 </div>
 
-<div id="exposeOverlay"></div>
-
 <link rel="stylesheet" href="/static/ext/css/hue-filetypes.css">
 <link rel="stylesheet" href="/static/ext/css/hue-charts.css">
 <link rel="stylesheet" href="/static/ext/chosen/chosen.min.css">
@@ -558,7 +556,6 @@ ${ dashboard.import_bindings() }
   ko.applyBindings(viewModel, $("#editor")[0]);
 
   viewModel.coordinator.properties.cron_advanced.valueHasMutated(); // Update jsCron enabled status
-  viewModel.isEditing(true)
   viewModel.coordinator.tracker().markCurrentStateAsClean();
 
 

+ 53 - 4
apps/oozie/static/css/common-editor.css

@@ -48,10 +48,6 @@
   z-index: 1033;
 }
 
-.ribbon-wrapper {
-  top: 70px;
-}
-
 input[type="text"].filechooser-input {
   border-right: none;
   margin-bottom: 0;
@@ -114,3 +110,56 @@ input[type="text"].filechooser-input.input-xlarge {
   box-shadow: none;
 }
 
+ul.with-margin li {
+  margin-bottom: 4px;
+}
+
+.dropdown-menu li {
+  font-size: 14px;
+}
+
+.dropdown a.dropdown-toggle {
+  padding-left: 10px;
+  padding-right: 10px;
+}
+
+.search-bar {
+  background-color: #F5F5F5;
+  border-bottom: 1px solid #e3e3e3;
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
+  margin: 0;
+  padding: 10px;
+  padding-left: 20px;
+  padding-right: 20px;
+  text-align: left;
+  width: 100%;
+  position: fixed;
+  top: 28px;
+  z-index: 1000;
+}
+
+.fields-chooser li {
+  cursor: pointer;
+  margin-bottom: 10px;
+}
+
+.fields-chooser li .badge {
+  font-weight: normal;
+  font-size: 12px;
+}
+
+.demi-modal {
+  min-height: 80px;
+}
+
+#settingsModal h4 {
+  margin-top: 30px;
+}
+
+#settingsModal ul.unstyled li {
+  margin-bottom: 4px;
+}
+
+

+ 4 - 368
apps/oozie/static/css/coordinator-editor.css

@@ -16,374 +16,6 @@
  limitations under the License.
 */
 
-.dropdown-menu li {
-  font-size: 14px;
-}
-
-.dropdown a.dropdown-toggle {
-  padding-left: 10px;
-  padding-right: 10px;
-}
-
-.search-bar {
-  background-color: #F5F5F5;
-  border-bottom: 1px solid #e3e3e3;
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-  margin: 0;
-  padding: 10px;
-  padding-left: 20px;
-  padding-right: 20px;
-  text-align: left;
-  width: 100%;
-  position: fixed;
-  top: 28px;
-  z-index: 1000;
-}
-
-.search-bar input {
-  margin-left: 10px;
-  padding-right: 20px;
-}
-
-.search-bar ul li {
-  text-align: right;
-}
-
-.sort-by {
-  font-size: 11px;
-  height: 24px;
-  width: 120px;
-  margin-top: -2px;
-}
-
-.nav-header {
-  padding-left: 0 !important;
-  padding-top: 8px;
-}
-
-.facet-list {
-  list-style: none outside none;
-  padding: 0;
-  margin: 0;
-}
-
-.facet-list li {
-  padding-left: 8px;
-  padding-right: 3px;
-}
-
-.facet-list li a {
-  word-wrap: break-word;
-}
-
-.counter {
-  color: #999999;
-  font-size: 13px;
-}
-
-.pagination {
-  border-radius: 4px 4px 4px 4px;
-  list-style: none outside none;
-  margin: 0 0 20px;
-  padding: 8px 15px;
-}
-
-.results.container {
-  width: 1180px;
-}
-
-.results.span2 {
-  width: 180px;
-}
-
-.results.span10 {
-  width: 980px;
-}
-
-.results.span12 {
-  width: 1180px;
-}
-
-.errorlist {
-  display: none;
-}
-
-.breadcrumb {
-  background-color: #FFFFFF;
-  padding-left: 0;
-  margin-bottom: 0;
-}
-
-#result-container {
-  margin-top: 20px;
-}
-
-.facetItem {
-  display: none;
-}
-
-.selectMask {
-  background-color: #F9F9F9;
-  background-image: linear-gradient(to bottom, #FFFFFF, #F1F1F1);
-  background-repeat: repeat-x;
-  border: 1px solid #C0C0C0;
-  border-right-color: rgba(0, 0, 0, 0.1);
-  border-radius: 2px;
-  border-bottom-right-radius: 0;
-  border-top-right-radius: 0;
-  box-shadow: none;
-  color: #444444;
-  display: inline-block;
-  font-size: 13px;
-  height: 29px;
-  line-height: 29px;
-  margin: 0;
-  margin-left: 5px;
-  min-height: 29px;
-  min-width: 120px;
-  padding: 0 8px;
-  text-shadow: none;
-  vertical-align: middle;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
-.download-btn-group {
-  min-width: auto;
-}
-
-.download-btn-group > ul > li {
-  text-align: left;
-}
-
-em {
-  font-weight: bold;
-  background-color: yellow;
-}
-
-.fields-chooser li {
-  cursor: pointer;
-  margin-bottom: 10px;
-}
-
-.fields-chooser li .badge {
-  font-weight: normal;
-  font-size: 12px;
-}
-
-.badge-left {
-  border-radius: 9px 0px 0px 9px;
-  padding-right: 5px;
-}
-
-.badge-right {
-  border-radius: 0px 9px 9px 0px;
-  padding-left: 5px;
-}
-
-.trash-filter {
-  cursor: pointer;
-}
-
-.CodeMirror {
-  border: 1px dotted #DDDDDD;
-}
-
-[contenteditable=true] {
-  border: 1px dotted #DDDDDD;
-  outline: 0;
-  margin-top: 20px;
-  margin-bottom: 20px;
-  min-height: 150px;
-}
-
-[contenteditable=true] [class*="span"], .tmpl [class*="span"] {
-  background-color: #eee;
-  -webkit-border-radius: 3px;
-  -moz-border-radius: 3px;
-  border-radius: 3px;
-  min-height: 40px;
-  line-height: 40px;
-  background-color: #F3F3F3;
-  border: 2px dashed #DDD;
-}
-
-.tmpl {
-  margin: 10px;
-  height: 60px;
-}
-
-.tmpl [class*="span"] {
-  color: #999;
-  font-size: 12px;
-  text-align: center;
-  font-weight: bold;
-}
-
-.editor-title {
-  font-weight: bold;
-  color: #262626;
-  border-bottom: 1px solid #338bb8;
-}
-
-.document-details {
-  background-color: #F6F6F6;
-  padding: 10px;
-  border: 1px solid #e5e5e5;
-}
-
-.result-row:nth-child(even) {
-  background-color: #F6F6F6;
-}
-
-.result-row td {
-  white-space: nowrap;
-  padding: 3px;
-}
-
-#result-container thead tr {
-  border-bottom: 1px solid #e5e5e5;
-}
-
-.demi-modal {
-  min-height: 80px;
-}
-
-.filter-box {
-  float: left;
-  margin-right: 10px;
-  margin-bottom: 10px;
-  background-color: #F6F6F6;
-  padding: 5px;
-  border: 1px solid #d8d8d8;
-  -webkit-border-radius: 3px;
-  -moz-border-radius: 3px;
-  border-radius: 3px;
-}
-
-.field-selector {
-  display: inline-block;
-  margin-left: 3px;
-  min-height: 20px;
-  line-height: 20px
-}
-
-.field-selector.hoverable {
-  cursor: pointer;
-}
-
-.field-selector.hoverable:hover {
-  background-color: #DDD;
-}
-
-.draggable-icon {
-  cursor: move;
-}
-
-.chosen-container .chosen-results li {
-  text-align: left;
-}
-
-#emptyDashboard {
-  right: 70px!important;
-}
-
-.drop-target {
-  background-color: #F6F6F6;
-  min-height: 20px;
-  border: 2px dashed #DDD;
-  text-align: center;
-  padding: 4px;
-}
-
-.ui-sortable.drop-target {
-  min-height: 20px;
-}
-
-.drop-target-highlight {
-  min-height: 20px;
-  background-color: #CCC;
-}
-
-.drop-target-disabled {
-  background-color: #FFFFFF;
-  border-color: #FFFFFF;
-}
-
-
-.drop-target-side {
-  min-height: 100px;
-  height: 100%;
-}
-
-.dashboard .row-fluid .span10.readonly {
-  width: 100%;
-  margin-left: 0;
-}
-
-.dashboard .row-fluid .span1.readonly {
-  width: 0;
-}
-
-.readonly .card-widget {
-  border: 1px solid #d8d8d8!important;
-}
-
-.row-fluid [class*="span"] {
-  margin-left: 0.5%;
-}
-
-.row-fluid .span10 {
-  width: 90%;
-}
-
-.row-fluid .span1 {
-  width: 4.5%;
-}
-
-.prop-editor {
-  display: none;
-}
-
-.prop-editor .tab-pane {
-  overflow-y: auto;
-  max-height: 350px;
-}
-
-.card-widget {
-  position:relative;
-}
-
-#exposeOverlay {
-  background-color:#000;
-  opacity: 0.3;
-  display:none;
-  width:100%;
-  height:100%;
-  position:fixed;
-  top:0;
-  left:0;
-  z-index:1031;
-}
-
-.ui-sortable-disabled {
-  background-color: #f1f1f1!important;
-}
-
-.card-column-disabled {
-  background-color: #f1f1f1;
-}
-
-.coordinator .card-home {
-  padding-bottom: 20px;
-}
-
-#settingsModal h4 {
-  margin-top: 30px;
-}
-
 .form-horizontal .control-label {
   width: 90px;
 }
@@ -403,3 +35,7 @@ em {
 .datepicker {
   z-index: 1300;
 }
+
+.coordinator .card-home {
+  padding-bottom: 10px;
+}

+ 0 - 269
apps/oozie/static/css/workflow-editor.css

@@ -16,272 +16,11 @@
  limitations under the License.
 */
 
-.dropdown-menu li {
-  font-size: 14px;
-}
-
-.dropdown a.dropdown-toggle {
-  padding-left: 10px;
-  padding-right: 10px;
-}
-
-.search-bar {
-  background-color: #F5F5F5;
-  border-bottom: 1px solid #e3e3e3;
-  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065);
-  margin: 0;
-  padding: 10px;
-  padding-left: 20px;
-  padding-right: 20px;
-  text-align: left;
-  width: 100%;
-  position: fixed;
-  top: 28px;
-  z-index: 1000;
-}
-
-.search-bar input {
-  margin-left: 10px;
-  padding-right: 20px;
-}
-
-.search-bar ul li {
-  text-align: right;
-}
-
-.sort-by {
-  font-size: 11px;
-  height: 24px;
-  width: 120px;
-  margin-top: -2px;
-}
-
-.nav-header {
-  padding-left: 0 !important;
-  padding-top: 8px;
-}
-
-.facet-list {
-  list-style: none outside none;
-  padding: 0;
-  margin: 0;
-}
-
-.facet-list li {
-  padding-left: 8px;
-  padding-right: 3px;
-}
-
-.facet-list li a {
-  word-wrap: break-word;
-}
-
-.counter {
-  color: #999999;
-  font-size: 13px;
-}
-
-.pagination {
-  border-radius: 4px 4px 4px 4px;
-  list-style: none outside none;
-  margin: 0 0 20px;
-  padding: 8px 15px;
-}
-
-.results.container {
-  width: 1180px;
-}
-
-.results.span2 {
-  width: 180px;
-}
-
-.results.span10 {
-  width: 980px;
-}
-
-.results.span12 {
-  width: 1180px;
-}
-
-.errorlist {
-  display: none;
-}
-
-.breadcrumb {
-  background-color: #FFFFFF;
-  padding-left: 0;
-  margin-bottom: 0;
-}
-
-#result-container {
-  margin-top: 20px;
-}
-
-.facetItem {
-  display: none;
-}
-
-.selectMask {
-  background-color: #F9F9F9;
-  background-image: linear-gradient(to bottom, #FFFFFF, #F1F1F1);
-  background-repeat: repeat-x;
-  border: 1px solid #C0C0C0;
-  border-right-color: rgba(0, 0, 0, 0.1);
-  border-radius: 2px;
-  border-bottom-right-radius: 0;
-  border-top-right-radius: 0;
-  box-shadow: none;
-  color: #444444;
-  display: inline-block;
-  font-size: 13px;
-  height: 29px;
-  line-height: 29px;
-  margin: 0;
-  margin-left: 5px;
-  min-height: 29px;
-  min-width: 120px;
-  padding: 0 8px;
-  text-shadow: none;
-  vertical-align: middle;
-  overflow: hidden;
-  text-overflow: ellipsis;
-}
-
-.download-btn-group {
-  min-width: auto;
-}
-
-.download-btn-group > ul > li {
-  text-align: left;
-}
-
-.fields-chooser li {
-  cursor: pointer;
-  margin-bottom: 10px;
-}
-
-.fields-chooser li .badge {
-  font-weight: normal;
-  font-size: 12px;
-}
-
-.badge-left {
-  border-radius: 9px 0px 0px 9px;
-  padding-right: 5px;
-}
-
-.badge-right {
-  border-radius: 0px 9px 9px 0px;
-  padding-left: 5px;
-}
-
-.trash-filter {
-  cursor: pointer;
-}
-
-.CodeMirror {
-  border: 1px dotted #DDDDDD;
-}
-
-[contenteditable=true] {
-  border: 1px dotted #DDDDDD;
-  outline: 0;
-  margin-top: 20px;
-  margin-bottom: 20px;
-  min-height: 150px;
-}
-
-[contenteditable=true] [class*="span"], .tmpl [class*="span"] {
-  background-color: #eee;
-  -webkit-border-radius: 3px;
-  -moz-border-radius: 3px;
-  border-radius: 3px;
-  min-height: 40px;
-  line-height: 40px;
-  background-color: #F3F3F3;
-  border: 2px dotted #DDD;
-}
-
-.tmpl {
-  margin: 10px;
-  height: 60px;
-}
-
-.tmpl [class*="span"] {
-  color: #999;
-  font-size: 12px;
-  text-align: center;
-  font-weight: bold;
-}
-
-.editor-title {
-  font-weight: bold;
-  color: #262626;
-  border-bottom: 1px solid #338bb8;
-}
-
-.document-details {
-  background-color: #F6F6F6;
-  padding: 10px;
-  border: 1px solid #e5e5e5;
-}
-
-.result-row:nth-child(even) {
-  background-color: #F6F6F6;
-}
-
-.result-row td {
-  white-space: nowrap;
-  padding: 3px;
-}
-
-#result-container thead tr {
-  border-bottom: 1px solid #e5e5e5;
-}
-
-.demi-modal {
-  min-height: 80px;
-}
-
-.filter-box {
-  float: left;
-  margin-right: 10px;
-  margin-bottom: 10px;
-  background-color: #F6F6F6;
-  padding: 5px;
-  border: 1px solid #d8d8d8;
-  -webkit-border-radius: 3px;
-  -moz-border-radius: 3px;
-  border-radius: 3px;
-}
-
-.field-selector {
-  display: inline-block;
-  margin-left: 3px;
-  min-height: 20px;
-  line-height: 20px
-}
-
-.field-selector.hoverable {
-  cursor: pointer;
-}
-
-.field-selector.hoverable:hover {
-  background-color: #DDD;
-}
-
 .draggable-widget, .draggable-icon {
   cursor: move;
   background-color: #FFF;
 }
 
-.chosen-container .chosen-results li {
-  text-align: left;
-}
-
 #emptyDashboard {
   right: 70px !important;
 }
@@ -455,14 +194,6 @@ body {
   min-height: 10px !important;;
 }
 
-#settingsModal h4 {
-  margin-top: 30px;
-}
-
-#settingsModal ul.unstyled li {
-  margin-bottom: 4px;
-}
-
 .card-column {
   min-height: 200px !important;
 }