Ver código fonte

Chore: Theme consistency, rems => pixels (#16145)

* replaced rem with pixels or variables

* replaced rems with pixels or variables

* repalced rems with pixels and variables
Patrick O'Carroll 6 anos atrás
pai
commit
75e3d3e59a

+ 2 - 2
public/sass/components/_gf-form.scss

@@ -415,9 +415,9 @@ select.gf-form-input ~ .gf-form-help-icon {
 
 
 .cta-form {
 .cta-form {
   position: relative;
   position: relative;
-  padding: 1.5rem;
+  padding: $space-lg;
   background-color: $empty-list-cta-bg;
   background-color: $empty-list-cta-bg;
-  margin-bottom: 2rem;
+  margin-bottom: $space-lg;
   border-top: 3px solid $green-base;
   border-top: 3px solid $green-base;
 }
 }
 
 

+ 6 - 6
public/sass/components/_json_explorer.scss

@@ -9,13 +9,13 @@
   }
   }
 
 
   .json-formatter-row {
   .json-formatter-row {
-    margin-left: 1rem;
+    margin-left: $space-md;
   }
   }
 
 
   .json-formatter-children {
   .json-formatter-children {
     &.json-formatter-empty {
     &.json-formatter-empty {
       opacity: 0.5;
       opacity: 0.5;
-      margin-left: 1rem;
+      margin-left: $space-md;
 
 
       &::after {
       &::after {
         display: none;
         display: none;
@@ -66,7 +66,7 @@
   .json-formatter-key {
   .json-formatter-key {
     color: $json-explorer-key-color;
     color: $json-explorer-key-color;
     cursor: pointer;
     cursor: pointer;
-    padding-right: 0.2rem;
+    padding-right: $space-xxs;
     margin-right: 4px;
     margin-right: 4px;
   }
   }
 
 
@@ -79,12 +79,12 @@
   }
   }
 
 
   .json-formatter-toggler {
   .json-formatter-toggler {
-    line-height: 1.2rem;
-    font-size: 0.7rem;
+    line-height: 16px;
+    font-size: $font-size-xs;
     vertical-align: middle;
     vertical-align: middle;
     opacity: $json-explorer-toggler-opacity;
     opacity: $json-explorer-toggler-opacity;
     cursor: pointer;
     cursor: pointer;
-    padding-right: 0.2rem;
+    padding-right: $space-xxs;
 
 
     &::after {
     &::after {
       display: inline-block;
       display: inline-block;

+ 1 - 1
public/sass/components/_jsontree.scss

@@ -35,7 +35,7 @@ json-tree {
   }
   }
 
 
   li {
   li {
-    line-height: 1.3rem;
+    line-height: 18px;
   }
   }
 
 
   .json-tree-key {
   .json-tree-key {

+ 10 - 8
public/sass/components/_panel_graph.scss

@@ -263,7 +263,7 @@
     text-align: center;
     text-align: center;
     position: relative;
     position: relative;
     top: -3px;
     top: -3px;
-    padding: 0.2rem;
+    padding: $space-xxs;
     font-weight: bold;
     font-weight: bold;
     color: $text-color;
     color: $text-color;
   }
   }
@@ -279,7 +279,7 @@
 
 
   .graph-tooltip-series-name {
   .graph-tooltip-series-name {
     display: table-cell;
     display: table-cell;
-    padding: 0.15rem;
+    padding: $space-xxs;
     max-width: 650px;
     max-width: 650px;
     text-overflow: ellipsis;
     text-overflow: ellipsis;
     overflow: hidden;
     overflow: hidden;
@@ -329,7 +329,7 @@
   }
   }
 
 
   .graph-annotation__body {
   .graph-annotation__body {
-    padding: 0.65rem;
+    padding: $space-sm;
   }
   }
 
 
   .graph-annotation__user {
   .graph-annotation__user {
@@ -397,21 +397,23 @@
       top: 0px;
       top: 0px;
       float: left;
       float: left;
       border-right: 1px solid $btn-divider-left;
       border-right: 1px solid $btn-divider-left;
-      padding: 0.5rem 0.3rem 0.4rem 0.4rem;
+      padding: 6px 4px 4px 6px;
     }
     }
   }
   }
 
 
   .alert-handle-value {
   .alert-handle-value {
     border-left: 1px solid $btn-divider-right;
     border-left: 1px solid $btn-divider-right;
-    padding: 0.5rem;
-    line-height: 2rem;
+    padding: $space-xs $space-sm;
+    padding: 7px;
+    line-height: 24px;
+    height: 24px;
 
 
     .alert-handle-grip {
     .alert-handle-grip {
       background: url($btn-drag-image) no-repeat 50% 50%;
       background: url($btn-drag-image) no-repeat 50% 50%;
       background-size: 8px;
       background-size: 8px;
       float: right;
       float: right;
-      width: 1rem;
-      height: 2rem;
+      width: 16px;
+      height: 24px;
       margin-right: 2px;
       margin-right: 2px;
     }
     }
   }
   }

+ 1 - 1
public/sass/components/_panel_piechart.scss

@@ -25,7 +25,7 @@
     .piechart-tooltip-time {
     .piechart-tooltip-time {
       text-align: center;
       text-align: center;
       position: relative;
       position: relative;
-      padding: 0.2rem;
+      padding: $space-xxs;
       font-weight: bold;
       font-weight: bold;
       color: #d8d9da;
       color: #d8d9da;
 
 

+ 3 - 3
public/sass/components/_row.scss

@@ -37,14 +37,14 @@
 
 
 .dashboard-row__title {
 .dashboard-row__title {
   flex-grow: 0;
   flex-grow: 0;
-  font-size: 1.15rem;
+  font-size: $font-size-h5;
   font-weight: $font-weight-semi-bold;
   font-weight: $font-weight-semi-bold;
   color: $text-color;
   color: $text-color;
 
 
   .fa {
   .fa {
     color: $text-muted;
     color: $text-muted;
     font-size: $font-size-xs;
     font-size: $font-size-xs;
-    padding: 0 0.5rem;
+    padding: 0 $space-sm;
   }
   }
 }
 }
 
 
@@ -75,7 +75,7 @@
 
 
 .dashboard-row__drag {
 .dashboard-row__drag {
   cursor: move;
   cursor: move;
-  width: 1rem;
+  width: 16px;
   height: 100%;
   height: 100%;
   background: url('../img/grab_dark.svg') no-repeat 50% 50%;
   background: url('../img/grab_dark.svg') no-repeat 50% 50%;
   background-size: 8px;
   background-size: 8px;

+ 4 - 5
public/sass/components/_search.scss

@@ -28,8 +28,7 @@
 
 
   & > input {
   & > input {
     max-width: 653px;
     max-width: 653px;
-    //padding: 0.5rem 1.5rem 0.5rem 0;
-    padding: 1rem 1rem 0.75rem 1rem;
+    padding: $space-md $space-md $space-sm $space-md;
     height: 51px;
     height: 51px;
     box-sizing: border-box;
     box-sizing: border-box;
     outline: none;
     outline: none;
@@ -45,7 +44,7 @@
 
 
 .search-field-icon {
 .search-field-icon {
   font-size: $font-size-lg;
   font-size: $font-size-lg;
-  padding: 1rem 1rem 0.75rem 1.5rem;
+  padding: $space-md $space-md $space-sm $space-md;
 }
 }
 
 
 .search-dropdown {
 .search-dropdown {
@@ -112,7 +111,7 @@
   padding: $spacer;
   padding: $spacer;
   position: relative;
   position: relative;
   flex-grow: 10;
   flex-grow: 10;
-  margin-bottom: 1rem;
+  margin-bottom: $space-md;
 
 
   // Fix for search scroller in mobile view
   // Fix for search scroller in mobile view
   height: unset;
   height: unset;
@@ -274,7 +273,7 @@
 
 
   .search-dropdown__col_2 {
   .search-dropdown__col_2 {
     display: flex;
     display: flex;
-    margin-bottom: 1rem;
+    margin-bottom: $space-md;
   }
   }
 }
 }
 
 

+ 5 - 5
public/sass/components/_sidemenu.scss

@@ -34,7 +34,7 @@
 }
 }
 
 
 .sidemenu__top {
 .sidemenu__top {
-  padding-top: 3rem;
+  padding-top: 40px;
   flex-grow: 1;
   flex-grow: 1;
 }
 }
 
 
@@ -161,7 +161,7 @@
 }
 }
 
 
 .sidemenu-subtitle {
 .sidemenu-subtitle {
-  padding: 0.5rem 1rem 0.5rem;
+  padding: $space-sm $space-md $space-sm;
   font-size: $font-size-sm;
   font-size: $font-size-sm;
   color: $text-color-weak;
   color: $text-color-weak;
   border-bottom: 1px solid $dropdownDividerBottom;
   border-bottom: 1px solid $dropdownDividerBottom;
@@ -186,7 +186,7 @@ li.sidemenu-org-switcher {
 
 
 .sidemenu-org-switcher__switch {
 .sidemenu-org-switcher__switch {
   font-size: $font-size-sm;
   font-size: $font-size-sm;
-  padding-left: 1.5rem;
+  padding-left: $space-lg;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   > i.fa.fa-random {
   > i.fa.fa-random {
@@ -197,7 +197,7 @@ li.sidemenu-org-switcher {
 
 
 .sidemenu__logo {
 .sidemenu__logo {
   display: block;
   display: block;
-  padding: 0.4rem 1rem 0.4rem 0.65rem;
+  padding: 6px 14px 6px 9px;
   min-height: $navbarHeight;
   min-height: $navbarHeight;
   position: relative;
   position: relative;
   height: $navbarHeight - 1px;
   height: $navbarHeight - 1px;
@@ -263,7 +263,7 @@ li.sidemenu-org-switcher {
     }
     }
 
 
     .sidemenu__top {
     .sidemenu__top {
-      padding-top: 0rem;
+      padding-top: 0;
     }
     }
 
 
     .side-menu-header {
     .side-menu-header {

+ 2 - 8
public/sass/components/_tabbed_view.scss

@@ -19,16 +19,10 @@
 
 
 .tabbed-view-title {
 .tabbed-view-title {
   float: left;
   float: left;
-  padding-top: 0.5rem;
+  padding-top: $space-sm;
   margin: 0 $spacer * 3 0 0;
   margin: 0 $spacer * 3 0 0;
 }
 }
 
 
-.tabbed-view-panel-title {
-  float: left;
-  padding-top: 9px;
-  margin: 0 2rem 0 0;
-}
-
 .tabbed-view-close-btn {
 .tabbed-view-close-btn {
   float: right;
   float: right;
   margin: 0;
   margin: 0;
@@ -58,5 +52,5 @@
 
 
 .section-heading {
 .section-heading {
   font-size: $font-size-md;
   font-size: $font-size-md;
-  margin-bottom: 0.6rem;
+  margin-bottom: $space-sm;
 }
 }

+ 1 - 1
public/sass/layout/_lists.scss

@@ -4,7 +4,7 @@
   list-style: none;
   list-style: none;
 
 
   > li {
   > li {
-    margin-bottom: 0.3125rem;
+    margin-bottom: $space-xs;
 
 
     &:last-child {
     &:last-child {
       margin-bottom: 0;
       margin-bottom: 0;