Skip to content

Commit

Permalink
Copy generated urls as they appear in the UI to clipboard.
Browse files Browse the repository at this point in the history
Disable text highlighting on everything except extracted items, generated urls and input elements
  • Loading branch information
ruairif committed May 31, 2017
1 parent 105838d commit f47cf53
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions portiaui/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

@import "variables";
@import "generic";
@import "document";

@import "animations";
@import "icons";
Expand Down
2 changes: 0 additions & 2 deletions portiaui/app/styles/components/dropdown-delete.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
li.dropdown-delete {
cursor: pointer;
user-select: none;

a {
color: $brand-danger;
&:hover { color: $brand-danger; }
Expand Down
1 change: 1 addition & 0 deletions portiaui/app/styles/components/extracted-item-table.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.extracted-item-table {
user-select: text;
&,
table {
margin-bottom: $line-height-computed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
unicode-bidi: embed;
word-break: break-all;
word-wrap: break-word;
user-select: text;

b {
font-weight: normal;
Expand Down
5 changes: 1 addition & 4 deletions portiaui/app/styles/components/start-url-options.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.fragment-span {
margin-left: -3px;
}

.start-url-list {
overflow-y: auto;
min-height: 200px;
Expand All @@ -15,6 +11,7 @@
.start-url-generation-list {
p {
white-space: nowrap;
user-select: text;
position: relative;
margin: 0;
}
Expand Down
3 changes: 3 additions & 0 deletions portiaui/app/styles/document.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
body {
user-select: none;
}
2 changes: 1 addition & 1 deletion portiaui/app/templates/components/colored-span.hbs
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{yield}}
{{~ yield ~}}
8 changes: 4 additions & 4 deletions portiaui/app/templates/components/generated-url-options.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
<section class="start-url-generation-list">
{{#each generatedUrlLists as |generatedUrlList|}}
<p>
{{#each generatedUrlList as |fragment index|}}
{{#colored-span class="fragment-span" color=(array-get fragmentColors index)}}
{{#each generatedUrlList as |fragment index| ~}}
{{#colored-span color=(array-get fragmentColors index) ~}}
{{fragment}}
{{/colored-span}}
{{/each}}
{{~/colored-span}}
{{~/each}}
</p>
{{/each}}

Expand Down

0 comments on commit f47cf53

Please sign in to comment.