]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard_v2: Use Awesome Bootstrap Checkbox.
authorVolker Theile <vtheile@suse.com>
Wed, 31 Jan 2018 15:46:34 +0000 (16:46 +0100)
committerRicardo Dias <rdias@suse.com>
Mon, 5 Mar 2018 13:07:04 +0000 (13:07 +0000)
Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard_v2/frontend/.angular-cli.json
src/pybind/mgr/dashboard_v2/frontend/package.json
src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.html
src/pybind/mgr/dashboard_v2/frontend/src/app/core/auth/login/login.component.scss
src/pybind/mgr/dashboard_v2/frontend/src/defaults.scss [new file with mode: 0644]
src/pybind/mgr/dashboard_v2/frontend/src/openattic-theme.scss

index e19eb7e2aed3db0cc7406ad02218d987a33d3884..c623375b8c6c946935aa47bcb03af50d372e9c1a 100644 (file)
@@ -22,6 +22,7 @@
         "../node_modules/bootstrap/dist/css/bootstrap.css",
         "../node_modules/ng2-toastr/bundles/ng2-toastr.min.css",
         "../node_modules/font-awesome/css/font-awesome.css",
+        "../node_modules/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css",
         "styles.scss"
       ],
       "scripts": [],
index a4551e9fad3e8b42a5d8c3eede84d75690399fba..35fcc2d0d339e9c5769c801d564d68c67bd9e3c0 100644 (file)
@@ -21,6 +21,7 @@
     "@angular/platform-browser": "^5.0.0",
     "@angular/platform-browser-dynamic": "^5.0.0",
     "@angular/router": "^5.0.0",
+    "awesome-bootstrap-checkbox": "0.3.7",
     "bootstrap": "^3.3.7",
     "core-js": "^2.4.1",
     "font-awesome": "4.7.0",
index afbabe1b130a37be50f2d4b584098361c09a6363..f45415033e8acc10a74fa27abd80183e438bcbff 100644 (file)
         </div>
 
         <!-- Stay signed in -->
-        <div class="checkbox">
-          <label translate>
-            <input id="stay_signed_in"
-                   name="stay_signed_in"
-                   type="checkbox"
-                   [(ngModel)]="model.stay_signed_in">
+        <div class="checkbox checkbox-primary">
+          <input id="stay_signed_in"
+                 name="stay_signed_in"
+                 type="checkbox"
+                 [(ngModel)]="model.stay_signed_in">
+          <label for="stay_signed_in"
+                 translate>
             Keep me logged in
           </label>
         </div>
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..d017d87f09a99e4ef685b235766ca2dda64471d4 100644 (file)
@@ -0,0 +1,26 @@
+@import '../../../../defaults';
+
+.login {
+  height: 100%;
+
+  .row {
+    color: #ececec;
+    background-color: #474544;
+  }
+
+  h1 {
+    margin-top: 0;
+    margin-bottom: 30px;
+  }
+
+  .form-control {
+    color: #ececec;
+    background-color: #555555;
+  }
+
+  .checkbox-primary input[type="checkbox"]:checked + label::before,
+  .checkbox-primary input[type="radio"]:checked + label::before {
+    background-color: $oa-color-blue;
+    border-color: $oa-color-blue;
+  }
+}
diff --git a/src/pybind/mgr/dashboard_v2/frontend/src/defaults.scss b/src/pybind/mgr/dashboard_v2/frontend/src/defaults.scss
new file mode 100644 (file)
index 0000000..3000628
--- /dev/null
@@ -0,0 +1 @@
+$oa-color-blue: #288cea;
index 2f915fa290105679685d27a839005cfbac99ed30..54e1d90acdcdfc0e1642d8acb1a87bf4c5ee04f4 100755 (executable)
@@ -28,7 +28,9 @@
   TagForm
   Trees
   CSS Fix
