You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2022/03/07 23:00:37 UTC

[GitHub] [trafficcontrol] shamrickus commented on a change in pull request #6623: Improve TP Tenant Selection

shamrickus commented on a change in pull request #6623:
URL: https://github.com/apache/trafficcontrol/pull/6623#discussion_r821177509



##########
File path: traffic_portal/app/src/common/directives/_directives.scss
##########
@@ -0,0 +1,81 @@
+/*
+
+
+ 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.
+
+*/
+
+.has-error {
+  div.search-box {
+    label {
+      color: #555555;
+      background-color: #eeeeee;
+      border-color: #ccc;
+    }
+    input {
+      box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
+      border-color: #ccc;
+    }
+  }
+}
+
+div.tree-select-root {
+  position: relative;
+
+  input.display-field {
+    background-color: #fff;
+  }
+
+  div.tree-drop-down {
+    width: 100%;
+    background: white;
+    position: absolute;
+    z-index: 2;
+    box-shadow: rgba(0, 0, 0, 0.38) 0px 3px 3px;
+    border: 1px solid #0000001f;
+    font-size: 16px;
+
+    div.search-box {
+      width: calc(100% - 10px);
+      margin: 5px auto 5px;
+
+      @media (min-width: 768px) {
+        div.helptooltip {
+          left: calc(100% - 50px);
+        }
+      }
+    }
+
+    ul.nav  {
+      max-height: 550px;
+      overflow-y: scroll;
+      overflow-x: hidden;
+
+      & > li.tree-row > a {
+        padding: 5px 0 5px 10px;
+
+
+        i {
+          margin-right: 3px;
+        }
+
+        @for $i from 0 through 30 {
+          &.depth-#{$i} {
+            position: relative;
+            left: #{$i * 8}px;
+          }
+        }

Review comment:
       I'd really rather avoid having to make another directive/component (which is the only way to do that in ajs). I'll move the `left` portion of the css to angular in an `ng-style`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org