This repository was archived by the owner on Sep 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Overwrite mode improvements #6777
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -224,6 +224,19 @@ a, img { | |
| margin: 0; | ||
| } | ||
|
|
||
| #status-overwrite { | ||
| transition: background-color 3s; | ||
| background-color: rgba(120, 178, 242, 0); | ||
| color: rgb(69, 69, 69); | ||
| cursor: pointer; | ||
| } | ||
|
|
||
| #status-overwrite.flash { | ||
| transition: background-color 1s; | ||
| background-color: rgb(120, 178, 242); | ||
| } | ||
|
|
||
|
|
||
| #editor-holder { | ||
| position: relative; | ||
|
|
||
|
|
@@ -257,15 +270,15 @@ a, img { | |
| font-weight: @font-weight-semibold; | ||
| } | ||
| } | ||
|
|
||
| #image-holder:before { | ||
| content: ''; | ||
| display: inline-block; | ||
| height: 100%; | ||
| margin-right: -0.25em; /* Adjusts for spacing */ | ||
| vertical-align: middle; | ||
| } | ||
|
|
||
| #img-preview { | ||
| background: url(images/preview_bg.png); | ||
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.36); | ||
|
|
@@ -278,25 +291,25 @@ a, img { | |
| height: 38px; | ||
| margin-bottom: 15px; | ||
| } | ||
|
|
||
| #img-data, | ||
| #img-path { | ||
| text-align: left; | ||
| .user-select(text); | ||
| white-space: nowrap; | ||
| text-overflow: ellipsis; | ||
| overflow: hidden; | ||
| overflow: hidden; | ||
|
Contributor
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. It's OK to remove whitespace after text on a line. |
||
| } | ||
|
|
||
| #img-data::selection, | ||
| #img-path::selection { | ||
| background: @selection-color-focused; | ||
| } | ||
|
|
||
| #img { | ||
| position: relative; | ||
| } | ||
|
|
||
| .img-guide, | ||
| #img-preview { | ||
| cursor: none; | ||
|
|
@@ -314,7 +327,7 @@ a, img { | |
| border-radius: 3px; | ||
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); | ||
| } | ||
|
|
||
| #img-tip { | ||
| display: block; | ||
| position: absolute; | ||
|
|
@@ -329,16 +342,16 @@ a, img { | |
| border-radius: 3px; | ||
| box-shadow: 0 1px 3px rgba(0, 0, 0, 0.24); | ||
| } | ||
|
|
||
| #x-value, | ||
| #y-value { | ||
| text-align: right; | ||
| } | ||
|
|
||
| .tip-container { | ||
| border: 0; | ||
| } | ||
|
|
||
| #horiz-guide { | ||
| background-image: url("images/horizontal-dash.svg"); | ||
| background-repeat: repeat-x; | ||
|
|
@@ -352,7 +365,7 @@ a, img { | |
| width: 1px; | ||
| height: 8px; | ||
| } | ||
|
|
||
| #horiz-guide, | ||
| #vert-guide { | ||
| position: absolute; | ||
|
|
@@ -736,7 +749,7 @@ a, img { | |
| background-color: @tc-lighter-gray; | ||
| min-width: 250px; | ||
| cursor: default; | ||
|
|
||
| &.animating { | ||
| // Make the animation use the GPU--especially important for retina. | ||
| -webkit-transform: translateZ(0); | ||
|
|
@@ -780,7 +793,7 @@ a, img { | |
| } | ||
| } | ||
| } | ||
|
|
||
| .shadow { | ||
| display: block; | ||
| height: 4px; | ||
|
|
@@ -830,7 +843,7 @@ a, img { | |
| max-width: 50%; | ||
| overflow: hidden; | ||
| background: @inline-background-color-2; | ||
|
|
||
| // Without this, the "New Rule" button shows on top of the rule list if you resize | ||
| // the window narrow enough. No idea why, since there's no z-index on the button, and | ||
| // the other items in the header go behind the rule list. | ||
|
|
@@ -887,7 +900,7 @@ a, img { | |
| padding: 2px 0px 2px 15px; | ||
| text-overflow: ellipsis; | ||
| white-space: nowrap; | ||
|
|
||
| .related-file { | ||
| color: @tc-input-placeholder-text; | ||
| } | ||
|
|
@@ -1018,20 +1031,20 @@ a, img { | |
| // Separator line between us and the HTML menu/titlebar above | ||
| border-top: 1px solid darken(@background-color-3, @bc-color-step-size); | ||
| } | ||
|
|
||
| &.popout { | ||
| position: absolute; | ||
| left: 0; | ||
| right: 0; | ||
| top: 0; | ||
| } | ||
|
|
||
| &.offscreen { | ||
| -webkit-transform: translate(0, -44px); | ||
| transform: translate(0, -44px); | ||
| transition: -webkit-transform 266ms cubic-bezier(0, 0.56, 0, 1); | ||
| transition: transform 266ms cubic-bezier(0, 0.56, 0, 1); | ||
|
|
||
| body:not(.has-appshell-menus) & { | ||
| top: 37px; | ||
| } | ||
|
|
@@ -1049,29 +1062,29 @@ a, img { | |
| box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.12), 0 0 0 2px rgba(255, 0, 120, 0.5); | ||
| } | ||
| } | ||
|
|
||
| #find-what, #replace-with { | ||
| width: 295px; | ||
| } | ||
|
|
||
| .search-input-container { | ||
| position: relative; | ||
| display: inline; | ||
|
|
||
| .error { // "popup" that hangs below search field | ||
| position: absolute; | ||
| left: 5px; | ||
| top: 24px; | ||
| min-width: 291px + 2px; // to align with search field above it | ||
|
|
||
| background-color: #f74687; | ||
| color: @bc-white; | ||
| font-size: 12px; | ||
| padding: 3px 8px; | ||
| border-radius: 0 0 3px 3px; | ||
| box-shadow: @tc-small-shadow-bottom; | ||
| } | ||
|
|
||
| #find-what { | ||
| padding-right: 62px; // room for #find-counter overlay | ||
| width: 295px - (62px - 6px); // maintain width, accounting for differing padding | ||
|
|
@@ -1084,16 +1097,16 @@ a, img { | |
| font-size: 12px; | ||
| } | ||
| } | ||
|
|
||
| #find-group, #replace-group { | ||
| display: inline-block; | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| .message, .no-results-message { | ||
| display: inline-block; | ||
| } | ||
|
|
||
| #find-case-sensitive, #find-regexp { | ||
| padding: 1px 5px; | ||
| } | ||
|
|
@@ -1125,7 +1138,7 @@ a, img { | |
| border-bottom-right-radius: 0; | ||
| margin-left: 5px; | ||
| } | ||
|
|
||
| // Make button pairs snug | ||
| #find-prev, #replace-yes, #find-case-sensitive { | ||
| border-right: none; | ||
|
|
@@ -1136,7 +1149,7 @@ a, img { | |
| border-bottom-left-radius: 0; | ||
| margin-left: 0; | ||
| } | ||
|
|
||
| // Make find field snug with options buttons | ||
| // & replace snug with replace commands | ||
| #find-what, #replace-with { | ||
|
|
@@ -1191,11 +1204,10 @@ a, img { | |
| width: 12px; | ||
| z-index: @z-index-cm-max; | ||
| pointer-events: none; | ||
|
|
||
| .tickmark { | ||
| position: absolute; | ||
| width: 12px; | ||
|
|
||
| height: 1px; | ||
| background-color: #eddd23; | ||
| border-top: 1px solid #e0d123; | ||
|
|
@@ -1250,11 +1262,11 @@ a, img { | |
| list-style: none; | ||
| cursor: default; | ||
| padding: 6px 10px; | ||
|
|
||
| &:nth-child(odd) { | ||
| background-color: @tc-lighter-gray; | ||
| } | ||
|
|
||
| &:hover { | ||
| background-color: @tc-hover-highlight; | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do not remove whitespace on empty line that is at current indent level.
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.
I have since removed the extension that removed those whitespaces