-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
removing flyout services #5921
Closed
ayushrai206
wants to merge
2
commits into
OpenRefine:master
from
ayushrai206:3141-XSS-vulnerability-in-suggest-flyouts
Closed
removing flyout services #5921
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 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 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 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 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 |
---|---|---|
|
@@ -16,7 +16,7 @@ Author: Kai Conragan (kai@metaweb.com) | |
.fbs-subpane : Inner container for result list <div> | ||
.fbs-list : Contained by .fbs-subpane, this is the actual results list <ul> | ||
.fbs-item : Individual item in results list <li> | ||
.fbs-flyout-pane : Outermost container for flyout on specific object <div> | ||
|
||
|
||
======================================================= | ||
*/ | ||
|
@@ -68,11 +68,9 @@ below rules into your own stylesheet to customize. | |
*/ | ||
|
||
.fbs-pane, | ||
.fbs-flyout-pane, | ||
li.fbs-nomatch, | ||
a.fbs-more-link, | ||
li.fbs-selected, | ||
.fbs-flyout-images, | ||
#fbs-topic-image { | ||
background: #fff; | ||
} | ||
|
@@ -83,39 +81,34 @@ li.fbs-selected, | |
} | ||
|
||
.fbs-pane, | ||
.fbs-flyout-pane, | ||
.fbs-flyout-subtitle, | ||
.fbs-topic-properties strong { | ||
color: #666; | ||
} | ||
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. Similar problem here (and in the rest of your CSS changes). |
||
|
||
h3.fbs-topic-properties, | ||
.fbs-flyout-pane p { | ||
h3.fbs-topic-properties { | ||
color: #444; | ||
} | ||
|
||
.fbs-item-name, | ||
li.fbs-help-on-focus, | ||
li.fbs-nomatch, | ||
.fbs-nomatch-text, | ||
.fbs-flyout-pane h3, | ||
|
||
.fbs-properties-header { | ||
color: #333; | ||
} | ||
|
||
.fbs-pane, | ||
.fbs-flyout-pane { | ||
.fbs-pane | ||
{ | ||
border: 1px solid #bbb; | ||
padding: 2px; | ||
} | ||
|
||
.fbs-flyout-pane { | ||
border-color: #ccc; | ||
} | ||
|
||
|
||
.fbs-list, | ||
.fbs-list-icons, | ||
.fbs-flyout-content, | ||
|
||
.fbs-attribution, | ||
.fbs-header { | ||
background-color: #f5f5f5; | ||
|
@@ -132,9 +125,7 @@ li.fbs-nomatch { | |
border: 1px solid #f5f5f5; | ||
} | ||
|
||
h1#fbs-flyout-title { | ||
color: #f60; | ||
} | ||
|
||
|
||
li.fbs-selected .fbs-item-name { | ||
border-color: #f60; | ||
|
@@ -153,9 +144,7 @@ li.fbs-selected .fbs-item-name { | |
} | ||
|
||
|
||
#fbs-flyout-title .fbs-flyout-label { | ||
color: #aaa; | ||
} | ||
|
||
|
||
.fbs-citation { | ||
white-space: nowrap; | ||
|
@@ -164,13 +153,12 @@ li.fbs-selected .fbs-item-name { | |
} | ||
|
||
/* topic image */ | ||
#fbs-topic-image, | ||
.fbs-flyout-images { | ||
#fbs-topic-image | ||
{ | ||
border: 1px solid #a9a9a9; | ||
} | ||
|
||
.fbs-suggestnew-button, | ||
.fbs-flyout-pane { | ||
.fbs-suggestnew-button { | ||
border: 1px solid #9a9a9a; | ||
color: #999999; | ||
} | ||
|
@@ -180,7 +168,7 @@ li.fbs-selected .fbs-item-name { | |
} | ||
|
||
ul.fbs-list, | ||
.fbs-flyout-content, | ||
|
||
.fbs-attribution, | ||
.fbs-header { | ||
border: 1px solid #dae3e9; | ||
|
@@ -208,23 +196,21 @@ Freebase Suggest Typography | |
3. Setting global style rules | ||
*/ | ||
|
||
.fbs-pane, | ||
.fbs-flyout-pane { | ||
.fbs-pane{ | ||
font-size: 16px; | ||
font-family: Helvetica Neue, Arial, Helvetica, sans-serif; | ||
} | ||
|
||
ul.fbs-list, | ||
.fbs-flyout-content, | ||
|
||
.fbs-attribution, | ||
div.fbs-header { | ||
font-size: 62.5%; | ||
} | ||
|
||
|
||
/* insure <strong> displays bold */ | ||
.fbs-pane strong, | ||
.fbs-flyout-pane strong { | ||
.fbs-pane strong{ | ||
font-weight: bold; | ||
} | ||
|
||
|
@@ -234,16 +220,16 @@ Freebase Suggest Structure | |
------------------------------------------------------- | ||
*/ | ||
|
||
.fbs-flyout-content, | ||
|
||
.fbs-attribution { | ||
margin: 2px; | ||
} | ||
|
||
.fbs-flyout-content { margin-bottom: 0; } | ||
|
||
.fbs-attribution { margin-top: 0; } | ||
|
||
.fbs-pane { width: 325px; } /* results list container */ | ||
.fbs-flyout-pane { width: 319px; margin-left: 3px; } /* flyout container, 3px narrower on each side to create drawer appearance */ | ||
|
||
|
||
ul.fbs-list { | ||
max-height: 400px; | ||
|
@@ -253,18 +239,12 @@ ul.fbs-list { | |
border-top: 0; | ||
} | ||
|
||
.fbs-flyout-content, | ||
|
||
.fbs-attribution { | ||
padding: 5px; | ||
} | ||
|
||
.fbs-flyout-content:after { | ||
content: "."; | ||
display: block; | ||
height: 0; | ||
clear: both; | ||
visibility: hidden; | ||
} | ||
|
||
|
||
|
||
/* | ||
|
@@ -436,34 +416,20 @@ Freebase Suggest Create New | |
font-style: italic; | ||
} | ||
|
||
/* | ||
------------------------------------------------------- | ||
Freebase Suggest Flyout Elements | ||
------------------------------------------------------- | ||
*/ | ||
|
||
.fbs-flyout-id { | ||
color: #999 !important; | ||
} | ||
|
||
/* the object title */ | ||
h1#fbs-flyout-title { | ||
font-size: 1.2em; | ||
font-weight: bold; | ||
margin-bottom: 0.5em; | ||
margin-top: 0.3em; | ||
} | ||
|
||
h1#fbs-flyout-title .fbs-flyout-template-label { | ||
color: #999999; | ||
font-size: 0.8em; | ||
} | ||
|
||
|
||
/* denotes topic, type, view, base, etc. */ | ||
#fbs-flyout-title .fbs-flyout-label { | ||
font-weight: normal; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
/* Image for single topic result */ | ||
#fbs-topic-image { | ||
|
@@ -474,27 +440,13 @@ h1#fbs-flyout-title .fbs-flyout-template-label { | |
} | ||
|
||
/* Image pair for views/base/etc. */ | ||
.fbs-flyout-images { | ||
float: left; | ||
margin: 0 10px 0 0; | ||
padding: 1px 0 1px 1px; | ||
} | ||
|
||
.fbs-flyout-images img { | ||
float: left; | ||
margin-right: 1px; | ||
} | ||
|
||
.fbs-flyout-subtitle { | ||
font-size: 1.1em; | ||
margin-bottom: 0.5em; | ||
} | ||
|
||
.fbs-flyout-pane h3 { | ||
font-size: 1em; | ||
line-height: 1.4; | ||
margin-bottom: 0.25em; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
.fbs-properties-header { | ||
font-size: 1em; | ||
|
@@ -512,34 +464,21 @@ h3.fbs-topic-properties { | |
font-size: 0.8em; | ||
} | ||
|
||
.fbs-flyout-pane p { | ||
font-size: 1.2em; | ||
line-height: 1.4; | ||
max-height: 10em; | ||
overflow: auto; | ||
} | ||
|
||
/* this class is applied with fbs-topic-flyout when a thumbnail is present | ||
in order to provide a fixed margin on text to prevent poor text wrapping | ||
around thumbnail | ||
*/ | ||
p.fbs-flyout-image-true, | ||
h3.fbs-flyout-image-true, | ||
h1.fbs-flyout-image-true { margin-left: 85px; } | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
.fbs-meta-info { margin-left: 110px; } | ||
#fbs-user-flyout li { | ||
margin-left: 100px; | ||
} | ||
#fbs-domain-flyout .fbs-meta-info { margin-left: 145px;} | ||
|
||
/* generic flyout list */ | ||
.fbs-flyout-list li { | ||
font-size: 1em; | ||
margin-left: 15px; | ||
} | ||
|
||
#fbs-domain-flyout #fbs-flyout-title { margin-bottom: 0.5em; } | ||
|
||
|
||
|
||
|
||
|
||
/* | ||
------------------------------------------------------- | ||
|
@@ -555,11 +494,7 @@ Freebase Suggest Attribution | |
min-height: 15px; | ||
} | ||
|
||
.fbs-flyout-types { | ||
font-style: italic; | ||
line-height: 1; | ||
font-size: 1.2em; | ||
} | ||
|
||
|
||
/* | ||
------------------------------------------------------- | ||
|
@@ -579,5 +514,5 @@ to inline Internet Explor fixes | |
|
||
* html .fbs-item-name{ width: 100%; } | ||
|
||
* html .fbs-flyout-content:after { height: 1px; } | ||
|
||
|
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.
Here you are removing not just flyout styling, but also the styling on a lot of other elements:
.fbs-pane
, for instance, should likely stay. See the syntax for CSS selectors: there is a difference between.fbs-pane .fbs-flyout-pane
(which could be removed entirely) and.fbs-pane, .fbs-flyout-pane
(which should be simplified to just.fbs-pane
).