-/*
+*/
+
+@import 'defaults';
 
 /* Basics */
 html {
@@ -146,12 +148,12 @@ option {
 /* Buttons */
 .btn-openattic {
   color: #ececec;
-  background-color: #288cea;
-  border-color: #288cea;
+  background-color: $oa-color-blue;
+  border-color: $oa-color-blue;
 }
 .btn-primary {
   color: #ececec;
-  background-color: #288CEA;
+  background-color: $oa-color-blue;
   border-color: #2172bf;
 }
 .btn-primary:hover,
@@ -183,11 +185,11 @@ fieldset[disabled] .btn-primary:active,
 .btn-primary.disabled.active,
 .btn-primary[disabled].active,
 fieldset[disabled] .btn-primary.active {
-  background-color: #288CEA;
+  background-color: $oa-color-blue;
   border-color: #2172bf;
 }
 .btn-primary .badge {
-  color: #288CEA;
+  color: $oa-color-blue;
   background-color: #ececec;
 }
 .btn-primary .caret {
@@ -213,7 +215,7 @@ button.btn.btn-label>i.fa {
 }
 .dropdown-menu>.active>a {
   color: #ececec;
-  background-color: #288cea;
+  background-color: $oa-color-blue;
 }
 .dataTables_wrapper .dropdown-menu>li.divider {
   cursor: auto;
@@ -325,7 +327,7 @@ ul.task-queue-pagination {
   background: #474544;
   border: 0;
   border-radius: 0;
-  border-top: 4px solid #288cea;
+  border-top: 4px solid $oa-color-blue;
   font-size: 1.2em;
 }
 .navbar-openattic .navbar-header {
@@ -388,7 +390,7 @@ ul.task-queue-pagination {
 .navbar-openattic .navbar-primary>.active>a:hover,
 .navbar-openattic .navbar-primary>.active>a:focus {
   color: #ececec;
-  background-color: #288cea;
+  background-color: $oa-color-blue;
   border: 0;
 }
 .navbar-openattic .navbar-utility a,
@@ -414,7 +416,7 @@ ul.task-queue-pagination {
   .navbar-openattic .navbar-primary>.active>a:hover,
   .navbar-openattic .navbar-primary>.active>a:focus {
     background-color: transparent;
-    border-bottom: 4px solid #288cea;
+    border-bottom: 4px solid $oa-color-blue;
   }
   .navbar-openattic .navbar-utility {
     border-bottom: 0;
@@ -449,10 +451,10 @@ ul.task-queue-pagination {
   }
   .navbar-openattic .navbar-nav .open .dropdown-menu>.active>a {
     color: #ececec;
-    background-color: #288cea;
+    background-color: $oa-color-blue;
   }
   .navbar-openattic .navbar-nav>li>a:hover {
-    background-color: #288cea;
+    background-color: $oa-color-blue;
   }
   .navbar-openattic .navbar-utility {
     border-top: 1px solid #ececec;
@@ -460,7 +462,7 @@ ul.task-queue-pagination {
   .navbar-openattic .navbar-primary>.active>a,
   .navbar-openattic .navbar-primary>.active>a:hover,
   .navbar-openattic .navbar-primary>.active>a:focus {
-    background-color: #288cea;
+    background-color: $oa-color-blue;
   }
 }
 
@@ -480,7 +482,7 @@ ul.task-queue-pagination {
 .nav-tabs-openattic>li.active>a:focus,
 .nav-tabs-openattic>li.active>a:hover {
   border: 0!important;
-  border-bottom: 3px solid #288cea!important;
+  border-bottom: 3px solid $oa-color-blue!important;
 }
 
 /* Notifications */
@@ -540,7 +542,7 @@ ul.task-queue-pagination {
 .pagination>.active>span,
 .pagination>.active>span:focus,
 .pagination>.active>span:hover {
-  color: #288cea;
+  color: $oa-color-blue;
   border-color: #fff #e1e1e1 #f4f4f4;
   border-width: 0 1px;
 }
@@ -608,7 +610,7 @@ ul.task-queue-pagination {
   border-radius: 0;
 }
 .panel-openattic>.panel-heading {
-  border-top: 2px solid #288cea;
+  border-top: 2px solid $oa-color-blue;
   border-radius: 0;
   padding: 20px 15px;
 }
@@ -635,7 +637,7 @@ table.datatable {
 }
 table.dataTable thead .sorting_asc,
 table.dataTable thead .sorting_desc {
-  color: #288cea;
+  color: $oa-color-blue;
 }
 table.dataTable thead .sorting,
 table.dataTable thead .sorting_asc,
@@ -749,7 +751,7 @@ table.datatable thead .sorting_desc:after {
 
 /* Typo */
 a {
-  color: #288cea;
+  color: $oa-color-blue;
 }
 a:hover,
 a:focus{
@@ -789,26 +791,6 @@ h6{
 
 /*************************************************************/
 
-/* Login */
-.login {
-  height: 100%;
-}
-.login .row {
-  color: #ececec;
-  background-color: #474544;
-}
-.login h1 {
-  margin-top: 0;
-  margin-bottom: 30px;
-}
-.login .form-control {
-  color: #ececec;
-  background-color: #555555;
-}
-.login .checkbox {
-  line-height: 20px;
-}
-
 /* Statistics */
 .statistics-content {
   margin: 0 -20px;
@@ -827,7 +809,7 @@ h6{
 
 /* Caret */
 .caret {
-  color: #288cea;
+  color: $oa-color-blue;
 }
 
 /* Datatables */
@@ -991,7 +973,7 @@ h6{
   color: #ffffff;
   font-size: 1.2em;
   font-weight: 700;
-  background-color: #288cea;
+  background-color: $oa-color-blue;
   border-radius: 5px 5px 0 0;
   z-index: 99999;
 }
@@ -1025,7 +1007,7 @@ h6{
   width: 300px;
   height: 100%;
   background-color: #ffffff;
-  border-left: 5px solid #288cea;
+  border-left: 5px solid $oa-color-blue;
   z-index: 99999;
   overflow-y: auto;
 }
@@ -1094,7 +1076,7 @@ h6{
   background-image: none !important;
 }
 .progress-bar-info {
-  background-color: #288cea;
+  background-color: $oa-color-blue;
 }
 .progress-bar-freespace {
   background-color: #ddd;
@@ -1357,7 +1339,7 @@ uib-accordion .panel-title,
 
 /* oa-helper  */
 oa-helper i {
-  color: #288cea;
+  color: $oa-color-blue;
   cursor: pointer;
 }