Posted in site bugs
3247
2:26 am, January 14, 2021
 

style page numbers [fixed]

need to style the page numbers.

https://kruxor.com/list-table/search_links/ 

Before:

After:

Dark Mode

Light Mode

 

HTML

<ul class="pagination" id="page-numbers"><li class="page-item"><a href="/list/search_links/latest/0/" class="page-link">0</a></li><li class="page-item"><a href="/list/search_links/latest/1/" class="page-link">1</a></li><li class="page-item"><a href="/list/search_links/latest/2/" class="page-link">2</a></li><li class="page-item"><a href="/list/search_links/latest/3/" class="page-link">3</a></li><li class="page-item"><a href="/list/search_links/latest/4/" class="page-link active">4</a></li><li class="page-item"><a href="/list/search_links/latest/5/" class="page-link">5</a></li><li class="page-item"><a href="/list/search_links/latest/6/" class="page-link">6</a></li><li class="page-item"><a href="/list/search_links/latest/7/" class="page-link">7</a></li></ul>

CSS

/* Pagination */
ul.pagination li a {
  padding:5px 12px;
  border-radius:3px;
  text-align:center;
  margin-right:3px;
  margin-bottom:3px;
  float:left;
}
ul.pagination li {
  margin:0px;
  padding:0px;
}
ul.pagination {
  margin:0px;
  padding:0px;
  list-style:none;
}
.dark-mode ul.pagination li a:hover,
.dark-mode ul.pagination li a.active
{
  background:var(--dark-mode-2);
}
.dark-mode ul.pagination li a {
  background:#1f2937;
}
.light-mode ul.pagination li a:hover,
.light-mode ul.pagination li a.active
{
  background:#FFF;
}
.light-mode ul.pagination li a {
  background:#f3f3f3;
}
/* Pagination */

View Statistics
This Week
50
This Month
258
This Year
442

No Items Found.

Add Comment
Type in a Nick Name here
 
Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code here, mostly for my reference. Also if i find a good link, i usually add it here and then forget about it. more...

Subscribe to weekly updates about things i have added to the site or thought interesting during the last week.

You could also follow me on twitter or not... does anyone even use twitter anymore?

If you found something useful or like my work, you can buy me a coffee here. Mmm Coffee. ☕

❤️👩‍💻🎮

🪦 2000 - 16 Oct 2022 - Boots
Random Quote
Even if you fall on your face, you're still moving forward.
Victor Kiam
Random CSS Property

<length>

The <length> CSS data type represents a distance value. Lengths can be used in numerous CSS properties, such as width, height, margin, padding, border-width, font-size, and text-shadow.
length#ic css reference