Skip to content
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

A Problem in the Built-in CSS #832

Closed
BLKSerene opened this issue Apr 18, 2017 · 2 comments
Closed

A Problem in the Built-in CSS #832

BLKSerene opened this issue Apr 18, 2017 · 2 comments

Comments

@BLKSerene
Copy link

i'm not very sure whether this problem is caused by the built-in CSS
The style applied to the class gdarticle which is the containers for different dictionaries
is marigin-top: -9px and margin-bottom: 8px which in the case of multiple dictionaries being
loaded at the same time will casue the last row of pixels to be overlapped by the dictionary following it

It doesn't matter most of the time, but if a set a bottom border of 1px for the first dictionary, the border
will disappear (be overlapped by the next dictionary).
Then I had to add the line of JavaScript (actually jQuery):
$('.gdarticle').css('margin-top', '-8px') then the problem is solved (plus the top margin by 1)

@Abs62
Copy link
Member

Abs62 commented Jul 29, 2017

Fixed in last EA build.

@Abs62 Abs62 closed this as completed Jul 29, 2017
@ghost
Copy link

ghost commented Jan 21, 2020

i'm not very sure whether this problem is caused by the built-in CSS
The style applied to the class gdarticle which is the containers for different dictionaries
is marigin-top: -9px and margin-bottom: 8px which in the case of multiple dictionaries being
loaded at the same time will casue the last row of pixels to be overlapped by the dictionary following it

It doesn't matter most of the time, but if a set a bottom border of 1px for the first dictionary, the border
will disappear (be overlapped by the next dictionary).
Then I had to add the line of JavaScript (actually jQuery):
$('.gdarticle').css('margin-top', '-8px') then the problem is solved (plus the top margin by 1)

If you don't mind me asking, how did you add your user javascript to goldendict? I would very much like to be able to do so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants