-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI: Add proxy icons to proxy services and instances where appropriate #5463
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
@import './icons/index'; | ||
@import './table/index'; | ||
@import './type-icon/index'; | ||
|
||
html.template-service.template-list td:first-child a span, | ||
html.template-node.template-show #services td:first-child a span, | ||
|
@@ -19,6 +20,13 @@ html.template-service.template-list main th:first-child { | |
td.folder { | ||
@extend %with-folder; | ||
} | ||
td .kind-proxy { | ||
@extend %type-icon, %with-proxy; | ||
text-indent: -9000px !important; | ||
width: 24px; | ||
margin-top: -8px; | ||
transform: scale(0.7); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The scale here is a little odd. Is this because the SVG is too large? Why not set the width lower? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The scale means I can change the scale of the entire icon in one line, otherwise I'd have to change the width/heights of 2 things in 2 selectors, the gray background which is CSS and the icon itself which is pseudo content, plus the size of the border radius. That would probably be about 10 lines of code as opposed to 1. Plus There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think there's a reason not to aside from it being unexpected (with the expected thing being width/height) and maybe a "wtf" down the road if things don't line up and the Not strong arguments and your reasoning is good, just thought I'd ask. |
||
} | ||
table:not(.sessions) tr { | ||
cursor: pointer; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './skin'; | ||
@import './layout'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
%type-icon { | ||
display: inline-block; | ||
text-indent: 20px; | ||
padding: 3px; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
%type-icon { | ||
border-radius: 4px; | ||
|
||
background: $gray-100; | ||
color: $gray-400; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@import './with-tooltip/index'; | ||
%app-view h1 span { | ||
%app-view h1 span[data-tooltip] { | ||
@extend %with-pseudo-tooltip; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works fine, but it's a little gnarly having to account for the
#
encoding whenever adding an svg. Other UIs use ember-inline-svg to help treat svgs like svgs. ember-svg-jar is also popular.Granted these are slightly different, since they put the svg in the DOM, but that also makes it possible to style the svg dynamically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are good options. If we were inlining SVGs into HTML I'd definitely use one of those, but given we're using inline CSS we can’t use them here.