Posted in site bugs
3285
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
61
This Month
296
This Year
480

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
If you work on something a little bit every day, you end up with something that is massive.
Kenneth Goldsmith
Random CSS Property

border-inline-width

The border-inline-width CSS property defines the width of the logical inline borders of an element, which maps to a physical border width depending on the element's writing mode, directionality, and text orientation. It corresponds to the border-top-width and border-bottom-width, or border-left-width, and border-right-width property depending on the values defined for writing-mode, direction, and text-orientation.
border-inline-width css reference