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

Change the color of the horizontal lines #22

Closed
TanZng opened this issue May 21, 2020 · 3 comments
Closed

Change the color of the horizontal lines #22

TanZng opened this issue May 21, 2020 · 3 comments

Comments

@TanZng
Copy link

TanZng commented May 21, 2020

While displaying the caption of an algorithm, using algorithm environment as a 'float' wrapper with a with black background it's unable to see the lines.

image

@SaswatPadhi
Copy link
Owner

SaswatPadhi commented Jun 5, 2020

Sorry about the late response. The past month has been extremely busy.

You can change the colors by modifying the border colors. Add this CSS snippet somewhere in your document:

.ps-algorithm {
  border-top: 2px solid white !important;
  border-bottom: 2px solid white !important;
}

.ps-algorithm.with-caption > .ps-line {
  border-bottom: 2px solid white !important;
}

Here is a live example: https://jsfiddle.net/orxy83jk/8/

Screenshot_2020-06-05 Edit fiddle - JSFiddle - Code Playground

Let me know if you face any issues.

@TanZng
Copy link
Author

TanZng commented Jun 5, 2020

Thank you so much! Now looks pretty nice 🤩

image

@TanZng TanZng closed this as completed Jun 5, 2020
@SaswatPadhi
Copy link
Owner

Awesome! Glad I could help :)

@SaswatPadhi SaswatPadhi changed the title How to change color of the lines in the 'float' wrapper? Change the color of the horizontal lines Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants