Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
5
rated 0 times [  11] [ 6]  / answers: 1 / hits: 68010  / 10 Years ago, wed, december 10, 2014, 12:00:00

GOAL




I've been trying to modify the slick.css to fit the style I need in my site.
I got the slick.css from here.



Now




  • I want to make the arrow (left + right) bigger

  • For icons, I want to use the one with no circle-border around it.

  • I like fa-chevron-right and fa-chevron-left







What have I tried ?




portion of slick.css



.slick-prev, .slick-next { position: absolute; display: block; height: 200px; width: 50px; line-height: 0; font-size: 0; cursor: pointer; background: transparent; color: transparent; top: 50%; margin-top: -10px; padding: 0; border: none; outline: none; }
.slick-prev:hover, .slick-prev:focus, .slick-next:hover, .slick-next:focus { outline: none; background: transparent; color: transparent; }
.slick-prev:hover:before, .slick-prev:focus:before, .slick-next:hover:before, .slick-next:focus:before { opacity: 1; }
.slick-prev.slick-disabled:before, .slick-next.slick-disabled:before { opacity: 0.25; }

.slick-prev:before, .slick-next:before { font-family: slick; font-size: 20px; line-height: 1; color: red; opacity: 0.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }



.slick-prev { left: -10px; top: 70px; }
[dir=rtl] .slick-prev { left: auto; right: -10px; top: 70px; }
.slick-prev:before { content: ←; }
[dir=rtl] .slick-prev:before { content: →; }

.slick-next { right: -10px; top: 70px; }
[dir=rtl] .slick-next { left: -10px; top: 70px; right: auto; }
.slick-next:before { content: →; }
[dir=rtl] .slick-next:before { content: ←; }


HTML



<div class=row slick >
// just a bunch of lists in here
</div>





Detail Photo



Here is what I have now.



enter



Here is what I want to have.



enter







Question





  • Can someone help me resolve this ?



    I really appreciate your consideration and time. :)



More From » jquery

 Answers
234

The Basic thing is its producing arrows by content property:





.slick-prev:before, .slick-next:before { font-family: slick; font-size: 40px; line-height: 1; color: red; opacity: 0.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }   

.slick-prev:before { content: ‹; }
[dir=rtl] .slick-prev:before { content: ›; }

[dir=rtl] .slick-next { left: -10px; top: 70px; right: auto; }
.slick-next:before { content: ›; }
[dir=rtl] .slick-next:before { content: ‹; }





Replace these classes and after that just play with margin and positions properties to adjust the arrows, if this didnot fix the issue send me the http://jsfiddle.net/ link i will send you the complete solution.



If want to use Font Awesome





.slick-prev:before, .slick-next:before { font-family: FontAwesome; font-size: 40px; line-height: 1; color: red; opacity: 0.75; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }   

.slick-prev:before { content: f053; }
[dir=rtl] .slick-prev:before { content: f054; }

[dir=rtl] .slick-next { left: -10px; top: 70px; right: auto; }
.slick-next:before { content: f054; }
[dir=rtl] .slick-next:before { content: f053; }





For list of Font icons visit http://astronautweb.co/snippet/font-awesome/
and how to implement the font visit this thread
Use font awesome icon as css content


[#68524] Sunday, December 7, 2014, 10 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
adrienkeithr

Total Points: 503
Total Questions: 126
Total Answers: 110

Location: Lithuania
Member since Fri, Sep 4, 2020
4 Years ago
;