Posted in site bugs
3206
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
53
This Month
324
This Year
401

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


minecraft
Random CSS Property

content-visibility

The content-visibility CSS property controls whether or not an element renders its contents at all, along with forcing a strong set of containments, allowing user agents to potentially omit large swathes of layout and rendering work until it becomes needed. Basically it enables the user agent to skip an element's rendering work (including layout and painting) until it is needed — which makes the initial page load much faster.
content-visibility css reference